/* ==========================================================================
   时刻美 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --canvas: #f5f5f2;
  --paper: #fdfdfb;
  --ink: #1f1f1c;
  --muted: #6f6a61;
  --accent: #a4582c;
  --line: #d9d8d0;
  --line-strong: #c3c1b7;
  --radius: 6px;
  --radius-sm: 4px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --container: 1160px;
  --pad: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--canvas);
  color: var(--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(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #7f3f1c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad) 0;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding-bottom: 14px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.brand-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.site-nav {
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.nav-list > li {
  display: flex;
}

.nav-link {
  display: inline-block;
  padding: 12px 2px 11px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--line-strong);
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(164, 88, 44, 0.06);
}

.nav-toggle {
  display: none;
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad) 72px;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px var(--pad) 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

/* 页脚 */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--pad) 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 44ch;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

.footer-policy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--pad) 30px;
  border-top: 1px solid var(--line);
}

.footer-policy p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-policy a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-policy a:hover,
.footer-policy a:focus-visible {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 60ch;
}

.section-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
  max-width: 68ch;
}

.section-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 70ch;
}

.section-lede {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}

.archive-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 7px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

/* 页面标题区（内页摘要 + 元数据） */

.page-head,
.page-title-block,
.page-title-section {
  margin-bottom: 30px;
}

.page-summary,
.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 74ch;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.page-meta .meta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-meta .meta-value {
  color: var(--ink);
  font-size: 13px;
}

.page-meta .meta-sep {
  color: var(--line-strong);
}

.page-meta .meta-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 交叉链接 */

.cross-links,
.cross-section {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.cross-links-title,
.cross-links h2,
.cross-section h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.cross-links-list,
.cross-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
}

.cross-links-list li,
.cross-link-list li {
  font-size: 15px;
  line-height: 1.7;
}

.cross-link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.cross-link-list span {
  font-size: 13px;
  color: var(--muted);
}

/* 通用数据表 */

.data-table,
.batch-table,
.duty-table {
  background: var(--paper);
}

