/* =========================================================
   Portal Hero Section
   File: portal-hero.css
   Final Clean Version
   ========================================================= */

:root{
  --gcr-portal-max: 1180px;

  --gcr-portal-bg-1: #f8fafc;
  --gcr-portal-bg-2: #eef4fb;
  --gcr-portal-bg-3: #ffffff;

  --gcr-portal-text-1: #0f172a;
  --gcr-portal-text-2: #475569;
  --gcr-portal-text-3: #64748b;

  --gcr-portal-blue: #2563eb;
  --gcr-portal-blue-dark: #1d4ed8;

  --gcr-portal-border: rgba(15, 23, 42, 0.08);
  --gcr-portal-pill: 999px;

  --gcr-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.06);
}

/* ===== 不再推整个页面内容，避免顶部大空白 ===== */
.home .site-content{
  padding-top: 0 !important;
  background: #ffffff;
}

/* ===== Hero ===== */
.gcr-portal-hero{
  position: relative;
  overflow: hidden;
  padding: 30px 0 230px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.06), transparent 24%),
    linear-gradient(180deg, var(--gcr-portal-bg-1) 0%, var(--gcr-portal-bg-2) 62%, var(--gcr-portal-bg-3) 100%);
}

.gcr-portal-hero *{
  box-sizing: border-box;
}

.gcr-portal-hero-inner{
  width: min(var(--gcr-portal-max), calc(100% - 40px));
  margin: 0 auto;
}

.gcr-portal-left{
  max-width: 760px;
}

/* badge */
.gcr-portal-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--gcr-portal-pill);
  background: rgba(37,99,235,0.08);
  color: var(--gcr-portal-blue-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* title */
.gcr-portal-title{
  margin: 0;
  max-width: 780px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--gcr-portal-text-1);
  text-wrap: balance;
}

/* desc */
.gcr-portal-desc{
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--gcr-portal-text-2);
}

/* buttons */
.gcr-portal-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.gcr-portal-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s ease;
}

.gcr-portal-btn-primary{
  background: var(--gcr-portal-blue);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(37,99,235,0.18);
}

.gcr-portal-btn-primary:hover{
  background: var(--gcr-portal-blue-dark);
  transform: translateY(-2px);
}

.gcr-portal-btn-secondary{
  background: rgba(255,255,255,0.88);
  color: var(--gcr-portal-text-1) !important;
  border: 1px solid var(--gcr-portal-border);
}

.gcr-portal-btn-secondary:hover{
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.14);
}

/* tags */
.gcr-portal-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.gcr-portal-tags span{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--gcr-portal-pill);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.05);
  color: var(--gcr-portal-text-3);
  font-size: 13px;
  font-weight: 600;
}

/* 清理旧版残留结构 */
.gcr-portal-right,
.gcr-portal-panel,
.gcr-portal-panel-top,
.gcr-portal-feature-list,
.gcr-portal-feature-item,
.gcr-portal-mini-stats{
  display: none !important;
}

