/* ==========================================================================
   天美的全部视频 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #FBFAF7;
  --panel: #F3F1EA;
  --ink: #14181D;
  --ink-soft: #5A6068;
  --teal: #0F4C5C;
  --teal-dark: #0A3743;
  --amber: #C8862A;
  --brick: #A8332A;
  --line: #DCD7CC;
  --line-strong: #C4BEB0;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1120px;
  --gutter: 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(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

time {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  min-height: 64px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.nav-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-list a:hover {
  color: var(--teal);
  border-bottom-color: var(--line-strong);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--teal);
  font-weight: 600;
  border-bottom-color: var(--teal);
}

.nav-directory {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--teal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  white-space: nowrap;
}

.nav-directory:hover {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
  text-decoration: none;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* 主内容 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  padding: 18px 0 0;
}

.page-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.page-head {
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-label,
.page-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--teal);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--panel);
}

.page-lead {
  max-width: 42em;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}

.page-updated,
.page-meta {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-style: italic;
}

/* 通用双栏（默认主内容在前，侧栏在后） */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

/* 页脚 */
.site-footer {
  margin-top: 24px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter) 28px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group li a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-group li a:hover {
  color: var(--teal);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.footer-brand {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-desc {
  margin: 0;
  max-width: 52em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

.section-title {
  position: relative;
  margin: 0 0 16px;
  padding-left: 24px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--teal);
}

.section-lead {
  margin: 0 0 20px;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-intro {
  margin: 0 0 20px;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.section-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.source-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.65;
  font-style: italic;
  color: var(--ink-soft);
}

/* 图片容器与图注 */
figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--panel);
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  font-style: italic;
  color: var(--ink-soft);
}

/* 行列表（首页 + 频道目录共用结构） */
.directory-rows,
.channel-rows {
  border-top: 1px solid var(--line);
}

.directory-row,
.channel-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.2fr) 24px;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.directory-row:hover,
.directory-row:focus-visible,
.channel-row:hover,
.channel-row:focus-visible {
  background: var(--panel);
  border-left-color: var(--teal);
  color: var(--ink);
  text-decoration: none;
}

.row-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.row-scope {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.row-sample {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.row-arrow {
  justify-self: end;
  font-size: 16px;
  line-height: 1;
  color: var(--teal);
}

/* 筛选按钮组 */
.filter-buttons,
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}

/* 侧栏块 */
.aside-block,
.side-card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-title,
.side-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.aside-note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.side-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* 相关内容链接条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 18px var(--gutter) 0;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.related-links-item {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-bottom: 56px;
}

/* 焦点区 */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 44px;
}

.hero-text {
  min-width: 0;
}

.hero-label {
  display: inline-block;
  margin: 0 0 16px;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--teal);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--panel);
}

.hero-text h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 34em;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--paper);
  border: 1px solid var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--paper);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: var(--panel);
  color: var(--teal);
  text-decoration: none;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* 频道标签索引条 */
.channel-tags {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
}

.tag-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.tag-strip li {
  flex: 0 0 auto;
  width: 220px;
}

.channel-tag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.channel-tag:hover {
  border-color: var(--teal);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

.tag-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--teal);
}

