/* ==========================================================================
   天美传媒成人 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --canvas: #f4f5f6;
  --panel: #ffffff;
  --ink: #14181c;
  --ink-soft: #5b646c;
  --line: #d8dde1;
  --line-strong: #b9c1c7;
  --thead: #e8ecef;
  --link: #14496b;
  --notice: #a8620c;
  --ok: #1f6f5c;
  --radius: 4px;
  --shell: 1120px;
  --pad: 24px;
  --header-h: 56px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cell-code,
.group-num,
.archive-date,
.topic-index {
  font-family: var(--font-mono);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--shell);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: var(--link);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav li {
  display: flex;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.mobile-nav {
  display: none;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 6px var(--pad) 12px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a.is-current {
  color: var(--link);
  font-weight: 600;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--pad) 56px;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px var(--pad) 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--link);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页标题区 */
.page-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

/* ==========================================================================
   components · 通用组件
   ========================================================================== */

/* 按钮 */
.btn-primary,
.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--link);
  color: #ffffff;
  border-color: var(--link);
}

.btn-primary:hover {
  background: #0f3a55;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.btn-secondary {
  background: var(--panel);
  color: var(--link);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--link);
  text-decoration: none;
}

/* 状态标记 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-normal {
  color: var(--link);
}

.status-notice {
  color: var(--notice);
}

.status-note {
  color: var(--notice);
}

.status-ok {
  color: var(--ok);
}

/* 分组标题 */
.group-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.group-num {
  display: inline-block;
  min-width: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
}

