/* ============================================================
   rouxiansheng.cn 整站样式表
   社区市集风 × 视频媒体感 · 米白底 + 多色分类标签
   ============================================================ */

/* ------------------------------------------------------------
   Base · 基础变量、重置、全局排版
   ------------------------------------------------------------ */

:root {
  --bg: #f7f4ef;
  --ink: #14161a;
  --text: #26292e;
  --muted: #6b707a;
  --line: #e2ddd4;
  --accent: #e2543f;
  --accent-dark: #c9432f;
  --blue: #3b82c4;
  --green: #2f9e6e;
  --purple: #8b6ac2;
  --amber: #d99a2b;
  --teal: #2a9d8f;
  --pink: #d65a86;
  --brown: #9c7a4f;
  --cyan: #3aa0b8;
  --card-bg: #ffffff;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(20, 22, 26, 0.08);
  --shadow-md: 0 4px 14px rgba(20, 22, 26, 0.1);
  --shadow-lg: 0 8px 28px rgba(20, 22, 26, 0.14);
  --container: 1200px;
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.4;
  font-weight: 700;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 0.85em;
}

p:last-child {
  margin-bottom: 0;
}

/* 视觉隐藏（仅用于可访问性标签） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Layout · 全站骨架：页头、主容器、页脚
   ------------------------------------------------------------ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: var(--ink);
  color: #f5f2ec;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-shrink: 0;
}

.brand a {
  display: flex;
  flex-direction: column;
  color: #f5f2ec;
}

.brand a:hover {
  color: #f5f2ec;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.brand-slogan {
  font-size: 12px;
  color: #b9b4ac;
  margin-top: 2px;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: #e8e5df;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-list li a.is-current {
  color: #fff;
  background-color: var(--blue);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  color: #f5f2ec;
  font-size: 15px;
  font-family: inherit;
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: #f5f2ec;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #f5f2ec;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-text {
  font-weight: 500;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  background-color: var(--ink);
  color: #c9c5be;
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.footer-slogan {
  font-size: 14px;
  color: var(--amber);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #a8a49d;
}

.footer-col h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #b5b1aa;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: #8f8b85;
}

.footer-bottom p {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-bottom a {
  color: var(--amber);
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Layout · 内页统一样式：面包屑、页标题、容器
   ------------------------------------------------------------ */

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  padding: 16px 0 4px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #b5b0a8;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.page-header {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: var(--muted);
  max-width: 760px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 760px;
}

/* 图文媒体通用约束 */
.content-media {
  margin: 16px 0;
}

.content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.content-media-inline {
  max-width: 100%;
}

.content-media figcaption,
.topic-focus-image figcaption,
.preview-figure figcaption,
.faq-illustration figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Layout · 双栏布局：sidebar-right / sidebar-left
   ------------------------------------------------------------ */

