/* ============================================================
   BASE — 变量、重置、全局排版与工具类
   ============================================================ */
:root {
  --color-primary: #0d2436;
  --color-bg: #f4f6f8;
  --color-card: #ffffff;
  --color-accent: #e67e22;
  --color-gray: #3a4f61;
  --color-muted: #7a8a99;
  --color-line: #e9edf1;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 36, 54, 0.06);
  --shadow-md: 0 2px 6px rgba(13, 36, 54, 0.08);
  --header-height: 68px;
  --content-max: 1200px;
  --sidebar-width: 320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-primary);
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  font-size: 16px;
}

time {
  color: var(--color-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   LAYOUT — 全站统一外壳：页头、主容器、页脚
   ============================================================ */
.site-header {
  background-color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(13, 36, 54, 0.2);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-area {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-shrink: 0;
}

.logo-link {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-link:hover {
  color: #ffffff;
  opacity: 0.88;
}

.slogan {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-list a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-list a.is-current {
  color: #ffffff;
  background-color: var(--color-accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 28px 24px 56px;
  width: 100%;
}

.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 40px;
}

.footer-columns {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul a:hover {
  color: var(--color-accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--color-muted);
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--color-primary);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--color-gray);
  max-width: 720px;
  line-height: 1.7;
}

/* 双栏布局 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

/* 侧栏通用 */
.sidebar {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}

.sidebar h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sidebar ul li {
  margin-bottom: 8px;
}

.sidebar ul a {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
}

.sidebar ul a:hover {
  color: var(--color-accent);
}

.sidebar-note {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
}

/* ============================================================
   COMPONENTS — 通用组件
   ============================================================ */
/* 内容图 */
.content-media {
  margin: 20px 0;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-media img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-muted);
  background-color: var(--color-card);
  border-top: 1px solid var(--color-line);
}

.content-media-inline {
  margin: 24px 0;
}

/* 卡片通用 hover */
.filter-card,
.resource-card,
.topic-card,
.step-card,
.dynamic-item,
.structure-card,
.sidebar-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-card:hover,
.resource-card:hover,
.topic-card:hover,
.step-card:hover,
.dynamic-item:hover,
.structure-card:hover,
.sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

/* ============================================================
   PAGES — 首页
   ============================================================ */
.home-main {
  width: 100%;
}

/* Hero 区 */
.hero-section {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 48px 0;
}

.hero-section .hero-copy,
.hero-section .hero-figure {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-section .hero-copy {
  text-align: left;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  max-width: 640px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hero-description {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-figure {
  margin-top: 28px;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* 用途筛选 */
.category-filter {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 16px;
}

.category-filter h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.filter-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: block;
}

.filter-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.filter-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* 更新记录 */
.update-record {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 24px 8px;
}

.update-record h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

.update-item:last-child {
  border-bottom: 0;
}

.update-item time {
  flex-shrink: 0;
  min-width: 72px;
}

.update-item .tag {
  flex-shrink: 0;
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--color-accent);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.update-item a {
  font-size: 15px;
  color: var(--color-primary);
  line-height: 1.5;
}

.update-item a:hover {
  color: var(--color-accent);
}

/* 精选资源 */
.featured-resources {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.featured-resources h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.resource-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.resource-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.resource-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.resource-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.resource-content h3 {
  font-size: 17px;
  line-height: 1.5;
}

.resource-content h3 a {
  color: var(--color-primary);
}

.resource-content h3 a:hover {
  color: var(--color-accent);
}

.resource-content p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  flex: 1;
}

.resource-content time {
  font-size: 13px;
}

/* 流程预览 */
.process-preview {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.process-preview h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.step-card .step-number {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* 专题推荐 */
.topic-recommend {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.topic-recommend h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.topic-recommend .topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.topic-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topic-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.topic-card h3 {
  font-size: 17px;
  padding: 14px 16px 4px;
}

.topic-card h3 a {
  color: var(--color-primary);
}

.topic-card h3 a:hover {
  color: var(--color-accent);
}

.topic-card p {
  font-size: 14px;
  color: var(--color-muted);
  padding: 0 16px 16px;
  line-height: 1.6;
}

/* 编辑说明 */
.editor-note {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 16px;
}

.editor-note h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.editor-note p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 820px;
}

/* ============================================================
   PAGES — 行业动态（industry）
   ============================================================ */
.dynamic-list-area {
  min-width: 0;
}

.dynamic-list-area h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dynamic-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
}

.dynamic-thumb {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dynamic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dynamic-content {
  min-width: 0;
  flex: 1;
}

.dynamic-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
}

.dynamic-content h3 a {
  color: var(--color-primary);
}

.dynamic-content h3 a:hover {
  color: var(--color-accent);
}

.dynamic-meta {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.dynamic-meta .dynamic-tag {
  display: inline-block;
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--color-accent);
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

.dynamic-summary {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination .current-page {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.pagination a {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-gray);
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 主题筛选侧栏 */
.topic-filter-sidebar {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.topic-filter-sidebar h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.topic-filter-sidebar .sidebar-note {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
  font-size: 13px;
  color: var(--color-muted);
}

.topic-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.topic-tag-list li {
  margin: 0;
}

.topic-tag-list a {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--color-gray);
  transition: all 0.2s ease;
}

.topic-tag-list a:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.sidebar-related {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.sidebar-related h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sidebar-related ul li {
  margin-bottom: 8px;
}

.sidebar-related ul a {
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-update-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.sidebar-update-note h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sidebar-update-note p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ============================================================
   PAGES — 入门指南（guide）
   ============================================================ */
.sidebar-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-links li {
  margin-bottom: 6px;
}

.sidebar-links a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-gray);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-links a:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

.content-area {
  min-width: 0;
}

.guide-steps h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.guide-steps > p {
  font-size: 15px;
  color: var(--color-gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.step-item .step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

.step-content {
  min-width: 0;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 6px;
}

.step-content p:last-child {
  margin-bottom: 0;
}

/* 内容结构说明 */
.structure-info {
  margin-top: 40px;
}

.structure-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.structure-info > p {
  font-size: 15px;
  color: var(--color-gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.structure-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.structure-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.structure-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
}

.structure-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
  padding: 14px 16px;
  background-color: var(--color-card);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
}

/* ============================================================
   PAGES — 专题资料（topic）
   ============================================================ */
.main-content {
  min-width: 0;
}

.topic-list-wrap {
  min-width: 0;
}

.topic-list-section .section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.topic-list-section .topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.topic-list-section .topic-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topic-cover {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.topic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.topic-name a {
  color: var(--color-primary);
}

.topic-name a:hover {
  color: var(--color-accent);
}

.topic-summary {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  flex: 1;
}

.topic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-muted);
  padding-top: 10px;
  border-top: 1px solid var(--color-line);
}

.topic-count {
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--color-accent);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.topic-date {
  font-size: 13px;
}

/* 专题侧栏 */
.topic-sidebar {
  min-width: 0;
}

.sidebar-inner {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}

.sidebar-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  padding: 10px 12px;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}

.related-item a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: block;
  margin-bottom: 4px;
}

.related-type {
  display: inline-block;
  font-size: 12px;
  color: var(--color-muted);
}

.sidebar-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
}

.sidebar-note h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

/* ============================================================
   PAGES — 内容详情（article）
   ============================================================ */
.content-main {
  min-width: 0;
}

.article-intro {
  font-size: 17px;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  font-size: 16px;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-figure {
  margin: 24px 0;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-muted);
  background-color: var(--color-card);
  border-top: 1px solid var(--color-line);
}

/* 来源注释 */
.source-notes {
  margin-top: 36px;
  padding: 20px;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.source-notes h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.source-notes ul li {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.source-notes ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* 内容侧栏 */
.content-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.side-block {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.side-block h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}

.side-block ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}

.side-block ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.side-block ul a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray);
}

.side-block ul a:hover {
  color: var(--color-accent);
}

.side-block p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ============================================================
   PAGES — 常见问题（faq）
   ============================================================ */
.faq-content {
  min-width: 0;
}

.faq-group {
  margin-bottom: 36px;
}

.faq-group h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.faq-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--color-accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  background-color: rgba(230, 126, 34, 0.04);
  border-bottom: 1px solid var(--color-line);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background-color: rgba(230, 126, 34, 0.06);
}

.faq-answer {
  padding: 16px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--color-accent);
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* 主题目录 */
.topic-directory li {
  margin-bottom: 4px;
}

.topic-directory a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-gray);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.topic-directory a:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

/* ============================================================
   PAGES — 404
   ============================================================ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1;
}

.error-content {
  text-align: center;
  max-width: 480px;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.error-content h1 {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: var(--color-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-home-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.error-home-link:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* ============================================================
   RESPONSIVE — 响应式断点
   ============================================================ */
/* 平板 768-1023px */
@media (max-width: 1023px) {
  .header-inner {
    padding: 0 20px;
  }

  .inner-main {
    padding: 24px 20px 48px;
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* 侧栏在正文下方 */
  .page-layout .sidebar,
  .page-layout .topic-filter-sidebar,
  .page-layout .topic-sidebar,
  .page-layout .content-side,
  .page-layout.sidebar-left .sidebar {
    order: 2;
  }

  .page-layout .dynamic-list-area,
  .page-layout .content-area,
  .page-layout .main-content,
  .page-layout .content-main,
  .page-layout .faq-content,
  .page-layout.sidebar-left .content-area,
  .page-layout.sidebar-left .faq-content {
    order: 1;
  }

  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-card-list {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .dynamic-item {
    flex-direction: column;
  }

  .dynamic-thumb {
    width: 100%;
    height: 180px;
  }

  .structure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机 <768px */
@media (max-width: 767px) {
  .header-inner {
    height: auto;
    min-height: var(--header-height);
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo-area {
    flex: 1;
    min-width: 0;
  }

  .slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav .nav-list a.is-current {
    border-radius: var(--radius-sm);
    margin: 4px 8px;
  }

  .inner-main {
    padding: 20px 16px 40px;
  }

  .page-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 14px;
  }

  /* 首页 */
  .hero-section {
    padding: 32px 0;
  }

  .hero-section .hero-copy,
  .hero-section .hero-figure {
    padding: 0 16px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-figure {
    margin-top: 20px;
  }

  .hero-image {
    max-height: 220px;
  }

  .category-filter,
  .update-record,
  .featured-resources,
  .process-preview,
  .topic-recommend,
  .editor-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-filter {
    padding-top: 28px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-card {
    padding: 16px;
  }

  .update-item {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .update-item time {
    min-width: 0;
  }

  .update-item a {
    width: 100%;
    order: 3;
  }

  .resource-card-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .resource-card img {
    height: 140px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-card {
    padding: 18px;
  }

  .topic-recommend .topic-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topic-card img {
    height: 140px;
  }

  /* 内页 */
  .page-layout,
  .page-layout.sidebar-left {
    gap: 20px;
  }

  .dynamic-item {
    padding: 14px;
  }

  .dynamic-thumb {
    height: 150px;
  }

  .dynamic-content h3 {
    font-size: 16px;
  }

  .dynamic-summary {
    -webkit-line-clamp: 3;
  }

  .topic-list-section .topic-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topic-cover {
    height: 140px;
  }

  .structure-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .step-item .step-number {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 15px;
  }

  .article-intro {
    font-size: 15px;
  }

  .article-body h2 {
    font-size: 20px;
  }

  .article-body p {
    font-size: 15px;
  }

  .article-figure img {
    max-height: 240px;
  }

  .source-notes {
    padding: 16px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 14px 40px 14px 16px;
  }

  .faq-answer {
    padding: 14px 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px 20px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-content {
    padding: 32px 24px;
  }

  .error-content h1 {
    font-size: 48px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

/* 小屏手机 <390px */
@media (max-width: 389px) {
  .logo-link {
    font-size: 19px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-section h1 {
    font-size: 22px;
  }

  .hero-description {
    font-size: 14px;
  }

  .filter-card h3 {
    font-size: 16px;
  }

  .resource-content {
    padding: 14px;
  }

  .resource-content h3 {
    font-size: 16px;
  }

  .topic-card-body {
    padding: 14px;
  }

  .topic-name {
    font-size: 16px;
  }

  .dynamic-thumb {
    height: 130px;
  }

  .footer-columns {
    padding-left: 16px;
    padding-right: 16px;
  }
}
