.page-home {
  --hm-rail: 260px;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  padding-bottom: clamp(48px, 7vw, 96px);
  background:
    radial-gradient(1100px 520px at 84% -8%, rgba(53, 184, 107, 0.16), transparent 62%),
    radial-gradient(900px 460px at 4% 6%, rgba(45, 212, 191, 0.09), transparent 58%),
    var(--ink-900);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 58, 82, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 82, 0.4) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
}

.page-home .container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home .section {
  padding-block: clamp(40px, 6vw, 88px);
}

.page-home a {
  color: inherit;
}

.page-home a:focus-visible,
.page-home button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* 面包屑 */
.page-home .breadcrumb {
  padding-top: clamp(16px, 3vw, 28px);
}

.page-home .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--steel);
}

.page-home .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 10px;
  color: var(--grid);
}

.page-home .breadcrumb-link {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
}

.page-home .breadcrumb-link[aria-current="page"] {
  color: var(--mist);
  border-bottom-color: var(--orange);
}

/* 通用网格 */
.page-home .grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.page-home .grid-12 > * {
  grid-column: span 12;
  min-width: 0;
}

/* 章节头 */
.page-home .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--green-400);
}

.page-home .eyebrow .mono {
  color: var(--orange);
}

.page-home .section-head {
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

.page-home .section-index {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1;
  color: var(--orange);
}

.page-home .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.page-home .section-lead {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--steel);
  font-size: 16px;
}

/* 首屏 */
.page-home .hm-hero {
  padding-top: clamp(24px, 4vw, 44px);
}

.page-home .hm-h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-home .hm-h1-mark {
  display: inline-block;
  margin-top: 6px;
  color: var(--green-400);
  box-shadow: inset 0 -0.16em 0 rgba(255, 106, 26, 0.6);
}

.page-home .hm-lead {
  margin: 0 0 24px;
  max-width: 46ch;
  color: var(--steel);
  font-size: 17px;
}

.page-home .hm-quicknav {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--grid);
}

.page-home .hm-quicknav li {
  border-bottom: 1px solid var(--grid);
}

.page-home .hm-quicknav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 2px;
  text-decoration: none;
  font-size: 15px;
  color: var(--mist);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.page-home .hm-quicknav a:hover {
  color: var(--orange-soft);
  padding-left: 8px;
}

.page-home .hm-quicknav .mono {
  color: var(--orange);
  font-size: 14px;
}

.page-home .hm-hero-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.page-home .hm-focus {
  position: relative;
  grid-column: span 2;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .hm-focus-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-home .hm-focus::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 47, 0.45), rgba(7, 26, 47, 0.94) 66%);
}

.page-home .hm-focus-body {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3vw, 32px);
}

.page-home .hm-focus-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-home .hm-focus-code {
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.08em;
}

.page-home .hm-focus-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-home .hm-focus-text {
  margin: 0 0 18px;
  max-width: 52ch;
  color: var(--steel);
  font-size: 15px;
}

.page-home .hm-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .hm-mini-num {
  font-size: 28px;
  line-height: 1.1;
  color: var(--green-400);
}

.page-home .hm-mini-num em {
  font-style: normal;
  color: var(--steel);
  padding-inline: 2px;
}

.page-home .hm-mini-cap {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.5;
}

/* 按钮 */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-home .btn--primary {
  background: var(--orange);
  color: var(--ink-900);
}

.page-home .btn--primary:hover {
  background: var(--orange-soft);
}

.page-home .btn--ghost {
  border-color: var(--grid);
  color: var(--mist);
}

.page-home .btn--ghost:hover {
  border-color: var(--green-400);
  color: var(--green-400);
}

/* 标签 */
.page-home .tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  letter-spacing: 0.02em;
}

.page-home .tag--live {
  color: var(--green-400);
}

.page-home .tag--beta {
  color: var(--beta);
}

.page-home .tag--warn {
  color: var(--orange);
}

/* 时间轴 */
.page-home .hm-tl-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .hm-rail-cap {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .hm-tl-list {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid var(--grid);
  display: grid;
  gap: 4px;
}

.page-home .hm-tl-item {
  position: relative;
}

.page-home .hm-tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--green-700);
}

.page-home .hm-tl-item--now::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18);
}

.page-home .hm-tl-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-home .hm-tl-link:hover .hm-tl-name,
.page-home .hm-tl-link:focus-visible .hm-tl-name {
  color: var(--green-400);
}

.page-home .hm-tl-time {
  font-size: 14px;
  color: var(--orange);
}