.tag-scope {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* 近期指南 */
.recent-guides {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

.guide-list {
  border-top: 1px solid var(--line);
}

.guide-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.guide-date {
  grid-row: 1 / span 2;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.guide-link {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--teal);
}

.guide-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 首页双栏主体 */
.home-main .page-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

.main-column {
  min-width: 0;
}

.main-column > section + section {
  margin-top: 44px;
}

/* 频道目录行列表 */
.directory-figure {
  margin-top: 24px;
}

.directory-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 专题片单精选 */
.playlist-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.playlist-card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.card-logic {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.card-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.card-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

/* 观看路径三步 */
.path-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.path-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.path-step .step-no {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--amber);
}

.path-step .step-body {
  min-width: 0;
}

.step-conclusion {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.step-basis {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 右栏 */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.snapshot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snapshot-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--line-strong);
}

.snapshot-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.snapshot-month {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
}

.boundary-note {
  border-left: 3px solid var(--brick);
  background: var(--paper);
}

.boundary-note p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 频道目录
   -------------------------------------------------------------------------- */

/* 侧栏在左：DOM 为 .page-layout.sidebar-left，直接子元素 aside → .page-content */
.page-layout.sidebar-left {
  grid-template-columns: 300px minmax(0, 1fr);
}

/* 兼容祖先节点带 .sidebar-left 的情形 */
.sidebar-left .page-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.page-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.page-content {
  min-width: 0;
}

.content-section + .content-section {
  margin-top: 40px;
}

.content-figure {
  margin-top: 20px;
}

.content-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.group-title {
  margin: 28px 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.group-title:first-of-type {
  margin-top: 20px;
}

.channel-row {
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.6fr) minmax(0, 1.2fr) 24px;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legend-list li {
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.alt-entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */

.playlist-shell {
  max-width: 880px;
  margin: 0;
}

.playlist-logic {
  margin-bottom: 44px;
}

.playlist-figure {
  margin-top: 20px;
}

.playlist-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.playlist-list {
  margin-bottom: 44px;
}

.playlist-record {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.playlist-record:last-child {
  border-bottom: 1px solid var(--line);
}

.playlist-record-head {
  margin-bottom: 16px;
}

.playlist-name {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.playlist-scene {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.playlist-record-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
}

.playlist-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: playlist-step;
}

.playlist-steps li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  counter-increment: playlist-step;
}

.playlist-steps li::before {
  content: counter(playlist-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}

.playlist-conclusion {
  padding: 14px 16px;
  background: var(--panel);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.conclusion-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.playlist-conclusion p:last-child {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.playlist-mapping {
  margin-bottom: 44px;
}

.mapping-table {
  font-size: 15px;
  line-height: 1.7;
}

.mapping-table caption {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  color: var(--ink-soft);
}

.mapping-table th,
.mapping-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.mapping-table thead th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--panel);
  border-bottom: 1px solid var(--line-strong);
}

.mapping-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.mapping-table tbody td {
  color: var(--ink-soft);
}

.playlist-backlink {
  padding-top: 8px;
}

.backlink-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */

.watch-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.watch-main {
  min-width: 0;
}

.watch-main > section + section {
  margin-top: 40px;
}

.conclusion-box {
  padding: 22px 24px;
  background: var(--panel);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.conclusion-intro {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.conclusion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conclusion-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.conclusion-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--amber);
}

.conclusion-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prepare-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--line-strong);
}

.prepare-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.prepare-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1;
  color: var(--paper);
  background: var(--teal);
  border-radius: 3px;
}

.prepare-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-item .step-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--amber);
}

.step-item .step-body {
  min-width: 0;
}

.step-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.step-action {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.step-criteria {
  margin: 0;
  padding-left: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-left: 2px solid var(--line-strong);
}

.pitfall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pitfall-item {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pitfall-claim {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--brick);
}

.pitfall-fix {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.guide-figure {
  margin-top: 20px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.watch-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.anchor-list a {
  display: block;
  padding: 4px 0;
  color: var(--ink-soft);
}

.anchor-list a:hover {
  color: var(--teal);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 更新归档
   -------------------------------------------------------------------------- */

.archive-rule {
  margin-bottom: 40px;
}

.archive-rule h2,
.archive-months h2,
.tag-guide h2,
.archive-related h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 24px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.archive-rule h2::before,
.archive-months h2::before,
.tag-guide h2::before,
.archive-related h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--teal);
}

.archive-rule p {
  max-width: 42em;
  font-size: 16px;
  line-height: 1.85;
}

.archive-figure {
  margin-top: 20px;
  max-width: 720px;
}

.archive-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.archive-months {
  margin-bottom: 40px;
}

.archive-month {
  border-top: 1px solid var(--line);
}

.archive-month:last-child {
  border-bottom: 1px solid var(--line);
}

.month-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 0 10px 14px;
  background: var(--panel);
  border-left: 3px solid var(--teal);
}

.month-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--teal);
}

.month-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.record-list {
  padding: 4px 0 8px;
}

.record-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0 10px 14px;
  border-bottom: 1px dotted var(--line-strong);
}

.record-row:last-child {
  border-bottom: none;
}

.record-date {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.record-name {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.record-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-new {
  color: var(--teal);
  background: rgba(15, 76, 92, 0.08);
  border: 1px solid rgba(15, 76, 92, 0.28);
}

.tag-revise {
  color: #8A5A12;
  background: rgba(200, 134, 42, 0.1);
  border: 1px solid rgba(200, 134, 42, 0.34);
}

.tag-remove {
  color: var(--brick);
  background: rgba(168, 51, 42, 0.08);
  border: 1px solid rgba(168, 51, 42, 0.3);
}

.tag-guide {
  margin-bottom: 40px;
}

.tag-guide-intro {
  max-width: 42em;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.85;
}

.tag-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tag-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.tag-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.tag-card p:last-child {
  margin-bottom: 0;
}

.archive-related .related-links {
  margin: 16px 0 0;
  padding: 0;
  border-top: none;
}

.archive-related .related-links li a {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · 常见问题
   -------------------------------------------------------------------------- */

.faq-group,
.faq-feedback {
  max-width: 820px;
}

.faq-group {
  margin-bottom: 44px;
}

.faq-group-head {
  margin-bottom: 18px;
}

.faq-group-index {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.faq-group-head h2 {
  position: relative;
  margin: 0 0 8px;
  padding-left: 24px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.faq-group-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--teal);
}

.faq-group-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.faq-figure {
  margin-bottom: 20px;
}

.faq-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  color: var(--teal);
}

.faq-answer {
  padding: 0 0 18px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.faq-link-line {
  font-size: 14px;
  color: var(--ink-soft);
}

.faq-feedback {
  padding: 22px 24px;
  background: var(--panel);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.faq-feedback h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.faq-feedback p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.faq-feedback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · 内容边界
   -------------------------------------------------------------------------- */

.boundary-body {
  max-width: 860px;
}

.boundary-section {
  margin-bottom: 44px;
}

.boundary-section > h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 24px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.boundary-section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--teal);
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0 18px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
}

.principle-num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--amber);
}

