.page-home {
  display: block;
}

/* 页面上下文条 */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tvt-line);
}
.page-home .home-context .eyebrow {
  margin: 0;
  color: var(--tvt-mist);
}
.page-home .home-context-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tvt-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 245, 0.4);
  padding-bottom: 2px;
}
.page-home .home-context-link:hover,
.page-home .home-context-link:focus-visible {
  border-bottom-color: var(--tvt-cyan);
}

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

/* 封面首屏 */
.page-home .home-cover {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 52px) 0 clamp(32px, 5vw, 68px);
}
.page-home .home-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(to right, var(--tvt-line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to bottom, var(--tvt-line) 0 1px, transparent 1px 48px);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 78%);
}
.page-home .cover-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
}
.page-home .cover-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tvt-mist);
}
.page-home .cover-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 7.4vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--tvt-white);
}
.page-home .cover-title-line {
  display: block;
  font-size: 0.9em;
  padding-left: 0.08em;
  color: var(--tvt-white);
  opacity: 0.82;
}
.page-home .cover-lede {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--tvt-white);
  opacity: 0.86;
}

/* 入口档案卡 */
.page-home .gate-card {
  margin-top: clamp(18px, 3vw, 28px);
  padding: clamp(18px, 3vw, 26px);
  border-radius: 2px;
}
.page-home .card-kicker {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--tvt-paper-ink);
}
.page-home .device-picker-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(25, 20, 16, 0.62);
}
.page-home .gate-card .device-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .gate-card .device-chip {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(25, 20, 16, 0.3);
  background: transparent;
  color: var(--tvt-paper-ink);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.page-home .gate-card .device-chip[aria-pressed="true"] {
  background: var(--tvt-cyan);
  border-color: var(--tvt-cyan);
  color: var(--tvt-paper-ink);
}
.page-home .gate-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}
.page-home .gate-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(25, 20, 16, 0.14);
}
.page-home .gate-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(25, 20, 16, 0.58);
}
.page-home .gate-step-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tvt-paper-ink);
}
.page-home .gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 18px;
}
.page-home .gate-link {
  font-size: 13px;
  color: rgba(25, 20, 16, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-home .gate-figure {
  margin: clamp(20px, 3vw, 28px) 0 0;
}
.page-home .gate-figure img {
  width: 100%;
  aspect-ratio: 1000 / 640;
  object-fit: cover;
  border: 1px solid var(--tvt-line);
  border-radius: 2px;
}
.page-home .gate-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--tvt-mist);
}

/* 首屏右栏 */
.page-home .cover-figure {
  margin: 0;
}
.page-home .cover-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--tvt-line);
  border-radius: 2px;
}
.page-home .cover-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--tvt-line);
}
.page-home .cover-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-home .stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 64px);
  line-height: 1;
  color: var(--tvt-white);
  -webkit-text-fill-color: var(--tvt-white);
  -webkit-text-stroke: 1px var(--tvt-orange);
}
.page-home .stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tvt-mist);
}
.page-home .league-block {
  margin-top: 22px;
}
.page-home .league-title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tvt-mist);
}
.page-home .league-nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.page-home .league-node {
  position: relative;
  padding-top: 8px;
  border-top: 1px solid var(--tvt-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--tvt-mist);
}
.page-home .league-node::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tvt-green);
  box-shadow: 0 0 0 3px rgba(43, 224, 138, 0.14);
}
.page-home .cover-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--tvt-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 245, 0.36);
  padding-bottom: 2px;
}

/* 主体两栏：章节索引 + 章节内容 */
.page-home .home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 7vw, 88px);
}
.page-home .rail-title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tvt-mist);
}
.page-home .chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.page-home .chapter-link {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--tvt-line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--tvt-white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.page-home .chapter-link:hover,
.page-home .chapter-link:focus-visible {
  color: var(--tvt-cyan);
  border-color: var(--tvt-cyan);
}

/* 章节 */
.page-home .home-section {
  padding: clamp(24px, 4vw, 40px) 0 clamp(30px, 5vw, 52px);
  border-top: 1px solid var(--tvt-line);
}
.page-home .home-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.page-home .section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tvt-mist);
}
.page-home .section-num {
  font-family: var(--font-mono);
  color: var(--tvt-orange);
}
.page-home .section-index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tvt-line);
}
.page-home .home-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(25px, 4.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--tvt-white);
}
.page-home .section-lede {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--tvt-white);
  opacity: 0.84;
}
.page-home .section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 24px 0 0;
}

/* 状态说明 */
.page-home .status-legend {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .status-legend li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 9px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tvt-mist);
}
.page-home .status-legend strong {
  color: var(--tvt-white);
  font-weight: 600;
}