.page-home .hm-tl-name {
  font-size: 14px;
  color: var(--mist);
  transition: color 0.18s ease;
}

.page-home .hm-tl-cards {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .hm-tl-card {
  padding: 18px 20px;
  border: 1px solid var(--grid);
  border-left: 3px solid var(--green-700);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .hm-tl-card--lead {
  padding: 22px 24px;
  border-left-color: var(--orange);
  background:
    linear-gradient(120deg, rgba(31, 138, 76, 0.18), transparent 62%),
    var(--ink-800);
}

.page-home .hm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.page-home .hm-card-time {
  font-size: 13px;
  color: var(--steel);
}

.page-home .hm-tl-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .hm-tl-card--lead h3 {
  font-size: clamp(18px, 2vw, 22px);
}

.page-home .hm-tl-card p {
  margin: 0;
  font-size: 15px;
  color: var(--steel);
}

.page-home .hm-inline-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--green-400);
  text-decoration: none;
  border-bottom: 2px solid rgba(53, 184, 107, 0.4);
  padding-bottom: 1px;
}

.page-home .hm-inline-link:hover {
  border-bottom-color: var(--green-400);
}

/* 对照反馈区 */
.page-home .hm-fb-shell {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.page-home .hm-fb-note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  font-size: 14px;
  color: var(--steel);
}

.page-home .hm-acc {
  border-top: 1px solid var(--grid);
}

.page-home .hm-acc .accordion-item {
  border-bottom: 1px solid var(--grid);
}

.page-home .hm-acc-head {
  margin: 0;
}

.page-home .accordion-trigger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: 0;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.page-home .accordion-trigger::before {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--orange);
}

.page-home .accordion-trigger[aria-expanded="true"]::before {
  content: "−";
}

.page-home .accordion-trigger[aria-expanded="true"] .hm-acc-title {
  color: var(--orange-soft);
}

.page-home .hm-acc-title {
  flex: 1 1 200px;
  min-width: 0;
}

.page-home .accordion-panel {
  padding: 0 0 18px 32px;
}

.page-home .accordion-panel p {
  margin: 0;
  font-size: 15px;
  color: var(--steel);
}

.page-home .hm-fb-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .hm-fb-figure {
  margin: 0;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
}

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

.page-home .hm-fb-figure .media-frame__caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--steel);
  border-top: 1px solid var(--grid);
}

.page-home .hm-fb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.page-home .hm-fb-stats > div {
  padding: 14px 12px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .hm-fb-stats dt {
  font-size: 24px;
  line-height: 1.1;
  color: var(--orange);
}

.page-home .hm-fb-stats dd {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--steel);
}

/* 订阅 */
.page-home .hm-sub-copy p {
  margin: 14px 0 20px;
  max-width: 48ch;
  color: var(--steel);
  font-size: 16px;
}

.page-home .hm-steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: hmstep;
}

.page-home .hm-steps li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--grid);
  font-size: 15px;
  color: var(--mist);
}

.page-home .hm-steps li:last-child {
  border-bottom: 1px solid var(--grid);
}

.page-home .hm-steps .mono {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--orange);
  padding-top: 3px;
}

.page-home .hm-sub-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-home .hm-sub-tile {
  padding: 20px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .hm-sub-tile--wide {
  grid-column: span 2;
  border-top: 3px solid var(--green-700);
  background:
    radial-gradient(420px 200px at 92% 0%, rgba(53, 184, 107, 0.16), transparent 70%),
    var(--ink-800);
}

.page-home .hm-tile-num {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  color: var(--green-400);
  margin-bottom: 8px;
}

.page-home .hm-sub-tile h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .hm-sub-tile p {
  margin: 0;
  font-size: 14px;
  color: var(--steel);
}

/* 双通道 */
.page-home .hm-ch-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .hm-ch-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  z-index: 0;
}

.page-home .hm-ch-shell > *:not(.hm-ch-bg) {
  position: relative;
  z-index: 1;
}

.page-home .hm-tablist {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--grid);
  overflow-x: auto;
}

.page-home .hm-tab {
  flex: 0 0 auto;
  padding: 11px 20px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .hm-tab[aria-selected="true"] {
  color: var(--mist);
  border-bottom-color: var(--orange);
}

.page-home .hm-tab[aria-selected="true"]:last-child {
  color: var(--beta);
  border-bottom-color: var(--beta);
}

.page-home .hm-tabpanel {
  outline-offset: 4px;
}

.page-home .hm-spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.page-home .hm-spec > div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grid);
}

