/* ==========================================================================
   thetmme天美 · 全站样式
   base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --navy: #12233a;
  --navy-2: #1b3550;
  --paper: #f5f1e8;
  --white: #ffffff;
  --accent: #d94a2b;
  --ok: #1c7a6c;
  --pending: #b8862b;
  --muted: #5a6472;
  --line: #d8d2c4;
  --radius: 6px;
  --container: 1180px;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: #253042;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--navy-2);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: #253042;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 页头 · 上层深墨蓝 */
.header-top {
  background: var(--navy);
  color: #e8e3d6;
}

.header-top .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  color: #ffffff;
}

.brand:hover,
.brand:focus-visible {
  color: #ffffff;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: #b9c3d0;
  white-space: nowrap;
}

.header-quick {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-quick a {
  font-size: 13px;
  line-height: 1.4;
  color: #cfd7e2;
  white-space: nowrap;
}

.header-quick a:hover,
.header-quick a:focus-visible {
  color: #ffffff;
}

.header-quick a.is-current {
  color: #ffffff;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* 页头 · 下层米白导航 */
.header-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-nav .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.main-nav ul {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.main-nav li {
  display: flex;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  font-size: 14px;
  color: #33404f;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.main-nav a.is-current {
  color: var(--navy);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* 主内容 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #a8a08e;
}

.breadcrumb-current {
  color: var(--navy);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  padding: 0 0 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  line-height: 1.3;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   layout · 页脚
   -------------------------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  margin-top: 40px;
  background: var(--navy);
  color: #c3ccd8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.footer-slogan {
  margin-top: 4px;
  font-size: 13px;
  color: #9fb0c4;
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #8c9bb0;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.6;
  color: #c3ccd8;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 12px;
  line-height: 1.6;
  color: #8c9bb0;
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #b93c20;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: #ffffff;
}

/* 区块标题 */
.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 20px;
  line-height: 1.35;
  color: var(--navy);
}

.section-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.section-title {
  font-size: 20px;
  line-height: 1.35;
  color: var(--navy);
}

.section-intro,
.section-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.section-note {
  margin-bottom: 16px;
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table,
.channel-table,
.mistake-table,
.terms-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  background: var(--white);
}

.data-table th,
.data-table td,
.channel-table th,
.channel-table td,
.mistake-table th,
.mistake-table td,
.terms-table th,
.terms-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.channel-table thead th,
.mistake-table thead th,
.terms-table thead th {
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td,
.mistake-table tbody tr:last-child td,
.terms-table tbody tr:last-child th,
.terms-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th,
.channel-table tbody th,
.terms-table tbody th {
  font-weight: 700;
  color: var(--navy);
}

.channel-table tbody tr,
.data-table tbody tr,
.mistake-table tbody tr {
  transition: background-color 160ms ease;
}

.channel-table tbody tr:hover,
.data-table tbody tr:hover {
  background: var(--paper);
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 3px;
  white-space: nowrap;
}

.status-ok {
  color: var(--ok);
  background: rgba(28, 122, 108, 0.12);
}

.status-pending {
  color: var(--pending);
  background: rgba(184, 134, 43, 0.14);
}

.status-bad {
  color: #a3341f;
  background: rgba(217, 74, 43, 0.12);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  position: relative;
  padding: 13px 40px 13px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 16px 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #3c4757;
}

.faq-item p:last-child {
  padding-bottom: 16px;
}

.faq-item a {
  color: var(--accent);
  text-decoration: underline;
}

/* 步骤序号 */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy-2);
  border-radius: 50%;
}

/* 图片容器 */
.content-figure,
.guide-figure,
.channel-figure,
.relation-figure,
.scope-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.content-figure img,
.guide-figure img,
.channel-figure img,
.relation-figure img,
.scope-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-figure figcaption,
.guide-figure figcaption,
.channel-figure figcaption,
.relation-figure figcaption,
.scope-figure figcaption {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 文末相关入口 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.related-links a,
.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--navy-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.related-links a:hover,
.related-links-item:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  width: 100%;
}

/* 全宽内容焦点区 */
.hero {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.hero-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 620px;
  max-width: calc(100% - 48px);
  padding: 28px 30px 30px;
  background: rgba(18, 35, 58, 0.92);
  border-radius: 0 var(--radius) 0 var(--radius);
}

.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  color: #f0b9a6;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.3;
  color: #ffffff;
}

