/* ==========================================================================
   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", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #f5f5f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #8b0000;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5c0000;
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   layout — 全站统一布局骨架
   ========================================================================== */

.site-header {
  background-color: #1a1a1a;
  border-bottom: 3px solid #8b0000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #f5f5f0;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #b8b8b0;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-item a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: #d8d8d0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-item a:hover {
  color: #ffffff;
  text-decoration: none;
  border-bottom-color: #8b0000;
}

.nav-item.is-current a {
  color: #ffffff;
  border-bottom-color: #8b0000;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #f5f5f0;
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.site-footer {
  background-color: #1a1a1a;
  color: #c0c0b8;
  margin-top: auto;
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5f5f0;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #a0a098;
}

.footer-heading {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f5f5f0;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #b8b8b0;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-note {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #a0a098;
}

.footer-bottom {
  border-top: 1px solid #333333;
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #808078;
  margin: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 24px;
  color: #666666;
}

.breadcrumb a {
  color: #8b0000;
}

.breadcrumb a:hover {
  color: #5c0000;
}

.breadcrumb-sep {
  color: #999999;
}

.breadcrumb-current {
  color: #333333;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #333333;
  max-width: 720px;
  margin-bottom: 0;
}

/* 通用区块标题 */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background-color: #8b0000;
  margin-top: 8px;
}

.section-intro {
  font-size: 0.9375rem;
  color: #555555;
  margin-bottom: 24px;
  max-width: 720px;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 焦点报道卡（首页 hero） */
.hero-focus {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  padding: 32px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid #8b0000;
}

.focus-media {
  position: relative;
  overflow: hidden;
}

.focus-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.focus-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.focus-title {
  font-size: 2.125rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.focus-summary {
  font-size: 1rem;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 24px;
}

.focus-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 10px 20px;
  background-color: #8b0000;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.focus-link:hover {
  background-color: #5c0000;
  color: #ffffff;
  text-decoration: none;
}

/* 频道标签 */
.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.channel-tag {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.9375rem;
  color: #333333;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.channel-tag:hover {
  border-color: #8b0000;
  color: #8b0000;
  text-decoration: none;
  background-color: #fafaf5;
}

/* 最新动态列表 */
.update-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  font-size: 0.8125rem;
  color: #666666;
  padding-top: 4px;
}

