/* ==========================================================================
   糖心 fortunetyre.cn — 整站样式表
   低饱和多彩风 · 灰白底 · 左侧固定目录 · 右侧内容区
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base — 基础变量、Reset、字体、通用元素
   -------------------------------------------------------------------------- */
:root {
  --bg-body: #f6f7f9;
  --bg-card: #ffffff;
  --text-main: #2d3436;
  --text-sub: #6b7280;
  --accent: #3d5a80;
  --accent-dark: #2f4a6b;
  --tone-blue: #8fa3b8;
  --tone-green: #9fb4a2;
  --tone-brown: #b8a88a;
  --tone-purple: #b08fa0;
  --border-light: #e5e8ec;
  --border-mid: #d3d8de;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 3px rgba(45, 52, 54, 0.06);
  --shadow-hover: 0 6px 18px rgba(45, 52, 54, 0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1240px;
  --main-max: 900px;
  --sidebar-width: 220px;
  --header-h: 60px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-body);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; font-weight: 600; }

p {
  margin-bottom: 0.75rem;
}

.sr-only {
  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-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 12px;
  color: var(--text-sub);
}

/* 导航按钮（移动端汉堡） */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
}

/* 桌面导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  background: var(--bg-body);
  color: var(--accent);
}

.nav-item.is-current .nav-link {
  color: var(--accent);
  font-weight: 600;
  background: rgba(61, 90, 128, 0.08);
}

/* 布局外壳：侧栏 + 主内容 */
.layout-shell,
.page-layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* 侧栏（左侧目录） */
.sidebar,
.sidebar-nav,
.page-sidebar,
.side-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-label,
.sidebar-title,
.side-nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-list,
.sidebar-nav-list,
.side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item a,
.sidebar-nav-item a,
.side-nav-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.sidebar-item a:hover,
.sidebar-nav-item a:hover,
.side-nav-list li a:hover {
  background: var(--bg-body);
  color: var(--accent);
}

.sidebar-item.is-current a,
.sidebar-nav-item.is-current a,
.side-nav-list li.is-current a {
  background: rgba(61, 90, 128, 0.08);
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

/* 主内容区 */
.site-main {
  min-width: 0;
}

.inner-main {
  max-width: var(--main-max);
  min-width: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border-mid);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-description {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 640px;
}

/* 页脚 */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px 24px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  font-size: 13px;
  color: var(--text-sub);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Components — 按钮、卡片、筛选条、时间线、折叠、步骤、清单、结果数量
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-mid);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary {
  background: var(--bg-body);
  border-color: var(--border-mid);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 筛选条 */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.filter-title {
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  min-height: 32px;
  line-height: 1.4;
}

.filter-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

/* 结果数量 */
.result-count {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.result-count strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 4px;
}

/* 区块标题 */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-more {
  font-size: 13px;
  color: var(--text-sub);
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.section-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 时间线 */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-size: 13px;
  color: var(--text-sub);
  flex-shrink: 0;
  min-width: 64px;
  padding-top: 2px;
}

.timeline-text {
  font-size: 14px;
  flex: 1;
  margin-bottom: 0;
}

.timeline-status {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--bg-body);
  color: var(--text-sub);
  flex-shrink: 0;
}

/* 折叠问答 */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-sub);
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--text-sub);
}

.faq-answer p {
  margin-bottom: 0;
}

/* 步骤条（首页） */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.step-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-text {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* 清单（guide 页） */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
}