/* 适配表 */
.page-home .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--tvt-line);
  border-radius: 2px;
  background: rgba(18, 48, 79, 0.55);
}
.page-home .device-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
.page-home .device-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--tvt-mist);
  border-bottom: 1px solid var(--tvt-line);
}
.page-home .device-table th,
.page-home .device-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--tvt-line);
}
.page-home .device-table thead th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tvt-mist);
}
.page-home .device-table tbody th {
  font-weight: 600;
  color: var(--tvt-white);
  white-space: nowrap;
}
.page-home .device-table tbody td {
  color: rgba(232, 239, 247, 0.8);
}
.page-home .device-table tbody tr:last-child th,
.page-home .device-table tbody tr:last-child td {
  border-bottom: 0;
}
.page-home .device-table tbody tr[data-highlight="true"] {
  background: rgba(53, 224, 245, 0.1);
  box-shadow: inset 3px 0 0 var(--tvt-cyan);
}
.page-home .status-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
}

.page-home .status-figure {
  margin: 22px 0 0;
}
.page-home .status-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--tvt-line);
  border-radius: 2px;
}
.page-home .status-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--tvt-mist);
}

/* 更新记录 */
.page-home .strip-figure {
  margin: 20px 0 0;
}
.page-home .strip-figure img {
  width: 100%;
  aspect-ratio: 10 / 3;
  object-fit: cover;
  border: 1px solid var(--tvt-line);
  border-radius: 2px;
}
.page-home .update-list {
  margin-top: 18px;
  border-top: 1px solid var(--tvt-line);
}
.page-home .update-item {
  border-bottom: 1px solid var(--tvt-line);
}
.page-home .update-item > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 0 14px 20px;
}
.page-home .update-item > summary::-webkit-details-marker {
  display: none;
}
.page-home .update-item > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tvt-mist);
  transition: background-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.page-home .update-item[open] > summary::before {
  background: var(--tvt-cyan);
  box-shadow: 0 0 0 4px rgba(53, 224, 245, 0.16);
}
.page-home .update-day {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--tvt-mist);
}
.page-home .update-title {
  font-size: 15px;
  line-height: 1.5;
  color: var(--tvt-white);
}
.page-home .update-state {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tvt-mist);
}
.page-home .update-note {
  margin: 0 0 16px;
  padding: 0 20px 0 20px;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.72;
  color: var(--tvt-mist);
}

/* 回访通道：奶油纸面板 */
.page-home .revisit-panel {
  background: var(--tvt-paper);
  color: var(--tvt-paper-ink);
  padding: clamp(20px, 4vw, 40px);
  border-radius: 2px;
  border-top: 0;
  box-shadow: 0 1px 0 rgba(7, 18, 29, 0.45);
}
.page-home .revisit-panel .section-index {
  color: rgba(25, 20, 16, 0.6);
}
.page-home .revisit-panel .section-index::after {
  background: rgba(25, 20, 16, 0.2);
}
.page-home .revisit-panel .section-num {
  color: var(--tvt-paper-ink);
}
.page-home .revisit-panel h2 {
  color: var(--tvt-paper-ink);
}
.page-home .revisit-panel .section-lede {
  color: rgba(25, 20, 16, 0.86);
  opacity: 1;
}
.page-home .revisit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.page-home .revisit-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--tvt-paper-ink);
}
.page-home .revisit-card ul,
.page-home .revisit-card ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(25, 20, 16, 0.84);
}
.page-home .revisit-meta {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(25, 20, 16, 0.78);
}
.page-home .fact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 22px;
  border-top: 1px solid rgba(25, 20, 16, 0.2);
}
.page-home .fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(25, 20, 16, 0.12);
}
.page-home .fact-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--tvt-paper-ink);
}
.page-home .fact-label {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(25, 20, 16, 0.68);
}
.page-home .revisit-panel .btn--ghost {
  border-color: rgba(25, 20, 16, 0.42);
  color: var(--tvt-paper-ink);
}
.page-home .revisit-panel .btn--ghost:hover,
.page-home .revisit-panel .btn--ghost:focus-visible {
  border-color: var(--tvt-paper-ink);
}
.page-home .text-link {
  font-size: 13px;
  color: var(--tvt-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-home .revisit-panel .text-link {
  color: rgba(25, 20, 16, 0.82);
}

/* 中等屏幕 */
@media (min-width: 560px) {
  .page-home .league-nodes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .page-home .fact-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .page-home .revisit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .page-home .update-item > summary {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    padding-left: 24px;
  }
  .page-home .update-state {
    grid-column: auto;
  }
  .page-home .update-note {
    padding-left: 24px;
  }
}

/* 桌面：不对称首屏 + 跟随式章节索引 */
@media (min-width: 900px) {
  .page-home .cover-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .page-home .cover-figure img {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  .page-home .home-body {
    grid-template-columns: 196px minmax(0, 1fr);
    align-items: start;
  }
  .page-home .chapter-rail {
    position: sticky;
    top: 96px;
  }
  .page-home .chapter-list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    border-left: 1px solid var(--tvt-line);
  }
  .page-home .chapter-link {
    display: block;
    position: relative;
    border: 0;
    border-radius: 0;
    padding: 10px 12px;
    white-space: normal;
  }
  .page-home .chapter-link::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--tvt-cyan);
    opacity: 0;
    transition: opacity 0.16s var(--ease);
  }
  .page-home .chapter-link:hover::before,
  .page-home .chapter-link:focus-visible::before {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gate-card .device-chip,
  .page-home .chapter-link,
  .page-home .update-item > summary::before,
  .page-home .chapter-link::before {
    transition: none;
  }
}
