/* ================= 首页专属样式 · 作用域 .page-home ================= */

.page-home {
  --home-strip-gap: 1px;
  --home-panel-bg: linear-gradient(160deg, rgba(14, 22, 49, 0.95), rgba(7, 11, 26, 0.78));
}

/* ---------- 上下文条 ---------- */
.page-home .home-context {
  background: linear-gradient(90deg, rgba(14, 22, 49, 0.92), rgba(7, 11, 26, 0.15));
  border-bottom: 1px solid var(--line-blue);
}

.page-home .home-context-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 13px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
}

.page-home .home-context-inner span:first-child {
  color: var(--cyan-400);
}

/* ---------- 章节通用 ---------- */
.page-home .home-section {
  padding: 58px 0;
}

.page-home .home-head {
  margin-bottom: 32px;
}

.page-home .home-head--tight {
  margin-bottom: 24px;
}

.page-home .home-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.page-home .home-title {
  margin: 0;
  font-size: clamp(23px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper-100);
}

/* ---------- 开篇 ---------- */
.page-home .home-open {
  padding-top: 48px;
  padding-bottom: 0;
}

.page-home .home-open-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-home .home-open-tag {
  margin: 0;
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--cyan-700);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
}

.page-home .home-open-title {
  margin: 20px 0 0;
  font-size: clamp(29px, 5.6vw, 52px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--paper-100);
}

.page-home .home-open-title .hl {
  color: var(--cyan-400);
  position: relative;
  white-space: nowrap;
}

.page-home .home-open-title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 3px;
  background: var(--orange-500);
  border-radius: 2px;
  opacity: 0.75;
}

.page-home .home-open-lede {
  margin: 22px 0 0;
  max-width: 48ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--mist-400);
}

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

.page-home .home-open-figure {
  margin: 0;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink-700);
}

.page-home .home-open-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 目录卡片 ---------- */
.page-home .home-toc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 46px;
}

.page-home .home-toc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-card);
  background: var(--home-panel-bg);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .home-toc-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan-400);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.page-home .home-toc-card:hover,
.page-home .home-toc-card:focus-visible {
  border-color: var(--cyan-400);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(43, 240, 216, 0.1);
}

.page-home .home-toc-card:hover::before,
.page-home .home-toc-card:focus-visible::before {
  transform: scaleY(1);
}

.page-home .home-toc-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--paper-100);
}

.page-home .home-toc-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist-400);
}

.page-home .home-toc-card-arrow {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan-400);
}

/* ---------- 实时数据带 ---------- */
.page-home .home-strip {
  margin-top: 6px;
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
  background: rgba(14, 22, 49, 0.55);
}

.page-home .home-strip-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-home .home-strip-track::-webkit-scrollbar {
  display: none;
}

.page-home .home-strip-track:focus-visible {
  outline: 1px solid var(--cyan-400);
  outline-offset: -2px;
}

.page-home .home-strip-cell {
  flex: 0 0 auto;
  min-width: 176px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border-right: 1px solid var(--line-blue);
}

.page-home .home-strip-cell:last-child {
  border-right: none;
}

.page-home .home-strip-value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper-100);
}

.page-home .home-strip-value em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  margin-left: 4px;
  color: var(--cyan-400);
}

.page-home .home-strip-cell--accent .home-strip-value {
  color: var(--orange-500);
}

.page-home .home-strip-cell--accent .home-strip-value em {
  color: var(--amber-400);
}

.page-home .home-strip-label {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--mist-400);
}

/* ---------- 四大能力 ---------- */
.page-home .home-caps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .home-cap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px 28px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-card);
  background: var(--home-panel-bg);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.page-home .home-cap:hover {
  border-color: var(--cyan-700);
}

.page-home .home-cap-index {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan-400);
}

.page-home .home-cap-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-home .home-cap-copy {
  flex: 1 1 200px;
  min-width: 0;
}

.page-home .home-cap-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper-100);
}

.page-home .home-cap-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--mist-400);
}

.page-home .home-cap-points {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-blue);
  display: grid;
  gap: 8px;
}

.page-home .home-cap-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--mist-400);
}

.page-home .home-cap-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--cyan-400);
}

.page-home .home-cap-figure {
  margin: 0;
  border: 1px solid var(--line-blue);
  border-radius: 10px;
  overflow: hidden;
}

