/* ==========================================================================
   base
   ========================================================================== */

:root {
  --color-ink: #1a1a2e;
  --color-muted: #55556a;
  --color-line: #e0e0e0;
  --color-bg: #ffffff;
  --color-accent: #0f3460;
  --color-highlight: #e94560;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo,
    monospace;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --transition-fast: 0.2s ease;
  --shadow-card: 0 1px 3px rgba(26, 26, 46, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: 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 var(--transition-fast);
}

a:hover {
  color: var(--color-highlight);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

time {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--color-highlight);
  background-color: rgba(233, 69, 96, 0.06);
}

.nav-list a.is-current {
  color: var(--color-highlight);
  font-weight: 600;
  background-color: rgba(233, 69, 96, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-ink);
  border-radius: 2px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  background-color: var(--color-ink);
  color: #c8c8d4;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand p {
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.footer-brand strong {
  display: block;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #a0a0b8;
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: #80809a;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* 内页通用布局
   .sidebar-left 是 body 的直接子元素，body 本身是 flex 列容器。
   内页通过 body.page-* 的 grid 布局实现侧栏在左、主内容在右。 */

body.page-inner {
  display: grid;
  grid-template-columns: 1fr;
}

body.page-inner .site-header,
body.page-inner .site-footer {
  grid-column: 1 / -1;
}

body.page-channels,
body.page-topics,
body.page-guide,
body.page-insight {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}

body.page-channels .site-header,
body.page-topics .site-header,
body.page-guide .site-header,
body.page-insight .site-header {
  grid-column: 1 / -1;
}

body.page-channels .site-footer,
body.page-topics .site-footer,
body.page-guide .site-footer,
body.page-insight .site-footer {
  grid-column: 1 / -1;
}

body.page-channels .sidebar-left,
body.page-topics .sidebar-left,
body.page-guide .sidebar-left,
body.page-insight .sidebar-left {
  grid-column: 1;
  grid-row: 2;
}

body.page-channels .site-main,
body.page-topics .site-main,
body.page-guide .site-main,
body.page-insight .site-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

/* 兼容 .sidebar-left 同时带有 .page-layout 的页面（channels）
   使用该结构时布局容器接管 grid。 */

.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.page-layout.sidebar-left .sidebar {
  grid-column: 1;
  min-width: 0;
}

.page-layout.sidebar-left .site-main {
  grid-column: 2;
  min-width: 0;
}

/* 当 body 是 grid 容器且 .page-layout 存在时，让布局容器占满网格第二行 */

body.page-channels .page-layout.sidebar-left {
  grid-column: 1 / -1;
  grid-row: 2;
}

body.page-channels .page-layout.sidebar-left .sidebar {
  grid-column: 1;
}

body.page-channels .page-layout.sidebar-left .site-main {
  grid-column: 2;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 面包屑 */

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-highlight);
}

.breadcrumb-sep {
  color: var(--color-line);
}

.breadcrumb-current {
  color: var(--color-ink);
  font-weight: 600;
}

/* 内页标题区 */

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}

.page-description {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-intro,
.page-lead {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 720px;
  margin-bottom: 0;
}

/* 侧栏 */

.sidebar,
.page-sidebar {
  padding-top: 32px;
}

.sidebar-inner {
  position: sticky;
  top: 88px;
}

.sidebar-label,
.sidebar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
}

.sidebar-nav ul,
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a,
.sidebar-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9375rem;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-list a:hover {
  background-color: rgba(15, 52, 96, 0.06);
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

.sidebar-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--color-ink);
}

.sidebar-note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 24px;
  padding: 16px;
  background-color: #f7f7f9;
  border-radius: var(--radius-md);
  line-height: 1.6;
}

.sidebar-note p {
  margin-bottom: 0;
}

/* 卡片通用 */

.channel-card,
.topic-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.channel-card:hover,
.topic-card:hover {
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.1);
  transform: translateY(-2px);
}

/* 图文容器 */

.channel-figure,
.hero-figure,
.guide-figure,
.insight-item-media figure,
.topic-card > img {
  overflow: hidden;
  background-color: #f0f0f4;
}

