/* ========================================
   历史文明织梦网站 - 统一样式体系
   基础样式 + 三种风格变体 + H5适配 + 背景图纹 + 二级导航
   CSS路径：/css/style.css
   ======================================== */

/* === 基础重置与排版 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { 
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  line-height: 1.6; 
  min-height: 100vh;
  position: relative;
}
h1, h2, h3, h4 { 
  font-family: 'Noto Serif SC', 'SimSun', 'STSong', serif; 
  font-weight: 700;
}
a { text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === 背景图纹容器 === */
.bg-pattern-overlay {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.04;
  background-size: 80px 80px;
}
.theme-china .bg-pattern-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0zm20 0h20v20H20zm20 0h20v20H40zm20 0h20v20H60zM0 20h20v20H0zm60 0h20v20H60zM0 40h20v20H0zm20 0h20v20H20zm20 0h20v20H40zm20 0h20v20H60zM0 60h20v20H0zm60 0h20v20H60z' fill='%238B1A1A' fill-opacity='1'/%3E%3C/svg%3E");
}
.theme-west .bg-pattern-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L50 15L65 10L60 25L80 30L65 40L80 50L60 55L65 70L50 65L40 80L30 65L15 70L20 55L0 50L15 40L0 30L20 25L15 10L30 15Z' fill='%23D4A843' fill-opacity='0.6'/%3E%3Ccircle cx='40' cy='40' r='12' fill='%233A5A8C' fill-opacity='0.4'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}
.theme-geopol .bg-pattern-overlay {
  background-image: 
    linear-gradient(rgba(74,144,217,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,144,217,0.15) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='3' fill='%234A90D9' fill-opacity='0.3'/%3E%3Ccircle cx='0' cy='0' r='2' fill='%23C0392B' fill-opacity='0.2'/%3E%3Ccircle cx='60' cy='60' r='2' fill='%23C0392B' fill-opacity='0.2'/%3E%3C/svg%3E");
  background-size: 40px 40px, 40px 40px, 60px 60px;
  opacity: 0.06;
}
.theme-home .bg-pattern-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h30v30H0zm30 0h30v30H30zm60 0h30v30H60zM0 30h30v30H0zm60 30h30v30H60zM0 60h30v30H0zm30 0h30v30H30zm60 0h30v30H60zM0 90h30v30H0zm60 0h30v30H60z' fill='%23C8A96E' fill-opacity='0.3'/%3E%3Ccircle cx='60' cy='60' r='8' fill='none' stroke='%23C8A96E' stroke-opacity='0.2' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.05;
}

/* === 页面内容层 === */
.page-content-layer {
  position: relative; z-index: 1;
}

/* === 统一布局结构 === */
.site-header {
  display: flex; align-items: center; gap: 24px;
  height: 80px; padding: 0 60px; position: sticky; top: 0; z-index: 100;
}
.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-logo-icon { width: 40px; height: 40px; }
.header-logo-text { font-size: 24px; font-weight: 700; font-family: 'Noto Serif SC', serif; }

/* === 一级+二级导航 === */
.header-nav { display: flex; gap: 28px; flex: 1; justify-content: center; align-self: stretch; align-items: stretch; }
.header-nav > li { position: relative; display: flex; align-items: center; }
.header-nav > li > a { 
  font-size: 15px; font-weight: 500; padding: 0 8px; 
  display: flex; align-items: center; white-space: nowrap;
  align-self: stretch;
}
/* 二级下拉 */
.header-nav .sub-nav {
  display: none; position: absolute; top: 100%; left: 0; 
  min-width: 180px; padding: 8px 0;
  border-radius: 4px; z-index: 200;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
}
.header-nav > li:hover > .sub-nav { display: block; }
.header-nav .sub-nav li a {
  font-size: 13px; font-weight: 400; padding: 10px 20px;
  display: block; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.header-nav .sub-nav li a:hover { }

/* 下拉箭头 */
.header-nav .nav-arrow {
  font-size: 10px; margin-left: 4px; opacity: 0.6;
  display: inline-flex; align-items: center;
}

.header-search { 
  display: flex; align-items: center; gap: 8px; 
  padding: 8px 16px; border-radius: 4px; 
  font-size: 13px; flex-shrink: 0;
}
.header-search svg { width: 16px; height: 16px; }

/* 移动端汉堡菜单按钮 */
.mobile-menu-btn {
  display: none; width: 36px; height: 36px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 4px; transition: background 0.2s;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px; border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端导航下拉 */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,0.5);
}
.mobile-nav-overlay.active { display: block; }
.mobile-nav-dropdown {
  display: none; position: absolute; top: 80px; left: 0; right: 0;
  z-index: 101; padding: 16px 20px;
  border-top: 2px solid;
}
.mobile-nav-dropdown.active { display: block; }
.mobile-nav-dropdown .mobile-nav-item { font-size: 16px; padding: 8px 0; display: block; }
.mobile-nav-dropdown .mobile-nav-item.parent { font-weight: 600; }
.mobile-nav-dropdown .mobile-sub-nav { padding-left: 20px; }
.mobile-nav-dropdown .mobile-sub-nav a { font-size: 14px; padding: 6px 0; display: block; }

