/* ==========================================================================
   吃瓜网官网 - 全站样式表
   版本: 1.0
   说明: 覆盖首页、内页、404页全部DOM结构，响应式断点统一
   ========================================================================== */

/* ==========================================================================
   BASE - 基础样式
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e74c3c;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

p {
  margin-bottom: 1em;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
}

/* 公共容器宽度 */
.header-inner,
.site-main,
.footer-related,
.footer-info {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   LAYOUT - 布局骨架
   ========================================================================== */

/* 站点根容器 */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-home {
  padding-bottom: 0;
}

.site-inner {
  padding-bottom: 0;
}

.inner-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* 内页统一布局壳 */
.layout-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 主内容 + 侧栏布局 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.main-content {
  min-width: 0;
  min-height: 0;
}

/* 侧栏通用 */
.sidebar,
.sidebar-content,
.related-sidebar {
  min-width: 0;
}

/* ==========================================================================
   COMPONENTS - 公共组件
   ========================================================================== */

/* 页头 */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.8125rem;
  color: #888;
  display: none;
}

/* 主导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: #333;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: #e74c3c;
  background-color: #f8f8f8;
}

.nav-list li a.is-current {
  color: #e74c3c;
  font-weight: 600;
  background-color: #fdf0ef;
}

.nav-toggle {
  display: none;
}

/* 页头工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.search-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #888;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: default;
}

.search-tip::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #999;
  border-radius: 50%;
  position: relative;
}

.search-tip::after {
  content: "";
  width: 2px;
  height: 6px;
  background-color: #999;
  position: relative;
  left: -4px;
  top: 6px;
  transform: rotate(-45deg);
}

.feedback-link {
  font-size: 0.875rem;
  color: #2c3e50;
  padding: 6px 14px;
  border: 1px solid #2c3e50;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.feedback-link:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.breadcrumb a {
  color: #2c3e50;
}

.breadcrumb a:hover {
  color: #e74c3c;
}

.breadcrumb-sep {
  color: #ccc;
}

.breadcrumb-current {
  color: #666;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-description {
  font-size: 1.0625rem;
  color: #555;
  max-width: 720px;
  line-height: 1.8;
}

/* 区块标题 */
.section-title,
.block-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title::after {
  content: "";
  flex: 0 0 48px;
  height: 2px;
  background-color: #e74c3c;
}

/* 更新时间/状态标签 */
.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #e74c3c;
  background-color: #fdf0ef;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 600;
}

.news-date {
  font-size: 0.8125rem;
  color: #999;
}