.channel-figure img,
.hero-figure img,
.guide-figure img,
.insight-item-media img,
.topic-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 按钮 */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast),
    color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: #0b2a4d;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: rgba(15, 52, 96, 0.06);
  color: var(--color-accent);
}

/* ==========================================================================
   pages
   ========================================================================== */

/* ---------- 首页 index.html ---------- */

.home-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 焦点报道 */

.hero-focus {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 48px 0;
  align-items: center;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
}

.hero-content {
  min-width: 0;
}

.hero-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-summary {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.hero-link {
  display: inline-block;
  font-weight: 600;
  color: var(--color-highlight);
}

.hero-link::after {
  content: "→";
  margin-left: 6px;
}

/* 频道导航 */

.channel-nav {
  padding: 40px 0;
  border-top: 1px solid var(--color-line);
}

.channel-nav h2,
.latest-news h2,
.topics h2,
.editor-picks h2,
.source-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.channel-nav > p,
.latest-news > p,
.topics > p,
.editor-picks > p,
.source-info > p {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.channel-tags a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.channel-tags a:hover {
  border-color: var(--color-accent);
  background-color: rgba(15, 52, 96, 0.04);
}

/* 最新资讯 */

.latest-news {
  padding: 40px 0;
  border-top: 1px solid var(--color-line);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: baseline;
}

.news-item h3 {
  grid-column: 1;
  font-size: 1.0625rem;
  font-weight: 600;
}

.news-item h3 a {
  color: var(--color-ink);
}

.news-item h3 a:hover {
  color: var(--color-highlight);
}

.news-meta {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.875rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.news-excerpt {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.more-link {
  margin-top: 24px;
  text-align: right;
}

.more-link a {
  font-weight: 600;
  color: var(--color-accent);
}

/* 专题推荐 */

.topics {
  padding: 40px 0;
  border-top: 1px solid var(--color-line);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
}

.topic-card > img {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.topic-card h3 {
  padding: 16px 16px 0;
  font-size: 1.125rem;
}

.topic-card h3 a {
  color: var(--color-ink);
}

.topic-card h3 a:hover {
  color: var(--color-highlight);
}

.topic-card p {
  padding: 8px 16px 16px;
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* 编辑推荐 */

.editor-picks {
  padding: 40px 0;
  border-top: 1px solid var(--color-line);
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pick-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 16px;
  background-color: #f7f7f9;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-highlight);
}

.pick-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

.pick-item h3 a {
  color: var(--color-ink);
}

.pick-item h3 a:hover {
  color: var(--color-highlight);
}

.pick-item p {
  grid-column: 2;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.pick-item::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-highlight);
  grid-column: 1;
  grid-row: 1 / span 2;
  line-height: 1.4;
}

/* 来源说明 */

.source-info {
  padding: 40px 0;
  border-top: 1px solid var(--color-line);
}

.source-info p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 720px;
}

/* ---------- 频道分类 channels.html ---------- */

.inner-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 0;
  width: 100%;
}

.channel-list {
  margin-bottom: 48px;
}

.channel-list h2,
.channel-intro h2 {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.channel-card {
  display: flex;
  flex-direction: column;
}

.channel-figure {
  aspect-ratio: 16 / 10;
}

.channel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.channel-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.channel-body p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  flex: 1;
  margin-bottom: 16px;
}

.channel-body a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-highlight);
}

.channel-intro {
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}

.channel-intro p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 720px;
}

/* ---------- 内容专题 topics.html ---------- */

.topic-list {
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.topic-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.topic-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.topic-title a {
  color: var(--color-ink);
}

.topic-title a:hover {
  color: var(--color-highlight);
}

.topic-excerpt {
  font-size: 0.9375rem;
  color: var(--color-muted);
  flex: 1;
  margin-bottom: 16px;
}

.topic-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-highlight);
}

.topic-intro {
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}

.intro-content p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 720px;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.intro-links a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-accent);
}

/* ---------- 实用指南 guide.html ---------- */

.guide-article {
  max-width: 720px;
}