.layout-shell {
  display: grid;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.sidebar-right {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.sidebar-right .main-content {
  min-width: 0;
}

.sidebar-right .sidebar-content {
  min-width: 0;
}

.sidebar-left {
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar-left .page-sidebar {
  min-width: 0;
}

.sidebar-left .page-content {
  min-width: 0;
}

/* ------------------------------------------------------------
   Components · 通用组件
   ------------------------------------------------------------ */

/* 卡片基类 */
.topic-card,
.featured-card,
.advice-card,
.example-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover,
.featured-card:hover,
.example-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* 折叠问答 details */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-item summary {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "＋";
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item summary:hover {
  background-color: #faf8f4;
}

.faq-answer {
  padding: 0 16px 14px 34px;
  font-size: 15px;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer a {
  font-weight: 500;
}

/* 步骤通用 */
.step-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

/* 正文列表 */
.check-list,
.boundary-list {
  margin: 12px 0 16px;
}

.check-list li,
.boundary-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.boundary-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

/* 提示框 */
.tip-box {
  background: #fdf6e8;
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 15px;
}

.tip-box p {
  margin-bottom: 0;
}

/* 相关链接列表 */
.related-list li {
  margin-bottom: 10px;
}

.related-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.related-list li a::before {
  content: "→";
  color: var(--accent);
}

/* ------------------------------------------------------------
   Components · 页头导航（移动端汉堡）
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 20px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 4px;
  }
}

/* ------------------------------------------------------------
   Pages · 首页（index.html）
   ------------------------------------------------------------ */

/* Hero 横幅 */
.hero-banner {
  background-color: var(--ink);
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 20px;
  color: #f5f2ec;
}

.hero-content h1 {
  color: #fff;
  font-size: 36px;
  line-height: 1.35;
  max-width: 640px;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 17px;
  color: #d5d1ca;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #f5f2ec;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* 三栏分区：快捷入口 / 站点说明 / 观看须知 */
.quick-info-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-col {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.info-col h2 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.quick-links li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.quick-links li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

.quick-links li a {
  font-weight: 500;
}

/* 频道标签带 */
.channel-tags-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 4px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

.tag-blue { background: var(--blue); }
.tag-green { background: var(--green); }
.tag-purple { background: var(--purple); }
.tag-orange { background: var(--amber); }
.tag-teal { background: var(--teal); }
.tag-pink { background: var(--pink); }
.tag-brown { background: var(--brown); }
.tag-cyan { background: var(--cyan); }

/* 题材卡片网格 */
.topic-grid-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 4px;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  padding: 0;
  overflow: hidden;
}

.topic-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.topic-card h3 {
  padding: 14px 16px 4px;
  font-size: 17px;
}

.topic-card p {
  padding: 0 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.topic-card .suit-audience {
  font-size: 13px;
  color: var(--text);
  padding-bottom: 14px;
}

.topic-card .suit-audience::before {
  content: "适合人群：";
  font-weight: 600;
  color: var(--ink);
}

/* 专题片单横排 */
.featured-list-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 4px;
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.featured-card {
  padding: 22px;
}

.featured-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.featured-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.featured-card a {
  font-weight: 600;
  font-size: 14px;
}

/* 使用流程步骤条 */
.steps-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 4px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps-row .step-item {
  text-align: left;
}

.steps-row .step-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.steps-row .step-item p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

/* FAQ 摘要 */
.faq-summary-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 4px;
}

.faq-summary-section .faq-item summary {
  font-size: 15px;
}

.faq-summary-section .faq-item p {
  font-size: 14px;
  color: var(--text);
}

.faq-summary-section .faq-item p a {
  font-weight: 600;
}

.faq-more-link {
  margin-top: 14px;
}

.faq-more-link a {
  font-weight: 600;
  font-size: 15px;
}

/* 边界声明条 */
.boundary-notice {
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 0 20px;
}

.boundary-notice p {
  background: #fdf6e8;
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 15px;
}

.boundary-notice strong {
  color: var(--ink);
}

/* ------------------------------------------------------------
   Pages · 频道总览（channel-overview.html）
   ------------------------------------------------------------ */

.page-channel-overview .layout-shell {
  margin-top: 8px;
}

/* 对象选择条 */
.channel-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.selector-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.selector-item:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.selector-item.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* 比较表 */
.channel-compare {
  margin-bottom: 24px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.compare-table tbody tr:nth-child(even) {
  background: #faf8f4;
}

.compare-table tbody tr:hover {
  background: #f3efe8;
}

.table-note {
  font-size: 13px;
  color: var(--muted);
}

/* 结论侧栏 */
.advice-card {
  padding: 22px;
  position: sticky;
  top: 84px;
}

.sidebar-title {
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.advice-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.advice-text {
  font-size: 15px;
  margin-bottom: 12px;
}

.advice-text strong {
  color: var(--ink);
}

.advice-alt {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.advice-alt strong {
  color: var(--text);
}

.advice-alt a {
  font-weight: 600;
}

/* 相关指引条 */
.related-guides {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.guide-icon {
  font-size: 20px;
  line-height: 1;
}

.guide-text {
  font-size: 15px;
  font-weight: 500;
}

/* ------------------------------------------------------------
   Pages · 题材案例（topic-showcase.html）
   ------------------------------------------------------------ */

.topic-intro {
  margin-bottom: 20px;
}

.topic-intro p {
  color: var(--muted);
  max-width: 760px;
}

.topic-focus-image {
  margin: 20px 0 28px;
}

.topic-focus-image img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* 题材卡片网格（内页六张紧凑卡） */
.page-topic-showcase .topic-card-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-topic-showcase .topic-card {
  padding: 18px;
}

.page-topic-showcase .topic-card img {
  display: none;
}

.topic-card-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.topic-card-feature {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.topic-card-audience {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.topic-card-audience::before {
  content: "适合人群：";
  font-weight: 600;
  color: var(--ink);
}

.topic-card-extension {
  font-size: 13px;
}

.topic-card-extension a {
  font-weight: 600;
}

/* 专题方向推荐条 */
.topic-direction-section {
  margin-top: 28px;
}

.direction-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.direction-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.direction-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.direction-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.direction-link {
  font-weight: 600;
  font-size: 14px;
}

/* 延伸阅读 */
.related-reads {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ------------------------------------------------------------
   Pages · 使用流程（usage-flow.html）
   ------------------------------------------------------------ */

/* 纵向四步 */
.usage-steps {
  margin-bottom: 28px;
}

.step-list {
  display: grid;
  gap: 16px;
}

.usage-steps .step-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.step-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-detail {
  display: grid;
  gap: 6px;
}

.detail-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}

.detail-row dt {
  color: var(--muted);
  font-weight: 500;
}

.detail-row dd {
  color: var(--text);
}

/* 界面预览 */
.ui-preview {
  margin-bottom: 28px;
}

.preview-figure {
  margin: 16px 0;
}

.preview-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.preview-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 760px;
}

/* 任务示例 */
.task-examples {
  margin-bottom: 28px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.example-card {
  padding: 20px;
}

.example-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.example-steps {
  margin-bottom: 10px;
}

.example-steps li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  margin-bottom: 6px;
}

.example-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.example-steps {
  counter-reset: step;
}

.example-tip {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.example-links {
  margin-top: 16px;
}

.example-links p {
  font-size: 14px;
}

.example-links a {
  font-weight: 600;
  margin-right: 12px;
}

/* 相关页面 */
.related-links {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ------------------------------------------------------------
   Pages · 内容说明（content-notes.html）
   ------------------------------------------------------------ */

.doc-toc {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 84px;
}

.toc-title {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list li a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.toc-list li a:hover {
  background: #f3efe8;
  color: var(--accent);
}

.toc-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.toc-note p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.doc-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-section:last-of-type {
  border-bottom: none;
}

.doc-section p {
  margin-bottom: 12px;
}

.version-bar {
  background: #fdf6e8;
  border: 1px solid #ecd9a8;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: #7a6420;
  margin: 16px 0;
}

.page-content-notes .related-links {
  margin-top: 8px;
}

/* ------------------------------------------------------------
   Pages · 问题解答（faq-center.html）
   ------------------------------------------------------------ */

/* 分组导航 */
.faq-group-nav {
  margin-bottom: 24px;
}

.group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.group-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* 分组问答 */
.faq-list-section {
  margin-bottom: 28px;
}

.faq-group {
  margin-bottom: 24px;
}

.faq-group-title {
  font-size: 18px;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

/* 自助排查步骤 */
.troubleshoot-steps {
  margin-bottom: 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.troubleshoot-steps .step-item {
  text-align: left;
}

.troubleshoot-steps .step-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.troubleshoot-steps .step-item p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

/* 插图 */
.faq-illustration {
  margin: 28px 0 0;
}

.faq-illustration img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ------------------------------------------------------------
   Pages · 404（404.html）
   ------------------------------------------------------------ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.error-content {
  max-width: 560px;
  text-align: center;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.error-content h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-desc {
  color: var(--muted);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.error-btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.error-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.error-help {
  font-size: 14px;
  color: var(--muted);
}

.error-help a {
  font-weight: 600;
  margin: 0 6px;
}

/* ------------------------------------------------------------
   Responsive · 响应式断点
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .topic-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-topic-showcase .topic-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-columns {
    grid-template-columns: 1fr 1fr;
  }

  .info-col:last-child {
    grid-column: span 2;
  }

  .sidebar-right {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  .sidebar-left {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .site-nav {
    top: 60px;
  }

  .hero-content {
    padding: 48px 20px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-tagline {
    font-size: 15px;
  }

  .info-columns {
    grid-template-columns: 1fr;
  }

  .info-col:last-child {
    grid-column: span 1;
  }

  .topic-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .page-topic-showcase .topic-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .featured-row {
    grid-template-columns: 1fr;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .direction-list {
    grid-template-columns: 1fr;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }

  .layout-shell.sidebar-right,
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar-right .sidebar-content,
  .sidebar-left .page-sidebar {
    position: static;
    order: 2;
  }

  .sidebar-right .main-content,
  .sidebar-left .page-content {
    order: 1;
  }

  .advice-card,
  .doc-toc {
    position: static;
  }

  .compare-table {
    min-width: 560px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .brand-col {
    grid-column: span 2;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 21px;
  }

  .usage-steps .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px;
  }

  .step-number {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .detail-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 14px;
  }

  .brand-slogan {
    display: none;
  }

  .inner-main {
    padding: 0 14px;
  }

  .hero-content {
    padding: 36px 14px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .quick-info-section,
  .channel-tags-section,
  .topic-grid-section,
  .featured-list-section,
  .steps-section,
  .faq-summary-section,
  .boundary-notice {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topic-card-grid,
  .page-topic-showcase .topic-card-grid {
    grid-template-columns: 1fr;
  }

  .topic-card img {
    height: 180px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 14px 20px;
  }

  .brand-col {
    grid-column: span 1;
  }

  .footer-bottom {
    padding: 12px 14px;
    font-size: 12px;
  }

  .page-title {
    font-size: 23px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .compare-table {
    min-width: 480px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .detail-row dt {
    font-weight: 600;
  }

  .faq-answer {
    padding-left: 16px;
  }

  .group-tabs {
    gap: 6px;
  }

  .group-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* ------------------------------------------------------------
   Motion · 轻量动效（不阻塞初始可见性）
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .topic-card,
  .featured-card,
  .example-card,
  .step-item,
  .guide-link,
  .direction-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .topic-card:hover,
  .featured-card:hover,
  .example-card:hover,
  .guide-link:hover,
  .direction-item:hover {
    transform: translateY(-2px);
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
