/* ============================================================
   17c吃瓜 — 全站样式表
   视觉方向：金融研究风（紧凑、理性、信息密度优先）
   ============================================================ */

/* ============================================================
   1. Base — 基础变量、重置、全局排版
   ============================================================ */

:root {
  --color-ink: #1a1a2e;
  --color-bg: #e0e0e0;
  --color-surface: #ffffff;
  --color-accent: #2d6a4f;
  --color-warn: #9d0208;
  --color-text: #2b2b33;
  --color-text-light: #5c5c66;
  --color-line: #d4d4d8;
  --color-line-dark: #b8b8c0;

  --font-head: Arial, Helvetica, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;

  --container-w: 1200px;
  --sidebar-w: 260px;
  --radius: 8px;
  --radius-sm: 4px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-xxl: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-ink);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--color-ink);
  line-height: 1.3;
}

h1 {
  font-size: 30px;
  font-weight: 700;
}

h2 {
  font-size: 22px;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  font-weight: 600;
}

p {
  margin-bottom: 12px;
}

strong {
  font-weight: 700;
  color: var(--color-ink);
}

/* ============================================================
   2. Layout — 全站骨架、页头、页脚、侧栏布局
   ============================================================ */

/* --- 全站页头 --- */

.site-header {
  background: var(--color-ink);
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.brand-slogan {
  font-size: 12px;
  color: #a8a8b8;
  line-height: 1.4;
}

/* 导航 */

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: #d0d0dc;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

/* 汉堡按钮 — 默认隐藏 */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

/* --- 页脚 --- */

.site-footer {
  background: var(--color-ink);
  color: #b0b0c0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #9090a0;
  max-width: 280px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  font-family: var(--font-head);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #9090a0;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 12px;
  color: #707080;
  text-align: center;
}

/* --- 内页侧栏布局 --- */
/* 侧栏在左，主内容在右，DOM 顺序为 aside 在前、main 在后 */

.layout-shell.sidebar-left {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 24px;
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  flex: 1;
}

/* 侧栏 */

.page-sidebar,
.sidebar {
  position: sticky;
  top: 84px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-inner {
  padding: 20px 16px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-ink);
  margin-bottom: 12px;
  font-family: var(--font-head);
}

.sidebar-list li,
.sidebar-nav-item {
  border-bottom: 1px solid var(--color-line);
}

.sidebar-list li:last-child,
.sidebar-nav-item:last-child {
  border-bottom: none;
}

.sidebar-list a,
.sidebar-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-left: 3px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.sidebar-list a:hover,
.sidebar-nav a:hover {
  color: var(--color-accent);
  background: #f2f2f5;
  border-left-color: var(--color-accent);
}

/* 主内容区 */

.site-main {
  width: 100%;
  min-width: 0;
}

.inner-main {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px;
  min-width: 0;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}

.breadcrumb a {
  color: var(--color-accent);
  font-family: var(--font-head);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--color-line-dark);
}

.breadcrumb-current {
  color: var(--color-text-light);
  font-family: var(--font-head);
}

/* 页面标题区 */

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-description {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 0;
}

/* 通用区块标题 */

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 6px;
  font-family: var(--font-head);
}

.section-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ============================================================
   3. Components — 通用组件
   ============================================================ */

/* 按钮 */

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #245a3f;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-line-dark);
  color: var(--color-ink);
}

.btn-secondary:hover {
  border-color: var(--color-ink);
  background: #f2f2f5;
}

/* FAQ 手风琴 */

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--color-surface);
}

.faq-question {
  padding: 14px 16px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

.faq-answer p {
  margin-bottom: 8px;
}

/* 图注 */

figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
  padding: 8px 0;
  line-height: 1.5;
  font-style: italic;
}

/* 时间线列表 */

.timeline-list {
  border-left: 2px solid var(--color-line-dark);
  padding-left: 20px;
  margin: 12px 0;
}