.guide-section {
  margin-bottom: 48px;
  padding-top: 8px;
}

.guide-section h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
}

.guide-section p {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.method-card {
  padding: 20px;
  background-color: #f7f7f9;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-accent);
}

.method-card .step-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-highlight);
  display: block;
  margin-bottom: 8px;
}

.method-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.method-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.tips-list li {
  padding: 16px 20px;
  background-color: #f7f7f9;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}

.tips-list h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.tips-list p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.guide-figure {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

.guide-figure figcaption {
  font-size: 0.8125rem;
  color: var(--color-muted);
  padding: 8px 0 0;
  text-align: center;
}

/* ---------- 深度解读 insight.html ---------- */

.insight-articles {
  margin-bottom: 48px;
}

.insight-articles h2,
.analysis-framework h2,
.related-reading h2 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.insight-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: start;
}

.insight-item:first-of-type {
  padding-top: 0;
}

.insight-item-media {
  min-width: 0;
}

.insight-item-media figure {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
}

.insight-item-media figcaption {
  font-size: 0.75rem;
  color: var(--color-muted);
  padding-top: 6px;
}

.insight-item-body {
  min-width: 0;
}

.insight-item-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.item-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.insight-item-body p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.analysis-framework {
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
  margin-bottom: 48px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.framework-card {
  padding: 20px;
  background-color: #f7f7f9;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-highlight);
}

.framework-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.framework-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.framework-closing {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-top: 24px;
  max-width: 720px;
}

.related-reading {
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-top: 16px;
}

.related-list a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--color-ink);
  background-color: #f7f7f9;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--color-accent);
}

.related-list a:hover {
  color: var(--color-highlight);
  background-color: rgba(233, 69, 96, 0.04);
}

/* ---------- 404 页面 ---------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1;
}

.error-panel {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-highlight);
  line-height: 1.1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-focus {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 1.875rem;
  }

  .insight-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .insight-item-media {
    max-width: 320px;
  }

  body.page-channels,
  body.page-topics,
  body.page-guide,
  body.page-insight {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .page-layout.sidebar-left {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
    box-shadow: 0 8px 16px rgba(26, 26, 46, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .site-nav {
    position: relative;
  }

  /* 内页：手机端侧栏移到主内容之后 */

  body.page-channels,
  body.page-topics,
  body.page-guide,
  body.page-insight {
    display: flex;
    flex-direction: column;
  }

  body.page-channels .site-header,
  body.page-topics .site-header,
  body.page-guide .site-header,
  body.page-insight .site-header {
    order: 0;
  }

  body.page-channels .sidebar-left,
  body.page-topics .sidebar-left,
  body.page-guide .sidebar-left,
  body.page-insight .sidebar-left {
    order: 3;
    grid-column: auto;
    grid-row: auto;
  }

  body.page-channels .site-main,
  body.page-topics .site-main,
  body.page-guide .site-main,
  body.page-insight .site-main {
    order: 2;
    grid-column: auto;
    grid-row: auto;
  }

  body.page-channels .site-footer,
  body.page-topics .site-footer,
  body.page-guide .site-footer,
  body.page-insight .site-footer {
    order: 4;
  }

  .page-layout.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
  }

  .page-layout.sidebar-left .sidebar {
    order: 3;
    padding-top: 16px;
  }

  .page-layout.sidebar-left .site-main {
    order: 2;
  }

  .sidebar-inner {
    position: static;
  }

  .inner-main {
    padding: 24px 16px 0;
  }

  .home-main {
    padding: 0 16px;
  }

  .hero-focus {
    padding: 32px 0;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .channel-grid,
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-item article {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .news-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .pick-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .method-steps,
  .framework-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-inner {
    padding: 32px 16px 16px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 3rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .channel-tags {
    gap: 8px;
  }

  .channel-tags a {
    padding: 8px 14px;
    font-size: 0.875rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .insight-item-media {
    max-width: 100%;
  }

  .topic-card > img,
  .channel-figure {
    aspect-ratio: 16 / 10;
  }

  .hero-figure {
    aspect-ratio: 4 / 3;
  }
}
