/* ================================================================
   宁夏社科一体化平台 - 全局主题样式
   基于 docs/宁夏社科一体化平台前台主题样式规范.md
   ================================================================ */

/* ========== 1. CSS Variables（设计 Token 系统） ========== */
:root {
  /* ---- 主色：政务蓝 ---- */
  --primary-blue: #0068B7;
  --primary-blue-dark: #00549A;
  --primary-blue-light: #1E88D6;
  --nav-blue: #2E7DBD;
  --footer-blue: #005BAC;
  --digital-blue-start: #0B73D9;
  --digital-blue-end: #00A9E8;

  /* ---- 强调色：党建红 / 宣传红 ---- */
  --red: #C40000;
  --red-dark: #A80000;
  --red-light: #E60012;
  --orange-red: #F04A23;
  --slogan-start: #D80000;
  --slogan-mid: #F04A23;

  /* ---- 背景 & 边框 ---- */
  --bg-page: #F3F5F7;
  --bg-card: #FFFFFF;
  --border-light: #E5E5E5;
  --border-lighter: #f0f0f0;

  /* ---- 文字 ---- */
  --text-main: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;

  /* ---- 布局 ---- */
  --container-width: 1180px;
  --border-radius: 6px;
  --nav-height: 38px;
  --top-date-height: 28px;
  --header-height: 160px;

  /* ---- 间距尺规 ---- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 42px;
  --space-5xl: 48px;

  /* ---- 阴影 ---- */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,45,85,0.08);
  --shadow-lg: 0 4px 16px rgba(0,45,85,0.12);
  --shadow-xl: 0 8px 40px rgba(0,45,85,0.12);

  /* ---- 动画 ---- */
  --nx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nx-fast: 160ms;
  --nx-mid: 280ms;
  --nx-slow: 400ms;

  /* ---- 字体 ---- */
  --font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 15px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 22px;
  --font-size-3xl: 26px;
  --font-size-4xl: 30px;
}

/* ========== 2. Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: var(--font-size-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ========== 3. Layout ========== */
.container { width: var(--container-width); margin: 0 auto; }
.full-width { width: 100vw; margin-left: calc(-50vw + 50%); }

/* ========== 4. 顶部日期栏 ========== */
.top-date-bar {
  height: var(--top-date-height);
  line-height: var(--top-date-height);
  background: #5DA0D5;
  color: #fff;
  font-size: var(--font-size-sm);
}
.top-date-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}
.top-date-bar a { color: rgba(255,255,255,0.85); }
.top-date-bar a:hover { color: #fff; text-decoration: underline; }

/* ========== 5. 山水头部 ========== */
.header-banner {
  height: var(--header-height);
  background:
    linear-gradient(165deg, rgba(27,123,192,0.78) 0%, rgba(58,154,219,0.56) 25%, rgba(107,181,232,0.32) 50%, rgba(143,200,240,0.16) 70%, rgba(181,221,245,0.08) 100%),
    url('../images/beijing.png') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
/* 山峦模拟 */
.header-banner::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(60,120,60,0.15) 40%, rgba(40,80,40,0.25) 80%, rgba(30,60,30,0.3) 100%);
}
.header-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background:
    radial-gradient(ellipse 160px 50px at 8% 100%, rgba(60,130,60,0.3) 0%, transparent 100%),
    radial-gradient(ellipse 240px 60px at 25% 100%, rgba(50,120,50,0.25) 0%, transparent 100%),
    radial-gradient(ellipse 200px 55px at 50% 100%, rgba(40,100,40,0.2) 0%, transparent 100%),
    radial-gradient(ellipse 220px 60px at 72% 100%, rgba(50,120,50,0.25) 0%, transparent 100%),
    radial-gradient(ellipse 140px 45px at 92% 100%, rgba(60,130,60,0.3) 0%, transparent 100%);
}
.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: var(--space-lg) 0;
}
.header-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(232,244,255,0.96)), url('../images/logo-min.png') center / contain no-repeat;
  border: 3px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  font-weight: bold;
  flex-shrink: 0;
}
.header-text { margin-left: 20px; flex: 1; }
.header-brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-right: var(--space-lg);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}
.header-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 4px;
}
.header-sub {
  font-size: 13px;
  color: #FFE680;
  margin-top: var(--space-xs);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
}