/* 侧栏通用样式 */
.sidebar-block,
.sidebar-inner {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-list li,
.sidebar-links li,
.related-list li {
  margin-bottom: 12px;
}

.sidebar-list li a,
.sidebar-links li a,
.related-list li a {
  font-size: 0.9375rem;
  color: #555;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-list li a:hover,
.sidebar-links li a:hover,
.related-list li a:hover {
  color: #e74c3c;
  padding-left: 4px;
}

.sidebar-links a {
  display: block;
  font-size: 0.9375rem;
  color: #555;
  padding: 6px 0;
}

.sidebar-links a:hover {
  color: #e74c3c;
}

.sidebar-note {
  font-size: 0.8125rem;
  color: #999;
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

/* ==========================================================================
   PAGES - 页面专属
   ========================================================================== */

/* ---------- 首页 ---------- */

/* 公告条 */
.notice-bar {
  background-color: #2c3e50;
  color: #ffffff;
  font-size: 0.875rem;
  padding: 10px 0;
  position: relative;
}

.notice-bar p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 0 24px;
  text-align: center;
  color: #ffffff;
}

.notice-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.notice-close:hover {
  opacity: 1;
}

/* 首屏焦点区 */
.hero-section {
  background-color: #fafafa;
  border-bottom: 1px solid #eee;
  padding: 56px 0 48px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-content {
  min-width: 0;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.0625rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.9375rem;
  border-radius: 4px;
  border: 1px solid #2c3e50;
  color: #2c3e50;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.hero-link:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* 频道分类导航带 */
.channel-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.channel-tag {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9375rem;
  color: #2c3e50;
  background-color: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.channel-tag:hover {
  background-color: #2c3e50;
  color: #ffffff;
  border-color: #2c3e50;
}

/* 焦点报道 */
.featured-report {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 32px;
}

.featured-item {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 32px;
  background-color: #fafafa;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
}

.featured-media {
  min-width: 0;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.featured-content {
  padding: 32px 32px 32px 0;
  align-self: center;
}

.featured-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.featured-content p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
}

.featured-content a {
  display: inline-block;
  font-size: 0.9375rem;
  color: #e74c3c;
  font-weight: 600;
}

.featured-content a::after {
  content: " →";
}

/* 最新资讯 */
.latest-news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.news-title a {
  color: #1a1a1a;
}

.news-title a:hover {
  color: #e74c3c;
}

.news-summary {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.7;
}

.news-item > a {
  font-size: 0.875rem;
  color: #e74c3c;
  font-weight: 600;
}

.news-item > a::after {
  content: " →";
}

/* 专题推荐区 */
.topics-recommend {
  background-color: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 48px 0;
}

.topics-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.topic-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-card-body {
  padding: 24px;
}

.topic-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.topic-card-body p {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.7;
}

.topic-card-body a {
  font-size: 0.875rem;
  color: #e74c3c;
  font-weight: 600;
}

.topic-card-body a::after {
  content: " →";
}

/* 编辑推荐 */
.editor-picks {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.picks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pick-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 6px;
  border-left: 3px solid #e74c3c;
}

.pick-index {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #e74c3c;
  line-height: 1;
}

.pick-content h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.pick-content h3 a {
  color: #1a1a1a;
}

.pick-content h3 a:hover {
  color: #e74c3c;
}

.pick-reason {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 8px;
}

.pick-content > a {
  font-size: 0.875rem;
  color: #2c3e50;
  font-weight: 600;
}

.pick-content > a::after {
  content: " →";
}

/* 信息来源与反馈 */
.source-feedback {
  background-color: #2c3e50;
  padding: 48px 0;
}

.source-feedback .section-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.source-feedback .section-title::after {
  background-color: #e74c3c;
}

.source-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.source-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.source-content p a {
  color: #ffffff;
  text-decoration: underline;
}

.source-content p a:hover {
  color: #e74c3c;
}

/* ---------- 频道分类页 ---------- */

.page-channels .channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.channel-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.channel-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  order: -1;
}

.channel-name {
  font-size: 1.125rem;
  color: #1a1a1a;
}

.channel-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

.channel-card a {
  font-size: 0.875rem;
  color: #e74c3c;
  font-weight: 600;
  margin-top: auto;
}

.channel-card a::after {
  content: " →";
}

/* ---------- 内容专题页 ---------- */

.page-topics .topic-list {
  margin-bottom: 48px;
}

.topic-list .topic-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-bottom: 24px;
}

.topic-list .topic-media {
  min-width: 0;
}

.topic-list .topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.topic-list .topic-body {
  padding: 24px;
}

.topic-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.topic-body h3 a {
  color: #1a1a1a;
}

.topic-body h3 a:hover {
  color: #e74c3c;
}

.topic-summary {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.topic-meta {
  font-size: 0.8125rem;
  color: #999;
}

.topic-abstracts {
  margin-top: 48px;
}

.abstract-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.abstract-item {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 24px;
}

.abstract-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.abstract-item h3 a {
  color: #1a1a1a;
}

.abstract-item h3 a:hover {
  color: #e74c3c;
}

.abstract-item p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- 实用指南页 ---------- */

.guide-section {
  margin-bottom: 48px;
}

.guide-section > h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
}

.guide-section > p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.method-item {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 16px;
}

.method-item h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.method-item p {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

.guide-media {
  margin-top: 32px;
  border-radius: 6px;
  overflow: hidden;
}

.guide-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.guide-media figcaption {
  padding: 12px;
  background-color: #fafafa;
  font-size: 0.875rem;
  color: #888;
}

/* ---------- 术语百科页 ---------- */

.glossary-terms {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.term-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.term-item:first-child {
  padding-top: 0;
}

.term-item:last-child {
  border-bottom: none;
}

.term-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #2c3e50;
}

.term-definition {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
}

.glossary-detail {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.glossary-detail > p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.glossary-figure {
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
}

.glossary-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.glossary-figure figcaption {
  padding: 12px;
  background-color: #fafafa;
}

/* ---------- 常见问题页 ---------- */

.faq-section {
  margin-bottom: 48px;
}

.faq-section > h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
}

.content-media-inline {
  margin-bottom: 24px;
  border-radius: 6px;
  overflow: hidden;
}

.content-media-inline img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 12px;
  background-color: #fafafa;
  font-size: 0.875rem;
  color: #888;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  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: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #e74c3c;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  background-color: #f0f0f0;
}

.faq-answer {
  padding: 0 20px 20px;
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.8;
}

/* ---------- 404页 ---------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-content h1 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.error-code {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 700;
  color: #e74c3c;
  line-height: 1;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 32px;
}

.btn-home {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.9375rem;
  color: #ffffff;
  background-color: #2c3e50;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn-home:hover {
  background-color: #e74c3c;
  color: #ffffff;
}

/* ==========================================================================
   FOOTER - 页脚
   ========================================================================== */

.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  margin-top: 0;
}

.footer-related {
  padding: 40px 24px;
  border-bottom: 1px solid #333;
}

.footer-related h2 {
  font-size: 1.125rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #aaaaaa;
  background-color: #2a2a2a;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.related-links a:hover {
  color: #ffffff;
  background-color: #e74c3c;
}

.footer-info {
  padding: 40px 24px;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 600px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #aaaaaa;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #e74c3c;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: #666;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* ==========================================================================
   RESPONSIVE - 响应式断点
   ========================================================================== */

/* 平板及以下 */
@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .brand-slogan {
    display: none;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar,
  .sidebar-content,
  .related-sidebar {
    grid-row: auto;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-media {
    order: 2;
  }

  .hero-figure img {
    height: 280px;
  }

  .featured-item {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 24px;
  }

  .featured-media img {
    height: 260px;
  }

  .page-channels .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-list .topic-card {
    grid-template-columns: 220px 1fr;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    gap: 12px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-slogan {
    display: none;
  }

  /* 移动导航 */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10;
  }

  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 5px auto;
    transition: transform 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"]::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"]::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: relative;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: -12px;
    min-width: 200px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 100;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 20px;
    border-radius: 0;
    font-size: 1rem;
  }

  .nav-list li a.is-current {
    background-color: #fdf0ef;
  }

  .header-tools .search-tip {
    display: none;
  }

  .feedback-link {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }

  /* 内页间距 */
  .inner-main {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-description {
    font-size: 0.9375rem;
  }

  /* 首页模块 */
  .notice-bar p {
    font-size: 0.8125rem;
    padding: 0 40px 0 16px;
  }

  .hero-section {
    padding: 32px 16px 32px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.9375rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-link {
    text-align: center;
  }

  .hero-figure img {
    height: 220px;
  }

  .channel-strip {
    padding: 32px 16px 16px;
  }

  .channel-tags {
    gap: 8px;
  }

  .channel-tag {
    padding: 8px 14px;
    font-size: 0.875rem;
  }

  .featured-report {
    padding: 16px;
  }

  .featured-item {
    gap: 0;
  }

  .featured-media img {
    height: 200px;
  }

  .featured-content {
    padding: 16px;
  }

  .featured-content h3 {
    font-size: 1.25rem;
  }

  .latest-news {
    padding: 24px 16px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .news-meta {
    flex-wrap: wrap;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-summary {
    font-size: 0.875rem;
  }

  .topics-recommend {
    padding: 32px 0;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 16px;
  }

  .topic-card img {
    height: 180px;
  }

  .topic-card-body {
    padding: 16px;
  }

  .editor-picks {
    padding: 32px 16px;
  }

  .pick-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .pick-index {
    font-size: 1.375rem;
  }

  .pick-content h3 {
    font-size: 1rem;
  }

  .source-feedback {
    padding: 32px 0;
  }

  .source-content {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  /* 频道页 */
  .page-channels .channel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .channel-card {
    padding: 16px;
  }

  .channel-card img {
    height: 140px;
  }

  /* 专题页 */
  .topic-list .topic-card {
    grid-template-columns: 1fr;
  }

  .topic-list .topic-media img {
    height: 200px;
  }

  .topic-body {
    padding: 16px;
  }

  .abstract-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .abstract-item {
    padding: 16px;
  }

  /* 指南页 */
  .guide-section > h2 {
    font-size: 1.25rem;
  }

  .method-item {
    padding: 16px;
  }

  .guide-media img {
    height: 200px;
  }

  /* 术语页 */
  .term-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .term-name {
    font-size: 1rem;
  }

  .glossary-figure img {
    height: 200px;
  }

  /* FAQ页 */
  .faq-section > h2 {
    font-size: 1.25rem;
  }

  .content-media-inline img {
    height: 180px;
  }

  .faq-item summary {
    padding: 14px 40px 14px 16px;
    font-size: 0.9375rem;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 0.875rem;
  }

  /* 404页 */
  .error-code {
    font-size: 3.5rem;
  }

  .error-content h1 {
    font-size: 1.25rem;
  }

  /* 页脚 */
  .footer-related {
    padding: 32px 16px;
  }

  .related-links {
    gap: 8px;
  }

  .related-links a {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }

  .footer-info {
    padding: 32px 16px;
  }

  .footer-nav {
    gap: 8px 16px;
  }
}

/* 超小屏 */
@media (max-width: 480px) {
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .layout-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-main {
    padding-left: 0;
    padding-right: 0;
  }

  .inner-main {
    padding-top: 20px;
  }

  .hero-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-figure img {
    height: 180px;
  }

  .featured-media img {
    height: 160px;
  }

  .topic-card img {
    height: 160px;
  }

  .channel-card img {
    height: 120px;
  }

  .topic-list .topic-media img {
    height: 160px;
  }

  .guide-media img {
    height: 160px;
  }

  .glossary-figure img {
    height: 160px;
  }

  .content-media-inline img {
    height: 140px;
  }

  .nav-list {
    right: -8px;
    min-width: 180px;
  }
}

/* 打印样式 */
@media print {
  .site-header,
  .notice-bar,
  .site-footer,
  .sidebar,
  .sidebar-content,
  .related-sidebar,
  .nav-toggle,
  .header-tools {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .page-layout {
    display: block;
  }

  .main-content {
    max-width: 100%;
  }

  a {
    color: #1a1a1a;
    text-decoration: underline;
  }
}
