/* ============================================================
   解码中华文化基因 · 习近平总书记文汇引擎
   红金主题 · 精致版 (Banner蓝色 / 其余红金)
   ============================================================ */
:root {
  --red: #C41E3A;
  --red-dark: #9B1B30;
  --red-darker: #6B1325;
  --red-bg: #fdf5f5;
  --blue: #1a5276;
  --blue-dark: #0e3a5c;
  --blue-darker: #0a2540;
  --blue-bg: #f5f8fb;
  --gold: #ffd376;
  --gold-light: #ffedc2;
  --gold-dark: #C9A84C;
  --bg: #f0f0f0;
  --bg-white: #ffffff;
  --text-dark: #222222;
  --text-body: #333333;
  --text-sec: #666666;
  --text-muted: #999999;
  --border: #e0e0e0;
  --border-light: #eeeeee;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC","Noto Sans SC","Microsoft YaHei","SimHei",system-ui,sans-serif;
  font-size: 14px; line-height: 1.7; color: var(--text-body);
  background: var(--bg);
}

a { color: var(--text-body); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
ul, ol { list-style: none; }
img { max-width: 100%; }
.w { width: var(--w); margin: 0 auto; }
.gold { color: var(--gold-dark); }

/* ============================================================
   Banner - 蓝色渐变 + 习近平背景 + Logo居右
   ============================================================ */
.banner {
  width: 100%;
  min-height: 440px;
  background: linear-gradient(135deg, #071e30 0%, var(--blue) 45%, #1a6e94 100%);
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('/static/images/banner_bg.jpg') 12% center / cover no-repeat;
  opacity: 0.88;
  filter: saturate(.85);
}
.banner .w {
  position: relative; z-index: 2;
  min-height: 380px;
  display: flex; align-items: center;
  justify-content: flex-end;
  padding-top: 20px; padding-bottom: 20px;
}
.banner-logo-img {
  position: absolute; right: 40px; top: 50%;
  transform: translateY(-60%);
  width: 400px; z-index: 5;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}
.banner .banner-slogan {
  position: absolute; right: 40px; bottom: 30px;
  text-align: right; z-index: 5;
}
.banner .slogan-text {
  font-size: clamp(22px, 2.5vw, 30px); font-weight: 600; color: rgba(255,255,255,.85);
  letter-spacing: .3em;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  line-height: 2.2;
}
.banner-home-link { text-decoration: none; color: inherit; display: block; }
.banner-sub .banner-home-link { text-decoration: none; color: inherit; display: flex; align-items: center; }

/* ============================================================
   Banner-sub 子页面 (长城水墨画背景 + 金色分割线)
   ============================================================ */
.banner-sub {
  width: 100%;
  min-height: 110px;
  background: linear-gradient(135deg, #071e30 0%, var(--blue) 100%);
  position: relative; overflow: hidden;
}
.banner-sub::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('/static/images/mountain_bg.png') center center / cover no-repeat;
  opacity: 0.25;
  filter: saturate(.4);
}
.banner-sub::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}
.banner-sub .w {
  position: relative; z-index: 2;
  min-height: 110px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.banner-sub .banner-title {
  font-size: 22px; font-weight: 700; color: #fff;
  letter-spacing: .12em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.banner-sub .banner-title .gold { color: var(--gold); }
.banner-sub a { color: rgba(255,255,255,.8); font-size: 13px; }
.banner-sub a:hover { color: var(--gold); }
.banner-sub-logo {
  height: 60px; width: auto; margin-right: 16px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

/* ============================================================
   Nav01 一级导航 (红金)
   ============================================================ */
.nav01 {
  background: linear-gradient(180deg, var(--red-dark) 0%, #8a1828 100%);
  height: 54px;
  border-bottom: 3px solid var(--gold-dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
}
.nav01 .w { display: flex; align-items: stretch; height: 100%; }
.nav01 a {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  height: 100%; padding: 0 22px;
  color: rgba(255,255,255,.9); font-size: 15px; font-weight: 500;
  letter-spacing: .05em; white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px; transition: all .2s;
}
.nav01 a .nav-main-text { line-height: 1.3; }
.nav01 a .nav-desc {
  font-size: 10px; opacity: 0.55; line-height: 1; margin-top: 1px;
  font-weight: 400; letter-spacing: 0;
}
.nav01 a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav01 a:hover .nav-desc { opacity: 0.8; }
.nav01 a.active {
  color: var(--gold); border-bottom-color: var(--gold);
  background: rgba(0,0,0,.1);
}
.nav-dropdown {
  position: relative; height: 100%; display: flex; align-items: stretch;
}
.nav-dropdown-trigger {
  display: flex !important; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer;
  flex-direction: row !important;
}
.nav-dropdown-trigger .arrow {
  font-size: 10px; transition: transform .2s;
}
.nav-dropdown:hover .nav-dropdown-trigger .arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff;
  min-width: 160px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  padding: 6px 0;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block !important; height: auto !important;
  padding: 10px 20px !important;
  color: var(--text-dark) !important;
  font-size: 14px !important; font-weight: 400 !important;
  border-bottom: none !important; margin-bottom: 0 !important;
  letter-spacing: 0 !important;
  transition: all .2s;
}
.nav-dropdown-menu a:hover {
  background: var(--red-bg) !important;
  color: var(--red-dark) !important;
}

/* Nav02 二级导航 */
.nav02 {
  background: #fff; height: 42px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.nav02 .w { display: flex; align-items: center; height: 100%; }
.nav02 a {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 22px;
  color: var(--text-sec); font-size: 13px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .2s;
}
.nav02 a:hover { color: var(--red-dark); border-bottom-color: var(--red); }

/* ============================================================
   Part01: 头条焦点
   ============================================================ */
.part01 {
  background: linear-gradient(180deg, var(--red-bg) 0%, #fff 100%);
  padding: 36px 0 28px;
}
.part01 .headline {
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 26px 32px;
  box-shadow: 0 2px 12px rgba(196,30,58,.08);
  border-left: 5px solid var(--red);
  transition: all .25s;
}
.part01 .headline:hover {
  box-shadow: 0 6px 20px rgba(196,30,58,.14);
  transform: translateY(-1px);
}
.part01 .headline h2 {
  font-size: 20px; font-weight: 700; color: var(--text-dark);
  line-height: 1.6; margin-bottom: 8px;
}
.part01 .headline:hover h2 { color: var(--red-dark); }
.part01 .headline .meta {
  font-size: 13px; color: var(--text-muted);
  display: flex; gap: 16px;
}
.part01 .headline .meta .source { color: var(--red); font-weight: 500; }
.part01 .headline .meta .gene-tag {
  background: var(--gold); color: var(--red-darker);
  padding: 1px 8px; border-radius: 3px; font-size: 11px; font-weight: 600;
}

/* ============================================================
   Part02: Swiper 轮播 (图片轮播)
   ============================================================ */
.part02 {
  padding: 20px 0;
  background: #fff;
}
.part02 .swiper-container {
  width: 100%; height: 480px;
  overflow: hidden; position: relative;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.part02 .swiper-slide {
  position: relative; overflow: hidden;
  border-radius: 6px;
}
.part02 .slide-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.part02 .slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 36px 20px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,.65) 100%);
}
.part02 .slide-overlay h3 {
  font-size: 20px; font-weight: 700; color: #fff;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.part02 .swiper-pagination { bottom: 12px !important; }
.part02 .swiper-pagination-bullet {
  width: 28px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.35); opacity: 1;
}
.part02 .swiper-pagination-bullet-active { background: var(--gold); }

/* ============================================================
   通用版块标题
   ============================================================ */
.section-title {
  height: 48px; display: flex; align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--red);
  background: linear-gradient(90deg, #fff 0%, var(--red-bg) 100%);
  padding: 0 16px;
  margin-bottom: 0;
}
.section-title .title-left {
  display: flex; align-items: center; gap: 8px;
}
.section-title .title-left .title-icon {
  font-size: 18px; color: var(--gold-dark);
}
.section-title .title-left span {
  font-size: 17px; font-weight: 700; color: var(--red-dark);
}
.section-title .more {
  font-size: 12px; color: var(--text-muted);
}
.section-title .more:hover { color: var(--red-dark); }
.section-subtitle {
  font-size: 13px; color: var(--text-muted);
  padding: 6px 16px 10px;
  background: linear-gradient(90deg, #fff 0%, var(--red-bg) 100%);
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* ============================================================
   文章列表通用
   ============================================================ */
.article-list {
  background: var(--bg-white);
  padding: 0;
}
.article-list li {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: baseline; gap: 8px;
  transition: background .15s;
}
.article-list li:last-child { border-bottom: none; }
.article-list li:hover { background: var(--red-bg); }
.article-list li::before {
  content: '';
  width: 5px; height: 5px; flex-shrink: 0;
  background: var(--red); border-radius: 50%;
  position: relative; top: -1px;
}
.article-list li a {
  font-size: 14px; color: var(--text-dark);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.8;
}
.article-list li a:hover { color: var(--red-dark); }
.article-list li .date {
  font-size: 12px; color: var(--text-muted);
  flex-shrink: 0; margin-left: auto;
}
.article-list li .gene-badge {
  display: inline-block;
  background: var(--gold-light); color: var(--red-darker);
  padding: 1px 7px; border-radius: 3px; font-size: 11px;
  flex-shrink: 0; font-weight: 500;
}

/* ============================================================
   Part03: 习近平用典 (水墨山水背景)
   ============================================================ */
.part03 {
  padding: 32px 0 24px;
  position: relative;
}
.part03::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('/static/images/ts01_bg.jpg') center top / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.part03 .citation-section { display: flex; gap: 20px; position: relative; z-index: 1; align-items: stretch; }
.part03 .citation-cards {
  width: 580px; flex-shrink: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 16px 0; align-content: start;
}
.citation-card {
  background: linear-gradient(160deg, rgba(253,248,237,.95) 0%, rgba(255,245,224,.95) 100%);
  border: 1px solid #e0d0a8;
  border-radius: 8px;
  padding: 14px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.citation-card::before {
  content: '\201C';
  position: absolute; top: 6px; left: 10px;
  font-size: 36px; color: rgba(201,168,76,.25);
  font-family: Georgia,serif; line-height: 1;
}
.citation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201,168,76,.18);
  border-color: var(--gold-dark);
}
.citation-card .quote-text {
  font-size: 14px; font-weight: 600; color: var(--red-darker);
  line-height: 1.7; margin-bottom: 8px;
  font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.citation-card .quote-source {
  font-size: 12px; color: var(--gold-dark); font-weight: 500;
  margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.citation-card .quote-article {
  font-size: 12px; color: var(--text-sec);
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.citation-card .quote-article:hover { color: var(--red-dark); }
.part03 .citation-articles { flex: 1; min-width: 0; position: relative; z-index: 1; }

/* ============================================================
   Part05-dual: 双栏 (文化自信 | 非遗保护)
   ============================================================ */
.part05-dual {
  padding: 32px 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, #e8e5e0 100%);
  position: relative;
}
.part05-dual::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('/static/images/ts03_bg.jpg') center center / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
.part05-dual .w { display: flex; gap: 20px; position: relative; z-index: 1; align-items: stretch; }
.part05-dual .col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ============================================================
   Part06: 文明交流互鉴
   ============================================================ */
.part06-exchange {
  padding: 32px 0 0;
  background: var(--bg);
  position: relative;
}
.part06-exchange::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('/static/images/ts01_bg.jpg') center bottom / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.part06-exchange .exchange-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 16px 0; position: relative; z-index: 1;
}
.exchange-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-light);
  transition: all .25s;
}
.exchange-card:hover {
  border-color: var(--red);
  box-shadow: 0 6px 20px rgba(196,30,58,.12);
  transform: translateY(-3px);
}
.exchange-card h5 {
  font-size: 14px; font-weight: 600; color: var(--text-dark);
  line-height: 1.6; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.exchange-card:hover h5 { color: var(--red-dark); }
.exchange-card .meta {
  font-size: 12px; color: var(--text-muted); display: flex; gap: 10px;
}

/* ============================================================
   Part07: 数据分析 (精致山水底纹)
   ============================================================ */
.part07-charts {
  margin-top: 28px;
  padding: 48px 0 64px;
  background: linear-gradient(180deg, #f2ece8 0%, #e6ddd6 50%, #d9cfc6 100%);
  min-height: 460px;
  position: relative;
}
.part07-charts::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
  background: url('/static/images/mountain_bg.png') center bottom / 120% auto no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.part07-charts .section-title {
  border-top: none; background: transparent;
}
.part07-charts .section-title .title-left span {
  color: var(--red-dark); font-size: 18px;
}
.part07-charts .charts-row {
  display: flex; gap: 20px; position: relative; z-index: 1;
}
.part07-charts .chart-box {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.94);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border: 1px solid rgba(255,255,255,.8);
}
.part07-charts .chart-box h4 {
  font-size: 14px; color: var(--text-dark);
  text-align: center; margin-bottom: 10px;
  font-weight: 600;
}
.part07-charts .chart-container { width: 100%; height: 280px; }

/* ============================================================
   Part08: 三栏特色功能卡片
   ============================================================ */
.part08-tools {
  padding: 28px 0;
  position: relative;
  background: linear-gradient(180deg, #f5f0e8 0%, #ebe5d8 100%);
}
.part08-tools::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('/static/images/ts02_bg.jpg') center center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.part08-tools .w { display: flex; gap: 20px; position: relative; z-index: 1; }
.part08-tools .feature-card {
  flex: 1; min-width: 0;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all .25s;
}
.part08-tools .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.part08-tools .card-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 20px 20px 16px;
  text-align: center;
}
.part08-tools .card-header h3 {
  font-size: 16px; font-weight: 700; color: #fff;
}
.part08-tools .card-header p {
  font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px;
}
.part08-tools .card-body { padding: 16px; }
.part08-tools .search-input-box {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.part08-tools .search-input-box input {
  flex: 1; border: 1px solid var(--border); border-radius: 4px;
  padding: 10px 14px; font-size: 14px; outline: none;
}
.part08-tools .search-input-box input:focus { border-color: var(--red); }
.part08-tools .search-input-box button {
  background: var(--red); color: #fff; border: none;
  border-radius: 4px; padding: 10px 18px; cursor: pointer;
  font-size: 14px; white-space: nowrap;
}
.part08-tools .search-input-box button:hover { background: var(--red-dark); }
.part08-tools .ai-btns { display: flex; flex-direction: column; gap: 10px; }
.part08-tools .ai-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--red-bg);
  border-radius: 6px;
  border: 1px solid #e6c4c4;
  cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.part08-tools .ai-btn:hover {
  background: #f5e0e0; border-color: var(--red);
  transform: translateX(4px);
}
.part08-tools .ai-btn .btn-text {
  font-size: 14px; font-weight: 500; color: var(--text-dark);
}

/* ============================================================
   最新滚动区
   ============================================================ */
.part-zxbd {
  padding: 14px 0 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.part-zxbd .scroll-wrap {
  overflow: hidden; position: relative; height: 42px;
}
.part-zxbd .scroll-inner {
  display: flex; white-space: nowrap;
  animation: scrollLeft 40s linear infinite;
}
.part-zxbd .scroll-inner:hover { animation-play-state: paused; }
.part-zxbd .scroll-item {
  display: inline-flex; align-items: center;
  padding: 0 24px; height: 42px;
  font-size: 14px; color: var(--text-dark);
  border-right: 1px solid var(--border-light);
  white-space: nowrap; flex-shrink: 0;
}
.part-zxbd .scroll-item:hover { color: var(--red-dark); }
.part-zxbd .scroll-item .s-date {
  font-size: 12px; color: var(--text-muted); margin-left: 8px;
}
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   Footer (红金 + 版权)
   ============================================================ */
.footer {
  background: linear-gradient(180deg, var(--red-darker) 0%, #4a0e1a 100%);
  color: rgba(255,255,255,.6);
  padding: 36px 0 24px;
  margin-top: 28px;
  text-align: center;
  font-size: 12px; line-height: 2.2;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}
.footer .footer-links { margin-bottom: 10px; }
.footer .footer-links a {
  color: rgba(255,255,255,.7); margin: 0 14px; font-size: 13px;
}
.footer .footer-links a:hover { color: var(--gold); }
.footer .footer-info { color: rgba(255,255,255,.5); }
.footer .footer-info .gold { color: var(--gold-dark); }
.footer .footer-copyright {
  margin-top: 8px;
  color: rgba(255,255,255,.35);
  font-size: 11px;
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 40px; right: 30px;
  width: 44px; height: 44px;
  background: var(--red); color: #fff;
  border: none; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(196,30,58,.35);
  z-index: 200; transition: all .2s;
}
.back-to-top:hover { background: var(--red-darker); transform: translateY(-2px); }
.back-to-top.show { display: flex; }

/* ============================================================
   Article Detail Page
   ============================================================ */
.article-detail-wrap { padding: 24px 0; }
.article-detail-wrap .w { display: flex; gap: 20px; }
.article-content-box {
  flex: 1; min-width: 0;
  background: var(--bg-white); border-radius: 6px;
  box-shadow: var(--shadow); padding: 36px 40px;
}
.article-content-box h1 {
  font-size: 22px; font-weight: 700; color: var(--text-dark);
  line-height: 1.6; margin-bottom: 16px;
}
.article-meta-bar {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; font-size: 13px; color: var(--text-muted);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.article-meta-bar .gene-badge {
  display: inline-block;
  background: var(--gold-light); color: var(--red-darker);
  padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600;
}
.article-body {
  font-size: 16px; line-height: 1.9; color: var(--text-body);
}
.article-body p { margin-bottom: 1.1em; text-indent: 2em; }
.article-source-link {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13px;
}
.article-source-link a { color: var(--red); }
.article-source-link a:hover { text-decoration: underline; }
.article-sidebar { width: 340px; flex-shrink: 0; }
.sidebar-card {
  background: var(--bg-white); border-radius: 6px;
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 16px;
}
.sidebar-card .card-title {
  padding: 12px 16px; background: var(--red-dark);
  color: #fff; font-size: 14px; font-weight: 600;
}
.sidebar-card .card-content { padding: 16px; }

/* ============================================================
   Category page
   ============================================================ */
.category-wrap { padding: 24px 0; }
.category-content {
  background: var(--bg-white); border-radius: 6px;
  box-shadow: var(--shadow);
}
.category-header {
  padding: 18px 24px;
  border-top: 3px solid var(--red);
  background: linear-gradient(90deg, var(--red-bg) 0%, #fff 100%);
}
.category-header h2 {
  font-size: 18px; font-weight: 700; color: var(--red-dark);
}
.category-list { padding: 0; }
.category-list .article-item {
  display: block; padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: background .2s;
}
.category-list .article-item:last-child { border-bottom: none; }
.category-list .article-item:hover { background: var(--red-bg); }
.category-list .article-item h5 {
  font-size: 15px; font-weight: 500; color: var(--text-dark);
  line-height: 1.6; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.category-list .article-item:hover h5 { color: var(--red-dark); }
.category-list .article-item .meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 16px;
}
.category-list .article-item .meta .source-tag {
  color: var(--red); font-weight: 500;
}

/* Pagination */
.portal-pagination {
  padding: 16px 24px; display: flex; justify-content: center; gap: 4px;
}
.portal-pagination a, .portal-pagination span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 13px; color: var(--text-sec);
}
.portal-pagination a:hover { border-color: var(--red); color: var(--red); }
.portal-pagination .active { background: var(--red); color: #fff; border-color: var(--red); }
.portal-pagination .disabled { color: var(--text-muted); cursor: default; }

/* ============================================================
   图文卡片 + 图片组件
   ============================================================ */
.exchange-card .card-thumb {
  width: 100%; height: 120px;
  object-fit: cover; border-radius: 6px 6px 0 0;
  margin-bottom: 10px; background: var(--bg);
}
.exchange-card.has-image { padding-top: 0; }
.exchange-card.has-image h5 { padding: 0 12px; }
.exchange-card.has-image .meta { padding: 0 12px 12px; }

.article-hero-image {
  width: 100%; max-height: 400px;
  object-fit: cover; border-radius: 6px;
  margin-bottom: 20px;
}
.category-list .article-item.has-thumb {
  display: flex; gap: 16px; align-items: flex-start;
}
.category-list .article-item .item-thumb {
  width: 120px; height: 80px; flex-shrink: 0;
  object-fit: cover; border-radius: 4px; background: var(--bg);
}
.category-list .article-item .item-content {
  flex: 1; min-width: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1240px) {
  .w { width: 96%; padding: 0 2%; }
  .banner-logo-img { right: 20px; width: 320px; }
  .banner .banner-slogan { right: 20px; }
}
@media (max-width: 960px) {
  .banner { min-height: 320px; }
  .banner .w { min-height: 280px; }
  .banner-logo-img { width: 280px; right: 16px; }
  .banner .banner-slogan { right: 16px; bottom: 16px; }
  .banner .slogan-text { font-size: 20px; letter-spacing: .2em; }
  .part02 .swiper-container { height: 360px; }
  .part03 .citation-section { flex-direction: column; }
  .part03 .citation-cards { width: 100%; grid-template-columns: 1fr 1fr; }
  .part04 .gene-section { flex-direction: column; }
  .part04 .gene-graph-container { width: 100%; height: 350px; }
  .part04 .gene-list-right { width: 100%; }
  .part04 .gene-charts-row { flex-direction: column; }
  .part05-dual .w { flex-direction: column; }
  .part06-exchange .exchange-grid { grid-template-columns: repeat(2, 1fr); }
  .part08-tools .w { flex-direction: column; }
  .article-detail-wrap .w { flex-direction: column; }
  .article-sidebar { width: 100%; }
  .footprint-main .w { flex-direction: column; }
  .map-sidebar { width: 100%; }
  .footprint-stats .w { gap: 24px; }
  .nav01 .w { overflow-x: auto; }
}
@media (max-width: 640px) {
  .banner { min-height: 200px; }
  .banner::before { background-position: 20% center; }
  .banner .w { min-height: 180px; }
  .banner-logo-img { width: 120px; right: 5px; top: 10px; transform: none; }
  .banner .banner-slogan { display: none; }
  .part02 .swiper-container { height: 280px; }
  .nav01 a { padding: 0 14px; font-size: 14px; }
  .part03 .citation-cards { grid-template-columns: 1fr; }
  .part06-exchange .exchange-grid { grid-template-columns: 1fr; }
  .article-content-box { padding: 20px; }
  .article-content-box h1 { font-size: 18px; }
  .map-chart { height: 400px; }
  .footprint-stats .w { flex-wrap: wrap; gap: 16px; }
  .stat-item .stat-num { font-size: 24px; }
}
