/* ==========================================================================
   茄子视频 youxi1111.com — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --ink: #141414;
  --paper: #f6f2e9;
  --surface: #ffffff;
  --purple: #6c3bd1;
  --yellow: #ffd23f;
  --orange: #e24e1b;
  --muted: #5c5850;
  --line: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lift: 6px 6px 0 var(--ink);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 1180px;
  --pad: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--purple);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 通用文字链接 */
.text-link {
  display: inline-block;
  font-weight: 700;
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
  padding-bottom: 1px;
  line-height: 1.5;
}

.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 800;
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: var(--shadow-lift);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: #5a2ebd;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--yellow);
}

/* --------------------------------------------------------------------------
   2. layout — 页头 / 主容器 / 面包屑 / 页脚
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  padding: 8px 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--purple);
  border: var(--line);
  border-radius: 3px;
  flex-shrink: 0;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--purple);
  border-bottom-color: var(--yellow);
}

.nav-link.is-current {
  color: var(--purple);
  border-bottom-color: var(--purple);
  font-weight: 800;
}

/* 汉堡按钮 */
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 主内容骨架 */
.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--pad) 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.breadcrumb-sep {
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--pad) 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--muted);
}

.breadcrumb-list a {
  color: var(--muted);
}

.breadcrumb-list a:hover {
  color: var(--purple);
}

/* 页标题区 */
.page-header {
  border: var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.page-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--pad) 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand-name {
  font-weight: 800;
  font-size: 18px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: var(--line);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  min-height: 28px;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--purple);
}

.footer-bottom {
  border-top: var(--line);
}

.footer-bottom p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--pad);
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* 两栏骨架：默认主内容在前，aside 在后 */
.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.page-layout.feedback-layout {
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
}

.page-content {
  min-width: 0;
}

/* 左侧栏骨架：aside 在 DOM 中位于 .page-content 之前 */
.sidebar-left {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   3. components — 首页模块与通用块
   -------------------------------------------------------------------------- */

/* 首页首屏 */
.hero {
  border-bottom: var(--line);
  background: var(--paper);
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--pad) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  margin-bottom: 16px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 34em;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.channel-tag:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-media {
  min-width: 0;
  border: var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
  background: var(--surface);
}

/* 首页通用 section */
.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--pad);
  border-bottom: 1px solid #d9d3c6;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 8px;
}

.section-head p {
  font-size: 15px;
  color: var(--muted);
  max-width: 62em;
}

/* 频道速览 */
.channel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.channel-item {
  min-width: 0;
}

.channel-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.channel-item a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.channel-name {
  font-weight: 800;
  font-size: 16px;
}

.channel-scope {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 专题卡片 */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 18px;
  background: var(--surface);
  border: var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.collection-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.card-media {
  border-bottom: var(--line);
}

.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-title {
  font-size: 19px;
  padding: 0 18px;
}

.card-order {
  font-size: 14px;
  color: var(--muted);
  padding: 0 18px;
  line-height: 1.6;
}

.collection-card .text-link {
  margin: 4px 18px 0;
  align-self: flex-start;
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}

.data-table caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}

.data-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 12px 14px;
  background: var(--yellow);
  border-bottom: var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #e3ddd0;
  vertical-align: top;
  line-height: 1.65;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbf8f1;
}

.data-table .col-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  width: 64px;
}

.data-table .col-time {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
}

/* 步骤块 */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

.step-title {
  font-size: 18px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.7;
}

.step-check {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  padding-top: 8px;
  border-top: 1px dashed #cdc6b6;
}

/* 入口核验预览 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.split-text h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 12px;
}

.split-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.check-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-field {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--purple);
  min-width: 88px;
}

.field-desc {
  font-size: 14px;
  line-height: 1.65;
  flex: 1 1 220px;
}

/* 整理原则 */
.principle-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: var(--line);
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: var(--line);
}

.principle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

.principle-text {
  font-size: 16px;
  line-height: 1.7;
  padding-top: 3px;
}

.method-preview > .text-link {
  margin-top: 20px;
}

/* 答疑摘要 */
.faq-brief-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-brief {
  padding: 18px 20px;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
}

.faq-q {
  font-size: 16px;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-preview > .text-link {
  margin-top: 20px;
}

/* 反馈入口 */
.feedback-preview {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--pad);
  border-bottom: 0;
}

