/* ==========================================================================
   天美麻花星空 — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f14;
  --surface: #131a24;
  --surface-soft: #182130;
  --text: #f4f7fb;
  --text-soft: #c7d2df;
  --amber: #ffb000;
  --teal: #5eead4;
  --line: #2a3442;
  --paper: #f5f1e8;
  --paper-text: #1a2230;
  --coral: #ff7a59;
  --radius: 6px;
  --container: 1160px;
  --read: 760px;
  --font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--amber);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--amber);
  color: #14100a;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  color: #14100a;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 20, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: inline-block;
  padding: 5px 10px;
  background: var(--amber);
  color: #14100a;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: var(--radius);
  white-space: nowrap;
}

.brand-slogan {
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.3;
  max-width: 9em;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.9375rem;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.main-nav a.is-current {
  color: var(--text);
  font-weight: 700;
  border-left-color: var(--amber);
  background: var(--surface);
}

/* 页头右侧功能入口 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 4px;
  min-height: 44px;
}

.tool-link:hover {
  color: var(--amber);
}

.tool-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  flex: 0 0 auto;
}

.tool-icon::before,
.tool-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.tool-icon::before {
  left: 3px;
  right: 3px;
  top: 4px;
  height: 1.5px;
}

.tool-icon::after {
  left: 3px;
  right: 6px;
  top: 9px;
  height: 1.5px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  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);
}

/* 移动导航（默认收起，展开时由 JS 移除 hidden） */
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 16px 16px;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 8px;
  font-size: 1rem;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:hover,
.mobile-nav a.is-current {
  color: var(--text);
}

.mobile-tool {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 0.875rem;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 主内容区 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 4px;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: var(--amber);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
}

/* 页面标题区 */
.page-header {
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  max-width: 24ch;
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.footer-top {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  font-size: 0.8125rem;
}

.footer-brand {
  color: var(--text);
  font-weight: 700;
}

.footer-note {
  color: var(--text-soft);
}

.footer-copy {
  color: var(--text-soft);
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   components — 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--amber);
  color: #14100a;
  border-color: var(--amber);
}

.btn-primary:hover {
  background: #ffc23d;
  color: #14100a;
  border-color: #ffc23d;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* 文本箭头链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow::after {
  content: "→";
  text-decoration: none;
  display: inline-block;
}

.link-arrow:hover {
  color: var(--amber);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link::after {
  content: "→";
  text-decoration: none;
}

.text-link:hover {
  color: var(--amber);
}

/* 标签 */
.tag-row,
.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}

.tag-alt {
  color: var(--teal);
  border-color: rgba(94, 234, 212, 0.45);
}

.tag-warn {
  color: var(--coral);
  border-color: rgba(255, 122, 89, 0.5);
}

.tag-muted {
  color: var(--text-soft);
  border-style: dashed;
}

/* 徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.7;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.badge-status {
  background: var(--amber);
  color: #14100a;
  border-color: var(--amber);
}

.badge-done {
  color: var(--teal);
  border-color: rgba(94, 234, 212, 0.5);
}

.badge-observe {
  color: var(--coral);
  border-color: rgba(255, 122, 89, 0.5);
}

/* 区块标题 */
.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 0.9375rem;
  max-width: 72ch;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-note {
  color: var(--text-soft);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  max-width: 72ch;
}

.section-intro {
  color: var(--text-soft);
  font-size: 0.9375rem;
  margin-bottom: 22px;
  max-width: 72ch;
}

.section-desc {
  color: var(--text-soft);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  max-width: 72ch;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* 表格基础 */
.data-table {
  font-size: 0.9375rem;
}

.data-table caption {
  text-align: left;
  color: var(--text-soft);
  font-size: 0.8125rem;
  padding-bottom: 10px;
}

.data-table thead th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: none;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  text-align: left;
  padding: 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 400;
}

.data-table tbody th {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: var(--surface);
}

.data-table a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.data-table a:hover {
  color: var(--amber);
}

.table-scroll,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 16px 44px 16px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--amber);
}

.faq-item p {
  padding: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.9375rem;
  max-width: 72ch;
}

.faq-item p + p {
  padding-top: 0;
}

/* 相关指南：两列链接组 */
.related-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.related-col h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.related-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-col a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-col a:hover {
  color: var(--amber);
}

.related-guides {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

/* 编号步骤（通用） */
.step-num,
.step-no,
.task-num,
.notice-num,
.cue-num,
.symptom-num,
.qa-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.home-main > section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 48px;
  align-items: start;
}

.hero-focus {
  min-width: 0;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-focus h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  margin-bottom: 16px;
  max-width: 20ch;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 1.0625rem;
  max-width: 60ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 观看任务板 */
.task-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}