.page-home .home-cap-figure img {
  display: block;
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.page-home .home-cap-nums {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-blue);
}

.page-home .home-cap-nums .num-mono {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber-400);
  letter-spacing: -0.02em;
}

.page-home .home-cap-nums-label {
  font-size: 13px;
  color: var(--mist-400);
}

/* 环形图 */
.page-home .home-ring {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
}

.page-home .home-ring .ring-track {
  fill: none;
  stroke: var(--ink-600);
  stroke-width: 8;
}

.page-home .home-ring .ring-value {
  fill: none;
  stroke: var(--cyan-400);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 100px 100px;
}

.page-home .home-ring--orange .ring-value {
  stroke: var(--orange-500);
}

.page-home .home-ring .ring-num {
  fill: var(--paper-100);
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
}

.page-home .home-ring .ring-unit {
  fill: var(--mist-400);
  font-family: var(--font-sans);
  font-size: 15px;
}

/* ---------- 移动场景 ---------- */
.page-home .home-mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-mobile-figure {
  margin: 0;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.page-home .home-mobile-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-mobile-lede {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist-400);
}

.page-home .home-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--mist-400);
}

.page-home .home-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--cyan-400);
  border-radius: 3px;
}

.page-home .home-check-list strong {
  color: var(--paper-100);
  font-weight: 700;
}

.page-home .home-inline-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.page-home .home-inline-link:hover,
.page-home .home-inline-link:focus-visible {
  border-bottom-color: var(--cyan-400);
}

/* ---------- 数据来源 ---------- */
.page-home .home-source-figure {
  margin: 0 0 30px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.page-home .home-source-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-source-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .home-source-item {
  padding: 20px 20px 22px;
  border: 1px solid var(--line-blue);
  border-left: 2px solid var(--cyan-400);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: rgba(14, 22, 49, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .home-source-value {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--paper-100);
}

.page-home .home-source-label {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mist-400);
}

.page-home .home-source-body {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-blue);
}

.page-home .home-source-body p {
  margin: 0 0 16px;
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--mist-400);
}

/* ---------- 联系 ---------- */
.page-home .home-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-contact-lede {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist-400);
}

.page-home .home-contact-btn {
  margin-top: 24px;
}

.page-home .home-contact-panel {
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-card);
  background: var(--home-panel-bg);
  overflow: hidden;
}

.page-home .home-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-blue);
}

.page-home .home-contact-row:last-child {
  border-bottom: none;
}

.page-home .home-contact-row .contact-label {
  flex: 0 0 74px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
}

.page-home .home-contact-row .contact-value {
  flex: 1 1 190px;
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--paper-100);
  word-break: break-word;
}

.page-home .home-contact-row .contact-value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.page-home .home-copy {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 13px;
}

/* ---------- 滚动显现 ---------- */
.page-home [data-reveal] {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.has-js .page-home [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(16px);
}

.has-js .page-home .home-toc-card:nth-child(2),
.has-js .page-home .home-source-item:nth-child(2) {
  transition-delay: 0.08s;
}

.has-js .page-home .home-toc-card:nth-child(3),
.has-js .page-home .home-source-item:nth-child(3) {
  transition-delay: 0.16s;
}

.has-js .page-home .home-toc-card:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- 中等屏 ---------- */
@media (min-width: 700px) {
  .page-home .home-section {
    padding: 74px 0;
  }

  .page-home .home-open {
    padding-top: 62px;
    padding-bottom: 0;
  }

  .page-home .home-toc {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-source-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home .home-section {
    padding: 88px 0;
  }

  .page-home .home-open {
    padding-top: 72px;
    padding-bottom: 0;
  }

  .page-home .home-open-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 52px;
    align-items: end;
  }

  .page-home .home-toc {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 56px;
  }

  .page-home .home-caps {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .home-cap--a {
    grid-column: span 7;
  }

  .page-home .home-cap--b {
    grid-column: span 5;
  }

  .page-home .home-cap--c {
    grid-column: span 5;
  }

  .page-home .home-cap--d {
    grid-column: span 7;
  }

  .page-home .home-mobile-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 52px;
    align-items: center;
  }

  .page-home .home-contact-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .page-home .home-strip-cell {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal],
  .page-home .home-toc-card,
  .page-home .home-cap {
    transition: none !important;
  }

  .has-js .page-home [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}