.feedback-preview h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 12px;
}

.feedback-preview p {
  font-size: 15px;
  color: var(--muted);
  max-width: 62em;
  margin-bottom: 22px;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 相关链接条 */
.related-links {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--pad) 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
}

.related-links-item:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. pages — 内页业务模块
   -------------------------------------------------------------------------- */

/* 页首简介条（多页共用） */
.page-hero {
  border: var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.page-hero-text {
  min-width: 0;
  flex: 1 1 320px;
}

.page-hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.page-hero-tag,
.page-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 700;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

.page-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  width: 100%;
}

.tag-label {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* 页首简介条（collections / entry-check） */
.page-head {
  margin-bottom: 28px;
}

.page-head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 18px 22px;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.page-head-text {
  min-width: 0;
  flex: 1 1 320px;
}

.page-head-desc {
  font-size: 15px;
  line-height: 1.75;
}

.page-head-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

/* 内页 section 通用标题 */
.section-title {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 10px;
}

.section-intro,
.section-desc,
.section-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 62em;
}

.section-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.section-note a {
  font-weight: 700;
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
}

.section-note a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* --- channels.html --- */

.page-aside {
  min-width: 0;
  align-self: start;
}

.sidebar-left .page-aside {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 0 0 12px;
  overflow: hidden;
}

.toc-progress {
  display: block;
  width: 100%;
  height: 4px;
  background: #e3ddd0;
}

.toc-progress-fill {
  display: block;
  height: 4px;
  width: 0;
  background: var(--purple);
  transition: width 0.12s linear;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 12px 16px 8px;
}

.page-toc ul {
  display: flex;
  flex-direction: column;
}

.toc-link {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid transparent;
  color: var(--muted);
}

.toc-link:hover {
  color: var(--purple);
  background: #fbf8f1;
}

.toc-link.is-current {
  color: var(--ink);
  font-weight: 800;
  border-left-color: var(--purple);
  background: #f4f0ff;
}

.toc-link.is-current::after {
  content: "当前";
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  background: var(--purple);
  color: #fff;
  border-radius: 2px;
  vertical-align: 1px;
}

.channel-groups {
  margin-bottom: 40px;
}

.channel-group {
  padding: 24px 0;
  border-bottom: var(--line);
}

.channel-group:first-of-type {
  padding-top: 8px;
}

.group-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.group-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 62em;
}

.channel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 16px;
}

.channel-figure {
  border-bottom: var(--line);
}

.channel-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.channel-card .channel-name {
  padding: 0 16px;
  font-size: 17px;
}

.channel-card .channel-scope {
  padding: 0 16px;
  font-size: 14px;
}

.channel-exclude {
  margin: 0 16px;
  padding-top: 8px;
  font-size: 13px;
  color: var(--orange);
  border-top: 1px dashed #e3ddd0;
  line-height: 1.6;
}

.scope-section {
  margin-bottom: 20px;
}

.scope-table {
  min-width: 480px;
}

/* --- collections.html --- */

.collection-gallery {
  margin-bottom: 40px;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.gallery-main {
  border: var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-caption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: var(--line);
  line-height: 1.6;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thumb-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.thumb-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.thumb-btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid #e3ddd0;
}

.thumb-label {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.thumb-current {
  display: none;
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  background: var(--purple);
  color: #fff;
  border-radius: 2px;
}

.thumb-btn.is-current {
  border-width: 3px;
  border-color: var(--purple);
  box-shadow: var(--shadow);
}

.thumb-btn.is-current .thumb-label {
  color: var(--purple);
}

.thumb-btn.is-current .thumb-current {
  display: inline-block;
}

.collection-list {
  margin-bottom: 40px;
}

.watch-order {
  margin-bottom: 40px;
}

.order-list {
  display: flex;
  flex-direction: column;
  border-top: var(--line);
}

.order-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: var(--line);
}

.order-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

.order-body {
  min-width: 0;
}

.order-body h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.order-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.related-list a:hover {
  transform: translateY(-2px);
  background: var(--yellow);
  color: var(--ink);
}

/* --- watch-guide.html --- */

.content-main {
  min-width: 0;
}

.guide-steps {
  margin-bottom: 40px;
}

.guide-figure {
  border: var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
}

.step-list {
  display: flex;
  flex-direction: column;
  border-top: var(--line);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: var(--line);
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.step-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.step-body .step-check {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  color: var(--purple);
  border-top: 1px dashed #cdc6b6;
}

.trouble-block {
  margin-bottom: 20px;
}

.trouble-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trouble-item {
  padding: 16px 18px;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  border-left: 6px solid var(--orange);
}

.trouble-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.trouble-action {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.content-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: start;
}

.aside-card {
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
}

.aside-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.aside-lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.prep-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-aside .prep-item {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.65;
}

.content-aside .prep-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border: var(--line);
  border-radius: 2px;
  background: var(--yellow);
}

.aside-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cdc6b6;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  background: var(--paper);
  border: var(--line);
  border-radius: 4px;
}

