/* ===== 首页专属样式（作用域 .page-home） ===== */
.page-home {
  --home-gap: clamp(16px, 1.8vw, 26px);
  --home-rule: rgba(138, 106, 71, 0.34);
  --home-rule-soft: rgba(138, 106, 71, 0.2);
  --home-panel: rgba(18, 48, 74, 0.72);
  display: block;
  color: var(--paper);
}

/* ---------- 首屏 Bento ---------- */
.page-home .hero-bento {
  position: relative;
  isolation: isolate;
  padding: clamp(22px, 4vw, 52px) 0 clamp(34px, 6vw, 78px);
  background:
    radial-gradient(115% 88% at 10% -8%, rgba(28, 69, 102, 0.62) 0%, rgba(11, 27, 43, 0) 62%),
    radial-gradient(85% 65% at 102% 0%, rgba(200, 162, 74, 0.1) 0%, rgba(11, 27, 43, 0) 58%),
    var(--ink-900);
}

.page-home .hero-bento::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(215, 225, 234, 0.055) 0 1px,
    transparent 1px 16px
  );
  pointer-events: none;
}

.page-home .hero-bento__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .hero-focus {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--home-rule);
  background: linear-gradient(158deg, var(--ink-700) 0%, var(--ink-800) 48%, #091624 100%);
  box-shadow: 0 34px 76px -46px rgba(0, 0, 0, 0.92);
}

.page-home .hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 17em;
}

.page-home .hero-lead {
  margin: 0;
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-figure {
  margin: 8px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--home-rule-soft);
  background: var(--ink-900);
}

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

.page-home .hero-tile {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-rule-soft);
  background: var(--home-panel);
}

.page-home .hero-tile--gold {
  border-color: rgba(200, 162, 74, 0.62);
  background: linear-gradient(152deg, rgba(200, 162, 74, 0.17), rgba(18, 48, 74, 0.86) 62%);
}

.page-home .tile-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 500;
}

.page-home .tile-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .tile-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .tile-link {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 199, 122, 0.42);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.page-home .tile-link:hover,
.page-home .tile-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.page-home .hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-rule-soft);
  background: rgba(11, 27, 43, 0.72);
}

.page-home .strip-text {
  margin: 0;
  flex: 1 1 22em;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .strip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .strip-meta li {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--paper);
  background: rgba(28, 69, 102, 0.66);
  border: 1px solid var(--home-rule-soft);
}

/* ---------- 主体流程 ---------- */
.page-home .home-flow {
  padding-top: clamp(34px, 5vw, 76px);
  padding-bottom: clamp(46px, 7vw, 100px);
}

.page-home .home-rail {
  display: none;
}

.page-home .home-flow__main {
  min-width: 0;
}

.page-home .home-section {
  padding: clamp(30px, 4.6vw, 60px) 0;
  border-top: 1px solid var(--home-rule-soft);
}

.page-home .home-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 46em;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-home .section-head .lede {
  margin: 0;
}

/* ---------- 两条主线 ---------- */
.page-home .paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .paths-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--home-rule-soft);
  background: var(--ink-800);
}

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

.page-home .paths-cards {
  display: flex;
  flex-direction: column;
  gap: var(--home-gap);
}

.page-home .path-card {
  padding: 22px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-rule-soft);
  background: linear-gradient(160deg, rgba(28, 69, 102, 0.86), rgba(11, 27, 43, 0.9));
}

.page-home .path-card--muted {
  background: rgba(18, 48, 74, 0.5);
  border-color: rgba(215, 225, 234, 0.14);
}

.page-home .path-tag {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 500;
}

.page-home .path-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.35;
  color: var(--paper);
}

.page-home .task-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: task;
}

.page-home .task-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
  counter-increment: task;
}

.page-home .task-list li::before {
  content: counter(task, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.18em;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.04em;
}

/* ---------- 栏目 Bento 索引 ---------- */
.page-home .bento-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .idx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-rule-soft);
  background: rgba(18, 48, 74, 0.55);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

.page-home a.idx-card:hover,
.page-home a.idx-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(200, 162, 74, 0.66);
  background: rgba(28, 69, 102, 0.72);
}

.page-home .idx-card--static {
  border-style: dashed;
}

.page-home .idx-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--copper);
}

.page-home .idx-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--paper);
}

.page-home .idx-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .idx-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-hi);
}

.page-home a.idx-card:hover .idx-more,
.page-home a.idx-card:focus-visible .idx-more {
  color: var(--gold);
}

.page-home .idx-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--home-rule-soft);
  background: var(--ink-800);
  display: flex;
  flex-direction: column;
}

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

.page-home .idx-figure .figure__caption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--slate);
  background: rgba(11, 27, 43, 0.86);
}

/* ---------- 双端入口 ---------- */
.page-home .entry-tabs {
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-rule-soft);
  background: rgba(11, 27, 43, 0.58);
  padding: clamp(16px, 2vw, 26px);
}

.page-home .entry-tabs .tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(11, 27, 43, 0.78);
  border: 1px solid var(--home-rule-soft);
}