.group-note {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.section-heading {
  font-size: 20px;
  font-weight: 600;
}

.section-intro {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-lead {
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 页内锚点条 */
.anchor-bar {
  margin-top: 14px;
}

.anchor-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.anchor-bar a:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

/* 数据表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 620px;
  font-size: 14px;
  line-height: 1.5;
}

.data-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--thead);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 10px 12px;
  vertical-align: top;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: #f7f9fa;
}

.data-table .cell-code {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 折叠问答 */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  padding: 12px 16px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.faq-item p:last-child {
  padding-bottom: 14px;
}

.faq-item a {
  font-weight: 600;
}

/* 链接型入口 */
.link-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

.link-more::after {
  content: " →";
  font-family: var(--font-mono);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--notice);
  letter-spacing: 0;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.hero-lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-lead + .hero-lead {
  margin-top: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-table {
  min-width: 0;
}

.table-caption {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.index-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-table thead th {
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--thead);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}

.index-table tbody td {
  padding: 9px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.index-table tbody tr:last-child td {
  border-bottom: none;
}

.index-table tbody tr:hover td {
  background: #f7f9fa;
}

.index-table tbody td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.index-table tbody td:last-child {
  white-space: nowrap;
}

.table-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 首屏主图 */
.hero-figure {
  margin-top: 24px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 棋盘图文块 */
.checker {
  display: grid;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.checker-image-left {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.checker-image-right {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.checker-media {
  min-width: 0;
}

.checker-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checker-body {
  min-width: 0;
}

.checker-body h2 {
  font-size: 20px;
  font-weight: 600;
}

.checker-body > p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.read-order {
  margin-top: 14px;
  padding-left: 0;
  counter-reset: read;
}

.read-order li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.read-order li + li {
  margin-top: 6px;
}

.read-order li::before {
  counter-increment: read;
  content: counter(read, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--link);
}

.bullet-list {
  margin-top: 14px;
}

.bullet-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.bullet-list li + li {
  margin-top: 6px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* 条目字段表 */
.field-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.field-section h2 {
  font-size: 20px;
  font-weight: 600;
}

.field-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--thead);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}

.field-table tbody td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table tbody td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.field-table .group-row th {
  padding: 9px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
}

/* 观看环境摘要 */
.env-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.env-section h2 {
  font-size: 20px;
  font-weight: 600;
}

.env-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.env-card {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.env-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.env-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 问答摘要 */
.faq-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.faq-section h2 {
  font-size: 20px;
  font-weight: 600;
}

.faq-list {
  margin-top: 16px;
}

/* 口径引导条 */
.note-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--notice);
  border-radius: var(--radius);
}

.note-text {
  flex: 1 1 420px;
  min-width: 0;
}

.note-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.note-text p + p {
  margin-top: 4px;
}

.note-links {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.note-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  white-space: nowrap;
}

.note-links a:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

/* ==========================================================================
   pages · 目录总表
   ========================================================================== */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-head-text {
  min-width: 0;
}

.page-lead,
.page-task {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-head-figure {
  min-width: 0;
}

.page-head-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.table-block .table-wrap {
  margin-top: 14px;
}

.field-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.field-block h2 {
  font-size: 20px;
  font-weight: 600;
}

.field-block .table-wrap {
  margin-top: 12px;
}

.reading-block {
  padding: 28px 0;
}

.reading-block h2 {
  font-size: 20px;
  font-weight: 600;
}

.reading-block > p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.reading-list {
  margin-top: 14px;
}

.reading-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.reading-list li + li {
  margin-top: 8px;
}

.reading-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.reading-list strong {
  color: var(--ink);
}

.reading-tail {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.reading-tail a + a::before {
  content: "·";
  margin: 0 8px;
  color: var(--line-strong);
}

/* ==========================================================================
   pages · 收录档案
   ========================================================================== */

.page-hero {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.archive-figure {
  margin-top: 24px;
}

.archive-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.archive-section > h2 {
  font-size: 20px;
  font-weight: 600;
}

.archive-group {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--thead);
  border-bottom: 1px solid var(--line);
}

.archive-group-meta {
  min-width: 0;
}

.archive-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.archive-coverage {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.archive-range {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--link);
  white-space: nowrap;
}

.archive-group-summary {
  padding: 14px 18px;
}

.archive-group-summary ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.archive-group-summary li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.archive-group-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.archive-reading {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.archive-reading h2 {
  font-size: 20px;
  font-weight: 600;
}

.reading-points {
  margin-top: 14px;
}

.reading-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.reading-points li + li {
  margin-top: 8px;
}

.reading-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.reading-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.next-steps {
  padding: 28px 0 0;
}

.next-steps h2 {
  font-size: 20px;
  font-weight: 600;
}

.next-steps > p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.next-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.next-links a:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

/* ==========================================================================
   pages · 专题解读
   ========================================================================== */

.topic-group {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.topic-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.topic-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.topic-index {
  font-size: 20px;
  font-weight: 600;
  color: var(--line-strong);
  line-height: 1.3;
}

.topic-body {
  min-width: 0;
}

.topic-title {
  font-size: 16px;
  font-weight: 600;
}

.topic-title a {
  color: var(--ink);
}

.topic-title a:hover {
  color: var(--link);
}

.topic-summary {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}

.principles {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principle-item {
  padding: 14px 18px;
}

.principle-item + .principle-item {
  border-top: 1px solid var(--line);
}

.principle-title {
  font-size: 15px;
  font-weight: 600;
}

.principle-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.next-step {
  padding: 28px 0 0;
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.next-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-card-title {
  font-size: 15px;
  font-weight: 600;
}

.next-card-text {
  flex: 1 1 auto;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.next-card .text-link {
  margin-top: 12px;
}

.next-hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.next-hint a + a::before {
  content: "·";
  margin: 0 8px;
  color: var(--line-strong);
}

/* ==========================================================================
   pages · 观看环境
   ========================================================================== */

.env-figure {
  margin-top: 24px;
}

.env-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.env-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.env-block h2 {
  font-size: 20px;
  font-weight: 600;
}

.env-block-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
  margin-top: 14px;
}

.env-points {
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.env-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.env-points li + li {
  margin-top: 8px;
}

.env-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.env-note {
  min-width: 0;
}

.env-note p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.env-caution {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.env-caution .status {
  flex: 0 0 auto;
  margin-top: 2px;
}

.env-steps {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-reset: step;
}

.env-steps li {
  position: relative;
  padding-left: 32px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.env-steps li + li {
  margin-top: 8px;
}

.env-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--link);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.env-next {
  padding: 28px 0 0;
}

.env-next h2 {
  font-size: 20px;
  font-weight: 600;
}

.env-next > p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.link-row a:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

/* ==========================================================================
   pages · 常见问答
   ========================================================================== */

.page-title-area {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title-text {
  min-width: 0;
}

.page-title-figure {
  min-width: 0;
}

.page-title-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-group {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.faq-group .faq-item {
  margin-top: 8px;
}

.faq-group .faq-item:first-of-type {
  margin-top: 16px;
}

.faq-group .faq-answer p {
  padding-top: 10px;
}

.faq-group .faq-answer p + p {
  padding-top: 6px;
}

.group-exit {
  margin-top: 14px;
  font-size: 14px;
}

.group-exit a {
  font-weight: 600;
}

.faq-tail {
  padding: 28px 0 0;
}

.faq-tail h2 {
  font-size: 20px;
  font-weight: 600;
}

.faq-tail > p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.tail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.tail-links a:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

/* ==========================================================================
   pages · 站点说明
   ========================================================================== */

.container {
  width: 100%;
}

.position-section,
.structure-section,
.scope-section,
.columns-section,
.path-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.position-section h2,
.structure-section h2,
.scope-section h2,
.columns-section h2,
.path-section h2 {
  font-size: 20px;
  font-weight: 600;
}

.position-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: start;
  margin-top: 14px;
}

.position-text {
  min-width: 0;
}

.position-text p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.position-text p + p {
  margin-top: 10px;
}

.position-audience {
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.position-audience h3 {
  font-size: 15px;
  font-weight: 600;
}

.audience-list {
  margin-top: 10px;
}

.audience-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.audience-list li + li {
  margin-top: 6px;
}

.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.structure-figure {
  margin-top: 14px;
}

.structure-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.structure-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.scope-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.scope-col {
  padding: 14px 16px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-in {
  border-top: 3px solid var(--ok);
}

.scope-out {
  border-top: 3px solid var(--notice);
}

.scope-head {
  font-size: 15px;
  font-weight: 600;
}

.scope-in .scope-head {
  color: var(--ok);
}

.scope-out .scope-head {
  color: var(--notice);
}

.scope-col ul {
  margin-top: 10px;
}

.scope-col li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.scope-col li + li {
  margin-top: 8px;
}

.scope-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.column-list {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.column-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
}

.column-item + .column-item {
  border-top: 1px solid var(--line);
}

.column-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.column-task {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.column-item a {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.path-list {
  margin-top: 14px;
  counter-reset: path;
}

.path-item {
  position: relative;
  padding-left: 40px;
}

.path-item + .path-item {
  margin-top: 14px;
}

.path-item::before {
  counter-increment: path;
  content: counter(path, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

.path-item h3 {
  font-size: 15px;
  font-weight: 600;
}

.path-item p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.path-foot {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.path-foot a + a::before {
  content: "·";
  margin: 0 8px;
  color: var(--line-strong);
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--pad) 56px;
}

.error-panel {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--notice);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--notice);
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.error-lead {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.error-help {
  margin-top: 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.error-help h2 {
  font-size: 20px;
  font-weight: 600;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.error-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-list a:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

/* ==========================================================================
   layout · 页脚
   ========================================================================== */

.site-footer {
  margin-top: 40px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr);
  gap: 28px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px var(--pad) 24px;
}

.footer-col {
  min-width: 0;
}

.footer-brandmark {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.footer-slogan {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-boundary {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.footer-col ul {
  margin-top: 10px;
}

.footer-col li + li {
  margin-top: 6px;
}

.footer-col ul a {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.footer-col ul a:hover {
  color: var(--link);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--pad) 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .checker-image-left,
  .checker-image-right {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .checker-image-right .checker-body {
    order: 2;
  }

  .checker-image-right .checker-media {
    order: 1;
  }

  .page-head,
  .page-title-area {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-head-figure,
  .page-title-figure {
    order: 2;
  }

  .env-block-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .position-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .next-step-grid,
  .env-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav[hidden] {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    height: var(--header-h);
  }

  .brand {
    font-size: 16px;
  }

  .home-main,
  .inner-main {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 140px;
    padding: 0 12px;
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  .index-table {
    font-size: 13px;
  }

  .index-table thead th,
  .index-table tbody td {
    padding: 8px 8px;
  }

  .index-table thead th:nth-child(3),
  .index-table tbody td:nth-child(3) {
    display: none;
  }

  .checker {
    padding: 24px 0;
  }

  .checker-media img {
    aspect-ratio: 16 / 10;
  }

  .checker-body h2,
  .field-section h2,
  .env-section h2,
  .faq-section h2,
  .table-block .group-heading,
  .field-block h2,
  .reading-block h2,
  .archive-section > h2,
  .archive-reading h2,
  .next-steps h2,
  .principles .section-heading,
  .next-step .section-heading,
  .env-block h2,
  .env-next h2,
  .faq-tail h2,
  .position-section h2,
  .structure-section h2,
  .scope-section h2,
  .columns-section h2,
  .path-section h2,
  .error-help h2 {
    font-size: 18px;
  }

  .env-grid,
  .next-step-grid,
  .scope-table,
  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 16px;
  }

  .note-text {
    flex: 1 1 auto;
  }

  .note-links {
    justify-content: flex-start;
  }

  .note-links a {
    flex: 1 1 120px;
    justify-content: center;
  }

  .data-table {
    font-size: 13px;
    min-width: 560px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 8px 10px;
  }

  .field-table {
    font-size: 13px;
  }

  .field-table thead th,
  .field-table tbody td {
    padding: 8px 10px;
  }

  .field-table thead th:nth-child(4),
  .field-table tbody td:nth-child(4) {
    display: none;
  }

  .archive-figure img,
  .env-figure img,
  .structure-figure img {
    aspect-ratio: 4 / 3;
  }

  .archive-group-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 14px;
  }

  .archive-range {
    white-space: normal;
  }

  .archive-group-summary {
    padding: 12px 14px;
  }

  .archive-group-summary ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .topic-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }

  .topic-index {
    font-size: 17px;
  }

  .topic-title {
    font-size: 15px;
  }

  .env-steps {
    padding: 14px;
  }

  .column-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: start;
    padding: 12px 14px;
  }

  .column-name {
    grid-column: 1;
  }

  .column-task {
    grid-column: 1;
    grid-row: 2;
  }

  .column-item a {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px var(--pad) 20px;
  }

  .footer-col ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
  }

  .footer-col li + li {
    margin-top: 0;
  }

  .footer-col ul a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  .error-main {
    padding: 28px var(--pad) 40px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .error-actions .btn-primary,
  .error-actions .btn-secondary {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