.check-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.check-text {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* 相关入口 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.related-links-label {
  font-size: 13px;
  color: var(--text-sub);
}

.related-links-item {
  font-size: 14px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.related-links-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.related-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.related-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.related-desc {
  font-size: 14px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   Pages — 首页
   -------------------------------------------------------------------------- */

.home-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Hero 焦点区 */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  margin: 0;
}

.hero-image {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* 内容方向速览 */
.directions-preview {
  padding: 24px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.direction-card {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.direction-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.direction-tag {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.tone-blue .direction-tag { background: var(--tone-blue); }
.tone-green .direction-tag { background: var(--tone-green); }
.tone-brown .direction-tag { background: var(--tone-brown); }
.tone-purple .direction-tag { background: var(--tone-purple); }

.direction-image {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 12px;
}

.direction-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.direction-text {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
  flex: 1;
}

.direction-link {
  font-size: 13px;
  font-weight: 500;
}

/* 精选片单推荐 */
.collections-preview {
  padding: 24px;
}

.collection-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.collection-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.collection-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.collection-cover {
  width: 96px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.collection-info {
  flex: 1;
  min-width: 0;
}

.collection-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.collection-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.collection-link {
  font-size: 13px;
  font-weight: 500;
}

/* 整理进展时间线（首页） */
.progress-preview {
  padding: 24px;
}

.progress-preview .timeline-item {
  padding: 12px 0;
}

/* 观看说明入口 */
.guide-preview {
  padding: 24px;
}

/* 读者交流入口 */
.feedback-preview {
  padding: 24px;
}

.feedback-preview .section-title {
  margin-bottom: 6px;
}

.feedback-preview .btn {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Pages — 内容方向页
   -------------------------------------------------------------------------- */

.direction-list {
  margin-top: 8px;
}

.direction-list .section-title {
  margin-bottom: 16px;
}

.direction-list .direction-card {
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.direction-color {
  width: 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.color-blue { background: var(--tone-blue); }
.color-green { background: var(--tone-green); }
.color-brown { background: var(--tone-brown); }
.color-purple { background: var(--tone-purple); }

.direction-media {
  flex-shrink: 0;
}

.direction-media img {
  width: 160px;
  height: 110px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.direction-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.direction-type {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.direction-body .direction-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.direction-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
  flex: 1;
}

.direction-body .direction-link {
  font-size: 13px;
  font-weight: 500;
}

/* 相关入口区块 */
.related-entry {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.related-entry .section-title {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Pages — 整理进展页
   -------------------------------------------------------------------------- */

.progress-section {
  margin-bottom: 28px;
}

.progress-section .section-title {
  margin-bottom: 12px;
}

/* 当前阶段说明 */
.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 3px solid var(--accent);
}

.stage-text {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.stage-text:last-child {
  margin-bottom: 0;
}

.stage-text b {
  color: var(--accent);
  font-weight: 600;
}

/* 时间线（进展页） */
.timeline-wrap {
  display: flex;
  flex-direction: column;
}

.timeline-wrap .timeline-item {
  padding: 16px 0;
}

.timeline-date {
  min-width: 110px;
}

.timeline-date time {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.status-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--bg-body);
  color: var(--text-sub);
}

.status-done {
  background: rgba(159, 180, 162, 0.15);
  color: #5a7a5e;
}

.status-progress {
  background: rgba(143, 163, 184, 0.15);
  color: var(--accent);
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-heading {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* 更正入口 */
.correction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 3px solid var(--tone-brown);
}

.correction-text {
  font-size: 14px;
  margin-bottom: 6px;
}

.correction-text:last-child {
  margin-bottom: 0;
}

.correction-text a {
  font-weight: 500;
}

/* 进展页内联图 */
.content-media-inline {
  margin: 0 0 16px;
}

.content-media-inline img {
  width: 100%;
  max-height: 260px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.content-media-inline figcaption {
  font-size: 12px;
  color: var(--text-sub);
  padding: 6px 0 0;
}

/* --------------------------------------------------------------------------
   Pages — 片单目录页
   -------------------------------------------------------------------------- */

.collection-list {
  margin-top: 8px;
}

.collection-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.collection-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.collection-cover {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.collection-info {
  flex: 1;
  min-width: 0;
}

.collection-info .collection-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.collection-info .collection-desc {
  font-size: 13px;
  margin-bottom: 6px;
}

.collection-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.meta-label {
  display: inline-block;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
}

.collection-info .collection-link {
  font-size: 13px;
  font-weight: 500;
}

/* 片单页相关入口 */
.related-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   Pages — 观看说明页
   -------------------------------------------------------------------------- */

.content-section {
  margin-bottom: 32px;
  padding-top: 4px;
}

.content-section .section-title {
  margin-bottom: 8px;
}

.content-section .section-desc {
  margin-bottom: 16px;
}

/* 步骤卡片 */
.guide-flow {
  margin-bottom: 16px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 3px solid var(--accent);
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.step-card .step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-card .step-text {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.text-link {
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
}

/* 流程图 */
.guide-figure {
  margin: 20px 0 0;
}

.guide-figure img {
  width: 100%;
  max-height: 280px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 12px;
  color: var(--text-sub);
  padding: 8px 0 0;
}

/* 相关卡片 */
.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.related-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.related-desc {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   Pages — 读者交流页
   -------------------------------------------------------------------------- */

.feedback-scope,
.feedback-steps,
.faq-section,
.boundary-section {
  margin-bottom: 28px;
}

.feedback-scope .section-title,
.feedback-steps .section-title,
.faq-section .section-title,
.boundary-section .section-title {
  margin-bottom: 10px;
}

.scope-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.scope-list li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* 反馈引导流程 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.step-list li {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border-left: 3px solid var(--tone-green);
}

.step-list h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-list p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* 内容边界 */
.boundary-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.boundary-list li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* 反馈页相关入口 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.related-links p {
  margin-bottom: 0;
  font-size: 14px;
}

.related-links a {
  font-weight: 500;
  margin-right: 4px;
}

/* 反馈流程图 */
.feedback-figure {
  margin: 24px 0 0;
}

.feedback-figure img {
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.feedback-figure figcaption {
  font-size: 12px;
  color: var(--text-sub);
  padding: 8px 0 0;
}

/* --------------------------------------------------------------------------
   Pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.error-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive — 断点：768px / 480px
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  /* 页头 */
  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 15px;
  }

  /* 布局切换为单列，主内容在前 */
  .layout-shell,
  .page-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 16px 40px;
  }

  /* 侧栏在移动端收起为抽屉，不占主内容之前的位置 */
  .sidebar,
  .sidebar-nav,
  .page-sidebar,
  .side-nav {
    display: none;
  }

  /* 主内容 */
  .inner-main {
    max-width: 100%;
  }

  /* Hero */
  .hero-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-image {
    height: 200px;
  }

  /* 方向网格 */
  .direction-grid {
    grid-template-columns: 1fr;
  }

  /* 方向卡片（内页） */
  .direction-list .direction-card {
    flex-direction: column;
  }

  .direction-media img {
    width: 100%;
    height: 160px;
  }

  /* 片单卡片 */
  .collection-card {
    flex-direction: column;
  }

  .collection-cover {
    width: 100%;
    height: 160px;
  }

  /* 步骤 */
  .steps-row {
    grid-template-columns: 1fr;
  }

  /* 相关卡片 */
  .related-list {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 16px 12px;
  }

  .footer-bottom {
    padding: 12px 16px 20px;
  }
}

@media (max-width: 480px) {
  /* 品牌 */
  .brand-tag {
    display: none;
  }

  /* 页面标题 */
  .page-header {
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 22px;
  }

  /* 区块 */
  .section-block,
  .hero-card,
  .directions-preview,
  .collections-preview,
  .progress-preview,
  .guide-preview,
  .feedback-preview {
    padding: 16px;
  }

  /* 时间线 */
  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-date {
    min-width: 0;
  }

  /* 进展页时间线 */
  .timeline-wrap .timeline-item {
    flex-direction: column;
  }

  .timeline-date {
    min-width: 0;
  }

  /* 筛选条 */
  .filter-bar {
    padding: 10px 12px;
  }

  .filter-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  /* 片单条目 */
  .collection-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .collection-cover {
    width: 100%;
    height: 140px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 错误页 */
  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* --------------------------------------------------------------------------
   Motion — 轻量动效（不影响初始可见性）
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .direction-card,
  .collection-item,
  .collection-card,
  .step-item,
  .related-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .direction-card:hover,
  .collection-item:hover,
  .collection-card:hover,
  .step-item:hover,
  .related-card: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;
  }
}