/* ========== 6. 主导航 ========== */
.nav-wrapper {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
}
.main-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-item {
  height: var(--nav-height);
  padding: 0 20px;
  border-radius: var(--border-radius);
  background: linear-gradient(#3B8CCD, #1268A8);
  color: #fff;
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: var(--nav-height);
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--nx-fast) var(--nx-ease);
}
.nav-item:hover { background: linear-gradient(#4AA0E0, #0E72B8); }
.nav-item.active { background: linear-gradient(#D60000, #B00000); }

/* ========== 7. 面包屑 & 页面标题 ========== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}
.page-title {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--primary-blue);
}
.breadcrumb { font-size: var(--font-size-sm); color: var(--text-muted); }
.breadcrumb a { color: var(--primary-blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

/* ========== 8. 区块标题（中文 + 拼音/英文辅助） ========== */
.section-title {
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: var(--space-xl);
}
.section-title small {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: normal;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: var(--space-xs);
}
/* 白色背景上的标题 */
.section-title-white {
  color: #fff;
  font-size: var(--font-size-2xl);
  text-align: center;
  font-weight: bold;
}
.section-title-white small {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: normal;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: var(--space-xs);
}

/* ========== 9. 搜索栏 ========== */
.search-section {
  margin-top: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid var(--border-light);
}
.search-row { display: flex; gap: 0; flex-wrap: wrap; }
.search-row select {
  width: 110px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 var(--space-sm);
  font-size: 13px;
  outline: none;
  background: #fafafa;
  color: var(--text-secondary);
}
.search-row input {
  flex: 1;
  min-width: 200px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-right: none;
  padding: 0 var(--space-md);
  font-size: var(--font-size-base);
  outline: none;
}
.search-row input:focus { border-color: var(--primary-blue); }
.search-row button {
  height: 38px;
  padding: 0 var(--space-2xl);
  border: none;
  background: #B60000;
  color: #fff;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background var(--nx-fast) var(--nx-ease);
}
.search-row button:hover { background: var(--red-dark); }
.search-hot {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.search-hot .label { color: var(--text-secondary); font-weight: 600; }
.search-hot a { color: var(--primary-blue); }
.search-hot a:hover { text-decoration: underline; }

/* ========== 10. 统一检索栏（首页） ========== */
.unified-search-section {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  padding: var(--space-lg) var(--space-xl);
  margin-top: var(--space-lg);
}
.unified-search-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.unified-search-header .label { font-size: var(--font-size-lg); font-weight: 700; color: var(--text-main); }
.unified-search-tabs { display: flex; gap: var(--space-xs); margin-bottom: var(--space-md); }
.unified-search-tab {
  padding: 4px var(--space-lg);
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  background: #f5f7fa;
  border: 1px solid var(--border-light);
  transition: all var(--nx-fast) var(--nx-ease);
}
.unified-search-tab.active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.unified-search-tab:hover { color: var(--primary-blue); background: #eef4fa; }
.unified-search-tab.active:hover { color: #fff; background: var(--primary-blue-dark); }
.unified-search-box { display: flex; gap: 0; }
.unified-search-box select {
  width: 110px;
  height: 40px;
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 var(--space-sm);
  font-size: 13px;
  outline: none;
  background: #fafafa;
}
.unified-search-box input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border-light);
  border-right: none;
  padding: 0 var(--space-md);
  font-size: var(--font-size-base);
  outline: none;
}
.unified-search-box input:focus { border-color: var(--primary-blue); }
.unified-search-btn {
  height: 40px;
  padding: 0 var(--space-3xl);
  border: none;
  background: #B60000;
  color: #fff;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background var(--nx-fast) var(--nx-ease);
}
.unified-search-btn:hover { background: var(--red-dark); }

/* ========== 11. 公告条 ========== */
.notice-bar {
  display: flex;
  align-items: center;
  height: 44px;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 0 var(--space-lg);
  border: 1px solid var(--border-light);
  margin-top: var(--space-md);
}
.notice-label {
  color: var(--red);
  font-weight: bold;
  margin-right: var(--space-lg);
  white-space: nowrap;
}
.notice-title {
  flex: 1;
  color: var(--red);
  font-size: var(--font-size-base);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-title a { color: var(--red); }
.notice-title a:hover { text-decoration: underline; }
.notice-date {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  margin-left: var(--space-md);
}

/* ========== 12. 红色宣传横幅 ========== */
.red-banner {
  height: 54px;
  background: linear-gradient(90deg, var(--orange-red), #FF6B35, var(--orange-red));
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  line-height: 54px;
  border-radius: var(--border-radius);
  margin-top: var(--space-lg);
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ========== 13. 头条新闻区 ========== */
.headline-section {
  margin-top: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}
.headline-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--red);
  line-height: 1.4;
  cursor: pointer;
}
.headline-title:hover { text-decoration: underline; }
.headline-summary {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  line-height: 1.8;
}

/* ========== 14. 视频轮播 + 社科动态 双栏布局 ========== */
.media-row {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
}
.media-carousel {
  width: 580px;
  flex-shrink: 0;
  position: relative;
}
.carousel-box {
  width: 100%;
  height: 320px;
  background: #0f2744;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.carousel-box .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--nx-ease);
  pointer-events: none;
}
.carousel-box .carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-box .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: linear-gradient(135deg, #1a3a5c, #0f2744);
}
.carousel-box .carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md);
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background var(--nx-fast) var(--nx-ease);
}
.carousel-dot.active { background: var(--primary-blue); }
.carousel-dot:hover { background: var(--primary-blue-light); }
.nx-img-fallback {
  opacity: 0;
  background: linear-gradient(135deg, #eaf4fe, #d6e8f8);
}

/* 右侧动态列表 */
.news-sidebar { flex: 1; min-width: 0; }
.news-sidebar-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--primary-blue);
  margin-bottom: var(--space-md);
}
.news-sidebar-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px dashed var(--border-lighter);
}
a.news-sidebar-item {
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--nx-fast) var(--nx-ease);
}
a.news-sidebar-item:hover {
  background: #f5f9fd;
}
a.news-sidebar-item:hover .news-item-title {
  color: var(--primary-blue);
}
.news-sidebar-item:last-child { border-bottom: none; }
.news-item-content { flex: 1; min-width: 0; }
.news-item-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.news-item-title:hover { color: var(--primary-blue); }
.news-item-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item-date {
  text-align: center;
  flex-shrink: 0;
  width: 50px;
}
.news-item-date .day {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
}
.news-item-date .ym {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ========== 15. 统计卡片（4列网格） ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 18px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--nx-fast) var(--nx-ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
}
.stat-number.red { color: var(--red); }
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}
.stat-sub {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========== 16. 数据概览卡片 ========== */
.stats-overview { display: flex; gap: var(--space-lg); justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); }

