/* ==========================================================================
   天美免费观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --c-page: #f4f5f7;
  --c-paper: #ffffff;
  --c-ink: #1c2026;
  --c-muted: #5a6472;
  --c-link: #1558b0;
  --c-link-dark: #0f3f80;
  --c-tint: #e8edf5;
  --c-line: #d7dbe2;
  --c-warn: #a34a12;
  --c-focus: #1558b0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono",
    "Courier New", monospace;
  --w-content: 1120px;
  --pad-x: 20px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--c-link-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

.mono,
.cell-mono,
.cell-code,
.step-no,
.step-num,
.channel-no,
.brief-date,
.meta-date,
.log-date-text,
.log-version {
  font-family: var(--font-mono);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-paper);
  color: var(--c-link);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  max-width: var(--w-content);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--c-ink);
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.primary-nav li {
  display: block;
}

.primary-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 0.9375rem;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--c-link);
  border-bottom-color: var(--c-line);
}

.primary-nav a.is-current {
  color: var(--c-link);
  font-weight: 700;
  border-bottom-color: var(--c-link);
}

.site-main {
  display: block;
}

.home-main {
  background: var(--c-page);
}

.inner-main {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 var(--pad-x) 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 0.875rem;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-link);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--c-muted);
}

.breadcrumb-current {
  color: var(--c-muted);
}

.page-header {
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
}

.page-title {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

.site-footer {
  background: var(--c-paper);
  border-top: 1px solid var(--c-line);
}

.footer-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 40px var(--pad-x) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--c-ink);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--c-link);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.footer-brand {
  font-weight: 700;
  color: var(--c-ink);
}

.footer-note {
  flex: 1 1 320px;
  min-width: 0;
}

.footer-copy {
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid var(--c-link);
  line-height: 1.4;
}

.section-note {
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.section-intro,
.section-lead {
  font-size: 0.9375rem;
  color: var(--c-muted);
  max-width: 68ch;
}

.eyebrow,
.page-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-link);
}

.page-lead {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 68ch;
}

.fact-row,
.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 14px;
}

.fact-item {
  min-width: 0;
}

.fact-row .fact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-row dt {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  font-family: var(--font-mono);
}

.fact-row dd {
  font-size: 0.9375rem;
  color: var(--c-ink);
}

.page-facts .fact-item,
.page-facts .fact {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--c-muted);
  padding: 2px 10px;
  background: var(--c-tint);
  border-radius: 4px;
}

.fact-line {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-top: 10px;
}

.entry-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
  border-bottom: 1px solid var(--c-link);
  padding-bottom: 1px;
}

.entry-link:hover {
  color: var(--c-link-dark);
  border-bottom-color: var(--c-link-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--c-link);
  color: #ffffff;
  border-color: var(--c-link);
}

.btn-primary:hover {
  background: var(--c-link-dark);
  border-color: var(--c-link-dark);
  color: #ffffff;
}

.btn-ghost {
  background: var(--c-paper);
  color: var(--c-link);
  border-color: var(--c-line);
}

.btn-ghost:hover {
  border-color: var(--c-link);
  color: var(--c-link-dark);
}

/* 表格：所有表格共用可横向滚动外壳，避免撑破视口 */
.table-scroll,
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.changelog-table,
.channel-table,
.data-table {
  width: 100%;
  min-width: 0;
  font-size: 0.9375rem;
  background: var(--c-paper);
}

.changelog-table th,
.channel-table th,
.data-table th {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  background: var(--c-tint);
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.changelog-table td,
.channel-table td,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
}

.changelog-table tbody tr:last-child td,
.channel-table tbody tr:last-child td,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 内容图 */
.content-figure,
.channel-figure,
.hero-figure,
.lead-story-media,
.playlist-figure,
.sample-figure,
.path-figure {
  margin: 0;
}

.content-figure img,
.channel-figure img,
.hero-figure img,
.lead-story-media img,
.playlist-figure img,
.sample-figure img,
.path-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--c-tint);
}

.content-figure figcaption,
.channel-figure figcaption,
.playlist-figure figcaption,
.sample-figure figcaption,
.path-figure figcaption {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* 相关入口带 */
.related-band {
  margin-top: 40px;
  padding: 24px;
  background: var(--c-tint);
  border-radius: var(--radius);
}

.related-band h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.related-band > p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  max-width: 68ch;
  margin-bottom: 16px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-links li {
  min-width: 0;
}

.related-links a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.related-links a:hover {
  border-color: var(--c-link);
  color: var(--c-link-dark);
}

.related-links span {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--c-muted);
}

