/* ==========================================================================
   home.css · 首页专用
   轮播 Hero、双入口、期数导航、数据速览、联系区域
   ========================================================================== */

/* ============================ 1. Hero 轮播 ============================ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 78vh, 730px);
  padding: 84px 0 132px;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

.hero-stage { position: absolute; inset: 0; z-index: -2; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  will-change: opacity;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.04);
  transition: transform 7s linear;
}

.hero-slide.is-active img { transform: scale(1.1); }

/* 无图时的兜底渐变，避免空白 */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(15, 159, 143, .34), transparent 46%),
    radial-gradient(circle at 16% 82%, rgba(37, 99, 235, .28), transparent 48%),
    linear-gradient(140deg, #071f3c 0%, #0b315b 58%, #0d3f57 100%);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(5, 21, 39, .96) 0%, rgba(5, 21, 39, .9) 30%,
                    rgba(5, 21, 39, .62) 56%, rgba(5, 21, 39, .24) 78%,
                    rgba(5, 21, 39, .34) 88%, rgba(5, 21, 39, .56) 100%),
    linear-gradient(0deg, rgba(5, 21, 39, .92) 0%, rgba(5, 21, 39, .1) 42%, transparent 68%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 730px; }

.hero .eyebrow { color: #7fe0d5; margin-bottom: 16px; }

.hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -2.2px;
  color: #fff;
  font-weight: 900;
}

.hero h1 em {
  font-style: normal;
  color: #6fdccf;
}

.hero-lede {
  margin-top: 20px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.85;
  color: #c7dae7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.hero-tags span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  font-size: 10.5px;
  font-weight: 700;
  color: #cfe3ee;
  backdrop-filter: blur(6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---- 右侧竖向帧指示器 ---- */

.hero-rail {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.rail-label {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, .42);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rail-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .42);
  text-align: left;
  cursor: pointer;
  transition: color .25s var(--ease);
}

.rail-item .num {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}

.rail-item .bar {
  position: relative;
  height: 1.5px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}

.rail-item .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #6fdccf;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.rail-item .txt {
  grid-column: 2;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .3s var(--ease), max-height .3s var(--ease);
}

.rail-item:hover { color: rgba(255, 255, 255, .8); }
.rail-item:hover .bar::after { transform: scaleX(.45); }

.rail-item.is-active { color: #fff; }
.rail-item.is-active .bar::after { transform: scaleX(1); }
.rail-item.is-active .txt { opacity: 1; max-height: 24px; }

.rail-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.rail-count {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .6);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  margin-right: auto;
}
.rail-count b { color: #fff; font-size: 13px; font-weight: 900; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  transition: background .22s, border-color .22s, transform .22s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); transform: translateY(-1px); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.is-paused { color: #8fe3da; border-color: rgba(111, 220, 207, .55); }

/* 移动端横向圆点 */
.hero-dots { display: none; }

/* ============================ 2. KPI 数字化 ============================ */

.kpi-band {
  position: relative;
  z-index: 4;
  margin-top: -58px;
  padding-bottom: 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.kpi {
  padding: 18px 16px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 14px 30px rgba(11, 49, 91, .1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.kpi:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(11, 49, 91, .15); }
.kpi b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.kpi span { display: block; margin-top: 8px; font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.kpi em { display: block; margin-top: 5px; font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--teal); }

/* ============================ 3. 双入口 ============================ */

.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 34px 34px 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}

.entry::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .1), transparent 68%);
  transition: transform .5s var(--ease), opacity .4s;
}

.entry.teal::before { background: radial-gradient(circle, rgba(15, 159, 143, .13), transparent 68%); }

.entry:hover { transform: translateY(-5px); border-color: #cfe0ec; box-shadow: 0 26px 56px rgba(11, 49, 91, .13); }
.entry:hover::before { transform: scale(1.16); }

.entry-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.entry-no {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--faint);
  text-transform: uppercase;
}

.entry-go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.entry-go svg { width: 15px; height: 15px; }
.entry:hover .entry-go { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(-45deg); }

.entry h3 {
  position: relative;
  font-size: 27px;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -1px;
}
.entry .desc {
  position: relative;
  margin-top: 12px;
  max-width: 440px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.entry-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 24px;
}
.entry-tags span {
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  color: #5b6a7e;
}
.entry.teal .entry-tags span { background: #f2fbfa; border-color: #d8efec; color: #22756c; }

.entry-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
}
.entry-foot .meta { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--faint); }

/* ============================ 4. 期数导航 ============================ */

.period-rail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.period-rail-head .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.periods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.period {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
}

.period::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--teal);
  opacity: 0;
  transition: opacity .3s;
}

.period.is-live { border-color: #cfe7e3; cursor: pointer; }
.period.is-live:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(11, 49, 91, .12); }
.period.is-live:hover::after { opacity: 1; }

/* 整卡可点：链接铺满卡片，避免只能点小字 */
.period.is-live .p-foot a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
}

.period.is-pending { background: linear-gradient(180deg, #fbfdff, #f7fafc); }
.period.is-pending .p-year,
.period.is-pending h3 { color: #6b7c90; }

.period-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.p-year {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.p-year small { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--faint); margin-left: 6px; }

.p-label {
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--teal);
}

.period.is-pending .p-label { color: #96a5b6; }

.period h3 {
  margin-top: 10px;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -.3px;
}

.period .p-desc {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}

.p-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.p-meta span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--soft);
  border: 1px solid #eef2f6;
  font-size: 9.5px;
  font-weight: 700;
  color: #6b7a8d;
}

.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
}