/* ========== 17. 专题专栏（深蓝斜纹背景） ========== */
.section-blue {
  background-color: var(--primary-blue);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 8px
  );
  padding: var(--space-4xl) 0;
}
.topic-grid { display: flex; gap: var(--space-lg); justify-content: center; flex-wrap: wrap; margin-top: var(--space-xl); }
.topic-card {
  width: 260px;
  height: 110px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition: transform var(--nx-mid) var(--nx-ease), box-shadow var(--nx-mid) var(--nx-ease);
}
.topic-card .topic-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.topic-card .topic-card-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
}
.topic-card .topic-card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ========== 18.1 主题视觉素材库 ========== */
.theme-gallery {
  margin-top: var(--space-5xl);
}
.theme-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.theme-gallery-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.theme-gallery-card.wide {
  grid-column: span 2;
}
.theme-gallery-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.theme-gallery-card.logo-card img {
  object-fit: contain;
  background: #fff;
  padding: 18px;
}
.theme-gallery-caption {
  padding: 10px 12px 12px;
}
.theme-gallery-caption .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.theme-gallery-caption .desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.theme-banner-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: block;
}

/* ========== 18. 信息栏目卡片（4列网格） ========== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.info-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border-top: 3px solid var(--primary-blue);
  padding: var(--space-lg) 18px;
  min-height: 210px;
  cursor: pointer;
  transition: box-shadow var(--nx-fast) var(--nx-ease);
}
.info-card:hover { box-shadow: var(--shadow-md); }
.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.info-card-title { font-size: var(--font-size-lg); font-weight: 700; color: var(--primary-blue); }
.info-card-title-en { display: block; font-size: var(--font-size-xs); color: var(--text-muted); font-weight: normal; letter-spacing: 1px; }
.info-more { font-size: var(--font-size-sm); color: var(--primary-blue); white-space: nowrap; padding-top: 2px; }
.info-more:hover { text-decoration: underline; }
.info-card-tags { display: flex; gap: 4px; margin-top: var(--space-sm); flex-wrap: wrap; }
.info-tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  padding: 2px 10px;
  border-radius: 3px;
  background: #EAF4FE;
  color: var(--primary-blue);
}
.info-tag.red { background: #FFF0F0; color: var(--red); }
.info-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  line-height: 1.7;
}

/* ========== 19. 红色宣传标语横幅 ========== */
.slogan-banner {
  height: 90px;
  border-radius: var(--border-radius);
  background: linear-gradient(90deg, var(--slogan-start), var(--slogan-mid), var(--slogan-start));
  color: #fff;
  font-size: var(--font-size-3xl);
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  margin-top: var(--space-5xl);
  padding: 0 40px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}