/* 折叠问答 */
.faq-item {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-ink);
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--c-link);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--c-line);
}

.faq-item p {
  padding: 12px 16px 0;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.faq-item p:last-child {
  padding-bottom: 16px;
}

/* 字段列表（dl） */
.field-list {
  display: flex;
  flex-direction: column;
}

.field-list dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: 14px;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  font-size: 0.9375rem;
  color: var(--c-ink);
  margin-top: 2px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin: 0;
  padding-top: 2px;
}

.field-row dd {
  font-size: 0.9375rem;
  color: var(--c-ink);
  margin: 0;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}

.hero-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 36px var(--pad-x) 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.hero-needs {
  min-width: 0;
  order: 1;
}

.hero-visual {
  min-width: 0;
  order: 2;
}

.hero-needs .section-title {
  font-size: 1.0625rem;
  border-left-color: var(--c-warn);
}

.hero-lead {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.need-list {
  margin-top: 16px;
  border-top: 1px solid var(--c-line);
}

.need-item {
  border-bottom: 1px solid var(--c-line);
}

.need-item a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 2px;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--c-ink);
  text-decoration: none;
}

.need-item a:hover {
  color: var(--c-link);
}

.need-item .need-text {
  flex: 1 1 60%;
  min-width: 0;
}

.need-item .need-path {
  font-size: 0.8125rem;
  color: var(--c-link);
  white-space: nowrap;
}

.hero-figure {
  margin-bottom: 18px;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.hero-title {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.3;
}

.hero-desc {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--c-muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 编辑网格 */
.editorial {
  background: var(--c-page);
}

.editorial-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 40px var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 40px;
  align-items: start;
}

.editorial-main {
  min-width: 0;
}

.editorial-aside {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--c-line);
}

.editorial-main > .section-title,
.editorial-aside > .section-title {
  margin-bottom: 16px;
}

.lead-story {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
}

.lead-story-media {
  margin-bottom: 14px;
}

.lead-story-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.lead-story-title {
  font-size: 1.125rem;
  line-height: 1.4;
}

.lead-story-title a {
  color: var(--c-ink);
  text-decoration: none;
}

.lead-story-title a:hover {
  color: var(--c-link);
  text-decoration: underline;
}

.lead-story-summary {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.meta-line {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.meta-tag {
  padding: 1px 8px;
  background: var(--c-tint);
  border-radius: 4px;
  color: var(--c-link);
}

.sub-stories {
  margin-top: 20px;
  border-top: 1px solid var(--c-line);
}

.sub-story {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.sub-story h3 {
  font-size: 1rem;
}

.sub-story h3 a {
  color: var(--c-ink);
  text-decoration: none;
}

.sub-story h3 a:hover {
  color: var(--c-link);
  text-decoration: underline;
}

.sub-story p {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--c-muted);
}

/* 快讯窄栏 */
.brief-list {
  display: flex;
  flex-direction: column;
}

.brief-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}

.brief-item:first-child {
  padding-top: 0;
}

.brief-date {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--c-muted);
}

.brief-text {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--c-ink);
}

.brief-item a {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--c-link);
  text-decoration: none;
}

.brief-item a:hover {
  text-decoration: underline;
}

/* 频道分区网格 */
.channel-section,
.playlist-section,
.path-section,
.changelog-section,
.dual-section {
  background: var(--c-paper);
  border-top: 1px solid var(--c-line);
}