.timeline-list li {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ============================================================
   4. Pages — 页面专属模块
   ============================================================ */

/* ========== 首页 ========== */

.site-home {
  flex: 1;
}

.home-main {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 焦点报道区 */

.hero-focus {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.hero-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-head);
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  min-height: 260px;
  position: relative;
  background: var(--color-ink);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* 频道导航带 */

.channel-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.channel-tag {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  background: #f2f2f5;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.channel-tag:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

/* 最新资讯列表 */

.latest-news {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 16px;
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  grid-column: 1;
  grid-row: 1;
}

.news-title a {
  color: var(--color-ink);
}

.news-title a:hover {
  color: var(--color-accent);
}

.news-summary {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
}

.news-date {
  font-size: 12px;
  color: var(--color-text-light);
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
  font-family: var(--font-head);
  padding-top: 2px;
}

/* 专题推荐 */

.topic-recommend {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
}

.topic-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.topic-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  transition: box-shadow 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.topic-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-ink);
}

.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.topic-card:hover .topic-media img {
  transform: scale(1.03);
}

.topic-title {
  font-size: 17px;
  font-weight: 600;
  padding: 16px 16px 8px;
  line-height: 1.4;
}

.topic-title a {
  color: var(--color-ink);
}

.topic-title a:hover {
  color: var(--color-accent);
}

.topic-summary {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  padding: 0 16px;
  margin-bottom: 12px;
  flex: 1;
}

.topic-link {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px 16px;
  color: var(--color-accent);
}

.topic-link:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

/* 编辑推荐 */

.editor-picks {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pick-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pick-item:hover {
  border-color: var(--color-line-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pick-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-ink);
  border-radius: var(--radius-sm);
}

.pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.pick-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.pick-title a {
  color: var(--color-ink);
}

.pick-title a:hover {
  color: var(--color-accent);
}

.pick-reason {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* 来源说明 */

.source-feedback {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 3px solid var(--color-accent);
}

.source-content p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.source-content p:last-child {
  margin-bottom: 0;
}

/* ========== 频道分类页 ========== */

.page-channels .inner-main {
  padding: 28px;
}

/* 频道列表 */

.channel-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 80px;
}

.channel-item:first-of-type {
  padding-top: 0;
}

.channel-item:last-of-type {
  border-bottom: none;
}

.channel-item-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #f2f2f5;
}

.channel-item-text {
  min-width: 0;
}

.channel-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.channel-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

.channel-latest {
  margin-top: 8px;
  padding-left: 58px;
}

.channel-latest-item {
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.channel-latest-item a {
  color: var(--color-ink);
  line-height: 1.4;
}

.channel-latest-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.channel-latest-date {
  font-size: 12px;
  color: var(--color-text-light);
  white-space: nowrap;
  font-family: var(--font-head);
  flex-shrink: 0;
}

/* 频道预览 */

.channel-preview-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--color-ink);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.preview-col {
  background: #f7f7f9;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.preview-col-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-head);
}

.preview-list li {
  margin-bottom: 8px;
}

.preview-item {
  font-size: 13px;
  line-height: 1.4;
}

.preview-item a {
  color: var(--color-text);
  display: block;
}

.preview-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* 频道指南 */

.channel-guide {
  margin-top: 24px;
  padding: 20px;
  background: #f7f7f9;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.guide-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 10px;
}

.guide-text strong {
  color: var(--color-ink);
}

/* ========== 内容专题页 ========== */

.page-topic .inner-main {
  padding: 28px;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.topic-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  scroll-margin-top: 80px;
}

.topic-media {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--color-ink);
}

.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-content {
  padding: 20px;
}

.topic-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.topic-summary {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}

.topic-detail h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 6px;
  padding-left: 10px;
  border-left: 3px solid var(--color-accent);
}

.topic-detail p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 专题阅读引导 */

.topic-guide {
  margin-top: 28px;
  padding: 20px;
  background: var(--color-ink);
  border-radius: var(--radius);
  color: #d0d0dc;
}

.topic-guide-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  font-family: var(--font-head);
}

.topic-guide p {
  font-size: 14px;
  line-height: 1.6;
  color: #b0b0c0;
  margin-bottom: 8px;
}

.topic-guide p:last-child {
  margin-bottom: 0;
}

/* ========== 实用指南页 ========== */