.update-heading {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.update-heading a {
  color: #1a1a1a;
}

.update-heading a:hover {
  color: #8b0000;
}

.update-excerpt {
  font-size: 0.9375rem;
  color: #555555;
  margin: 0;
}

/* 专题卡片 */
.topics-grid,
.topic-grid-shell {
  display: grid;
  grid-template-columns: repeat(2, 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,
.topic-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-card-body {
  padding: 20px;
}

.topic-card-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.topic-card-title a {
  color: #1a1a1a;
}

.topic-card-title a:hover {
  color: #8b0000;
}

.topic-card-excerpt,
.topic-card-text {
  font-size: 0.9375rem;
  color: #555555;
  margin-bottom: 0;
}

/* 编辑推荐 */
.picks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pick-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 20px;
  background-color: #ffffff;
  border-left: 3px solid #8b0000;
}

.pick-title {
  font-size: 1rem;
  margin: 0;
}

.pick-title a {
  color: #1a1a1a;
}

.pick-title a:hover {
  color: #8b0000;
}

.pick-reason {
  font-size: 0.875rem;
  color: #555555;
  margin: 0;
}

/* 来源说明 */
.source-note {
  background-color: #eaeae4;
  border-left: 4px solid #8b0000;
  padding: 24px 28px;
  margin-top: 48px;
}

.source-text {
  font-size: 0.9375rem;
  color: #333333;
  margin: 0;
}

/* 侧栏卡片 */
.sidebar-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 1.125rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #8b0000;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-list a {
  font-size: 0.9375rem;
  color: #333333;
  line-height: 1.5;
}

.sidebar-list a:hover {
  color: #8b0000;
}

/* 相关链接 */
.related-links,
.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-links a,
.related-list a {
  font-size: 0.9375rem;
  color: #8b0000;
}

.related-links a:hover,
.related-list a:hover {
  color: #5c0000;
}

/* ==========================================================================
   pages — 各页面专属样式
   ========================================================================== */

/* ---------- 首页 ---------- */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.focus-report {
  margin-bottom: 48px;
}

.focus-report-item {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 20px;
}

.focus-report-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.focus-report-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.focus-report-heading {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.focus-report-heading a {
  color: #1a1a1a;
}

.focus-report-heading a:hover {
  color: #8b0000;
}

.focus-report-excerpt {
  font-size: 0.9375rem;
  color: #555555;
  margin: 0;
}

.channel-nav-section,
.latest-updates,
.topics-featured,
.editor-picks {
  margin-bottom: 48px;
}

/* ---------- 频道分类页 ---------- */

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.channel-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #8b0000;
}

.channel-info {
  display: flex;
  flex-direction: column;
}

.channel-name {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.channel-desc {
  font-size: 0.9375rem;
  color: #555555;
  margin-bottom: 16px;
}

.channel-link {
  align-self: flex-start;
  font-size: 0.9375rem;
  font-weight: 600;
}

.channel-preview {
  border-left: 1px solid #e0e0e0;
  padding-left: 32px;
}

.preview-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #666666;
  margin-bottom: 12px;
}

.preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-list li a {
  font-size: 0.9375rem;
  color: #333333;
}

.preview-list li a:hover {
  color: #8b0000;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.media-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin: 0;
}

.media-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.media-card figcaption {
  padding: 16px 20px;
}

.media-title {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.media-excerpt {
  font-size: 0.875rem;
  color: #555555;
  margin: 0;
}

.related-links-section {
  background-color: #eaeae4;
  padding: 24px 28px;
  border-left: 4px solid #8b0000;
}

/* ---------- 内容专题页 ---------- */

.topic-grid {
  margin-bottom: 48px;
}

.topic-intro {
  margin-bottom: 48px;
}

.topic-intro-shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.intro-block {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #8b0000;
  padding: 20px;
}

.intro-title {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.intro-text {
  font-size: 0.9375rem;
  color: #555555;
  margin: 0;
}

.topic-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- 实用指南页 ---------- */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.guide-article,
.insight-article {
  min-width: 0;
}

.guide-hero-figure,
.insight-hero {
  margin: 0 0 24px;
}

.guide-hero-img,
.insight-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

.insight-hero figcaption {
  font-size: 0.8125rem;
  color: #666666;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 24px;
}

.guide-section,
.insight-section {
  margin-bottom: 40px;
}

.section-lead {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 20px;
}

.guide-steps {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-step {
  position: relative;
  padding: 20px 20px 20px 64px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  counter-increment: step-counter;
}

.guide-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 32px;
  height: 32px;
  background-color: #8b0000;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.step-title {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.step-text {
  font-size: 0.9375rem;
  color: #555555;
  margin: 0;
}

.related-section {
  background-color: #eaeae4;
  padding: 24px 28px;
  border-left: 4px solid #8b0000;
}

.guide-sidebar,
.insight-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- 深度解读页 ---------- */

.insight-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.framework-block {
  margin-bottom: 24px;
  padding: 20px 24px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #8b0000;
}

.framework-title {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.framework-text {
  font-size: 0.9375rem;
  color: #555555;
  margin: 0;
}

.insight-note {
  background-color: #eaeae4;
  padding: 20px 24px;
  border-left: 4px solid #8b0000;
  margin-top: 32px;
}

.note-text {
  font-size: 0.9375rem;
  color: #333333;
  margin: 0;
}

.sidebar-item {
  list-style: none;
}

.sidebar-text {
  font-size: 0.9375rem;
  color: #555555;
  margin-top: 4px;
}

.reading-item {
  list-style: none;
}

.reading-desc {
  font-size: 0.875rem;
  color: #555555;
  margin-top: 4px;
}

/* ---------- 404 页 ---------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-panel {
  text-align: center;
  max-width: 520px;
  padding: 48px 40px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid #8b0000;
}

.error-code {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 700;
  color: #8b0000;
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 24px;
}

.error-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: #8b0000;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.error-link:hover {
  background-color: #5c0000;
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   responsive — 响应式断点
   ========================================================================== */

/* 平板及以下 */
@media (max-width: 1024px) {
  .hero-focus {
    grid-template-columns: 1fr;
  }

  .focus-media img {
    min-height: 260px;
  }

  .page-layout,
  .insight-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar,
  .insight-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .channel-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .channel-preview {
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding-left: 0;
    padding-top: 16px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    padding: 12px 8px;
    border-bottom: 1px solid #333333;
    font-size: 1rem;
  }

  .nav-item.is-current a {
    border-bottom-color: #8b0000;
  }

  .inner-main,
  .home-main {
    padding: 24px 16px 40px;
  }

  .hero-focus {
    padding: 20px;
    gap: 20px;
  }

  .focus-title {
    font-size: 1.625rem;
  }

  .focus-media img {
    min-height: 200px;
  }

  .topics-grid,
  .topic-grid-shell,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .topic-intro-shell {
    grid-template-columns: 1fr;
  }

  .update-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pick-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .focus-report-item {
    grid-template-columns: 1fr;
  }

  .focus-report-item img {
    height: 200px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 16px;
  }

  .guide-sidebar,
  .insight-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 1.625rem;
  }

  .guide-step {
    padding: 16px 16px 16px 56px;
  }

  .guide-step::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .guide-hero-img,
  .insight-hero img {
    height: 200px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 3rem;
  }
}

/* 小屏手机 */
@media (max-width: 390px) {
  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .hero-focus {
    padding: 16px;
  }

  .focus-title {
    font-size: 1.4375rem;
  }

  .channel-tags {
    gap: 8px;
  }

  .channel-tag {
    padding: 8px 14px;
    font-size: 0.875rem;
  }

  .related-links-section,
  .related-section,
  .source-note,
  .insight-note {
    padding: 20px;
  }
}