.aside-link-list a:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* --- entry-check.html --- */

.check-intro {
  margin-bottom: 40px;
}

.check-intro h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 10px;
}

.check-intro > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 62em;
}

.check-figure {
  border: var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 820px;
}

.check-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.check-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
}

.check-table {
  margin-bottom: 40px;
}

.check-table h2,
.check-steps h2,
.check-stop h2,
.check-related h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 10px;
}

.check-table > p,
.check-steps > p,
.check-stop > p,
.check-related > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 62em;
}

.field-table {
  width: 100%;
  min-width: 600px;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  font-size: 15px;
}

.field-table caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}

.field-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--yellow);
  border-bottom: var(--line);
  white-space: nowrap;
}

.field-table tbody th {
  text-align: left;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid #e3ddd0;
  white-space: nowrap;
  vertical-align: top;
}

.field-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #e3ddd0;
  vertical-align: top;
  line-height: 1.65;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody td:last-child {
  color: var(--orange);
}

.check-table .table-wrap,
.check-table > .field-table {
  overflow-x: auto;
}

.check-steps {
  margin-bottom: 40px;
}

.check-steps .step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-action {
  font-size: 15px;
  line-height: 1.7;
}

.step-pass {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  color: var(--purple);
  padding-top: 8px;
  border-top: 1px dashed #cdc6b6;
}

.check-stop {
  margin-bottom: 40px;
}

.stop-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stop-item {
  padding: 18px 20px;
  background: var(--surface);
  border: var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.stop-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--orange);
}

.stop-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.check-stop-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.check-stop-note a {
  font-weight: 700;
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
}

.check-stop-note a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.check-related .related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
}

.check-related .related-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.check-related .related-links a:hover {
  transform: translateY(-2px);
  background: var(--yellow);
  color: var(--ink);
}

/* --- method.html --- */

.page-title-block {
  border: var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.title-block-inner {
  min-width: 0;
  flex: 1 1 320px;
}

.title-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--purple);
  margin-bottom: 6px;
}

.title-lead {
  font-size: 15px;
  line-height: 1.75;
}

.title-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: start;
}

.method-article {
  min-width: 0;
  max-width: 760px;
}

.method-section {
  margin-bottom: 40px;
}

.method-article .principle-item {
  gap: 16px;
}

.principle-body {
  min-width: 0;
}

.principle-title {
  font-size: 17px;
  margin-bottom: 4px;
}

.principle-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.method-figure {
  border: var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

.method-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.method-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
}

.classify-table {
  min-width: 560px;
}

.table-caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}

.method-update {
  margin-bottom: 20px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: var(--line);
  padding-top: 16px;
}

.update-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.75;
}

.update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 2px;
}

.method-aside {
  min-width: 0;
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  background: var(--paper);
  border: var(--line);
  border-radius: 4px;
}

.aside-links a:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* --- faq.html --- */

.faq-toc {
  margin-bottom: 28px;
  border: var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  overflow-x: auto;
}

.faq-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-toc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  background: var(--paper);
  border: var(--line);
  border-radius: 4px;
  white-space: nowrap;
}

.faq-toc-link:hover {
  background: var(--yellow);
  color: var(--ink);
}

.faq-toc-link.is-current {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.faq-toc-link.is-current::after {
  content: "当前";
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  line-height: 16px;
  background: #fff;
  color: var(--purple);
  border-radius: 2px;
}

.toc-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
  line-height: 18px;
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.faq-toc-link.is-current .toc-count {
  background: #fff;
  border-color: #fff;
}

.faq-figure {
  border: var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 32px;
  max-width: 820px;
}

.faq-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.faq-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
}