.page-home .hm-spec > div:last-child {
  border-bottom: 0;
}

.page-home .hm-spec dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-home .hm-spec dd {
  margin: 0;
  font-size: 15px;
  color: var(--mist);
}

.page-home .hm-spec dd.mono {
  font-size: 18px;
  color: var(--green-400);
}

.page-home .hm-ch-foot {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--grid);
  font-size: 14px;
  color: var(--steel);
}

/* 周末 */
.page-home .hm-wk-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.page-home .hm-wk-copy p {
  margin: 14px 0 20px;
  max-width: 50ch;
  color: var(--steel);
  font-size: 16px;
}

.page-home .hm-wk-figure {
  margin: 0;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
  align-self: start;
}

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

.page-home .hm-wk-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--steel);
  border-top: 1px solid var(--grid);
}

/* 服务时间 */
.page-home .hm-sv-shell {
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(31, 138, 76, 0.14), transparent 55%),
    var(--ink-800);
}

.page-home .hm-sv-grid {
  display: grid;
  gap: 16px;
}

.page-home .hm-sv-card {
  padding: 22px;
  border: 1px solid var(--grid);
  border-left: 3px solid var(--green-400);
  border-radius: var(--radius);
  background: rgba(7, 26, 47, 0.6);
}

.page-home .hm-sv-card--quiet {
  border-left-color: var(--beta);
}

.page-home .hm-sv-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.page-home .hm-sv-card p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--steel);
}

.page-home .hm-sv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--mist);
}

.page-home .hm-sv-list a {
  color: var(--green-400);
  text-decoration: none;
  border-bottom: 2px solid rgba(53, 184, 107, 0.4);
  word-break: break-all;
}

.page-home .hm-sv-list a:hover {
  border-bottom-color: var(--green-400);
}

/* 继续探索 */
.page-home .hm-ex-head {
  margin-bottom: 20px;
}

.page-home .hm-ex-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--grid);
}

.page-home .hm-ex-list li {
  border-bottom: 1px solid var(--grid);
}

.page-home .hm-ex-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 16px;
  padding: 18px 2px;
  text-decoration: none;
  transition: padding-left 0.18s ease, background-color 0.18s ease;
}

.page-home .hm-ex-list a:hover,
.page-home .hm-ex-list a:focus-visible {
  padding-left: 10px;
  background: rgba(13, 41, 66, 0.6);
}

.page-home .hm-ex-list .mono {
  grid-row: span 2;
  font-size: 14px;
  color: var(--orange);
}

.page-home .hm-ex-list strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--mist);
}

.page-home .hm-ex-list em {
  grid-column: 2;
  font-style: normal;
  font-size: 14px;
  color: var(--steel);
}

/* 进入显现 */
@keyframes hm-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home [data-reveal].is-visible {
    animation: hm-rise 0.45s ease both;
  }
}

/* 中等宽度 */
@media (min-width: 720px) {
  .page-home .col-5,
  .page-home .col-6,
  .page-home .col-7,
  .page-home .col-8 {
    grid-column: span 6;
  }

  .page-home .hm-spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .page-home .hm-sv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hm-ex-list a {
    grid-template-columns: auto minmax(140px, 200px) 1fr;
    align-items: center;
  }

  .page-home .hm-ex-list em {
    grid-column: 3;
  }
}

/* 桌面 */
@media (min-width: 960px) {
  .page-home .col-5 {
    grid-column: span 5;
  }

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

  .page-home .hm-hero-grid {
    align-items: start;
    gap: clamp(24px, 3vw, 48px);
  }

  .page-home .hm-focus {
    min-height: 380px;
  }

  .page-home .hm-tl-wrap {
    grid-template-columns: var(--hm-rail) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }

  .page-home .hm-tl-rail {
    position: sticky;
    top: 96px;
  }

  .page-home .hm-tl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hm-tl-card--lead {
    grid-column: span 2;
  }

  .page-home .hm-fb-shell {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }

  .page-home .hm-sub-grid {
    align-items: start;
    gap: clamp(24px, 3vw, 48px);
  }

  .page-home .hm-wk-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

@media (max-width: 479px) {
  .page-home .hm-fb-stats {
    grid-template-columns: 1fr;
  }

  .page-home .hm-sub-bento {
    grid-template-columns: 1fr;
  }

  .page-home .hm-sub-tile--wide {
    grid-column: span 1;
  }

  .page-home .hm-hero-bento {
    grid-template-columns: 1fr;
  }

  .page-home .hm-focus {
    grid-column: span 1;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