.hero-lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #d3dbe6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* 快捷入口条 */
.quick-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 24px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.quick-item:hover,
.quick-item:focus-visible {
  background: var(--paper);
  border-color: var(--navy-2);
}

.quick-icon {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.quick-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.quick-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* 首页通用区块 */
.home-main .section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 0;
}

/* 频道速览表 */
.section-channels .channel-table td a {
  font-weight: 600;
  color: var(--accent);
}

.section-channels .channel-table td a:hover,
.section-channels .channel-table td a:focus-visible {
  text-decoration: underline;
}

/* 专题片单精选 */
.topic-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-topics .topic-row {
  display: grid;
  grid-template-columns: 44px 190px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.section-topics .topic-row:last-child {
  border-bottom: 0;
}

.section-topics .topic-row:hover {
  background: var(--paper);
}

.section-topics .topic-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--pending);
}

.section-topics .topic-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.section-topics .topic-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.section-topics .topic-link {
  position: relative;
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-right: 14px;
}

.section-topics .topic-link::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 160ms ease, right 160ms ease;
}

.section-topics .topic-row:hover .topic-link::after {
  opacity: 1;
  right: -2px;
}

/* 观看路径三步 */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-step {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-2);
  border-radius: var(--radius);
}

.path-step h3 {
  margin-top: 10px;
  font-size: 16px;
  color: var(--navy);
}

.path-step p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.path-more {
  margin-top: 16px;
  font-size: 14px;
}