.channel-section > .section-head,
.channel-section > .channel-grid,
.playlist-section > .section-head,
.playlist-section > .playlist-band,
.path-section > .section-head,
.path-section > .path-steps,
.changelog-section > .section-head,
.changelog-section > .table-scroll,
.changelog-section > .section-foot-link,
.dual-section > .dual-inner {
  max-width: var(--w-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 36px;
  padding-bottom: 16px;
}

.section-head .section-note a {
  color: var(--c-link);
  text-decoration: none;
}

.section-head .section-note a:hover {
  text-decoration: underline;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 36px;
}

.channel-card {
  min-width: 0;
  padding: 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.channel-card-media {
  padding-top: 14px;
}

.channel-card .channel-figure {
  margin-bottom: 12px;
}

.channel-card .channel-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
}

.channel-name {
  font-size: 1rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-no {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.channel-scope {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--c-muted);
  flex: 1 1 auto;
}

.channel-link {
  display: inline-block;
  margin-top: 12px;
  min-height: 32px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.channel-link:hover {
  text-decoration: underline;
}

/* 专题片单样例带 */
.playlist-band {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  padding-bottom: 36px;
  align-items: start;
}

.playlist-feature {
  min-width: 0;
  padding: 16px;
  background: var(--c-page);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.playlist-figure {
  margin-bottom: 14px;
}

.playlist-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.playlist-fields {
  display: flex;
  flex-direction: column;
}

.playlist-note {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--c-muted);
}

.playlist-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.playlist-link:hover {
  text-decoration: underline;
}

.playlist-list {
  min-width: 0;
  border-top: 1px solid var(--c-line);
}

.playlist-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.playlist-item h3 {
  font-size: 0.9375rem;
}

.playlist-item h3 a {
  color: var(--c-ink);
  text-decoration: none;
}

.playlist-item h3 a:hover {
  color: var(--c-link);
  text-decoration: underline;
}

.playlist-item p {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

/* 浏览路径三步条 */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 36px;
}

.path-step {
  min-width: 0;
  padding: 16px;
  background: var(--c-tint);
  border-radius: var(--radius);
}

.path-step h3 {
  font-size: 1rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.path-step .step-no {
  font-size: 0.875rem;
  color: var(--c-link);
}

.path-step p {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--c-muted);
}

.path-step a {
  display: inline-block;
  margin-top: 10px;
  min-height: 32px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.path-step a:hover {
  text-decoration: underline;
}

/* 更新记录摘要 */
.changelog-section .table-scroll {
  margin-bottom: 12px;
}

.changelog-table {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cell-mono {
  font-size: 0.8125rem;
  color: var(--c-muted);
  white-space: nowrap;
}

.section-foot-link {
  padding-bottom: 36px;
  text-align: right;
}

.section-foot-link a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.section-foot-link a:hover {
  text-decoration: underline;
}

/* 排查与术语双栏 */
.dual-section {
  background: var(--c-page);
}

.dual-inner {
  padding-top: 36px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.dual-col {
  min-width: 0;
}

.dual-heading {
  font-size: 1.0625rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

.dual-list {
  margin-top: 4px;
}

.dual-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.dual-list li a {
  color: var(--c-link);
  text-decoration: none;
}

.dual-list li a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages · 内页通用
   -------------------------------------------------------------------------- */

.page-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
}

.page-hero .eyebrow {
  margin-bottom: 8px;
}

.page-hero .page-lead {
  margin-bottom: 4px;
}

.page-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
}

.page-head .page-eyebrow {
  margin-bottom: 8px;
}

.page-head .page-lead {
  margin-bottom: 4px;
}

.page-shell {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 40px;
  align-items: start;
}

.content-main,
.main-column {
  min-width: 0;
}

.content-aside,
.side-column {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--c-line);
}

.content-section {
  margin-bottom: 36px;
}

.content-section > .section-title {
  margin-bottom: 10px;
}

.content-section > .section-intro {
  margin-bottom: 16px;
}

.section-link {
  margin-top: 12px;
}

.section-link a {
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.section-link a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages · 浏览起点
   -------------------------------------------------------------------------- */

.path-overview {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
}

.path-overview h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.path-overview .section-intro {
  margin-bottom: 16px;
}

.path-overview .path-steps {
  padding-bottom: 0;
}

.path-overview .path-steps li {
  min-width: 0;
}

.path-overview .path-steps a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  min-height: 44px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-ink);
}

.path-overview .path-steps a:hover {
  border-color: var(--c-link);
}

.path-overview .step-num {
  font-size: 0.8125rem;
  color: var(--c-link);
}

.path-overview .step-name {
  font-size: 1rem;
  font-weight: 700;
}

.path-overview .step-out {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.step-block {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}

.step-body {
  min-width: 0;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-link);
  margin-bottom: 6px;
}

.step-body h2 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  margin-bottom: 8px;
  max-width: 60ch;
}

.step-criteria {
  min-width: 0;
  padding: 16px;
  background: var(--c-tint);
  border-radius: var(--radius);
}

.step-criteria h3 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.step-criteria ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-criteria li {
  font-size: 0.875rem;
  color: var(--c-ink);
  padding-left: 14px;
  position: relative;
}

.step-criteria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--c-link);
  border-radius: 50%;
}

.path-figure {
  margin: 28px 0;
}

.path-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
}

.misstep {
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
}