.task-title {
  font-size: 1.0625rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.task-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.task-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
}

.task-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  color: #14100a;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.task-text {
  min-width: 0;
}

.task-batch {
  font-size: 0.8125rem;
  color: var(--text-soft);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.task-batch .mono {
  color: var(--amber);
  font-weight: 700;
}

.task-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-links a {
  font-size: 0.9375rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.task-links a:hover {
  color: var(--amber);
}

/* 频道筛选条 */
.channel-bar {
  padding-top: 8px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 14px;
}

.channel-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.channel-list a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.channel-hint {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

/* 最新条目 */
.latest {
  padding-bottom: 56px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.entry {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.entry-thumb {
  width: 132px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-body {
  min-width: 0;
}

.entry-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.entry-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.entry-body h3 a:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.entry-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  padding: 10px 0;
}

.entry-link::after {
  content: " →";
  text-decoration: none;
}

.entry-link:hover {
  color: var(--amber);
}

/* 本周焦点影集 */
.focus-series {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

.focus-media figure {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

.focus-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-body {
  min-width: 0;
}

.focus-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}

.focus-body > p {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 20px;
  max-width: 60ch;
}

.focus-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
}

.focus-items li {
  border-bottom: 1px solid var(--line);
}

.focus-items a {
  display: block;
  padding: 12px 0 12px 20px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
}

.focus-items a::before {
  content: "▸";
  position: absolute;
  left: 2px;
  color: var(--amber);
}

.focus-items a:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 观看路径三步 */
.path-steps {
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step .step-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.step a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step a:hover {
  color: var(--amber);
}

/* 适看提示摘要 */
.cues-summary {
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.notice-item {
  position: relative;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--amber);
  min-width: 0;
}

.notice-num {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 6px;
}

.notice-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.notice-item p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.notice-item a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-item a:hover {
  color: var(--amber);
}

/* 问答摘录 */
.faq-excerpt {
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

/* 整理记录摘要 */
.archive-summary {
  padding-top: 48px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
}

.record-table {
  width: 100%;
  font-size: 0.9375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.record-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.record-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: top;
}

.record-table tbody tr:last-child td {
  border-bottom: 0;
}

.record-table tbody tr:hover {
  background: var(--surface);
}

.record-table .mono {
  color: var(--amber);
  font-weight: 700;
  white-space: nowrap;
}

.record-table a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.record-table a:hover {
  color: var(--amber);
}

.archive-summary > .link-arrow {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   pages — 内页通用标题区与主图
   -------------------------------------------------------------------------- */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero-text {
  min-width: 0;
}

.page-lead {
  font-size: 1.0625rem;
  color: var(--text-soft);
  max-width: 60ch;
}

.page-hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

.page-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-hero-media figcaption,
.page-media figcaption,
.page-head-media figcaption {
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.page-head {
  margin-bottom: 40px;
}

.page-head-text {
  min-width: 0;
}

.page-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-top: 24px;
}

.page-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages — 观看路径
   -------------------------------------------------------------------------- */

.page-paths .path-overview,
.page-paths .channel-start,
.page-paths .path-steps,
.page-paths .entry-checklist,
.page-paths .path-deviations {
  max-width: 900px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-paths h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 10px;
}

.path-overview-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.path-overview-list li {
  display: grid;
  grid-template-columns: 52px minmax(120px, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.path-overview-list .step-no {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
}

.path-overview-list .step-name {
  font-weight: 700;
  color: var(--text);
}

.path-overview-list p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  min-width: 0;
}

/* 四步观看路径 */
.path-step {
  position: relative;
  padding: 20px 0 20px 56px;
  border-bottom: 1px solid var(--line);
}

.path-step:last-child {
  border-bottom: 0;
}

.path-step .step-no {
  position: absolute;
  left: 0;
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.9375rem;
  font-weight: 700;
}

.path-step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.path-step > p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  max-width: 72ch;
  margin-bottom: 8px;
}

.path-step > p a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.path-step > p a:hover {
  color: var(--amber);
}

.path-step .step-return {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.path-step .step-return a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.path-step .step-return a:hover {
  color: var(--amber);
}

/* 入口核对清单 */
.checklist-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.checklist-item {
  display: grid;
  grid-template-columns: 28px minmax(120px, 200px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.checklist-item .check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--teal);
  border-radius: 3px;
  color: var(--teal);
  font-size: 0.75rem;
  line-height: 1;
}

.checklist-item .check-label {
  font-weight: 700;
  color: var(--text);
}

.checklist-item .check-standard {
  color: var(--text-soft);
  min-width: 0;
}

.checklist-item a {
  font-size: 0.8125rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.checklist-item a:hover {
  color: var(--amber);
}

/* 常见偏差 */
.deviation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.deviation-item {
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--coral);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  min-width: 0;
}

.deviation-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.deviation-item p {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.deviation-link {
  margin-top: 10px;
}

.deviation-link a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deviation-link a:hover {
  color: var(--amber);
}

.page-paths .related-guides {
  max-width: 900px;
}

/* --------------------------------------------------------------------------
   pages — 主题影集
   -------------------------------------------------------------------------- */

.page-shell {
  display: block;
}

.page-series .page-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.page-series .page-tags {
  margin-top: 16px;
}

.page-series section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.page-series section > h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 10px;
}

/* 画廊 */
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}

.gallery-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}

.gallery-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-main figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.gallery-main-name {
  font-weight: 700;
  color: var(--text);
}

.gallery-main-note {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.thumb-btn {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.thumb-btn:hover {
  border-color: var(--amber);
}

.thumb-btn img {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

.thumb-label {
  font-size: 0.9375rem;
  color: var(--text);
  min-width: 0;
}

.thumb-state {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.thumb-btn.is-active {
  border-color: var(--amber);
  background: var(--surface-soft);
}

.thumb-btn.is-active .thumb-state {
  color: var(--amber);
}

.thumb-btn.is-active .thumb-state::before {
  content: "● ";
}

/* 主题系列索引 */
.topic-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.topic-name {
  font-weight: 700;
  color: var(--text);
}

.topic-keywords {
  color: var(--text-soft);
  min-width: 0;
}

.topic-count {
  font-size: 0.8125rem;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.topic-row a {
  font-size: 0.8125rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.topic-row a:hover {
  color: var(--amber);
}

/* 影集条目表 */
.entry-table .table-scroll table {
  font-size: 0.9375rem;
}

.entry-table .table-scroll thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.entry-table .table-scroll tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
}

.entry-table .table-scroll tbody tr:hover {
  background: var(--surface);
}

.entry-table .table-scroll tbody td:first-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}

.entry-table .table-scroll a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-table .table-scroll a:hover {
  color: var(--amber);
}

.page-series .related-guides {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 适看提示
   -------------------------------------------------------------------------- */

.page-cues .section {
  max-width: 860px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.page-cues .section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 10px;
}

/* 四项确认 */
.cue-items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.cue-item {
  position: relative;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--amber);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.cue-item .cue-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 4px;
}

.cue-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.cue-item p {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.cue-item p a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cue-item p a:hover {
  color: var(--amber);
}

/* 标签读法表 */
.cue-legend .data-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 回退与继续 */
.action-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.action-col {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.action-col h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.action-col p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

/* 相关指南列表 */
.guide-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.guide-list li {
  border-bottom: 1px solid var(--line);
}

.guide-list a {
  display: block;
  padding: 14px 0;
  font-size: 0.9375rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-list a:hover {
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   pages — 排错手册
   -------------------------------------------------------------------------- */

.content-wrap {
  display: block;
}

.page-troubleshoot .page-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-troubleshoot .page-head .page-media {
  margin-top: 0;
}

.page-troubleshoot .module {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.page-troubleshoot .module:last-of-type {
  border-bottom: 0;
}

.module-head {
  margin-bottom: 22px;
}

.module-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 8px;
}

.module-desc {
  font-size: 0.9375rem;
  color: var(--text-soft);
  max-width: 72ch;
}

/* 现象分类 */
.symptom-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.symptom-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.symptom-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--amber);
}

.symptom-body {
  min-width: 0;
}

.symptom-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.symptom-body p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 8px;
  max-width: 72ch;
}

.symptom-body a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.symptom-body a:hover {
  color: var(--amber);
}

/* 折叠步骤组 */
.accordion-group {
  border-top: 1px solid var(--line);
}

.accordion {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--amber);
  line-height: 1;
}

.accordion[open] summary::after {
  content: "−";
}

.accordion summary:hover {
  color: var(--amber);
}

.accordion-body {
  padding: 0 0 18px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: acc-step;
  max-width: 72ch;
}

.step-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.9375rem;
  color: var(--text-soft);
  counter-increment: acc-step;
}

.step-list li::before {
  content: counter(acc-step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
}

/* 浅色模块 */
.module-light {
  background: var(--paper);
  color: var(--paper-text);
  border-radius: var(--radius);
  padding: 32px 28px !important;
  margin-top: 32px;
  border-bottom: 0 !important;
}

.module-light .module-head h2 {
  color: var(--paper-text);
}

.module-light .module-desc {
  color: #4a5568;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(26, 34, 48, 0.18);
}

.check-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 34, 48, 0.14);
}

.check-item .check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid #1a2230;
  border-radius: 3px;
  font-size: 0.75rem;
  line-height: 1;
  color: #1a2230;
}

.check-body {
  min-width: 0;
}

.check-body h3 {
  font-size: 1rem;
  color: var(--paper-text);
  margin-bottom: 4px;
}

.check-body p {
  font-size: 0.9375rem;
  color: #3d4757;
  max-width: 72ch;
}

.notice-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255, 122, 89, 0.14);
  border: 1px solid rgba(255, 122, 89, 0.5);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: #7a2e1c;
}

.notice-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid #c0432a;
  position: relative;
}

.notice-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 2px;
  height: 6px;
  background: #c0432a;
  transform: translateX(-50%);
}

.notice-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 2px;
  height: 2px;
  background: #c0432a;
  transform: translateX(-50%);
  border-radius: 50%;
}

/* 相关链接两列 */
.link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.link-col h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.link-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-col a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-col a:hover {
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   pages — 片单档案
   -------------------------------------------------------------------------- */

.page-archive .page-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 36px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.page-head-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

.page-head-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 状态横幅 */
.archive-status {
  background: var(--paper);
  color: var(--paper-text);
  border-radius: var(--radius);
  margin: 32px 0 40px;
}

.archive-status-inner {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  align-items: center;
}

.archive-status-inner .badge-status {
  grid-row: 1 / span 3;
  align-self: start;
  background: #1a2230;
  color: var(--paper);
  border-color: #1a2230;
}

.archive-status-inner h2 {
  font-size: 1.25rem;
  color: var(--paper-text);
}

.archive-status-inner p {
  font-size: 0.9375rem;
  color: #3d4757;
  max-width: 72ch;
  grid-column: 2;
}

/* 整理批次表 */
.archive-table-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.archive-table tbody td:first-child {
  color: var(--amber);
  font-weight: 700;
  white-space: nowrap;
}

.archive-table .badge {
  font-size: 0.75rem;
  padding: 1px 8px;
}

/* 变更类型图例 */
.archive-legend {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.legend-item {
  display: grid;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.legend-item dt {
  font-weight: 700;
  color: var(--amber);
}

.legend-item dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
  min-width: 0;
}

/* 从记录返回影集 */
.link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.link-group h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.link-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-group a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-group a:hover {
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   pages — 问答台
   -------------------------------------------------------------------------- */

.page-questions .page-head {
  padding-bottom: 32px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.page-questions .page-media {
  margin-top: 22px;
}

/* 三视图锚点 */
.view-anchors {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.view-anchors-note {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.view-anchors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.view-anchors a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 16px;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.view-anchors a::after {
  content: "↓";
  text-decoration: none;
  color: var(--amber);
}

.view-anchors a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* 问答区块 */
.qa-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.qa-block h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 10px;
}

.qa-block--pending {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin: 32px 0;
  border-bottom: 0;
}

.qa-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.qa-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.qa-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--amber);
}

.qa-body {
  min-width: 0;
}

.qa-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.qa-status,
.qa-missing {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: 8px;
  max-width: 72ch;
}

.qa-missing {
  color: var(--coral);
}

.qa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qa-link span::after {
  content: " →";
  text-decoration: none;
}

.qa-link:hover {
  color: var(--amber);
}

/* 已整理答案 */
.answer-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.answer-item {
  border-bottom: 1px solid var(--line);
}

.answer-item summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.answer-item summary::-webkit-details-marker {
  display: none;
}

.answer-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--amber);
  line-height: 1;
}

.answer-item[open] summary::after {
  content: "−";
}

.answer-item summary:hover {
  color: var(--amber);
}

.answer-body {
  padding: 0 0 18px;
}

.answer-body p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  max-width: 72ch;
  margin-bottom: 10px;
}

/* 反馈说明 */
.feedback-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.feedback-block h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 10px;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feedback-step {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.feedback-step .step-num {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
}

.feedback-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feedback-step p {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.page-questions .related-guides {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 88px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  text-align: left;
  border-left: 4px solid var(--amber);
  padding-left: 28px;
}

.error-code {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-lead {
  font-size: 1.0625rem;
  color: var(--text-soft);
  margin-bottom: 20px;
  max-width: 52ch;
}

.error-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.error-reasons li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.error-reasons li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--line);
}

.error-links {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-links h2 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.error-links a {
  font-size: 0.9375rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-links a:hover {
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.875rem;
  }

  .brand-slogan {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr);
    gap: 24px;
  }

  .footer-top {
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    min-height: 64px;
    gap: 16px;
    justify-content: space-between;
  }

  .header-tools {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }

  .hero-focus h1 {
    max-width: none;
  }

  .focus-series {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .step-grid {
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--line);
  }

  .step {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .notice-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .gallery-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .gallery-thumbs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .thumb-btn {
    flex: 1 1 240px;
  }

  .deviation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .action-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-troubleshoot .page-head,
  .page-archive .page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .link-columns,
  .link-groups,
  .related-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .checklist-item {
    grid-template-columns: 28px minmax(0, 1fr);
    row-gap: 4px;
  }

  .checklist-item a {
    grid-column: 2;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .topic-keywords {
    grid-column: 1 / -1;
  }

  .path-overview-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 4px;
  }

  .path-overview-list p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-mark {
    font-size: 0.9375rem;
    padding: 4px 8px;
  }

  .tool-link {
    font-size: 0.75rem;
  }

  .inner-main {
    padding: 0 16px 56px;
  }

  .home-main > section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 0.75rem;
  }

  .page-header {
    padding: 14px 0 22px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .hero {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .hero-media {
    margin-bottom: 16px;
  }

  .hero-focus h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .task-panel {
    padding: 18px;
  }

  .channel-list {
    padding: 16px 0 12px;
    gap: 8px;
  }

  .channel-list a {
    padding: 6px 12px;
    font-size: 0.875rem;
  }

  .latest {
    padding-bottom: 40px;
  }

  .entry {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 14px 0;
  }

  .entry-thumb {
    width: 96px;
    grid-row: 1 / span 2;
  }

  .entry-link {
    grid-column: 2;
    padding: 2px 0;
    font-size: 0.8125rem;
  }

  .focus-series,
  .path-steps,
  .cues-summary,
  .faq-excerpt,
  .archive-summary {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .section-head h2,
  .focus-body h2,
  .page-paths h2,
  .page-cues .section h2,
  .module-head h2,
  .qa-block h2,
  .feedback-block h2,
  .page-series section > h2 {
    font-size: 1.375rem;
  }

  .record-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .record-table thead th,
  .record-table tbody td {
    padding: 10px 12px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 36px 16px 24px;
  }

  .footer-bottom {
    padding: 16px 16px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-copy {
    margin-left: 0;
  }

  .page-lead {
    font-size: 1rem;
  }

  .page-hero {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .page-hero-media img {
    aspect-ratio: 16 / 10;
  }

  .page-head {
    margin-bottom: 28px;
  }

  .page-paths .path-overview,
  .page-paths .channel-start,
  .page-paths .path-steps,
  .page-paths .entry-checklist,
  .page-paths .path-deviations {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .path-step {
    padding: 16px 0 16px 48px;
  }

  .path-step .step-no {
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
  }

  .path-step h3 {
    font-size: 1.0625rem;
  }

  .page-series section {
    padding: 28px 0;
  }

  .gallery-main img {
    aspect-ratio: 16 / 11;
  }

  .thumb-btn {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    flex: 1 1 100%;
  }

  .thumb-btn img {
    width: 72px;
    height: 46px;
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-cues .section {
    padding: 28px 0;
  }

  .cue-item {
    padding: 14px 0 14px 18px;
  }

  .action-col,
  .feedback-step {
    padding: 16px;
  }

  .module-light {
    padding: 22px 18px !important;
  }

  .archive-status-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .archive-status-inner .badge-status {
    grid-row: auto;
    justify-self: start;
    margin-bottom: 4px;
  }

  .archive-status-inner p {
    grid-column: 1;
  }

  .archive-table-section,
  .archive-legend {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .table-wrap .data-table {
    white-space: nowrap;
  }

  .table-wrap .data-table tbody td,
  .table-wrap .data-table tbody th,
  .table-wrap .data-table thead th {
    white-space: normal;
    min-width: 96px;
  }

  .qa-block {
    padding: 28px 0;
  }

  .qa-block--pending {
    padding: 22px 16px;
    margin: 24px 0;
  }

  .qa-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .qa-num {
    font-size: 1rem;
  }

  .symptom-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .symptom-num {
    font-size: 1rem;
  }

  .error-main {
    padding: 40px 16px 64px;
  }

  .error-panel {
    padding-left: 18px;
  }

  .error-panel h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .view-anchors ul {
    flex-direction: column;
  }

  .view-anchors a {
    width: 100%;
    justify-content: space-between;
  }

  .legend-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .data-table tbody th,
  .data-table tbody td {
    padding: 12px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