.slogan-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(216,0,0,0.86), rgba(240,74,35,0.8), rgba(216,0,0,0.86));
  z-index: 1;
}
.slogan-banner-text {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ========== 20. 数智社科入口（6列网格） ========== */
.digital-section { margin-top: var(--space-5xl); }
.digital-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.digital-card {
  height: 86px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--digital-blue-start), var(--digital-blue-end));
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: var(--font-size-xl);
  font-weight: bold;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: background var(--nx-mid) var(--nx-ease), transform var(--nx-fast) var(--nx-ease);
}
.digital-card .digital-sub {
  font-size: var(--font-size-xs);
  font-weight: normal;
  opacity: 0.7;
  margin-top: 2px;
}
.digital-card:hover {
  background: linear-gradient(135deg, #005BAC, #0095D9);
  transform: translateY(-2px);
}
.digital-card-icon {
  font-size: 42px;
  margin-left: auto;
  opacity: 0.65;
}

/* ========== 21. 特色专栏 ========== */
.featured-section { margin-top: var(--space-5xl); }
.featured-tabs { display: flex; gap: 4px; margin-bottom: var(--space-lg); }
.featured-tab {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--font-size-base);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  cursor: pointer;
  color: var(--text-secondary);
  background: #f0f2f5;
  border: 1px solid var(--border-light);
  border-bottom: none;
  transition: all var(--nx-fast) var(--nx-ease);
}
.featured-tab.active { background: var(--bg-card); color: var(--primary-blue); font-weight: 600; border-bottom: 2px solid var(--primary-blue); }
.featured-tab:hover { color: var(--primary-blue); }
.featured-carousel {
  display: flex;
  gap: var(--space-lg);
  background: var(--bg-card);
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
  border: 1px solid var(--border-light);
  padding: var(--space-xl);
  min-height: 160px;
  overflow-x: auto;
}
.featured-item {
  width: 200px;
  height: 130px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--font-size-base);
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition: transform var(--nx-fast) var(--nx-ease);
  flex-shrink: 0;
}
.featured-item:hover { transform: translateY(-3px); }

/* ========== 22. 友情链接 ========== */
.friend-links { margin-top: var(--space-5xl); }
.friend-link-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.friend-link-item {
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--nx-fast) var(--nx-ease);
}
.friend-link-item:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

/* ========== 23. Sub Tabs（二级Tab切换） ========== */
.sub-tabs { display: flex; gap: 4px; margin-top: var(--space-lg); }
.sub-tab {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--font-size-base);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  cursor: pointer;
  color: var(--text-secondary);
  background: #f5f7fa;
  border: 1px solid var(--border-light);
  border-bottom: none;
  transition: all var(--nx-fast) var(--nx-ease);
}
.sub-tab.active {
  background: var(--bg-card);
  color: var(--primary-blue);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-blue);
}
.sub-tab:hover { color: var(--primary-blue); }