.period.is-live .p-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--teal-deep); }
.period.is-live .p-foot a svg { width: 13px; height: 13px; transition: transform .25s; }
.period.is-live .p-foot a:hover svg { transform: translateX(3px); }
.period.is-pending .p-foot { color: #9aa8b8; }
.p-idx { font-size: 9.5px; font-weight: 800; color: #b3bfcd; letter-spacing: .8px; font-variant-numeric: tabular-nums; }

.archive-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 18px 22px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.archive-all p { font-size: 11.5px; color: var(--muted); }
.archive-all b { color: var(--navy); }

/* ============================ 5. 联系 ============================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}

.contact-card { padding: 32px; }

.contact-card h3 { font-size: 18px; color: var(--navy); letter-spacing: -.4px; }
.contact-card > p { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

.contact-list { display: grid; gap: 2px; margin-top: 22px; }

.contact-row {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid #eef2f6;
}
.contact-row:first-child { border-top: 0; }
.contact-row dt { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; color: var(--faint); letter-spacing: .3px; }
.contact-row dt svg { width: 13px; height: 13px; flex: none; color: var(--teal); }
.contact-row dd { margin: 0; font-size: 13px; color: #2b3a4d; line-height: 1.7; }
.contact-row dd a { border-bottom: 1px solid #c9e3df; color: var(--teal-deep); font-weight: 700; }
.contact-row dd a:hover { border-color: var(--teal); }
.contact-row dd small { display: block; font-size: 10.5px; color: var(--faint); margin-top: 2px; }

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #0b315b 0%, #11496f 62%, #0f6a70 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgba(11, 49, 91, .26);
}
.contact-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
}
.contact-panel::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
}

.contact-panel .label { font-size: 10px; font-weight: 900; letter-spacing: 1.7px; color: #8fe3da; text-transform: uppercase; }
.contact-panel h3 { position: relative; margin-top: 10px; font-size: 21px; line-height: 1.35; color: #fff; letter-spacing: -.5px; }
.contact-panel p { position: relative; margin-top: 10px; font-size: 12px; line-height: 1.8; color: #cfe4ee; }

/* ---------------- 在线留言表单 ---------------- */

.contact-form { position: relative; margin-top: 20px; display: grid; gap: 13px; }

.contact-form .field { display: grid; gap: 5px; }

.contact-form label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #a8c8d9;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  color: var(--navy);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  outline: none;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa8b8; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7fd8cd;
  box-shadow: 0 0 0 3px rgba(127, 216, 205, .3);
}
.contact-form .field.has-error input,
.contact-form .field.has-error textarea {
  border-color: #ffb3a6;
  box-shadow: 0 0 0 3px rgba(255, 140, 120, .22);
}

.field-error {
  display: none;
  font-size: 10.5px;
  color: #ffc4b8;
  line-height: 1.5;
}
.field.has-error .field-error { display: block; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.form-foot .btn { padding: 10px 18px; font-size: 12px; }
.form-foot .btn[disabled] { opacity: .62; cursor: not-allowed; transform: none; box-shadow: none; }

.form-hint { font-size: 10px; color: #9dbccb; line-height: 1.5; }
.form-hint b { color: #8fe3da; font-weight: 700; word-break: break-all; }

.form-note {
  margin-top: 2px;
  font-size: 9.5px;
  line-height: 1.65;
  color: #8fadbe;
}

.form-status {
  position: relative;
  display: none;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
}
.form-status.is-visible { display: flex; }
.form-status.is-success {
  background: rgba(15, 159, 143, .18);
  border: 1px solid rgba(143, 227, 218, .42);
  color: #c8f5ee;
}
.form-status.is-error {
  background: rgba(212, 93, 85, .16);
  border: 1px solid rgba(255, 170, 158, .38);
  color: #ffd3cb;
}
.form-status.is-info {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #d5e7f1;
}
.form-status a { color: #9ff0e5; border-bottom: 1px solid rgba(159, 240, 229, .6); font-weight: 700; }
.form-status svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }

.btn.is-loading { pointer-events: none; }
.btn.is-loading svg { animation: btn-spin 1s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ============================ 响应式 ============================ */

@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 200px; gap: 30px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero { padding: 76px 0 120px; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-rail { display: none; }
  .hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 30px;
  }
  .hero-dots button {
    width: 26px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: background .25s, width .25s;
  }
  .hero-dots button.is-active { background: #6fdccf; width: 38px; }
  .hero-copy { max-width: 100%; }
  .entries { grid-template-columns: 1fr; }
  .periods { grid-template-columns: 1fr; }
  .kpi-band { margin-top: -46px; }
}

@media (max-width: 680px) {
  .hero { padding: 54px 0 104px; }
  .hero h1 { letter-spacing: -1.4px; }
  .hero-lede { font-size: 13.5px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 15px 13px 13px; }
  .kpi b { font-size: 25px; }
  .entry { padding: 26px 22px 24px; min-height: 0; }
  .entry h3 { font-size: 23px; }
  .period { padding: 22px 20px 20px; }
  .p-year { font-size: 34px; }
  .contact-card, .contact-panel { padding: 24px 20px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .archive-all { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* 联系卡片底部补充说明 */
.contact-extra {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.contact-extra b { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: .4px; color: var(--navy); }
.contact-extra ul { margin: 8px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.contact-extra li { font-size: 10.5px; line-height: 1.6; color: var(--muted); }