.data-table th,
.batch-table th,
.duty-table th {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: #f0efea;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td,
.batch-table td,
.duty-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.data-table tbody tr:last-child td,
.batch-table tbody tr:last-child td,
.duty-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.batch-table tbody tr:hover,
.duty-table tbody tr:hover {
  background: #f7f6f1;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* 任务工具栏 */

.task-bar {
  margin: 0 calc(var(--pad) * -1) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.task-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.task-links a {
  font-size: 14px;
  padding: 4px 0;
}

.task-bar-note {
  font-size: 13px;
  color: var(--muted);
}

.task-bar-note .mono {
  color: var(--accent);
}

/* 档案焦点区 */

.hero-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-kicker .mono {
  color: var(--accent);
}

.hero-text h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-summary {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 46ch;
}

.hero-points {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 48ch;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #8c4a24;
  border-color: #8c4a24;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-visual figcaption {
  padding: 0 2px;
}

/* 档案总览四格 */

.overview-grid {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.overview-grid .section-title {
  margin-bottom: 22px;
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.overview-card:hover {
  border-color: var(--line-strong);
  background: #faf9f5;
}

.overview-card h3 {
  font-size: 17px;
}

.overview-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  flex: 1 1 auto;
}

.overview-card a {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

/* 频道索引表 */

.channel-index {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.index-table {
  min-width: 640px;
}

.index-table th:nth-child(1),
.index-table td:nth-child(1) {
  width: 18%;
}

.index-table th:nth-child(2),
.index-table td:nth-child(2) {
  width: 38%;
}

.index-table th:nth-child(3),
.index-table td:nth-child(3) {
  width: 26%;
}

.index-table th:nth-child(4),
.index-table td:nth-child(4) {
  width: 18%;
}

.index-table td:first-child {
  font-weight: 600;
}

.index-table td:nth-child(4) a {
  font-weight: 600;
}

/* 专题片单推荐 */

.playlist-picks {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.playlist-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.playlist-card {
  min-width: 0;
}

.playlist-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
}

.playlist-card-link:hover,
.playlist-card-link:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

.playlist-cover {
  position: relative;
  margin: 0;
  background: #eceae3;
}

.playlist-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.playlist-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.playlist-body h3 {
  font-size: 17px;
  line-height: 1.45;
}

.playlist-body .meta-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.playlist-body p:last-child {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 当期条目带 */

.entry-strip {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.entry-strip .section-title {
  margin-bottom: 22px;
}

.entry-strip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.entry-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-row:hover {
  border-color: var(--line-strong);
  background: #faf9f5;
}

.entry-thumb {
  position: relative;
  margin: 0;
  background: #eceae3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.entry-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.entry-thumb .archive-badge {
  top: 4px;
  left: 4px;
  padding: 1px 5px;
  font-size: 10px;
}

.entry-info {
  min-width: 0;
}

.entry-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2px;
}

.entry-info h3 {
  font-size: 16px;
  line-height: 1.5;
}

.entry-channel {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.entry-note {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-note h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.entry-note p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 10px;
}

.entry-note a {
  font-size: 14px;
  font-weight: 600;
}

/* 更新批次摘要 */

.batch-summary {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.batch-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.batch-row {
  display: grid;
  grid-template-columns: 100px 180px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.batch-row:last-child {
  border-bottom: 0;
}

.batch-row:hover {
  background: #f7f6f1;
}

.batch-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.batch-scope {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.batch-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.batch-more {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

/* 内容边界与栏目交叉索引 */

.boundary-index {
  padding: 48px 0 0;
}

.boundary-index .section-title {
  margin-bottom: 22px;
}

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.boundary-text {
  min-width: 0;
}

.boundary-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}

.boundary-text a {
  font-size: 15px;
  font-weight: 600;
}

.cross-index ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.cross-index a {
  font-size: 15px;
  display: inline-block;
  padding: 4px 0;
}

/* --------------------------------------------------------------------------
   pages · 频道分类
   -------------------------------------------------------------------------- */

.layout-shell {
  display: block;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.channel-block-list {
  margin-bottom: 40px;
}

.channel-block-list > h2,
.channel-map > h2,
.channel-select > h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.channel-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.channel-block:first-of-type {
  padding-top: 26px;
}

.channel-block:last-of-type {
  border-bottom: 0;
}

.channel-figure {
  position: relative;
  margin: 0;
  background: #eceae3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.channel-figure figcaption {
  padding: 8px 10px 10px;
  font-size: 13px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.channel-body {
  min-width: 0;
}

.channel-body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.channel-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 8px;
}

.channel-body p:last-child {
  margin-bottom: 0;
}

.channel-body a {
  font-weight: 600;
}

.channel-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.channel-map {
  margin-bottom: 40px;
  padding-top: 12px;
}

.channel-map .data-table {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-map .data-table th:nth-child(1),
.channel-map .data-table td:nth-child(1) {
  width: 40%;
}

.channel-select {
  padding-top: 12px;
}

.select-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.select-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.select-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.section-tail {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
}

.aside-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-card h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.aside-card > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 10px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: rule;
}

.rule-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  counter-increment: rule;
}

.rule-list li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.aside-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.aside-link-list li {
  font-size: 14px;
  line-height: 1.7;
}

.aside-link-list a {
  font-weight: 600;
}

.figure-caption {
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */

.container {
  display: block;
}

.rules-section {
  margin-bottom: 40px;
}

.rules-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.rules-section > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 74ch;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-left: 0;
  counter-reset: ruleitem;
}

.rules-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  counter-increment: ruleitem;
}

.rules-list li::before {
  content: counter(ruleitem);
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.rules-list strong {
  font-weight: 700;
  color: var(--ink);
}

.playlist-list-section {
  margin-bottom: 44px;
}

.playlist-list-section h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.playlist-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.playlist-item:hover {
  border-color: var(--line-strong);
  background: #faf9f5;
}

.playlist-thumb {
  position: relative;
  margin: 0;
  background: #eceae3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.playlist-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.playlist-body {
  min-width: 0;
}

.playlist-name {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.playlist-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.playlist-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.cross-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.cross-example {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cross-example-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.cross-example-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 12px;
}

.cross-compose {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cross-compose dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.cross-compose dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.record-intro {
  margin-bottom: 32px;
}

.record-intro h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.record-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 74ch;
  margin-bottom: 8px;
}

.batch-table-section {
  margin-bottom: 44px;
}

.batch-table-section h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.batch-table {
  min-width: 760px;
  margin-top: 16px;
}

.batch-table th:nth-child(1),
.batch-table td:nth-child(1) {
  width: 12%;
}

.batch-table th:nth-child(2),
.batch-table td:nth-child(2) {
  width: 20%;
}

.batch-table th:nth-child(3),
.batch-table td:nth-child(3) {
  width: 14%;
}

.batch-table th:nth-child(5),
.batch-table td:nth-child(5) {
  width: 18%;
}

.cell-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}

.change-types {
  margin-bottom: 44px;
}

.change-types h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.change-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.change-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.change-card h3 {
  font-size: 17px;
}

.change-basis {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.change-basis .meta-label {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.change-card > p:last-child {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.batch-map {
  margin-bottom: 20px;
  padding-top: 8px;
}

.batch-map h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.batch-map-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.media-figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 8px 12px 10px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.batch-map-text {
  min-width: 0;
}

.batch-map-text > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 12px;
}

.map-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
}

.map-list li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.map-list strong {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages · 观看步骤
   -------------------------------------------------------------------------- */

.sidebar-left .page-layout {
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 36px;
}

.steps-index {
  position: sticky;
  top: 20px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-self: start;
}

.steps-index-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}

.steps-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.steps-index-list li {
  display: block;
}

.steps-index-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  border: 1px solid transparent;
}

.steps-index-link .mono {
  color: var(--accent);
}

.steps-index-link:hover,
.steps-index-link:focus-visible {
  background: #f4f2ec;
  color: var(--ink);
  text-decoration: none;
}

.steps-index-link.is-current {
  background: #f2ede4;
  border-color: var(--line-strong);
  color: var(--accent);
  font-weight: 600;
}

.steps-index-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.main-column {
  min-width: 0;
}

.steps-flow {
  margin-bottom: 40px;
}

.steps-flow h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

.step-block {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step-block:first-of-type {
  border-top: 1px solid var(--line);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 4px;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step-body > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-criteria {
  padding: 10px 14px;
  background: #f4f2ec;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.step-link {
  font-size: 14px;
  font-weight: 600;
}

.verify-checklist {
  margin-bottom: 40px;
  padding-top: 8px;
}

.verify-checklist h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.verify-figure {
  margin: 20px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.verify-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.verify-figure figcaption {
  padding: 8px 12px 10px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: check;
}

.checklist-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  counter-increment: check;
}

.checklist-list li::before {
  content: counter(check);
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.checklist-list strong {
  color: var(--ink);
  font-weight: 700;
}

.common-cases {
  margin-bottom: 40px;
}

.common-cases h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.case-item {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-item summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.case-item summary::-webkit-details-marker {
  display: none;
}

.case-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  line-height: 1;
}

.case-item[open] summary::after {
  content: "–";
}

.case-item summary:hover {
  background: #f7f6f1;
}

.case-body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--line);
}

.case-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 10px;
}

.next-links {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.next-links h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.next-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
}

.next-link-list li {
  font-size: 15px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 使用说明
   -------------------------------------------------------------------------- */

.page-license-note .page-head,
.page-license-note .doc-section,
.page-license-note .doc-toc,
.page-license-note .doc-related {
  max-width: 820px;
}

.doc-section {
  margin-bottom: 40px;
  padding-top: 8px;
}

.doc-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.scope-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.scope-col {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-col h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.scope-do h3 {
  color: var(--ink);
}

.scope-dont h3 {
  color: var(--muted);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}

.scope-do .scope-list li::before {
  background: var(--accent);
}

.doc-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  padding: 12px 16px;
  background: #f4f2ec;
  border-radius: var(--radius-sm);
}

.doc-note a {
  font-weight: 600;
}

.doc-figure {
  margin: 20px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.doc-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.doc-figure figcaption {
  padding: 8px 14px 10px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.citation-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.citation-block:last-child {
  border-bottom: 0;
}

.citation-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.citation-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.correction-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.correction-block:last-of-type {
  border-bottom: 0;
}

.correction-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.correction-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.doc-toc {
  margin-bottom: 40px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-toc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}

.doc-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.doc-toc li {
  font-size: 15px;
}

.doc-toc a {
  display: inline-block;
  padding: 4px 0;
}

.doc-related {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.doc-related h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
}

.related-links li {
  font-size: 15px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 站点地图
   -------------------------------------------------------------------------- */

.sitemap-index {
  margin-bottom: 44px;
}

.sitemap-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 20px;
}

.sitemap-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.sitemap-group {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.group-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.group-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 10px;
}

.group-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.group-links li {
  font-size: 15px;
  line-height: 1.7;
}

.link-note {
  font-size: 13px;
  color: var(--muted);
}

.sitemap-duties {
  margin-bottom: 44px;
}

.duty-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.duty-table th:nth-child(1),
.duty-table td:nth-child(1) {
  width: 22%;
}

.duty-table th:nth-child(2),
.duty-table td:nth-child(2) {
  width: 30%;
}

.duty-table td:first-child {
  font-weight: 600;
}

.sitemap-rules {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 8px;
}

.rules-body {
  min-width: 0;
}

.rules-body h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.rules-body > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 12px;
}

.rules-figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rules-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.rules-figure figcaption {
  padding: 8px 12px 10px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  justify-content: center;
  padding: 72px var(--pad) 88px;
}

.error-inner {
  max-width: 620px;
  width: 100%;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-title {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
}

.error-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 20px;
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error-paths li {
  font-size: 15px;
  line-height: 1.7;
}

.error-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
}

.error-home:hover,
.error-home:focus-visible {
  background: #8c4a24;
  border-color: #8c4a24;
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-focus {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 32px;
  }

  .overview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playlist-item {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 14px var(--pad) 0;
    position: relative;
  }

  .brand-row {
    padding-bottom: 12px;
  }

  .brand {
    font-size: 20px;
  }

  .site-nav {
    border-top: 0;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    right: var(--pad);
    top: 16px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
  }

  .home-main {
    padding-bottom: 56px;
  }

  .inner-main {
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .task-bar {
    margin: 0 calc(var(--pad) * -1);
  }

  .task-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .task-links {
    gap: 4px 18px;
  }

  .hero-focus {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 34px 0 40px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-summary {
    max-width: none;
  }

  .hero-points {
    max-width: none;
  }

  .overview-grid,
  .channel-index,
  .playlist-picks,
  .entry-strip,
  .batch-summary {
    padding: 36px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .overview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .playlist-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .entry-strip-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .entry-row {
    grid-template-columns: 80px minmax(0, 1fr);
    row-gap: 6px;
  }

  .entry-channel {
    grid-column: 2;
    white-space: normal;
  }

  .batch-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .boundary-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .content-aside {
    order: 2;
  }

  .channel-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .channel-figure {
    max-width: 420px;
  }

  .steps-index {
    position: static;
    order: 2;
  }

  .main-column {
    order: 1;
  }

  .steps-index-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .steps-index-list li {
    flex: 1 1 120px;
  }

  .steps-index-link {
    justify-content: flex-start;
    font-size: 13px;
  }

  .step-block {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .step-number {
    font-size: 22px;
  }

  .playlist-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .playlist-thumb {
    max-width: 420px;
  }

  .cross-examples {
    grid-template-columns: minmax(0, 1fr);
  }

  .change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .batch-map-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .sitemap-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .sitemap-rules {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .scope-compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px 28px;
    padding: 32px var(--pad) 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-policy {
    padding: 14px var(--pad) 26px;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 16px;
  }

  body.site-body {
    font-size: 15px;
  }

  .brand-tagline {
    flex-basis: 100%;
    font-size: 12px;
  }

  .breadcrumb {
    font-size: 12px;
    gap: 6px;
    margin-bottom: 14px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
    justify-content: center;
  }

  .overview-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .change-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .entry-info h3 {
    font-size: 15px;
  }

  .cross-index ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-row {
    padding: 12px 14px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .index-table {
    min-width: 560px;
  }

  .batch-table {
    min-width: 680px;
  }

  .duty-table {
    min-width: 560px;
  }

  .cross-compose {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .cross-compose dt {
    margin-top: 8px;
  }

  .cross-compose dt:first-of-type {
    margin-top: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-col ul {
    gap: 0;
  }

  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .error-main {
    padding: 40px var(--pad) 56px;
  }

  .error-inner {
    padding: 24px 20px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-home {
    width: 100%;
    justify-content: center;
  }

  .doc-toc ul {
    flex-direction: column;
    gap: 0;
  }

  .doc-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