.faq-group {
  margin-bottom: 36px;
}

.faq-item {
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.faq-item summary:hover {
  background: #fbf8f1;
}

.faq-body {
  padding: 0 18px 16px;
  border-top: 1px dashed #cdc6b6;
}

.faq-body > p {
  padding-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.faq-next {
  font-size: 14px;
  color: var(--muted);
}

.faq-next a {
  font-weight: 700;
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
}

.faq-next a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.faq-more {
  margin-bottom: 20px;
}

.faq-more > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 62em;
}

.faq-more-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--purple);
  border: var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq-more-link a:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* --- feedback.html --- */

.feedback-prep {
  min-width: 0;
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
}

.feedback-prep .prep-list {
  gap: 0;
  border-top: var(--line);
}

.feedback-prep .prep-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid #e3ddd0;
}

.feedback-prep .prep-item:last-child {
  border-bottom: 0;
}

.prep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--yellow);
  border: var(--line);
  border-radius: 3px;
}

.prep-body {
  min-width: 0;
}

.prep-title {
  font-size: 16px;
  margin-bottom: 3px;
}

.prep-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.feedback-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feedback-flow,
.feedback-coop {
  background: var(--surface);
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
}

.flow-figure {
  border: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.flow-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.flow-figure figcaption {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
}

.flow-list {
  display: flex;
  flex-direction: column;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid #e3ddd0;
}

.flow-step:last-child {
  border-bottom: 0;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--purple);
  color: #fff;
  border: var(--line);
  border-radius: 3px;
}

.flow-body {
  min-width: 0;
}

.flow-title {
  font-size: 16px;
  margin-bottom: 3px;
}

.flow-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.coop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: var(--line);
  padding-top: 14px;
}

.coop-item {
  padding: 12px 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: 4px;
}

.coop-title {
  font-size: 15px;
  margin-bottom: 3px;
}

.coop-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.coop-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cdc6b6;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* --- 404.html --- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--pad) 64px;
}

.error-block {
  border: var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  padding: 40px 32px;
  margin-bottom: 32px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--purple);
  margin-bottom: 12px;
}

.error-title {
  font-size: clamp(24px, 3.6vw, 36px);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 46em;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.error-guides {
  border: var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 24px 24px 26px;
}

.error-guides-title {
  font-size: 20px;
  margin-bottom: 14px;
}

.error-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-guide-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  background: var(--paper);
  border: var(--line);
  border-radius: 4px;
}

.error-guide-list a:hover {
  background: var(--yellow);
  color: var(--ink);
}