/* ===== 表格区块过渡 ===== */
.homepage-table-section{
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  margin: -70px auto 0;
  padding: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

/* 防止表格过宽 */
.homepage-table-section .wpDataTables,
.homepage-table-section .dataTables_wrapper,
.homepage-table-section table{
  max-width: 100%;
}

/* ===== 平板 ===== */
@media (max-width: 1024px){
  .home .site-content{
    padding-top: 0 !important;
  }

  .gcr-portal-hero{
    padding: 24px 0 105px;
  }

  .gcr-portal-left{
    max-width: 100%;
  }

  .gcr-portal-title{
    max-width: 100%;
  }

  .homepage-table-section{
    width: min(100%, calc(100% - 28px));
    margin-top: -56px;
    border-radius: 20px;
  }
}

/* ===== 手机 ===== */
@media (max-width: 768px){
  .home .site-content{
    padding-top: 0 !important;
  }

  .gcr-portal-hero{
    padding: 18px 0 82px;
  }

  .gcr-portal-hero-inner{
    width: min(100%, calc(100% - 20px));
  }

  .gcr-portal-badge{
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    margin-bottom: 16px;
  }

  .gcr-portal-title{
    font-size: 36px;
    line-height: 1.0;
  }

  .gcr-portal-desc{
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
  }

  .gcr-portal-actions{
    gap: 10px;
    margin-top: 22px;
  }

  .gcr-portal-btn{
    min-height: 46px;
    padding: 0 17px;
    font-size: 14px;
  }

  .gcr-portal-tags{
    gap: 8px;
    margin-top: 18px;
  }

  .gcr-portal-tags span{
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .homepage-table-section{
    width: min(100%, calc(100% - 16px));
    margin-top: -42px;
    border-radius: 16px;
  }
}




/* =========================
   首页顶部纯UI分隔模块
   导航栏下方 / 内容上方
   ========================= */

:root{
  --gcr-divider-max-width: 1380px;
  --gcr-divider-height: 34px;
  --gcr-divider-radius: 999px;

  --gcr-divider-mt: 12px;   /* 距离导航栏 */
  --gcr-divider-mb: 22px;   /* 距离下方内容 */

  --gcr-divider-line: rgba(15, 23, 42, 0.08);
  --gcr-divider-line-strong: rgba(15, 23, 42, 0.14);
  --gcr-divider-core: rgba(245, 158, 11, 0.88);

  --gcr-divider-bg1: rgba(255,255,255,0.72);
  --gcr-divider-bg2: rgba(255,255,255,0.42);

  --gcr-divider-shadow:
    0 8px 22px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

.gcr-top-divider{
  width: 100%;
  margin: var(--gcr-divider-mt) 0 var(--gcr-divider-mb);
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.gcr-top-divider__inner{
  position: relative;
  max-width: var(--gcr-divider-max-width);
  height: var(--gcr-divider-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border-radius: var(--gcr-divider-radius);
  background: linear-gradient(135deg, var(--gcr-divider-bg1), var(--gcr-divider-bg2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--gcr-divider-shadow);
  overflow: hidden;
}

/* 顶部细微流光 */
.gcr-top-divider__inner::before{
  content: "";
  position: absolute;
  top: 0;
  left: -22%;
  width: 22%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.22) 50%,
    transparent 100%
  );
  transform: skewX(-24deg);
  animation: gcrDividerShine 6s linear infinite;
  pointer-events: none;
}

@keyframes gcrDividerShine{
  0%{ left: -26%; }
  100%{ left: 124%; }
}

/* 左右延展线 */
.gcr-top-divider__line{
  flex: 1 1 auto;
  height: 1px;
  position: relative;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gcr-divider-line) 18%,
    var(--gcr-divider-line-strong) 50%,
    var(--gcr-divider-line) 82%,
    transparent 100%
  );
}

.gcr-top-divider__line::after{
  content: "";
  position: absolute;
  inset: -6px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245,158,11,0.03) 50%,
    transparent 100%
  );
  filter: blur(6px);
  pointer-events: none;
}

/* 中心点 */
.gcr-top-divider__core{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gcr-divider-core);
  box-shadow:
    0 0 0 4px rgba(245,158,11,0.10),
    0 0 18px rgba(245,158,11,0.28);
  flex: 0 0 auto;
  animation: gcrDividerPulse 2.4s ease-in-out infinite;
}

@keyframes gcrDividerPulse{
  0%,100%{
    transform: scale(1);
    opacity: .92;
  }
  50%{
    transform: scale(1.18);
    opacity: 1;
  }
}

/* 两侧柔光 */
.gcr-top-divider__glow{
  position: absolute;
  top: 50%;
  width: 140px;
  height: 36px;
  transform: translateY(-50%);
  border-radius: 999px;
  filter: blur(18px);
  opacity: .55;
  pointer-events: none;
}

.gcr-top-divider__glow--left{
  left: 12%;
  background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 72%);
}

.gcr-top-divider__glow--right{
  right: 12%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 72%);
}

/* 手机端 */
@media (max-width: 991px){
  .gcr-top-divider{
    padding: 0 12px;
    margin-top: 10px;
    margin-bottom: 18px;
  }

  .gcr-top-divider__inner{
    height: 28px;
    gap: 10px;
    padding: 0 14px;
  }

  .gcr-top-divider__core{
    width: 8px;
    height: 8px;
  }

  .gcr-top-divider__glow{
    width: 90px;
    height: 26px;
    filter: blur(14px);
  }
}

@media (max-width: 640px){
  .gcr-top-divider__glow{
    display: none;
  }
}