.page-guide .inner-main {
  padding: 28px;
}

.guide-section {
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}

.guide-section .section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 16px;
}

.guide-figure {
  margin: 16px 0;
  background: #f7f7f9;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-section p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.guide-list {
  margin: 12px 0;
  padding-left: 4px;
}

.guide-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--color-line);
}

.guide-list li:last-child {
  border-bottom: none;
}

.guide-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-accent);
}

.sub-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin-top: 16px;
  margin-bottom: 6px;
  font-family: var(--font-head);
}

.guide-section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-section a:hover {
  color: var(--color-ink);
}

.source-note {
  background: #f7f7f9;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.source-note .section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

/* ========== 深度解读页 ========== */

.page-deep-dive .inner-main {
  padding: 28px;
}

.article-content {
  max-width: 720px;
}

.content-section {
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 16px;
}

.content-section p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.content-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 6px;
  font-family: var(--font-head);
}

.content-section strong {
  color: var(--color-ink);
}

.content-figure {
  margin: 20px 0;
  background: #f7f7f9;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.content-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.related-links {
  margin-top: 32px;
  padding: 20px;
  background: #f7f7f9;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.related-links h2 {
  font-size: 17px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.related-links p {
  font-size: 14px;
  line-height: 1.6;
}

.related-links a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.related-list {
  margin-top: 12px;
}

.related-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  color: var(--color-ink);
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}

.related-list a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ========== 404 页 ========== */

.site-error {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px;
}

.error-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}

.error-code {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.error-guide {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.error-action {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.error-action:hover {
  background: #245a3f;
  color: #ffffff;
}

/* ============================================================
   5. Responsive — 响应式断点
   ============================================================ */

/* --- 平板及以下 --- */

@media (max-width: 1024px) {
  .layout-shell.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
  }

  .hero-focus {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    padding: 24px 20px;
  }

  .hero-title {
    font-size: 26px;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .preview-col:nth-child(4),
  .preview-col:nth-child(5) {
    grid-column: span 1;
  }

  .pick-item {
    grid-template-columns: 120px 1fr;
  }
}

/* --- 手机端 --- */

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    flex-wrap: wrap;
  }

  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 20px;
  }

  /* 汉堡按钮显示 */

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* 导航默认收起 */

  .site-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link.is-current {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  /* 侧栏布局切换为单列，主内容在前 */

  .layout-shell.sidebar-left {
    display: block;
    padding: 12px;
  }

  .page-sidebar,
  .sidebar {
    position: static;
    margin-bottom: 16px;
    order: 2;
  }

  .inner-main {
    padding: 20px 16px;
    order: 1;
  }

  /* 页脚 */

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-copyright {
    grid-column: 1;
  }

  /* 首页 */

  .home-main {
    padding: 12px;
    gap: 24px;
  }

  .hero-focus {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 24px 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-media {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .hero-media img {
    position: static;
  }

  .channel-bar,
  .latest-news,
  .topic-recommend,
  .editor-picks,
  .source-feedback {
    padding: 16px;
  }

  .news-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 4px;
  }

  .news-title {
    grid-column: 1;
    grid-row: 1;
  }

  .news-date {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 4px;
  }

  .news-summary {
    grid-column: 1;
    grid-row: 3;
  }

  .topic-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pick-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pick-media {
    aspect-ratio: 16 / 8;
  }

  /* 频道页 */

  .page-channels .inner-main,
  .page-topic .inner-main,
  .page-guide .inner-main,
  .page-deep-dive .inner-main {
    padding: 16px;
  }

  .channel-latest {
    padding-left: 0;
  }

  .channel-latest-item {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }

  .preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* 专题页 */

  .topic-media {
    aspect-ratio: 16 / 7;
  }

  .topic-content {
    padding: 16px;
  }

  /* 指南页 */

  .guide-figure img {
    aspect-ratio: 16 / 9;
  }

  /* 深度解读 */

  .content-image {
    aspect-ratio: 16 / 10;
  }

  /* 404 */

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* --- 小屏手机 --- */

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-title {
    font-size: 21px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }
}