.error-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-inner {
    gap: 32px;
  }

  .channel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--surface);
    border-bottom: var(--line);
    box-shadow: 0 8px 0 rgba(20, 20, 20, 0.08);
    padding: 8px 16px 16px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid #e3ddd0;
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 10px 6px;
    border-bottom: 0;
    border-left: 4px solid transparent;
  }

  .nav-link.is-current {
    border-left-color: var(--purple);
    padding-left: 10px;
  }

  .nav-link:hover {
    border-bottom-color: transparent;
    border-left-color: var(--yellow);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .hero-media {
    order: 2;
  }

  .collection-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-steps .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .faq-brief-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  /* 左侧栏页面：aside 移到正文之后，正文先出现 */
  .sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sidebar-left .page-aside {
    position: static;
    order: 2;
    top: auto;
  }

  .sidebar-left .page-content {
    order: 1;
  }

  .page-aside .page-toc ul {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 0 12px 8px;
  }

  .page-aside .page-toc li {
    flex: 0 0 auto;
  }

  .toc-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 12px;
    border: var(--line);
    border-left-width: 2px;
    border-radius: 4px;
    background: var(--paper);
    white-space: nowrap;
  }

  .toc-link.is-current {
    border-left-width: 2px;
    border-color: var(--purple);
  }

  .channel-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 观看指南：aside 移到步骤之后 */
  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-shell .content-main {
    order: 1;
  }

  .layout-shell .content-aside {
    order: 2;
  }

  .trouble-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .stop-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-related .related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .method-article {
    max-width: none;
  }

  .method-aside {
    position: static;
    top: auto;
  }

  .feedback-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .error-guide-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }

  body.site-body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .inner-main {
    padding: 20px var(--pad) 48px;
  }

  .breadcrumb-list {
    padding: 16px var(--pad) 0;
  }

  .page-header {
    padding: 16px 16px;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: clamp(24px, 6.4vw, 30px);
  }

  .hero-inner {
    padding: 28px var(--pad) 32px;
    gap: 24px;
  }

  .hero-text h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
  }

  .hero-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .hero-tags li {
    flex: 0 0 auto;
  }

  .channel-tag {
    min-height: 44px;
    white-space: nowrap;
  }

  .section {
    padding: 32px var(--pad);
  }

  .channel-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .collection-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-grid,
  .check-steps .step-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 30px var(--pad) 22px;
  }

  .footer-bottom p {
    padding: 12px var(--pad);
    font-size: 12px;
  }

  /* 表格转纵向条目 */
  .table-wrap {
    border: 0;
    background: transparent;
    overflow-x: visible;
  }

  .data-table,
  .field-table,
  .scope-table,
  .classify-table {
    min-width: 0;
    display: block;
    background: transparent;
  }

  .data-table thead,
  .field-table thead {
    display: none;
  }

  .data-table tbody,
  .field-table tbody {
    display: block;
  }

  .data-table tbody tr,
  .field-table tbody tr {
    display: block;
    background: var(--surface);
    border: var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    padding: 4px 0;
  }

  .data-table tbody tr:last-child,
  .field-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody td,
  .field-table tbody td,
  .field-table tbody th {
    display: block;
    border-bottom: 1px solid #eee8dc;
    white-space: normal;
    width: auto;
  }

  .data-table tbody tr td:last-child,
  .field-table tbody tr td:last-child,
  .field-table tbody tr th:last-child {
    border-bottom: 0;
  }

  .data-table .col-num {
    font-weight: 700;
    color: var(--purple);
    padding-bottom: 4px;
  }

  .data-table .col-time {
    text-align: left;
  }

  .data-table tbody td[data-label]::before,
  .field-table tbody td[data-label]::before,
  .field-table tbody th[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    margin-right: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
  }

  .data-table caption,
  .field-table caption,
  .table-caption {
    display: block;
    padding: 0 0 10px;
  }

  .scope-table,
  .classify-table {
    display: block;
  }

  .scope-table thead,
  .classify-table thead {
    display: none;
  }

  .scope-table tbody,
  .classify-table tbody {
    display: block;
  }

  .scope-table tbody tr,
  .classify-table tbody tr {
    display: block;
    background: var(--surface);
    border: var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    padding: 4px 0;
  }

  .scope-table tbody td,
  .scope-table tbody th,
  .classify-table tbody td,
  .classify-table tbody th {
    display: block;
    border-bottom: 1px solid #eee8dc;
    white-space: normal;
    width: auto;
  }

  .scope-table tbody tr > *:last-child,
  .classify-table tbody tr > *:last-child {
    border-bottom: 0;
  }

  .page-hero,
  .page-head-inner,
  .page-title-block {
    padding: 16px 16px;
    gap: 12px;
  }

  .page-hero-tag,
  .page-tag,
  .page-head-tag,
  .title-tag {
    white-space: normal;
  }

  .channel-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .thumb-btn {
    flex: 0 0 148px;
  }

  .related-list,
  .check-related .related-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-links {
    padding: 16px var(--pad) 32px;
  }

  .order-item,
  .step-item,
  .flow-step {
    gap: 12px;
  }

  .principle-item {
    gap: 12px;
  }

  .faq-toc {
    padding: 10px 12px;
  }

  .faq-toc ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .faq-item summary {
    padding: 12px 14px;
    font-size: 15px;
  }

  .faq-body {
    padding: 0 14px 14px;
  }

  .feedback-prep,
  .feedback-flow,
  .feedback-coop {
    padding: 18px 16px 20px;
  }

  .aside-card,
  .method-aside {
    padding: 16px 16px 18px;
  }

  .error-block {
    padding: 28px 18px;
  }

  .error-actions .btn {
    flex: 1 1 140px;
  }

  .error-guides {
    padding: 18px 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .btn:hover,
  .channel-tag:hover,
  .channel-item a:hover,
  .collection-card:hover,
  .thumb-btn:hover,
  .related-list a:hover,
  .check-related .related-links a:hover {
    transform: none;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