.accent-bar { width: 100%; height: 4px; }

.breadcrumb { 
  display: flex; align-items: center; gap: 8px; 
  height: 52px; padding: 0 60px; font-size: 13px;
}
.breadcrumb-sep { color: #B0A090; }

.page-title-section { padding: 40px 60px 32px; }
.page-title { font-size: 42px; line-height: 1.2; }
.page-subtitle { font-size: 16px; margin-top: 8px; }

/* === 列表页主内容区 === */
.main-content { 
  display: flex; gap: 40px; 
  padding: 0 60px 40px; 
}
.article-list { flex: 1; display: flex; flex-direction: column; gap: 20px; }

/* 文章卡片 */
.article-card {
  display: flex; gap: 20px; padding: 20px;
  border-radius: 4px; border: 1px solid;
  transition: box-shadow 0.2s, transform 0.1s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-thumb { 
  width: 200px; height: 140px; border-radius: 4px; 
  overflow: hidden; position: relative; flex-shrink: 0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-content { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-category { 
  display: inline-flex; align-items: center; 
  padding: 3px 10px; border-radius: 2px; 
  font-size: 11px; font-weight: 500; color: #F2E8D5;
  width: fit-content;
}
.card-title { font-size: 20px; font-weight: 600; font-family: 'Noto Serif SC', serif; line-height: 1.3; }
.card-excerpt { font-size: 14px; line-height: 26px; }
.card-meta { display: flex; gap: 16px; font-size: 12px; }

/* === 侧边栏 === */
.sidebar { width: 320px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  border-radius: 4px; border: 1px solid; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.widget-title { font-size: 18px; font-weight: 600; font-family: 'Noto Serif SC', serif; }
.widget-line { width: 40px; height: 2px; }
.category-item { 
  display: flex; justify-content: space-between; align-items: center; 
  font-size: 14px; padding: 4px 0;
}
.category-count { font-size: 12px; }
.hot-item { display: flex; gap: 10px; align-items: flex-start; }
.hot-num { font-size: 16px; font-weight: 700; font-family: 'Noto Serif SC', serif; }
.hot-text { font-size: 13px; line-height: 20px; flex: 1; }
.tag-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-item { 
  display: inline-flex; align-items: center; 
  padding: 4px 12px; border-radius: 2px; font-size: 12px;
}
.tag-item.active { color: #F2E8D5; }

/* === 分页 === */
.pagination { 
  display: flex; align-items: center; justify-content: center; 
  height: 80px; padding: 0 60px; gap: 8px;
}
.page-btn { 
  width: 36px; height: 36px; border-radius: 4px; 
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border: 1px solid;
  transition: background 0.2s;
}
.page-btn.active { font-weight: 600; color: #F2E8D5; border: none; }
.page-dots { font-size: 14px; }

/* === 文章页 === */
.article-wrap { 
  display: flex; justify-content: center; 
  padding: 48px 60px; 
}
.article-inner { width: 780px; display: flex; flex-direction: column; gap: 24px; }
.article-header { display: flex; flex-direction: column; gap: 14px; }
.article-category-badge { 
  display: inline-flex; align-items: center; padding: 4px 12px; 
  border-radius: 2px; font-size: 12px; font-weight: 500; color: #F2E8D5;
  width: fit-content;
}
.article-title-text { font-size: 40px; font-weight: 700; font-family: 'Noto Serif SC', serif; line-height: 1.4; }
.article-meta-bar { display: flex; gap: 20px; font-size: 14px; }
.article-lead-image { 
  width: 100%; height: 360px; border-radius: 4px; 
  overflow: hidden; position: relative;
}
.article-lead-image img { width: 100%; height: 100%; object-fit: cover; }
.article-lead-caption { 
  font-size: 13px; text-align: center; margin-top: 8px;
  font-style: italic;
}
.article-body { display: flex; flex-direction: column; gap: 20px; }
.article-body p { font-size: 17px; line-height: 32px; }

/* 引用块 */
.pull-quote { 
  padding: 0 0 0 20px; position: relative; 
  display: flex; flex-direction: column; gap: 8px;
}
.pull-quote::before { 
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; 
  width: 3px; border-radius: 2px;
}
.pull-quote-text { 
  font-size: 22px; font-weight: 600; font-family: 'Noto Serif SC', serif; 
  line-height: 36px;
}
.pull-quote-author { font-size: 14px; }

/* 标签区 */
.article-tags-wrap { 
  display: flex; align-items: center; gap: 10px; 
  padding: 16px 0; border-top: 1px solid;
}
.article-tags-label { font-size: 14px; font-weight: 500; }
.article-tag-badge { 
  padding: 4px 10px; border-radius: 2px; font-size: 12px;
}

/* 上下篇导航 */
.article-nav-bar { 
  display: flex; justify-content: space-between; gap: 20px; 
  padding: 16px 0;
}
.article-nav-item { display: flex; flex-direction: column; gap: 4px; }
.article-nav-label { font-size: 12px; }
.article-nav-link { font-size: 14px; font-weight: 600; }

/* === 页脚 === */
.site-footer { padding: 48px 60px 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 60px; }
.footer-brand { width: 300px; display: flex; flex-direction: column; gap: 12px; }
.footer-logo-text { font-size: 22px; font-weight: 700; font-family: 'Noto Serif SC', serif; }
.footer-desc { font-size: 13px; line-height: 22px; }
.footer-col { width: 160px; display: flex; flex-direction: column; gap: 10px; }
.footer-col.contact { width: 200px; }
.footer-col-title { font-size: 14px; font-weight: 600; }
.footer-col a, .footer-col span { font-size: 13px; display: block; }
.footer-bottom { 
  display: flex; align-items: center; justify-content: center;
  padding: 16px 0 0; margin-top: 32px; border-top: 1px solid;
}
.footer-copyright { font-size: 12px; }

/* === 幻灯片/轮播 === */
.slideshow {
  position: relative; width: 100%; height: 500px;
  overflow: hidden;
}
.slideshow-track {
  display: flex; transition: transform 0.6s ease;
  height: 100%;
}
.slideshow-slide {
  min-width: 100%; height: 100%; position: relative;
  overflow: hidden;
}
/* 幻灯片图片 - 自动铺满 */
.slideshow-slide img.slide-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; position: absolute; inset: 0;
}
/* 幻灯片半透明叠加层 - 确保文字可读 */
.slideshow-slide .slide-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.slide-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px; gap: 16px; text-align: center;
}
.slide-title { font-size: 48px; font-weight: 700; font-family: 'Noto Serif SC', serif; color: #FFFFFF; }
.slide-desc { font-size: 18px; max-width: 600px; line-height: 28px; color: rgba(255,255,255,0.9); }
.slide-btn {
  display: inline-flex; align-items: center; padding: 12px 32px;
  border-radius: 4px; font-size: 15px; font-weight: 500;
  margin-top: 12px; transition: opacity 0.2s;
}
.slide-btn:hover { opacity: 0.9; }
.slideshow-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.slideshow-dot {
  width: 12px; height: 12px; border-radius: 50%; cursor: pointer;
  transition: background 0.2s;
}
.slideshow-dot.active { transform: scale(1.2); }
.slideshow-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between; padding: 0 20px;
  z-index: 3;
}
.slideshow-arrow {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: opacity 0.2s; opacity: 0.7;
}
.slideshow-arrow:hover { opacity: 1; }

/* === 首页特有模块 === */
.home-section { padding: 60px; }
.home-section-title { 
  font-size: 32px; font-weight: 700; font-family: 'Noto Serif SC', serif; 
  margin-bottom: 8px;
}
.home-section-subtitle { font-size: 16px; margin-bottom: 32px; }
.home-section-line { width: 40px; height: 3px; margin-bottom: 24px; }

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-card {
  border-radius: 4px; border: 1px solid; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.featured-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.featured-card-thumb { width: 100%; height: 200px; overflow: hidden; }
.featured-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.featured-card-category { 
  display: inline-flex; padding: 3px 10px; border-radius: 2px;
  font-size: 11px; font-weight: 500; color: #F2E8D5; width: fit-content;
}
.featured-card-title { font-size: 18px; font-weight: 600; font-family: 'Noto Serif SC', serif; }
.featured-card-excerpt { font-size: 14px; line-height: 22px; }
.featured-card-meta { font-size: 12px; }

/* === 首页最新文章列表（带缩略图）=== */
.latest-articles-section { padding: 48px 60px; }
.latest-articles-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.latest-articles-header h2 {
  font-size: 28px; font-weight: 700; font-family: 'Noto Serif SC', serif;
}
.latest-articles-header .more-link {
  font-size: 14px; font-weight: 500; padding: 6px 16px;
  border-radius: 4px; border: 1px solid;
  transition: background 0.2s;
}
.latest-articles-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.latest-article-item {
  display: flex; gap: 16px; padding: 16px;
  border-radius: 4px; border: 1px solid;
  transition: box-shadow 0.2s, transform 0.15s;
}
.latest-article-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.latest-article-thumb {
  width: 160px; height: 120px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0;
}
.latest-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-article-body {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.latest-article-cat {
  display: inline-flex; padding: 2px 8px; border-radius: 2px;
  font-size: 11px; font-weight: 500; color: #F2E8D5; width: fit-content;
}
.latest-article-title {
  font-size: 17px; font-weight: 600; font-family: 'Noto Serif SC', serif; line-height: 1.4;
}
.latest-article-excerpt { font-size: 13px; line-height: 22px; }
.latest-article-meta { font-size: 12px; }

/* 文明栏目入口 */
.civilization-tabs { display: flex; gap: 0; }
.civilization-tab {
  padding: 16px 32px; font-size: 15px; font-weight: 500; cursor: pointer;
  border-bottom: 3px solid transparent; transition: all 0.2s;
}
.civilization-tab.active { border-bottom-width: 3px; }

/* === 首页栏目区块 - 每个栏目4篇文章卡片 === */
.channel-section { padding: 48px 60px; }
.channel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.channel-header-left { display: flex; align-items: center; gap: 16px; }
.channel-header-left .channel-icon {
  width: 40px; height: 40px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-family: 'Noto Serif SC', serif; font-weight: 700;
}
.channel-header-left h2 {
  font-size: 26px; font-weight: 700; font-family: 'Noto Serif SC', serif;
}
.channel-header-left .channel-desc {
  font-size: 14px; max-width: 400px;
}
.channel-more-link {
  font-size: 14px; font-weight: 500; padding: 6px 16px;
  border-radius: 4px; border: 1px solid;
  transition: background 0.2s;
}
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.channel-card {
  border-radius: 4px; border: 1px solid; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.channel-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.channel-card-thumb { width: 100%; height: 140px; overflow: hidden; }
.channel-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.channel-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.channel-card-cat {
  display: inline-flex; padding: 2px 8px; border-radius: 2px;
  font-size: 11px; font-weight: 500; color: #FFFFFF; width: fit-content;
}
.channel-card-title {
  font-size: 15px; font-weight: 600; font-family: 'Noto Serif SC', serif; line-height: 1.4;
}
.channel-card-meta { font-size: 12px; }

/* === 首页新增模块样式 === */

/* 时间线最新更新 */
.timeline-section { padding: 40px 60px; }
.timeline-list { 
  display: flex; flex-direction: column; gap: 0;
  border-left: 2px solid; padding-left: 24px; margin-left: 8px;
}
.timeline-item {
  position: relative; padding: 12px 0 24px;
  display: flex; gap: 16px;
}
.timeline-dot {
  position: absolute; left: -30px; top: 14px;
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid;
}
.timeline-date { 
  font-size: 13px; min-width: 80px; padding-top: 2px;
  font-family: 'Noto Sans SC', sans-serif;
}
.timeline-content { flex: 1; }
.timeline-title { 
  font-size: 16px; font-weight: 600; font-family: 'Noto Serif SC', serif;
  line-height: 1.4;
}
.timeline-excerpt { font-size: 13px; line-height: 20px; margin-top: 4px; }

/* 学者专栏 */
.scholar-section { padding: 40px 60px; }
.scholar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scholar-card {
  border-radius: 4px; border: 1px solid; padding: 20px;
  text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.scholar-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.scholar-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
  overflow: hidden; border: 2px solid;
}
.scholar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.scholar-name { font-size: 16px; font-weight: 600; font-family: 'Noto Serif SC', serif; }
.scholar-field { font-size: 12px; margin-top: 4px; }
.scholar-count { font-size: 11px; margin-top: 6px; padding: 2px 8px; border-radius: 2px; display: inline-block; }

/* 专题推荐横幅 */
.topic-banner {
  padding: 40px 60px; display: flex; gap: 24px; align-items: stretch;
}
.topic-banner-card {
  flex: 1; border-radius: 8px; overflow: hidden; position: relative;
  height: 220px; transition: transform 0.2s;
}
.topic-banner-card:hover { transform: scale(1.02); }
.topic-banner-card img { width: 100%; height: 100%; object-fit: cover; }
.topic-banner-overlay {
  position: absolute; inset: 0; 
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; gap: 8px;
}
.topic-banner-title { font-size: 22px; font-weight: 700; font-family: 'Noto Serif SC', serif; }
.topic-banner-desc { font-size: 14px; line-height: 22px; }

/* 数据统计条 */
.stats-bar {
  display: flex; justify-content: center; gap: 48px;
  padding: 32px 60px;
}
.stat-item {
  text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.stat-number { 
  font-size: 36px; font-weight: 700; font-family: 'Noto Serif SC', serif;
}
.stat-label { font-size: 14px; }

/* 友情链接 */
.friend-links {
  padding: 24px 60px; display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap;
}
.friend-links-title { font-size: 14px; font-weight: 600; font-family: 'Noto Serif SC', serif; }
.friend-link-item {
  font-size: 13px; padding: 4px 12px; border-radius: 2px;
  border: 1px solid; transition: background 0.2s;
}

/* ========================================
   风格变体一：中国古典
   ======================================== */
.theme-china { background: #F2E8D5; color: #1A1A1A; }
.theme-china .site-header { background: #1A1A1A; }
.theme-china .header-logo-icon svg circle { stroke: #B8924A; }
.theme-china .header-logo-icon svg text { fill: #B8924A; }
.theme-china .header-logo-text { color: #F2E8D5; }
.theme-china .header-nav > li > a { color: #F2E8D5; }
.theme-china .header-nav > li > a:hover { color: #B8924A; }
.theme-china .header-nav > li > a.active { color: #B8924A; }
/* 中国古典二级下拉 */
.theme-china .header-nav .sub-nav { background: #2A2A2A; border-top: 2px solid #B8924A; }
.theme-china .header-nav .sub-nav li a { color: #F2E8D5; }
.theme-china .header-nav .sub-nav li a:hover { background: #8B1A1A; color: #F2E8D5; }
.theme-china .header-search { background: #2A2A2A; }
.theme-china .header-search svg { stroke: #B8924A; }
.theme-china .header-search span { color: #9B8B7A; }
.theme-china .mobile-menu-btn { background: #2A2A2A; }
.theme-china .mobile-menu-btn span { background: #B8924A; }
.theme-china .mobile-nav-dropdown { background: #1A1A1A; border-color: #B8924A; }
.theme-china .mobile-nav-dropdown .mobile-nav-item { color: #F2E8D5; }
.theme-china .mobile-nav-dropdown .mobile-nav-item:hover { color: #B8924A; }
.theme-china .mobile-nav-dropdown .mobile-sub-nav a { color: #9B8B7A; }
.theme-china .mobile-nav-dropdown .mobile-sub-nav a:hover { color: #B8924A; }
.theme-china .accent-bar { background: #8B1A1A; }
.theme-china .breadcrumb { background: #EDE0C8; }
.theme-china .breadcrumb a { color: #8B7355; }
.theme-china .breadcrumb-sep { color: #B0A090; }
.theme-china .breadcrumb .current { color: #1A1A1A; font-weight: 500; }
.theme-china .page-title { color: #1A1A1A; }
.theme-china .page-subtitle { color: #6B5A45; }
.theme-china .article-card { background: #FAF3E3; border-color: #D4C5A8; }
.theme-china .card-category { background: #8B1A1A; }
.theme-china .card-title { color: #1A1A1A; }
.theme-china .card-excerpt { color: #6B5A45; }
.theme-china .card-meta { color: #9B8B7A; }
.theme-china .sidebar-widget { background: #FAF3E3; border-color: #D4C5A8; }
.theme-china .widget-title { color: #1A1A1A; }
.theme-china .widget-line { background: #8B1A1A; }
.theme-china .category-item { color: #3A3025; }
.theme-china .category-count { color: #9B8B7A; }
.theme-china .hot-num { color: #8B1A1A; }
.theme-china .hot-num.top3 { color: #B8924A; }
.theme-china .hot-text { color: #3A3025; }
.theme-china .tag-item { background: #EDE0C8; color: #5A4530; }
.theme-china .tag-item.active { background: #8B1A1A; color: #F2E8D5; }
.theme-china .page-btn { border-color: #D4C5A8; color: #6B5A45; background: #FAF3E3; }
.theme-china .page-btn.active { background: #8B1A1A; }
.theme-china .page-dots { color: #9B8B7A; }
.theme-china .article-title-text { color: #1A1A1A; }
.theme-china .article-meta-bar { color: #6B5A45; }
.theme-china .article-lead-caption { color: #9B8B7A; }
.theme-china .article-body p { color: #2C1810; }
.theme-china .pull-quote::before { background: #8B1A1A; }
.theme-china .pull-quote-text { color: #8B1A1A; }
.theme-china .pull-quote-author { color: #9B8B7A; }
.theme-china .article-tags-wrap { border-color: #D4C5A8; }
.theme-china .article-tags-label { color: #6B5A45; }
.theme-china .article-tag-badge { background: #EDE0C8; color: #5A4530; }
.theme-china .article-category-badge { background: #8B1A1A; }
.theme-china .article-nav-label { color: #9B8B7A; }
.theme-china .article-nav-link { color: #6B5A45; }
.theme-china .site-footer { background: #1A1A1A; }
.theme-china .footer-logo-text { color: #B8924A; }
.theme-china .footer-desc { color: #9B8B7A; }
.theme-china .footer-col-title { color: #F2E8D5; }
.theme-china .footer-col a, .theme-china .footer-col span { color: #9B8B7A; }
.theme-china .footer-bottom { border-color: #2A2A2A; }
.theme-china .footer-copyright { color: #6B5A45; }

/* ========================================
   风格变体二：西亚北非欧洲古代
   ======================================== */
.theme-west { background: #E8D5B7; color: #2C1810; }
.theme-west .site-header { background: #1C1208; }
.theme-west .header-logo-icon svg circle { stroke: #D4A843; }
.theme-west .header-logo-icon svg text { fill: #D4A843; font-family: serif; }
.theme-west .header-logo-text { color: #E8D5B7; }
.theme-west .header-nav > li > a { color: #E8D5B7; }
.theme-west .header-nav > li > a:hover { color: #D4A843; }
.theme-west .header-nav > li > a.active { color: #D4A843; }
/* 西亚二级下拉 */
.theme-west .header-nav .sub-nav { background: #3A2810; border-top: 2px solid #D4A843; }
.theme-west .header-nav .sub-nav li a { color: #E8D5B7; }
.theme-west .header-nav .sub-nav li a:hover { background: #3A5A8C; color: #E8D5B7; }
.theme-west .header-search { background: #3A2810; }
.theme-west .header-search svg { stroke: #D4A843; }
.theme-west .header-search span { color: #8B7355; }
.theme-west .mobile-menu-btn { background: #3A2810; }
.theme-west .mobile-menu-btn span { background: #D4A843; }
.theme-west .mobile-nav-dropdown { background: #1C1208; border-color: #D4A843; }
.theme-west .mobile-nav-dropdown .mobile-nav-item { color: #E8D5B7; }
.theme-west .mobile-nav-dropdown .mobile-nav-item:hover { color: #D4A843; }
.theme-west .mobile-nav-dropdown .mobile-sub-nav a { color: #8B7355; }
.theme-west .mobile-nav-dropdown .mobile-sub-nav a:hover { color: #D4A843; }
.theme-west .accent-bar { background: #D4A843; }
.theme-west .breadcrumb { background: #DBC9A8; }
.theme-west .breadcrumb a { color: #7A5C30; }
.theme-west .breadcrumb-sep { color: #A08B6B; }
.theme-west .breadcrumb .current { color: #2C1810; font-weight: 500; }
.theme-west .page-title { color: #2C1810; }
.theme-west .page-subtitle { color: #5A4020; }
.theme-west .article-card { background: #F0E0C0; border-color: #C4A878; }
.theme-west .card-category { background: #3A5A8C; }
.theme-west .card-title { color: #2C1810; }
.theme-west .card-excerpt { color: #5A4020; }
.theme-west .card-meta { color: #8B7355; }
.theme-west .sidebar-widget { background: #F0E0C0; border-color: #C4A878; }
.theme-west .widget-title { color: #2C1810; }
.theme-west .widget-line { background: #D4A843; }
.theme-west .category-item { color: #3A2810; }
.theme-west .category-count { color: #8B7355; }
.theme-west .hot-num { color: #D4A843; }
.theme-west .hot-num.top3 { color: #3A5A8C; }
.theme-west .hot-text { color: #3A2810; }
.theme-west .tag-item { background: #DBC9A8; color: #4A3520; }
.theme-west .tag-item.active { background: #3A5A8C; color: #E8D5B7; }
.theme-west .page-btn { border-color: #C4A878; color: #5A4020; background: #F0E0C0; }
.theme-west .page-btn.active { background: #3A5A8C; }
.theme-west .page-dots { color: #8B7355; }
.theme-west .article-title-text { color: #2C1810; }
.theme-west .article-meta-bar { color: #5A4020; }
.theme-west .article-lead-caption { color: #8B7355; }
.theme-west .article-body p { color: #2C1810; }
.theme-west .pull-quote::before { background: #D4A843; }
.theme-west .pull-quote-text { color: #D4A843; }
.theme-west .pull-quote-author { color: #8B7355; }
.theme-west .article-tags-wrap { border-color: #C4A878; }
.theme-west .article-tags-label { color: #5A4020; }
.theme-west .article-tag-badge { background: #DBC9A8; color: #4A3520; }
.theme-west .article-category-badge { background: #3A5A8C; }
.theme-west .article-nav-label { color: #8B7355; }
.theme-west .article-nav-link { color: #5A4020; }
.theme-west .site-footer { background: #1C1208; }
.theme-west .footer-logo-text { color: #D4A843; }
.theme-west .footer-desc { color: #8B7355; }
.theme-west .footer-col-title { color: #E8D5B7; }
.theme-west .footer-col a, .theme-west .footer-col span { color: #8B7355; }
.theme-west .footer-bottom { border-color: #3A2810; }
.theme-west .footer-copyright { color: #5A4020; }

/* ========================================
   风格变体三：当代国际地缘秩序
   ======================================== */
.theme-geopol { background: #F0F2F5; color: #1A1A2E; }
.theme-geopol .site-header { background: #1A1A2E; }
.theme-geopol .header-logo-icon svg circle { stroke: #4A90D9; }
.theme-geopol .header-logo-icon svg text { fill: #4A90D9; }
.theme-geopol .header-logo-text { color: #F0F2F5; }
.theme-geopol .header-nav > li > a { color: #E0E4EA; }
.theme-geopol .header-nav > li > a:hover { color: #4A90D9; }
.theme-geopol .header-nav > li > a.active { color: #4A90D9; }
/* 地缘二级下拉 */
.theme-geopol .header-nav .sub-nav { background: #2A2A40; border-top: 2px solid #4A90D9; }
.theme-geopol .header-nav .sub-nav li a { color: #E0E4EA; }
.theme-geopol .header-nav .sub-nav li a:hover { background: #C0392B; color: #FFFFFF; }
.theme-geopol .header-search { background: #2A2A40; }
.theme-geopol .header-search svg { stroke: #4A90D9; }
.theme-geopol .header-search span { color: #8B95A5; }
.theme-geopol .mobile-menu-btn { background: #2A2A40; }
.theme-geopol .mobile-menu-btn span { background: #4A90D9; }
.theme-geopol .mobile-nav-dropdown { background: #1A1A2E; border-color: #4A90D9; }
.theme-geopol .mobile-nav-dropdown .mobile-nav-item { color: #E0E4EA; }
.theme-geopol .mobile-nav-dropdown .mobile-nav-item:hover { color: #4A90D9; }
.theme-geopol .mobile-nav-dropdown .mobile-sub-nav a { color: #8B95A5; }
.theme-geopol .mobile-nav-dropdown .mobile-sub-nav a:hover { color: #4A90D9; }
.theme-geopol .accent-bar { background: #C0392B; }
.theme-geopol .breadcrumb { background: #E4E8EE; }
.theme-geopol .breadcrumb a { color: #5A6A80; }
.theme-geopol .breadcrumb-sep { color: #A0AAC0; }
.theme-geopol .breadcrumb .current { color: #1A1A2E; font-weight: 500; }
.theme-geopol .page-title { color: #1A1A2E; }
.theme-geopol .page-subtitle { color: #5A6A80; }
.theme-geopol .article-card { background: #FFFFFF; border-color: #D8DDE6; }
.theme-geopol .card-category { background: #C0392B; }
.theme-geopol .card-title { color: #1A1A2E; }
.theme-geopol .card-excerpt { color: #5A6A80; }
.theme-geopol .card-meta { color: #8B95A5; }
.theme-geopol .sidebar-widget { background: #FFFFFF; border-color: #D8DDE6; }
.theme-geopol .widget-title { color: #1A1A2E; }
.theme-geopol .widget-line { background: #C0392B; }
.theme-geopol .category-item { color: #2A2A40; }
.theme-geopol .category-count { color: #8B95A5; }
.theme-geopol .hot-num { color: #4A90D9; }
.theme-geopol .hot-num.top3 { color: #C0392B; }
.theme-geopol .hot-text { color: #2A2A40; }
.theme-geopol .tag-item { background: #E4E8EE; color: #3A4A60; }
.theme-geopol .tag-item.active { background: #C0392B; color: #FFFFFF; }
.theme-geopol .page-btn { border-color: #D8DDE6; color: #5A6A80; background: #FFFFFF; }
.theme-geopol .page-btn.active { background: #C0392B; }
.theme-geopol .page-dots { color: #8B95A5; }
.theme-geopol .article-title-text { color: #1A1A2E; }
.theme-geopol .article-meta-bar { color: #5A6A80; }
.theme-geopol .article-lead-caption { color: #8B95A5; }
.theme-geopol .article-body p { color: #2A2A40; }
.theme-geopol .pull-quote::before { background: #C0392B; }
.theme-geopol .pull-quote-text { color: #C0392B; }
.theme-geopol .pull-quote-author { color: #8B95A5; }
.theme-geopol .article-tags-wrap { border-color: #D8DDE6; }
.theme-geopol .article-tags-label { color: #5A6A80; }
.theme-geopol .article-tag-badge { background: #E4E8EE; color: #3A4A60; }
.theme-geopol .article-category-badge { background: #C0392B; }
.theme-geopol .article-nav-label { color: #8B95A5; }
.theme-geopol .article-nav-link { color: #5A6A80; }
.theme-geopol .site-footer { background: #1A1A2E; }
.theme-geopol .footer-logo-text { color: #4A90D9; }
.theme-geopol .footer-desc { color: #8B95A5; }
.theme-geopol .footer-col-title { color: #E0E4EA; }
.theme-geopol .footer-col a, .theme-geopol .footer-col span { color: #8B95A5; }
.theme-geopol .footer-bottom { border-color: #2A2A40; }
.theme-geopol .footer-copyright { color: #5A6A80; }

/* ========================================
   H5 响应式适配
   ======================================== */

@media (max-width: 1200px) {
  .main-content { padding: 0 40px 40px; }
  .site-header { padding: 0 40px; }
  .header-nav { gap: 20px; }
  .breadcrumb { padding: 0 40px; }
  .home-section { padding: 40px; }
  .sidebar { width: 280px; }
  .timeline-section { padding: 40px; }
  .scholar-section { padding: 40px; }
  .topic-banner { padding: 40px; }
  .stats-bar { padding: 32px 40px; gap: 32px; }
  .friend-links { padding: 24px 40px; }
  .latest-articles-section { padding: 40px; }
  .channel-section { padding: 40px; }
}

@media (max-width: 992px) {
  .main-content { flex-direction: column; }
  .header-nav { gap: 16px; }
  .header-nav > li > a { font-size: 14px; padding: 0 4px; }
  .sidebar { width: 100%; }
  .sidebar-widget { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .sidebar-widget .widget-title, .sidebar-widget .widget-line { grid-column: 1 / -1; }
  .sidebar-widget .tag-wrap { grid-column: 1 / -1; }
  .article-wrap { padding: 32px 40px; }
  .article-inner { width: 100%; max-width: 780px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .scholar-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-banner { flex-direction: column; }
  .topic-banner-card { height: 180px; }
  .stats-bar { gap: 24px; }
  .stat-number { font-size: 28px; }
  .latest-articles-list { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  
  /* 导航变汉堡菜单 */
  .header-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  
  .site-header { padding: 0 16px; height: 56px; }
  .header-logo-icon { width: 32px; height: 32px; }
  .header-logo-icon svg { width: 32px; height: 32px; }
  .header-logo-text { font-size: 18px; }
  
  .main-content { padding: 0 16px 24px; gap: 20px; }
  .breadcrumb { padding: 0 16px; height: 36px; font-size: 12px; }
  .page-title-section { padding: 20px 16px 16px; }
  .page-title { font-size: 26px; }
  .page-subtitle { font-size: 14px; }
  
  /* 文章卡片移动端竖排 */
  .article-card { flex-direction: column; padding: 16px; gap: 12px; }
  .card-thumb { width: 100%; height: 160px; }
  .card-title { font-size: 17px; }
  .card-excerpt { font-size: 13px; line-height: 22px; }
  
  /* 侧边栏恢复单列 */
  .sidebar-widget { display: flex; flex-direction: column; }
  
  .home-section { padding: 24px 16px; }
  .home-section-title { font-size: 24px; }
  .home-section-subtitle { font-size: 14px; margin-bottom: 20px; }
  .featured-grid { grid-template-columns: 1fr; }
  
  .article-wrap { padding: 20px 16px; }
  .article-title-text { font-size: 24px; line-height: 1.3; }
  .article-meta-bar { flex-wrap: wrap; gap: 12px; font-size: 13px; }
  .article-lead-image { height: 200px; }
  .article-body p { font-size: 15px; line-height: 28px; }
  .pull-quote-text { font-size: 18px; line-height: 30px; }
  
  /* 首页幻灯片移动端不展示 */
  .slideshow, .slideshow-arrows, .slideshow-dots { display: none !important; }
  
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-brand { width: 100%; }
  .footer-col { width: 100%; }
  .site-footer { padding: 32px 16px 16px; }
  
  .timeline-section { padding: 24px 16px; }
  .timeline-date { min-width: 60px; font-size: 12px; }
  .timeline-title { font-size: 14px; }
  
  .scholar-section { padding: 24px 16px; }
  .scholar-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .scholar-card { padding: 16px; }
  .scholar-avatar { width: 60px; height: 60px; }
  .scholar-name { font-size: 14px; }
  
  .topic-banner { padding: 24px 16px; flex-direction: column; }
  .topic-banner-card { height: 160px; }
  .topic-banner-title { font-size: 18px; }
  
  .stats-bar { padding: 24px 16px; gap: 16px; flex-wrap: wrap; }
  .stat-number { font-size: 24px; }
  .stat-label { font-size: 12px; }
  
  .friend-links { padding: 16px; }
  .friend-links-title { width: 100%; }
  
  .pagination { height: 60px; }
  .page-btn { width: 32px; height: 32px; font-size: 13px; }
  
  /* 最新文章列表移动端 */
  .latest-articles-section { padding: 24px 16px; }
  .latest-articles-list { grid-template-columns: 1fr; }
  .latest-article-item { flex-direction: column; }
  .latest-article-thumb { width: 100%; height: 140px; }
  .latest-articles-header h2 { font-size: 22px; }
  
  /* 栏目区块移动端 */
  .channel-section { padding: 24px 16px; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel-header-left h2 { font-size: 20px; }
  .channel-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  
  /* 背景图纹移动端降低密度 */
  .bg-pattern-overlay { opacity: 0.02; background-size: 50px 50px; }
  .theme-west .bg-pattern-overlay { background-size: 60px 60px; }
  .theme-geopol .bg-pattern-overlay { background-size: 30px 30px, 30px 30px, 45px 45px; }
  .theme-home .bg-pattern-overlay { background-size: 80px 80px; }
  
  .mobile-nav-dropdown { top: 56px; }
}

@media (max-width: 480px) {
  html { font-size: 13px; }
  .scholar-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { flex-direction: column; gap: 12px; }
  .stat-item { flex-direction: row; align-items: center; gap: 8px; justify-content: center; }
  .stat-number { font-size: 20px; }
  .page-title { font-size: 22px; }
  .article-title-text { font-size: 20px; }
  .featured-card-thumb { height: 140px; }
  .topic-banner-card { height: 140px; }
  .channel-card-thumb { height: 120px; }
}