.misstep h2 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.misstep .section-intro {
  margin-bottom: 16px;
}

.misstep-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.misstep-list li {
  min-width: 0;
  padding: 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-warn);
  border-radius: var(--radius);
}

.misstep-list h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.misstep-list p {
  font-size: 0.875rem;
  color: var(--c-muted);
}

.misstep-list p + p {
  margin-top: 4px;
}

.misstep-link {
  margin-top: 14px;
  font-size: 0.875rem;
}

.misstep-link a {
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.misstep-link a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages · 频道目录
   -------------------------------------------------------------------------- */

.page-intro {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
}

.page-intro .eyebrow {
  margin-bottom: 8px;
}

.page-intro .lead {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 68ch;
}

.page-intro .fact-line {
  margin-top: 8px;
}

.topic-groups {
  margin-bottom: 32px;
}

.topic-groups > h2 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.topic-groups > .section-note {
  margin-bottom: 16px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.group-col {
  min-width: 0;
  padding: 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.group-col h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.group-col p {
  font-size: 0.875rem;
  color: var(--c-muted);
}

.layout-main-aside {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}

.layout-main-aside .content-main {
  min-width: 0;
}

.layout-main-aside .content-main .breadcrumb {
  padding-top: 0;
}

.layout-main-aside .content-main .page-header {
  margin-bottom: 20px;
}

.layout-main-aside .content-main > h2 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.layout-main-aside .content-main > .section-note {
  margin-bottom: 14px;
}

/* 频道表：桌面按列展示，手机端转为堆叠行，杜绝横向溢出 */
.channel-table {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  table-layout: fixed;
}

.channel-table th,
.channel-table td {
  padding: 10px 12px;
  white-space: normal;
  word-break: break-word;
}

.channel-table thead th {
  white-space: normal;
}

.channel-table th:nth-child(1),
.channel-table td:nth-child(1) {
  width: 72px;
}

.channel-table th:nth-child(2),
.channel-table td:nth-child(2) {
  width: 20%;
}

.channel-table th:nth-child(4),
.channel-table td:nth-child(4) {
  width: 26%;
}

.channel-table th:nth-child(5),
.channel-table td:nth-child(5) {
  width: 96px;
}

.channel-table tbody th {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-ink);
  background: transparent;
  border-bottom: 1px solid var(--c-line);
  letter-spacing: 0;
}

.channel-table tbody tr:nth-child(even) td,
.channel-table tbody tr:nth-child(even) th {
  background: #fafbfc;
}

.cell-code {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.table-footnote {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.table-footnote a {
  color: var(--c-link);
  text-decoration: none;
}

.table-footnote a:hover {
  text-decoration: underline;
}

.content-aside > h2 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.aside-note {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.aside-note a {
  color: var(--c-link);
  text-decoration: none;
}

.aside-note a:hover {
  text-decoration: underline;
}

.aside-link {
  margin-top: 14px;
  font-size: 0.875rem;
}

.aside-link a {
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.aside-link a:hover {
  text-decoration: underline;
}

.channel-playlist {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 36px;
}

.channel-playlist > h2 {
  grid-column: 1 / -1;
  font-size: 1.125rem;
}

.channel-playlist .channel-figure {
  min-width: 0;
}

.channel-playlist .channel-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.channel-playlist-text {
  min-width: 0;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.channel-playlist-text p + p {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   pages · 片单样例
   -------------------------------------------------------------------------- */

.sample-main {
  margin-bottom: 36px;
}

.sample-main > h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.sample-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 28px;
  align-items: start;
}

.sample-figure {
  min-width: 0;
}

.sample-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
}

.sample-fields {
  min-width: 0;
  padding: 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.fields-title {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.sample-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--c-muted);
  padding: 12px 14px;
  background: var(--c-tint);
  border-left: 3px solid var(--c-link);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.writing-compare {
  margin-bottom: 36px;
}

.writing-compare > h2 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.writing-compare > .section-lead {
  margin-bottom: 16px;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-item {
  padding: 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.compare-heading {
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}

.compare-item p {
  font-size: 0.9375rem;
  color: var(--c-ink);
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0;
}

.compare-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
  padding-top: 2px;
}

.compare-problem {
  color: var(--c-warn);
}

.compare-rewrite {
  color: var(--c-ink);
}

.sample-nav {
  margin-bottom: 36px;
}

.sample-nav > h2 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.sample-nav > .section-lead {
  margin-bottom: 16px;
}

.sample-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sample-nav-item {
  min-width: 0;
}

.sample-nav-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  min-height: 44px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
}

.sample-nav-item a:hover {
  border-color: var(--c-link);
}

.sample-nav-direction {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-link);
}

.sample-nav-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink);
}

.sample-nav-scope {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.section {
  padding: 32px 0;
  border-bottom: 1px solid var(--c-line);
}

.section .section-title {
  margin-bottom: 8px;
}

.section .section-intro {
  margin-bottom: 18px;
}

.log-group {
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
}

.log-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 8px;
}

.log-date-text {
  font-size: 0.9375rem;
  color: var(--c-ink);
}

.log-version {
  font-size: 0.75rem;
  color: var(--c-link);
  padding: 1px 8px;
  background: var(--c-tint);
  border-radius: 4px;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-item {
  padding: 12px 14px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.log-object {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-ink);
}

.log-type {
  font-size: 0.875rem;
  color: var(--c-link);
  margin-top: 2px;
}

.log-scope {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-top: 2px;
}

.section-figure .content-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  height: auto;
}

.version-list,
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.version-item,
.check-item {
  padding: 14px 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.version-name,
.check-name {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.version-item p,
.check-item p {
  font-size: 0.875rem;
  color: var(--c-muted);
}

.check-item a {
  color: var(--c-link);
  text-decoration: none;
}

.check-item a:hover {
  text-decoration: underline;
}

.section-related .related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-item a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.related-item a:hover {
  border-color: var(--c-link);
  color: var(--c-link-dark);
}

/* --------------------------------------------------------------------------
   pages · 排查清单
   -------------------------------------------------------------------------- */

.steps-section .step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  padding: 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-link);
}

.step-item .step-num {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--c-link);
  margin-bottom: 4px;
}

.step-item .step-basis {
  font-size: 0.9375rem;
  color: var(--c-ink);
}

.step-item .step-hint {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.block-map-section .content-figure {
  margin-bottom: 12px;
}

.block-map-section .content-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  height: auto;
}

.block-map-section > p {
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.faq-section .section-intro {
  margin-bottom: 14px;
}

.describe-section p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  margin-bottom: 10px;
  max-width: 68ch;
}

.aside-block {
  margin-bottom: 28px;
}

.aside-block > h2 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.aside-intro {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  padding: 12px 14px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--c-ink);
}

.related-block .related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-block .related-list a {
  display: block;
  padding: 8px 0;
  min-height: 32px;
  font-size: 0.9375rem;
  color: var(--c-link);
  text-decoration: none;
}

.related-block .related-list a:hover {
  text-decoration: underline;
}

.more-section {
  margin-top: 8px;
}

.more-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.more-links a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.more-links a:hover {
  border-color: var(--c-link);
  color: var(--c-link-dark);
}

/* --------------------------------------------------------------------------
   pages · 字段与术语
   -------------------------------------------------------------------------- */

.anchor-bar {
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--c-tint);
  border-radius: var(--radius);
}

.anchor-bar ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.anchor-bar a {
  display: block;
  padding: 8px 10px;
  min-height: 40px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
  text-align: center;
}

.anchor-bar a:hover {
  border-color: var(--c-link);
  color: var(--c-link-dark);
}

.page-glossary .page-layout {
  display: block;
}

.field-table {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  table-layout: fixed;
}

.field-table th:nth-child(1),
.field-table td:nth-child(1) {
  width: 22%;
}

.field-table th:nth-child(2),
.field-table td:nth-child(2) {
  width: 44%;
}

.field-table th:nth-child(3),
.field-table td:nth-child(3) {
  width: 34%;
}

.field-table th,
.field-table td {
  white-space: normal;
  word-break: break-word;
}

.field-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-link);
}