.path-more a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 内容边界三联 */
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.boundary-col {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-col h3 {
  font-size: 15px;
  color: var(--navy);
}

.boundary-col p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* 关系图 */
.section-relation .relation-figure img {
  max-height: 360px;
}

/* 首页 FAQ */
.section-faq {
  padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   pages · 频道导航（channels）
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.page-head {
  margin-bottom: 24px;
}

.page-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #3c4757;
}

.page-meta {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.judge-block,
.channel-table-block,
.channel-map-block {
  margin-bottom: 32px;
}

.judge-block h2,
.channel-table-block h2,
.channel-map-block h2 {
  font-size: 20px;
  color: var(--navy);
}

.judge-block .section-intro,
.channel-table-block .section-intro,
.channel-map-block .section-intro {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.judge-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.judge-item:last-child {
  border-bottom: 1px solid var(--line);
}

.judge-item h3 {
  font-size: 15px;
  color: var(--navy);
}

.judge-item p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: #3c4757;
}

.channel-table-block .channel-table td a {
  font-weight: 600;
  color: var(--accent);
}

.channel-table-block .channel-table td a:hover,
.channel-table-block .channel-table td a:focus-visible {
  text-decoration: underline;
}

.channel-map {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.map-row:last-child {
  border-bottom: 0;
}

.map-channel {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.map-topic {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.map-topic .map-name {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-2);
}

.map-topic .map-label {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--ok);
  background: rgba(28, 122, 108, 0.12);
  border-radius: 3px;
}

.channel-figure {
  margin-top: 8px;
}

/* 侧栏 */
.page-sidebar {
  min-width: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-title {
  font-size: 16px;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-block h3 {
  font-size: 14px;
  color: var(--navy-2);
}

.sidebar-block p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.sidebar-links {
  padding-top: 14px;
}

.sidebar-links h3 {
  font-size: 14px;
  color: var(--navy-2);
}

.sidebar-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sidebar-links a {
  display: inline-block;
  min-height: 32px;
  font-size: 13px;
  color: var(--accent);
}

.sidebar-links a:hover,
.sidebar-links a:focus-visible {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages · 专题片单（topics）
   -------------------------------------------------------------------------- */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-head-main {
  min-width: 0;
}

.page-head-side {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.topic-feature,
.topic-list,
.topic-rules,
.topic-offline,
.topic-order {
  margin-top: 32px;
}

.topic-feature .section-title,
.topic-list .section-title,
.topic-rules .section-title,
.topic-offline .section-title,
.topic-order .section-title {
  margin-bottom: 14px;
}

.feature-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.feature-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-media figcaption {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.feature-copy {
  min-width: 0;
}

.feature-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(217, 74, 43, 0.1);
  border-radius: 3px;
}

.feature-name {
  margin-top: 8px;
  font-size: 20px;
  color: var(--navy);
}

.feature-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #3c4757;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
}

.feature-meta li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.link-strong {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.link-strong:hover,
.link-strong:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 专题行式列表 */
.topic-rows {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-rows .topic-row {
  display: grid;
  grid-template-columns: 44px 200px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.topic-rows .topic-row:last-child {
  border-bottom: 0;
}

.topic-rows .topic-row:hover {
  background: var(--paper);
}

.topic-rows .topic-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--pending);
}

.topic-rows .topic-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.topic-rows .topic-brief {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.topic-rows .topic-more {
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.topic-rows .topic-more:hover,
.topic-rows .topic-more:focus-visible {
  text-decoration: underline;
}

/* 收录规则 */
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-name {
  font-size: 15px;
  color: var(--navy);
}

.rule-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: #3c4757;
}

/* 下线规则 */
.offline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.offline-item {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offline-name {
  font-size: 15px;
  color: var(--navy);
}

.offline-item p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* 观看顺序示例 */
.order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.order-step {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-step .step-name {
  margin-top: 10px;
  font-size: 15px;
  color: var(--navy);
}

.order-step p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 观看指南（guide）
   -------------------------------------------------------------------------- */

.content-wrap {
  max-width: 820px;
}

.content-wrap .page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: start;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title-main {
  min-width: 0;
}

.page-title-aside {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.title-aside-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pending);
}

.title-aside-value {
  margin-top: 4px;
  color: var(--navy);
  font-weight: 600;
}

.summary-block {
  padding: 18px 20px 20px;
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.summary-block h2 {
  font-size: 18px;
  color: var(--navy);
}

.summary-intro {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #3c4757;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.summary-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
}

.summary-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4757;
}

.principle-section,
.flow-section,
.mistake-section,
.mobile-tips-section {
  margin-bottom: 32px;
}

.principle-section h2,
.flow-section h2,
.mistake-section h2,
.mobile-tips-section h2 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
}

.principle-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle-text p {
  font-size: 14px;
  line-height: 1.85;
  color: #3c4757;
}

.principle-text strong {
  color: var(--navy);
}

.guide-figure {
  margin-top: 16px;
}

.guide-figure img {
  max-height: 340px;
  object-fit: cover;
}

.flow-intro,
.mistake-intro {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-step {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy-2);
  border-radius: 50%;
}

.flow-step-title {
  margin-top: 8px;
  font-size: 15px;
  color: var(--navy);
}

.flow-step-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.mistake-table td {
  font-size: 14px;
  line-height: 1.7;
}

.mistake-table td.mistake-wrong {
  width: 40%;
  font-size: 13px;
  color: var(--muted);
  background: #faf8f3;
}

.mobile-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-tip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mobile-tip-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.mobile-tip-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 入口核验（verify）
   -------------------------------------------------------------------------- */

.layout-shell {
  margin-top: 4px;
}

.main-column {
  min-width: 0;
}

.main-column .section {
  margin-bottom: 32px;
}

.main-column .section-title {
  margin-bottom: 8px;
}

.main-column .section-intro {
  margin-bottom: 14px;
}

.status-table td {
  font-size: 14px;
  line-height: 1.7;
}

.exception-table td {
  font-size: 14px;
  line-height: 1.7;
}

.exception-table td a {
  font-weight: 600;
  color: var(--accent);
}

.exception-table td a:hover,
.exception-table td a:focus-visible {
  text-decoration: underline;
}

.content-figure {
  margin-bottom: 32px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.checklist-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--ok);
  cursor: pointer;
}

.checklist-name {
  font-size: 14px;
  line-height: 1.6;
  color: #3c4757;
}

.checklist-remove {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: color 160ms ease, border-color 160ms ease;
}

.checklist-remove:hover,
.checklist-remove:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.checklist-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-item h3 {
  font-size: 15px;
  color: var(--navy);
}

.record-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: #3c4757;
}

/* 核验侧栏 */
.side-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-block {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-title {
  font-size: 15px;
  color: var(--navy);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.side-list li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.side-links a {
  display: inline-block;
  min-height: 32px;
  font-size: 13px;
  color: var(--accent);
}

.side-links a:hover,
.side-links a:focus-visible {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages · 反馈说明（feedback）
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main > .page-head {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title-side {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.section-feedback-types,
.section-feedback-info,
.section-feedback-order,
.section-feedback-faq,
.section-related {
  padding-top: 36px;
}

.section-feedback-types h2,
.section-feedback-info h2,
.section-feedback-order h2,
.section-feedback-faq h2,
.section-related h2 {
  font-size: 20px;
  color: var(--navy);
}

.section-feedback-types .section-intro,
.section-feedback-info .section-intro,
.section-feedback-order .section-intro {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.type-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-2);
  border-radius: var(--radius);
}

.type-card h3 {
  font-size: 16px;
  color: var(--navy);
}

.type-card p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.type-card a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.type-card a:hover,
.type-card a:focus-visible {
  text-decoration: underline;
}

/* 四项信息：图左文右 */
.section-feedback-info .container {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.info-media {
  min-width: 0;
}

.info-media .content-figure {
  margin: 0;
}

.info-body {
  min-width: 0;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-list h3 {
  font-size: 15px;
  color: var(--navy);
}

.info-list p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* 处理顺序 */
.section-feedback-order .order-steps {
  margin-top: 4px;
}

/* 反馈 FAQ */
.section-feedback-faq .faq-list {
  margin-top: 14px;
}

/* 文末相关入口 */
.section-related {
  padding-bottom: 8px;
}

.section-related .related-links {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   pages · 站点说明（about）
   -------------------------------------------------------------------------- */

.page-container {
  max-width: 820px;
}

.page-container .page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-head-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pending);
}

.page-head-note {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.about-scope,
.about-principles,
.about-boundary,
.about-terms,
.about-links {
  margin-bottom: 36px;
}

.about-scope h2,
.about-principles h2,
.about-boundary h2,
.about-terms h2,
.about-links h2 {
  margin-bottom: 14px;
}

.scope-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scope-body p {
  font-size: 14px;
  line-height: 1.85;
  color: #3c4757;
}

.scope-figure {
  margin-top: 16px;
}

.scope-figure img {
  max-height: 340px;
  object-fit: cover;
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principle-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy-2);
  border-radius: 50%;
}

.principle-body {
  min-width: 0;
}

.principle-title {
  font-size: 15px;
  color: var(--navy);
}

.principle-body p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: #3c4757;
}

.boundary-intro {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #3c4757;
}

.boundary-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.terms-intro {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.terms-table tbody th {
  width: 34%;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-links a:hover,
.entry-links a:focus-visible {
  color: #b93c20;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--pending);
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--navy);
}

.error-lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #3c4757;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: var(--radius);
}

.error-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.error-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.error-actions .btn-ghost {
  color: var(--navy);
  border-color: var(--line);
}

.error-actions .btn-ghost:hover,
.error-actions .btn-ghost:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .header-inner,
  .footer-inner,
  .footer-bottom p,
  .home-main .section,
  .hero,
  .quick-bar,
  .inner-main,
  .container,
  .inner-main > .page-head,
  .error-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy {
    left: 20px;
    max-width: calc(100% - 40px);
  }

  .page-layout {
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .header-top .header-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-quick {
    gap: 14px;
  }

  .header-nav .header-inner {
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(18, 35, 58, 0.16);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    min-height: 48px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }

  .main-nav li:last-child a {
    border-bottom: 0;
  }

  .main-nav a.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
    background: var(--paper);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-sidebar {
    order: 2;
  }

  .content-wrap {
    max-width: 100%;
  }

  .content-wrap .page-title {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .page-container .page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .page-title-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .feature-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .feature-media img {
    height: auto;
    max-height: 260px;
  }

  .section-feedback-info .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .brand {
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .header-quick {
    gap: 12px;
  }

  .header-quick a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 12px;
  }

  /* 首页焦点区：文字改为图下独立块，避免遮挡 */
  .hero-figure {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .hero-figure img {
    height: 200px;
  }

  .hero-copy {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
  }

  .quick-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-item {
    padding: 10px 12px;
  }

  .home-main .section {
    padding-top: 28px;
  }

  .section-head h2,
  .section-title,
  .judge-block h2,
  .channel-table-block h2,
  .channel-map-block h2,
  .principle-section h2,
  .flow-section h2,
  .mistake-section h2,
  .mobile-tips-section h2,
  .section-feedback-types h2,
  .section-feedback-info h2,
  .section-feedback-order h2,
  .section-feedback-faq h2,
  .section-related h2 {
    font-size: 18px;
  }

  .page-title,
  .error-panel h1 {
    font-size: 22px;
  }

  /* 表格转键值卡片 */
  .table-wrap {
    overflow-x: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .data-table,
  .channel-table,
  .mistake-table,
  .terms-table {
    display: block;
    background: transparent;
  }

  .data-table thead,
  .channel-table thead,
  .mistake-table thead,
  .terms-table thead {
    display: none;
  }

  .data-table tbody,
  .channel-table tbody,
  .mistake-table tbody,
  .terms-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .data-table tbody tr,
  .channel-table tbody tr,
  .mistake-table tbody tr,
  .terms-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .data-table tbody th,
  .data-table tbody td,
  .channel-table tbody th,
  .channel-table tbody td,
  .mistake-table tbody td,
  .terms-table tbody th,
  .terms-table tbody td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: 0;
    font-size: 13px;
    line-height: 1.7;
  }

  .data-table tbody th,
  .channel-table tbody th,
  .terms-table tbody th {
    font-size: 15px;
  }

  .mistake-table tbody td.mistake-wrong {
    width: auto;
    background: transparent;
    color: var(--pending);
    font-weight: 600;
  }

  .terms-table tbody th {
    width: auto;
  }

  /* 首页专题行式条目 */
  .section-topics .topic-row {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "idx name"
      "desc desc"
      "link link";
    gap: 4px 10px;
    padding: 14px;
  }

  .section-topics .topic-index {
    grid-area: idx;
    align-self: center;
  }

  .section-topics .topic-name {
    grid-area: name;
  }

  .section-topics .topic-desc {
    grid-area: desc;
    margin-top: 4px;
  }

  .section-topics .topic-link {
    grid-area: link;
    justify-self: start;
    min-height: 32px;
    margin-top: 6px;
  }

  /* 专题页行式列表 */
  .topic-rows .topic-row {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "idx name"
      "brief brief"
      "more more";
    gap: 4px 10px;
    padding: 14px;
  }

  .topic-rows .topic-index {
    grid-area: idx;
    align-self: center;
  }

  .topic-rows .topic-name {
    grid-area: name;
  }

  .topic-rows .topic-brief {
    grid-area: brief;
    margin-top: 4px;
  }

  .topic-rows .topic-more {
    grid-area: more;
    justify-self: start;
    min-height: 32px;
    margin-top: 6px;
  }

  .path-steps,
  .boundary-grid,
  .offline-grid,
  .order-steps,
  .flow-steps,
  .type-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .principle-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .checklist {
    padding: 6px;
  }

  .checklist-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }

  .checklist-label {
    flex: 1 1 100%;
  }

  .checklist-remove {
    min-height: 36px;
  }

  .related-links,
  .entry-links {
    gap: 8px 16px;
    padding: 14px;
  }

  .related-links a,
  .related-links-item,
  .entry-links a {
    min-height: 36px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  .error-main {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .error-panel {
    padding: 22px 18px;
  }

  .error-actions .btn {
    flex: 1 1 140px;
  }
}

@media (max-width: 380px) {
  .quick-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