.principle-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.principle-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.source-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.source-text {
  min-width: 0;
}

.source-text p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.source-figure {
  min-width: 0;
}

.source-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.limits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.limit-item {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.limit-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--brick);
}

.limit-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feedback-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.feedback-step .step-num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--amber);
}

.feedback-step h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.feedback-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-related {
  padding-top: 8px;
}

.boundary-related h2 {
  position: relative;
  margin: 0 0 12px;
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.boundary-related h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--teal);
}

.boundary-related .related-links {
  margin: 0;
  padding: 0;
  border-top: none;
}

.boundary-related .related-links li a {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px var(--gutter) 72px;
}

.error-inner {
  width: 100%;
  max-width: 640px;
}

.error-code {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.error-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.25;
  font-weight: 700;
}

.error-lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 32px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
}

.error-button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--paper);
  text-decoration: none;
}

.error-link {
  font-size: 15px;
  font-weight: 600;
}

.error-next {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-next-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.error-next-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
}

.error-next-list a {
  display: inline-block;
  padding: 2px 0;
}

.error-note {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .page-layout.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .watch-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .hero-inner {
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-directory {
    order: 4;
  }

  .site-nav {
    order: 5;
    flex: 1 1 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line);
  }

  .nav-list a.is-current::after {
    content: "当前";
    margin-left: 8px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--paper);
    background: var(--teal);
    border-radius: 3px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero-media {
    order: 2;
  }

  .playlist-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .playlist-record-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pitfall-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 内页双栏统一改为单列，主内容在前，辅助侧栏在后 */
  .page-layout,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout,
  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-aside,
  .watch-aside {
    order: 2;
  }

  .page-content,
  .watch-main {
    order: 1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
    line-height: 1.8;
  }

  .header-inner {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-name {
    font-size: 17px;
  }

  .inner-main {
    padding-bottom: 48px;
  }

  .page-head {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .page-lead {
    font-size: 16px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
  }

  .channel-tags,
  .recent-guides {
    padding-top: 28px;
  }

  .tag-strip li {
    width: 200px;
  }

  .guide-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 0;
  }

  .guide-date {
    grid-row: auto;
  }

  .home-main .page-layout {
    padding-top: 28px;
  }

  .main-column > section + section {
    margin-top: 32px;
  }

  .directory-row,
  .channel-row {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 4px 12px;
    padding: 14px 8px 14px 0;
  }

  .directory-row .row-name,
  .channel-row .row-name {
    grid-column: 1;
  }

  .directory-row .row-scope,
  .channel-row .row-scope {
    grid-column: 1;
  }

  .directory-row .row-sample,
  .channel-row .row-sample {
    grid-column: 1;
  }

  .directory-row .row-arrow,
  .channel-row .row-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .path-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .path-step .step-no {
    font-size: 17px;
  }

  .conclusion-box,
  .faq-feedback {
    padding: 16px;
  }

  .conclusion-item {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  .prepare-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
  }

  .step-item,
  .feedback-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .principle-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
    padding-left: 10px;
  }

  .record-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding-left: 10px;
  }

  .record-date {
    grid-column: 1;
  }

  .record-name {
    grid-column: 1;
  }

  .record-tag {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .month-bar {
    padding: 12px 12px;
  }

  .mapping-table th,
  .mapping-table td {
    padding: 10px 8px;
    font-size: 14px;
  }

  .playlist-record {
    padding: 20px 0;
  }

  .playlist-name {
    font-size: 18px;
  }

  .faq-item summary {
    padding: 14px 32px 14px 0;
    font-size: 15px;
  }

  .error-main {
    padding: 44px var(--gutter) 56px;
  }

  .footer-inner {
    padding-top: 32px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-bottom {
    margin-top: 24px;
  }

  .related-links {
    margin-top: 28px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
