/* ==========================================================================
   thetmme天美 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --canvas: #f6f4ef;
  --surface: #ffffff;
  --ink: #0d1b2a;
  --text: #2a3138;
  --muted: #5a636b;
  --line: #d9d3c7;
  --primary: #17435c;
  --primary-deep: #0f3245;
  --status-ok: #2f7d63;
  --status-check: #a8752a;
  --status-off: #9b3b2f;
  --note-bg: #eef1f3;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(13, 27, 42, 0.06);
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shell: 1120px;
  --reading: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.22;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16.5px;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
}

.brand {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--primary);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-list li {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 2px solid transparent;
  line-height: 1.5;
}

.nav-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 6px 16px 12px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list li:last-child .mobile-nav-link {
  border-bottom: 0;
}

.mobile-nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
}

.site-main {
  display: block;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  padding: 22px 0 0;
}

.page-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

.page-head {
  max-width: var(--reading);
  padding: 16px 0 0;
}

.page-kicker,
.page-eyebrow,
.page-head-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-lead,
.page-head-lead {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

.page-title-block {
  padding: 16px 0 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-top: 28px;
}

.layout-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-primary,
.page-content,
.content-column {
  min-width: 0;
}

.page-aside,
.side-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer {
  margin-top: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-desc {
  margin-top: 8px;
  max-width: 320px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links li {
  display: flex;
}

.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 24px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.section-title,
.section-head h2,
.section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.section-lead,
.section-desc,
.section-intro {
  margin-top: 8px;
  max-width: var(--reading);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.section-head {
  margin-bottom: 20px;
}

.section-foot {
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.text-link::after {
  content: "→";
  font-size: 13px;
}

.note-block,
.annotation-block {
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  background: var(--note-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.section-note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* 表格容器：满宽、可横向滚动，不撑破页面 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.ledger-table,
.data-table {
  min-width: 640px;
  font-size: 13.5px;
  line-height: 1.5;
}

.ledger-table thead th,
.data-table thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: #f1eee7;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ledger-table tbody td,
.data-table tbody td,
.data-table tbody th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.ledger-table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: 0;
}

.ledger-table tbody tr:hover,
.data-table tbody tr:hover {
  background: #f7f5f0;
}

.ledger-table .cell-num,
.ledger-table .col-no {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.data-table tbody th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
}

.table-caption {
  caption-side: top;
  padding: 12px 14px;
  text-align: left;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* 状态标记：三档固定色 */
.status,
.status-item .status-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status::before,
.status-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}

.status-open,
.status-available {
  color: var(--status-ok);
}

.status-check {
  color: var(--status-check);
}

.status-off,
.status-unavailable {
  color: var(--status-off);
}

/* 筛选按钮组 */
.filter-bar {
  margin: 4px 0 16px;
}

.filter-label,
.filter-group-label {
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.filter-list,
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* 折叠问答 */
.qa-list,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qa-item,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qa-question,
.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.qa-question::-webkit-details-marker,
.faq-question::-webkit-details-marker {
  display: none;
}

.qa-question::after,
.faq-question::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted);
}

.qa-item[open] .qa-question::after,
.faq-item[open] .faq-question::after {
  content: "−";
}

.qa-tag,
.faq-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--primary);
  background: var(--note-bg);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.qa-answer,
.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

/* 注释块（通用） */
.policy-box,
.audience-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