.field-table td a {
  color: var(--c-link);
  text-decoration: none;
}

.field-table td a:hover {
  text-decoration: underline;
}

.term-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.term-group {
  min-width: 0;
  padding: 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.term-group h3 {
  font-size: 0.9375rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}

.term-list dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-link);
  margin-top: 10px;
}

.term-list dt:first-child {
  margin-top: 0;
}

.term-list dd {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-top: 2px;
}

.page-glossary .content-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  height: auto;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  padding: 14px 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.rule-item h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.rule-scope,
.rule-demand {
  font-size: 0.875rem;
  color: var(--c-muted);
}

.rule-demand {
  margin-top: 4px;
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--pad-x);
}

.error-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-link);
}

.error-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 12px;
}

.error-text {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.error-links {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-links a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-link);
  text-decoration: none;
}

.error-links a:hover {
  border-color: var(--c-link);
  color: var(--c-link-dark);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .primary-nav a {
    padding: 8px 8px;
    font-size: 0.875rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-visual {
    order: 1;
  }

  .hero-needs {
    order: 2;
  }

  .editorial-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .editorial-aside {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--c-line);
    padding-top: 24px;
  }

  .playlist-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout,
  .layout-main-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .content-aside,
  .side-column {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--c-line);
    padding-top: 24px;
  }

  .step-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .channel-playlist {
    grid-template-columns: minmax(0, 1fr);
  }

  .sample-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .term-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    flex: 0 0 100%;
    margin-left: 0;
    display: none;
    border-top: 1px solid var(--c-line);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  .primary-nav a {
    padding: 12px 4px;
    min-height: 44px;
    font-size: 1rem;
    border-bottom: 1px solid var(--c-line);
  }

  .primary-nav li:last-child a {
    border-bottom: 0;
  }

  .primary-nav a.is-current {
    border-bottom-color: var(--c-link);
  }

  .hero-inner {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .editorial-inner,
  .dual-inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .section-head {
    padding-top: 28px;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .dual-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .misstep-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-links,
  .section-related .related-list,
  .more-links,
  .sample-nav-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .anchor-bar ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .section-foot-link {
    text-align: left;
  }

  .compare-item p {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .field-row dt {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .inner-main,
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner,
  .editorial-inner,
  .dual-inner,
  .section-head,
  .channel-section > .channel-grid,
  .playlist-section > .playlist-band,
  .path-section > .path-steps,
  .changelog-section > .table-scroll,
  .changelog-section > .section-foot-link,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .anchor-bar ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* 频道表在窄屏改为卡片式堆叠，避免横向滚动与溢出 */
  .channel-table {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .channel-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .channel-table tbody {
    display: block;
  }

  .channel-table tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
  }

  .channel-table tbody tr:nth-child(even) td,
  .channel-table tbody tr:nth-child(even) th {
    background: transparent;
  }

  .channel-table tbody th,
  .channel-table tbody td {
    display: block;
    width: auto !important;
    padding: 4px 0;
    border-bottom: 0;
    background: transparent;
  }

  .channel-table tbody th {
    font-size: 1rem;
    padding-bottom: 6px;
  }

  .channel-table tbody td::before {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: var(--c-muted);
    margin-bottom: 1px;
  }

  .channel-table tbody td:nth-child(1)::before {
    content: "编号";
  }

  .channel-table tbody td:nth-child(3)::before {
    content: "收录范围";
  }

  .channel-table tbody td:nth-child(4)::before {
    content: "不含内容";
  }

  .channel-table tbody td:nth-child(5)::before {
    content: "片单入口";
  }

  .channel-table tbody td:nth-child(5) a {
    display: inline-block;
    padding: 6px 0;
    min-height: 32px;
    font-weight: 700;
  }

  .field-table {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .field-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .field-table tbody {
    display: block;
  }

  .field-table tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
  }

  .field-table tbody td {
    display: block;
    width: auto !important;
    padding: 4px 0;
    border-bottom: 0;
  }

  .field-table tbody td::before {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: var(--c-muted);
    margin-bottom: 1px;
  }

  .field-table tbody td:nth-child(1)::before {
    content: "字段名";
  }

  .field-table tbody td:nth-child(2)::before {
    content: "含义";
  }

  .field-table tbody td:nth-child(3)::before {
    content: "取值示例";
  }

  .changelog-table {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .changelog-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .changelog-table tbody {
    display: block;
  }

  .changelog-table tbody tr {
    display: block;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
  }

  .changelog-table tbody td {
    display: block;
    width: auto;
    padding: 3px 0;
    border-bottom: 0;
  }

  .changelog-table tbody td::before {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: var(--c-muted);
    margin-bottom: 1px;
  }

  .changelog-table tbody td:nth-child(1)::before {
    content: "日期";
  }

  .changelog-table tbody td:nth-child(2)::before {
    content: "变更对象";
  }

  .changelog-table tbody td:nth-child(3)::before {
    content: "影响范围";
  }

  .cell-mono {
    white-space: normal;
  }

  .playlist-feature,
  .lead-story,
  .channel-playlist,
  .sample-fields {
    padding: 14px;
  }

  .related-band {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !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;
  }
}