/* ========== 24. 卡片通用 ========== */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  transition: box-shadow var(--nx-fast) var(--nx-ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

/* ========== 25. 列表项 ========== */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: var(--font-size-base);
}
.list-item:last-child { border-bottom: none; }
.list-item a {
  color: var(--text-main);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item a:hover { color: var(--primary-blue); }
.list-item .date {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  margin-left: var(--space-md);
}

/* ========== 26. 表格 ========== */
.table-wrap {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-top: var(--space-md);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  background: #f8f9fb;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  color: var(--text-main);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

/* ========== 27. 标签 ========== */
.tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  padding: 2px 10px;
  border-radius: 3px;
  background: #EAF4FE;
  color: var(--primary-blue);
}
.tag.red { background: #FFF0F0; color: var(--red); }
.tag.green { background: #E8F8E8; color: #2E7D32; }
.tag.orange { background: #FFF3E0; color: #E65100; }

/* ========== 28. 按钮 ========== */
.btn {
  display: inline-block;
  height: 34px;
  padding: 0 var(--space-xl);
  border-radius: 4px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--nx-fast) var(--nx-ease);
  line-height: 34px;
  text-decoration: none;
}
.btn-primary { background: var(--primary-blue); color: #fff; }
.btn-primary:hover { background: var(--primary-blue-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--primary-blue); border: 1px solid var(--primary-blue); }
.btn-outline:hover { background: #f0f6ff; }
.btn-default { background: #f5f5f5; color: var(--text-secondary); border: 1px solid var(--border-light); }
.btn-default:hover { background: #e8e8e8; }
.btn-sm { height: 28px; line-height: 28px; padding: 0 var(--space-md); font-size: var(--font-size-sm); }
.btn-lg { height: 42px; line-height: 42px; padding: 0 var(--space-3xl); font-size: var(--font-size-md); }

/* ========== 29. 双栏布局 ========== */
.two-col { display: flex; gap: var(--space-2xl); margin-top: var(--space-lg); }
.col-left { width: 220px; flex-shrink: 0; }
.col-right { flex: 1; min-width: 0; }

/* ========== 30. 侧栏菜单 ========== */
.side-menu-title {
  height: 40px;
  border-radius: var(--border-radius);
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  font-size: var(--font-size-md);
}
.side-menu-item {
  height: 36px;
  background: #f0f0f0;
  color: #555;
  border-radius: 4px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--nx-fast) var(--nx-ease);
}
.side-menu-item:hover { background: #e0e4e8; }
.side-menu-item.active {
  background: #fff;
  color: var(--primary-blue);
  border-left: 3px solid var(--primary-blue);
  font-weight: 600;
}

/* ========== 31. 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--nx-fast) var(--nx-ease);
}
.page-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); }
.page-btn.active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== 32. 表单 ========== */
.form-row { display: flex; gap: var(--space-lg); align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.form-item { display: flex; flex-direction: column; gap: 4px; }
.form-item label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.form-item input[type="text"],
.form-item input[type="password"] {
  height: 34px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0 var(--space-md);
  font-size: 13px;
  outline: none;
  min-width: 180px;
}
.form-item input:focus { border-color: var(--primary-blue); }
.form-item select {
  height: 34px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0 var(--space-sm);
  font-size: 13px;
  outline: none;
  background: #fafafa;
  min-width: 120px;
}
.form-actions { display: flex; gap: var(--space-sm); align-items: center; }

/* ========== 33. 页脚 ========== */
.footer {
  background: var(--footer-blue);
  color: #fff;
  padding: var(--space-3xl) 0;
  font-size: 13px;
  text-align: center;
  line-height: 2;
  margin-top: var(--space-5xl);
}
.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-links a { font-size: var(--font-size-base); }

.footer-link-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-link-logo {
  height: 54px;
  padding: 6px 10px;
  background: #fff;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-link-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* ========== 34. 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ========== 35. 响应式断点 ========== */
@media (max-width: 1200px) {
  .container { width: 96%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { flex-direction: column; }
  .col-left { width: 100%; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .digital-grid { grid-template-columns: repeat(3, 1fr); }
  .friend-link-grid { grid-template-columns: repeat(4, 1fr); }
  .media-row { flex-direction: column; }
  .media-carousel { width: 100%; }
  .topic-card { width: calc(50% - 12px); }
}

@media (max-width: 768px) {
  .header-title { font-size: var(--font-size-2xl); letter-spacing: 2px; }
  .header-sub { font-size: var(--font-size-sm); }
  .header-logo { width: 48px; height: 48px; }
  .nav-item { padding: 0 var(--space-md); font-size: 13px; height: 34px; line-height: 34px; }
  .stats-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .digital-grid { grid-template-columns: repeat(2, 1fr); }
  .friend-link-grid { grid-template-columns: repeat(3, 1fr); }
  .search-row select { width: 100%; border-right: 1px solid var(--border-light); border-radius: 4px; margin-bottom: 4px; }
  .search-row button { width: 100%; border-radius: 4px; margin-top: 4px; }
  .topic-card { width: 100%; }
  .section-title { font-size: var(--font-size-xl); }
  .slogan-banner { font-size: var(--font-size-xl); height: 70px; padding: 0 var(--space-lg); }
  .carousel-box { height: 200px; }
}

/* ========== 36. 详情页（政务文章版式） ========== */
.article-wrap {
  background: var(--bg-card);
  border: 1px solid #eceff3;
  border-radius: var(--border-radius);
  padding: 26px 34px 34px;
  margin-top: var(--space-lg);
}
.article-title {
  text-align: center;
  font-size: 30px;
  color: var(--text-main);
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.article-meta {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-lighter);
}
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}
.article-toolbar .font-btn {
  padding: 2px 10px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: #fafafa;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}
.article-toolbar .font-btn.active,
.article-toolbar .font-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: #EAF4FE;
}
.article-content {
  color: var(--text-main);
  font-size: 18px;
  line-height: 2;
  text-align: justify;
}
.article-content p { margin-bottom: 1em; }
.article-attachments {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  background: #fafbfc;
}
.article-attachments .attach-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}
.article-attachments ul li { padding: 4px 0; }
.article-attachments a { color: var(--primary-blue); }
.article-attachments a:hover { text-decoration: underline; }
.article-nav {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border-lighter);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