/* 侧栏通用块 */
.aside-block,
.side-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-title,
.side-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.aside-desc {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-list,
.side-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-list li,
.side-link-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.aside-list li:last-child,
.side-link-list li:last-child {
  border-bottom: 0;
}

.aside-list a,
.side-link-list a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.aside-link-desc,
.side-link-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.aside-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.aside-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.aside-figure figcaption {
  padding: 10px 14px 12px;
}

.field-table {
  font-size: 13px;
  line-height: 1.6;
}

.field-table th,
.field-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.field-table tr:last-child th,
.field-table tr:last-child td {
  border-bottom: 0;
}

.field-table th {
  width: 38%;
  padding-right: 10px;
  font-weight: 600;
  color: var(--ink);
}

.field-table td {
  color: var(--text);
}

/* 图片容器通用约束 */
.media-figure,
.flow-figure,
.ledger-figure,
.section-media {
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-figure img,
.flow-figure img,
.ledger-figure img,
.section-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-caption,
.flow-figure figcaption,
.ledger-figure figcaption,
.section-media figcaption {
  padding: 10px 14px 12px;
}

/* 交叉引用 */
.cross-ref-list,
.cross-list,
.related-list,
.extend-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cross-ref-list li,
.cross-item,
.related-item,
.extend-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.cross-ref-list li:last-child,
.cross-item:last-child,
.related-item:last-child,
.extend-item:last-child {
  border-bottom: 0;
}

.cross-ref-list a,
.related-item a,
.cross-item a {
  font-size: 14.5px;
  font-weight: 600;
}

.cross-note,
.related-desc {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.extend-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.extend-desc {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-text h1 {
  margin-bottom: 16px;
  color: var(--ink);
}

.hero-lead {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-next li {
  display: flex;
}

.hero-next a {
  font-size: 13.5px;
  color: var(--primary);
}

.hero-next a::after {
  content: " ↗";
  font-size: 11px;
}

.hero-visual {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  background: var(--note-bg);
  padding: 4px 10px;
  border-radius: 3px;
}

/* 索引口径条 */
.meter-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.meter-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meter-name {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.meter-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* 条目总表 */
.ledger {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.ledger .table-wrap {
  margin-top: 0;
}

/* 专题选辑 */
.topics {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.topic-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.topic-figure {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topics .topic-name {
  padding: 14px 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.topic-meta {
  padding: 4px 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.topic-scene {
  padding: 8px 18px 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

/* 访问条件摘要 */
.access {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.policy-title,
.audience-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.policy-list li::before {
  content: counter(policy-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
}

.policy-list {
  counter-reset: policy-item;
}

.policy-list li {
  counter-increment: policy-item;
}

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.audience-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.audience-list li:last-child {
  border-bottom: 0;
}

/* 三问速答 */
.quick-qa {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.quick-qa .qa-list {
  margin-top: 20px;
}

/* 编务注释带 */
.editorial-band {
  margin-top: 44px;
  background: var(--ink);
  border-radius: var(--radius);
  color: #e8e6df;
}

.band-inner {
  padding: 36px 40px;
}

.band-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.band-text {
  max-width: var(--reading);
  font-size: 14.5px;
  line-height: 1.8;
  color: #cfd3d6;
}

.band-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 20px;
}

.band-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.band-link:hover {
  text-decoration: none;
  border-bottom-color: #ffffff;
}

/* --------------------------------------------------------------------------
   pages · 内页通用区块
   -------------------------------------------------------------------------- */

.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section .page-shell {
  padding: 0;
}

/* 频道总表页 */
.filter-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}

.filter-toolbar-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 14px;
}

.filter-group {
  min-width: 0;
}

.filter-divider {
  width: 1px;
  align-self: stretch;
  min-height: 44px;
  background: var(--line);
}

.filter-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.channel-ledger {
  margin-bottom: 32px;
}

.status-legend {
  margin-bottom: 32px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.status-item:last-child {
  border-bottom: 0;
}

.status-item .status-mark {
  flex: 0 0 auto;
  margin-top: 3px;
}

.cross-ref {
  margin-bottom: 8px;
}

.cross-ref-list {
  margin-top: 16px;
}

/* 专题选辑页 */
.section-angles .angle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.angle-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary);
}

.angle-name {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.angle-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.section-topics .topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.section-topics .topic-body {
  padding: 14px 18px 18px;
}

.section-topics .topic-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.section-topics .topic-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.section-topics .topic-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.compare-table {
  margin-top: 20px;
}

.section-extend .extend-list {
  margin-top: 20px;
}

.section-related {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 32px 0 8px;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

/* 观看条件页 */
.module {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.module:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.module h2 {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.module-intro {
  margin-top: 8px;
  max-width: var(--reading);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.entry-type-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-type-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.entry-type-item:last-child {
  border-bottom: 0;
}

.entry-type-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.entry-type-desc {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.entry-type-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  min-height: 32px;
  font-size: 13.5px;
  font-weight: 600;
}

.condition-table {
  margin-top: 18px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  position: relative;
}

.step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 22px;
  position: relative;
}

.step-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item:last-child::before {
  display: none;
}

.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.step-body {
  min-width: 0;
  padding-top: 4px;
}

.step-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.step-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.step-note {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--note-bg);
  border-left: 3px solid var(--primary);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 流程与标准页 */
.page-title-block {
  max-width: var(--reading);
}

.flow-section,
.quality-section,
.scope-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.scope-section {
  border-bottom: 0;
  margin-bottom: 0;
}

.flow-section h2,
.quality-section h2,
.scope-section h2 {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.flow-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step:last-child::before {
  display: none;
}

.flow-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.flow-step-body {
  min-width: 0;
  padding-top: 4px;
}

.flow-step-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.flow-step-body p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.flow-step-body .note-block {
  margin-top: 10px;
}

.quality-table {
  margin-top: 18px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.scope-column {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.scope-column h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.scope-provide {
  border-top: 3px solid var(--status-ok);
}

.scope-withhold {
  border-top: 3px solid var(--status-off);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--line);
}

.scope-provide .scope-list li::before {
  background: var(--status-ok);
}

.scope-withhold .scope-list li::before {
  background: var(--status-off);
}

/* 问答台 */
.content-wrap {
  max-width: var(--shell);
  margin: 0 auto;
}

.section-block {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.section-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.category-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.category-scope {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.category-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pending-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.pending-item:last-child {
  border-bottom: 0;
}

.pending-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.pending-missing {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  counter-reset: rule-item;
}

.rule-item {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  counter-increment: rule-item;
}

.rule-item::before {
  content: counter(rule-item);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--note-bg);
  border-radius: 3px;
}

.rule-name {
  font-weight: 600;
  color: var(--ink);
}

/* 编务口径页 */
.scope-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.scope-col-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.scope-in {
  border-top: 3px solid var(--status-ok);
}

.scope-out {
  border-top: 3px solid var(--status-off);
}

.scope-in .scope-list li::before {
  background: var(--status-ok);
}

.scope-out .scope-list li::before {
  background: var(--status-off);
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.note-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.note-item-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.note-item-example {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--note-bg);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.boundary-item {
  position: relative;
  padding: 14px 18px 14px 42px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.boundary-item:last-child {
  border-bottom: 0;
}

.boundary-item::before {
  content: "×";
  position: absolute;
  left: 18px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--status-off);
}

.cross-section {
  border-bottom: 0;
}

/* 404 */
.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 60vh;
  padding: 64px 24px 80px;
}

.error-inner {
  width: 100%;
  max-width: 680px;
}

.error-code {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.error-title {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--ink);
}

.error-lead {
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

.error-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.error-path {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--primary);
  background: var(--note-bg);
  padding: 2px 8px;
  border-radius: 3px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.error-note {
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
    padding: 0 20px;
  }

  .nav-link {
    padding: 8px 8px;
    font-size: 13.5px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 36px;
  }

  .home-main,
  .inner-main,
  .layout-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-aside,
  .side-column {
    order: 2;
  }

  .page-primary,
  .page-content,
  .content-column {
    order: 1;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 20px 24px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .meter-grid,
  .section-angles .angle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid,
  .section-topics .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav[hidden] {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .brand {
    font-size: 16px;
  }

  .home-main,
  .inner-main,
  .layout-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .inner-main {
    padding-bottom: 56px;
  }

  .home-main {
    padding-bottom: 56px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12.5px;
  }

  .page-header {
    padding-top: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-head {
    padding-top: 12px;
  }

  .page-lead,
  .page-head-lead {
    font-size: 14.5px;
  }

  .hero {
    padding: 28px 0 32px;
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .hero-next {
    gap: 4px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-next a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .meter-bar,
  .ledger,
  .topics,
  .access,
  .quick-qa {
    padding: 32px 0;
  }

  .meter-grid,
  .topic-grid,
  .section-angles .angle-list,
  .section-topics .topic-grid,
  .scope-columns,
  .category-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .meter-grid {
    gap: 14px;
  }

  .ledger .table-wrap,
  .table-wrap {
    border-radius: var(--radius);
  }

  /* 条目表与数据表在手机上改为卡片式堆叠 */
  .ledger-table,
  .data-table {
    min-width: 0;
  }

  .ledger-table thead,
  .data-table thead {
    display: none;
  }

  .ledger-table tbody,
  .data-table tbody {
    display: block;
  }

  .ledger-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .ledger-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ledger-table tbody td {
    display: block;
    padding: 2px 0;
    border-bottom: 0;
    font-size: 13px;
  }

  .ledger-table tbody td.cell-num {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--muted);
  }

  .ledger-table tbody td.cell-num::before {
    content: "编号 ";
    font-family: var(--font-sans);
    color: var(--muted);
  }

  .ledger-table tbody td.col-scope,
  .ledger-table tbody td.col-status,
  .ledger-table tbody td.col-entry {
    grid-column: 1 / -1;
  }

  .data-table tbody tr {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table tbody th,
  .data-table tbody td {
    display: block;
    width: 100%;
    padding: 2px 0;
    border-bottom: 0;
  }

  .data-table tbody th {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
  }

  .data-table tbody td {
    font-size: 13.5px;
    color: var(--text);
  }

  .filter-bar {
    margin-bottom: 14px;
  }

  .filter-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-list li {
    flex: 0 0 auto;
  }

  .filter-btn {
    min-height: 44px;
    white-space: nowrap;
  }

  .filter-toolbar-body {
    flex-direction: column;
    gap: 16px;
  }

  .filter-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
  }

  .filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-buttons .filter-btn {
    flex: 0 0 auto;
  }

  .editorial-band {
    margin-top: 32px;
    border-radius: var(--radius);
  }

  .band-inner {
    padding: 26px 22px;
  }

  .band-title {
    font-size: 18px;
  }

  .band-links {
    flex-direction: column;
    gap: 4px;
  }

  .band-link {
    min-height: 44px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-group-title {
    margin-bottom: 4px;
  }

  .footer-links a {
    min-height: 44px;
  }

  .footer-bottom p {
    padding: 14px 16px 20px;
  }

  .step-item,
  .flow-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .step-index,
  .flow-step-num {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .step-item::before,
  .flow-step::before {
    left: 17px;
    top: 36px;
  }

  .qa-question,
  .faq-question {
    font-size: 14px;
    padding: 12px 14px;
    gap: 8px;
  }

  .qa-answer,
  .faq-answer {
    padding: 0 14px 14px;
    font-size: 13.5px;
  }

  .policy-box,
  .audience-box,
  .aside-block,
  .side-block,
  .entry-type-item,
  .note-item,
  .scope-column,
  .scope-col,
  .category-item {
    padding: 16px;
  }

  .ledger-figure,
  .media-figure,
  .flow-figure,
  .section-media {
    margin: 16px 0;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .error-title {
    font-size: 26px;
  }
}

@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  .band-inner {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