.page-home .entry-tabs .tab {
  flex: 1 1 8em;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.page-home .entry-tabs .tab[aria-selected="true"] {
  color: var(--ink-900);
  background: var(--gold);
}

.page-home .entry-tabs .tab:hover {
  color: var(--gold-hi);
}

.page-home .entry-tabs .tab[aria-selected="true"]:hover {
  color: var(--ink-900);
}

.page-home .entry-tabs .tab:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.page-home .entry-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.page-home .entry-sub {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .entry-panel__intro p {
  margin: 0 0 12px;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .entry-note {
  color: var(--slate) !important;
  font-size: 14px !important;
}

.page-home .entry-panel__intro .btn {
  margin-top: 6px;
}

.page-home .step-track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-home .step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 22px;
}

.page-home .step:last-child {
  padding-bottom: 0;
}

.page-home .step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(138, 106, 71, 0.6), rgba(138, 106, 71, 0.08));
}

.page-home .step:last-child::before {
  display: none;
}

.page-home .step-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(200, 162, 74, 0.5);
  background: var(--ink-800);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.page-home .step-body h4 {
  margin: 4px 0 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
}

.page-home .step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 时间线 ---------- */
.page-home .timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .tl-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 20px 0 20px 20px;
  border-left: 2px solid rgba(138, 106, 71, 0.42);
}

.page-home .tl-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.page-home .tl-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .tl-body p {
  margin: 0;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .stat-band {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--home-rule-soft);
  background: var(--home-rule-soft);
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: rgba(18, 48, 74, 0.72);
}

.page-home .stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}

.page-home .stat-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
}

.page-home .timeline-foot {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  max-width: var(--measure);
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 联络支持 ---------- */
.page-home .reach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .reach-body {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-rule-soft);
  background: linear-gradient(160deg, rgba(28, 69, 102, 0.8), rgba(11, 27, 43, 0.92));
}

.page-home .contact-list {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--home-rule-soft);
}

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

.page-home .contact-key {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .contact-value {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.page-home .reach-note {
  margin: 0 0 18px;
  max-width: var(--measure);
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .reach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .reach-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--home-rule-soft);
  background: var(--ink-800);
}

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

/* ---------- 无脚本回退：标签面板全部可见 ---------- */
.page-home:not(.has-js) .page-home .tabpanel[hidden] {
  display: block;
}

/* ---------- 平板 ---------- */
@media (min-width: 680px) {
  .page-home .bento-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .idx-figure {
    grid-column: span 2;
  }

  .page-home .stat-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .contact-row {
    grid-template-columns: 9em minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
  }
}

/* ---------- 小桌面 ---------- */
@media (min-width: 860px) {
  .page-home .paths-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
  }

  .page-home .entry-panel {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .reach-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: stretch;
  }

  .page-home .reach-figure {
    display: flex;
  }

  .page-home .reach-figure img {
    height: 100%;
    object-fit: cover;
  }
}

/* ---------- 宽屏：左侧锚点 + 右侧内容 ---------- */
@media (min-width: 1024px) {
  .page-home .hero-bento__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    align-items: stretch;
  }

  .page-home .hero-focus {
    grid-column: 1 / 9;
    grid-row: 1 / 3;
  }

  .page-home .hero-tile--gold {
    grid-column: 9 / 13;
    grid-row: 1 / 2;
  }

  .page-home .hero-tile:not(.hero-tile--gold) {
    grid-column: 9 / 13;
    grid-row: 2 / 3;
  }

  .page-home .hero-strip {
    grid-column: 1 / 13;
    grid-row: 3 / 4;
  }

  .page-home .home-flow {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: clamp(28px, 3.6vw, 60px);
    align-items: start;
  }

  .page-home .home-rail {
    display: block;
    position: sticky;
    top: 132px;
  }

  .page-home .home-rail .rail-inner ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .page-home .home-rail .rail-inner a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--slate);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  }

  .page-home .home-rail .rail-inner a:hover,
  .page-home .home-rail .rail-inner a:focus-visible {
    color: var(--gold-hi);
    border-left-color: rgba(200, 162, 74, 0.5);
  }

  .page-home .home-rail .rail-inner a[aria-current="true"] {
    color: var(--gold);
    border-left-color: var(--gold);
    font-weight: 500;
  }

  .page-home .bento-index {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .idx--about {
    grid-column: span 7;
  }

  .page-home .idx--apps {
    grid-column: span 5;
  }

  .page-home .idx--topics,
  .page-home .idx--support,
  .page-home .idx--connect {
    grid-column: span 4;
  }

  .page-home .idx--search {
    grid-column: span 8;
  }

  .page-home .idx-figure {
    grid-column: span 4;
  }

  .page-home .tl-item {
    grid-template-columns: 9em minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0 22px 26px;
  }
}

/* ---------- 大屏 ---------- */
@media (min-width: 1440px) {
  .page-home .hero-bento {
    padding-bottom: clamp(56px, 5vw, 92px);
  }

  .page-home .idx-title {
    font-size: 22px;
  }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .idx-card,
  .page-home .tile-link,
  .page-home .entry-tabs .tab,
  .page-home .home-rail .rail-inner a {
    transition: none;
  }

  .page-home a.idx-card:hover,
  .page-home a.idx-card:focus-visible {
    transform: none;
  }
}
<<<END>>>
