/* ============================================
   招标代理网站主样式表 - Vercel适配+百度SEO版
   ============================================
   
   设计理念：
   - 严谨专业的政务风格
   - 简洁自然的手工设计质感
   - 拒绝AI模板化特征
   - 百度SEO友好
   
*/

/* ============================================
   基础重置与变量定义
   ============================================ */

:root {
  --gov-blue: #005EA5;
  --gov-blue-dark: #004A82;
  --gov-blue-light: #E8F4F8;
  --gov-gray: #F5F7FA;
  --gov-gray-dark: #E5E9EF;
  --gov-text: #333333;
  --gov-text-light: #666666;
  --gov-text-lighter: #999999;
  --gov-border: #E0E0E0;
  --gov-white: #FFFFFF;
  --gov-radius: 4px;
  
  /* 动画变量 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gov-text);
  background-color: var(--gov-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 百度移动适配：禁止缩放 */
body {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ============================================
   动画效果
   ============================================ */

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* 粒子容器 */
#particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: linear-gradient(135deg, var(--gov-blue), var(--gov-blue-light));
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

/* 页面加载类 */
body.page-loading {
  opacity: 0;
}

body.page-loaded {
  animation: fadeIn 0.5s ease forwards;
}

/* 元素渐入效果 */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* 悬停动画 */
.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-scale {
  transition: transform var(--transition-fast);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-glow {
  transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(0, 94, 165, 0.3);
}

/* 按钮涟漪效果 */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* ============================================
   链接样式
   ============================================ */

a {
  color: var(--gov-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gov-blue-dark);
}

/* ============================================
   头部导航
   ============================================ */

.header {
  background-color: var(--gov-white);
  border-bottom: 1px solid var(--gov-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--gov-blue);
  letter-spacing: 1px;
}

/* 导航栏装饰线条 */
.logo-decoration {
  position: relative;
}

.logo-decoration::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gov-blue) 0%, transparent 100%);
  opacity: 0.3;
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gov-blue), var(--gov-blue-light));
  z-index: 9999;
  transition: width 0.1s;
}

/* 鼠标跟随光标 */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gov-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, width 0.15s ease, height 0.15s ease;
  mix-blend-mode: difference;
}

.cursor.active {
  width: 40px;
  height: 40px;
  background: rgba(0, 94, 165, 0.1);
  border-color: var(--gov-blue-light);
}

/* 导航菜单 */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--gov-text);
  border-radius: var(--gov-radius);
  transition: all var(--transition-normal);
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--gov-blue);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-item:hover {
  background-color: var(--gov-blue-light);
  color: var(--gov-blue);
  transform: translateY(-2px);
}

.nav-item:hover::after {
  width: 60%;
}

.nav-item.active {
  background-color: var(--gov-blue);
  color: var(--gov-white);
}

.nav-item.active::after {
  width: 60%;
}

/* 搜索框 */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  width: 200px;
  padding: 8px 14px;
  border: 1px solid var(--gov-border);
  border-radius: var(--gov-radius);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 2px rgba(0, 94, 165, 0.1);
}

.search-btn {
  padding: 8px 16px;
  background-color: var(--gov-blue);
  color: var(--gov-white);
  border: none;
  border-radius: var(--gov-radius);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-btn:hover {
  background-color: var(--gov-blue-dark);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gov-text);
  transition: all 0.3s ease;
}

/* 移动端菜单遮罩 */
.nav-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   主体内容区
   ============================================ */

.main {
  min-height: calc(100vh - 72px - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   面包屑导航（百度SEO：BreadcrumbList）
   ============================================ */

.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--gov-border);
  margin-bottom: 24px;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 14px;
  color: var(--gov-text-light);
}

.breadcrumb a {
  color: var(--gov-text-light);
}

.breadcrumb a:hover {
  color: var(--gov-blue);
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--gov-text-lighter);
}

.breadcrumb-current {
  color: var(--gov-text);
}

/* ============================================
   首页轮播图模块（新增）
   ============================================ */

.banner-section {
  margin-bottom: 48px;
}

.banner-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 450px;
  overflow: hidden;
  border-radius: var(--gov-radius);
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-slide.active .banner-content {
  animation: fadeInUp 0.6s ease forwards;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.banner-slide.active img {
  transform: scale(1.05);
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 48px 48px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: var(--gov-white);
  z-index: 2;
}

.banner-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

/* 轮播控制按钮 */
.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--gov-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.2s ease;
}

.banner-prev:hover,
.banner-next:hover {
  background-color: var(--gov-white);
}

.banner-prev {
  left: 24px;
}

.banner-next {
  right: 24px;
}

.banner-prev svg,
.banner-next svg {
  width: 24px;
  height: 24px;
  color: var(--gov-text);
}

/* 轮播指示点 */
.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-dot.active {
  background-color: var(--gov-white);
  width: 24px;
  border-radius: 5px;
}

/* ============================================
   首页样式
   ============================================ */

/* 首页横幅（保留数据统计） */
.hero-section {
  background: linear-gradient(135deg, var(--gov-blue) 0%, var(--gov-blue-dark) 100%);
  color: var(--gov-white);
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* 服务流程 */
.service-process {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.process-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.5), transparent);
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
}

.process-step:hover .step-number {
  background: var(--gov-white);
  color: var(--gov-blue);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
}

/* 核心优势板块 */
.features-section {
  padding: 80px 0;
  background-color: var(--gov-white);
}

.section-subtitle {
  font-size: 16px;
  color: var(--gov-text-light);
  text-align: center;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--gov-white);
  border-radius: 12px;
  border: 1px solid var(--gov-border);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gov-blue), var(--gov-blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gov-blue);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gov-blue-light), var(--gov-white));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gov-blue);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--gov-blue), var(--gov-blue-dark));
  color: var(--gov-white);
  transform: rotate(5deg) scale(1.1);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gov-text);
}

.feature-desc {
  font-size: 14px;
  color: var(--gov-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gov-border);
}

.feature-stat {
  flex: 1;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--gov-blue);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--gov-text-lighter);
}

/* 轮播图进度条 */
.banner-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 3;
}

.banner-progress::after {
  content: '';
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gov-white);
  animation: progress 5s linear infinite;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* 分类快捷入口（带线稿插图） */
.category-section {
  padding: 60px 0;
  background-color: var(--gov-gray);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gov-text);
}

/* 标题带线稿插图 */
.section-title-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title-icon {
  width: 32px;
  height: 32px;
  color: var(--gov-blue);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-item {
  background-color: var(--gov-white);
  padding: 32px 24px;
  border-radius: var(--gov-radius);
  text-align: center;
  border: 1px solid var(--gov-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.category-item:hover {
  border-color: var(--gov-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

/* 为每个分类卡片添加延迟动画 */
.category-item:nth-child(1) { animation-delay: 0.1s; }
.category-item:nth-child(2) { animation-delay: 0.2s; }
.category-item:nth-child(3) { animation-delay: 0.3s; }
.category-item:nth-child(4) { animation-delay: 0.4s; }

/* 分类图标（线稿风格） */
.category-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gov-blue);
  transition: transform var(--transition-normal);
}

.category-item:hover .category-icon {
  transform: rotate(10deg) scale(1.1);
}

.category-icon svg {
  width: 100%;
  height: 100%;
  transition: all var(--transition-normal);
}

.category-item:hover .category-icon svg {
  filter: drop-shadow(0 4px 8px rgba(0, 94, 165, 0.3));
}

.category-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.category-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--gov-text);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 14px;
  color: var(--gov-text-light);
}

/* 最新文章区 */
.latest-section {
  padding: 60px 0;
}

.latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.latest-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gov-text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.latest-title-icon {
  width: 28px;
  height: 28px;
  color: var(--gov-blue);
}

.view-all-link {
  font-size: 14px;
  color: var(--gov-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover {
  color: var(--gov-blue-dark);
}

/* 文章列表样式 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  background-color: var(--gov-white);
  border: 1px solid var(--gov-border);
  border-radius: var(--gov-radius);
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.article-item:hover {
  border-color: var(--gov-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 为每个文章项添加延迟动画 */
.article-item:nth-child(1) { animation-delay: 0.1s; }
.article-item:nth-child(2) { animation-delay: 0.2s; }
.article-item:nth-child(3) { animation-delay: 0.3s; }
.article-item:nth-child(4) { animation-delay: 0.4s; }
.article-item:nth-child(5) { animation-delay: 0.5s; }

.article-content {
  flex: 1;
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gov-text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.article-title a {
  position: relative;
  display: inline-block;
  transition: color var(--transition-normal);
}

.article-title a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gov-blue);
  transition: width var(--transition-normal);
}

.article-item:hover .article-title {
  color: var(--gov-blue);
}

.article-item:hover .article-title a::after {
  width: 100%;
}

.article-excerpt {
  font-size: 14px;
  color: var(--gov-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gov-text-lighter);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-category {
  background-color: var(--gov-blue-light);
  color: var(--gov-blue);
  padding: 2px 8px;
  border-radius: var(--gov-radius);
}

.article-date {
  white-space: nowrap;
  font-size: 13px;
  color: var(--gov-text-lighter);
  margin-left: 24px;
}

/* ============================================
   文章列表页样式
   ============================================ */

.articles-page {
  padding: 40px 0;
}

.articles-layout {
  display: flex;
  gap: 40px;
}

.articles-main {
  flex: 1;
}

.articles-sidebar {
  width: 280px;
}

/* 侧边栏 */
.sidebar-section {
  background-color: var(--gov-gray);
  padding: 24px;
  border-radius: var(--gov-radius);
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gov-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gov-border);
}

.sidebar-list {
  list-style: none;
}

.sidebar-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--gov-border);
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-link {
  font-size: 14px;
  color: var(--gov-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-link:hover {
  color: var(--gov-blue);
}

.sidebar-count {
  font-size: 12px;
  color: var(--gov-text-lighter);
  background-color: var(--gov-white);
  padding: 2px 8px;
  border-radius: var(--gov-radius);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination-item {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--gov-border);
  border-radius: var(--gov-radius);
  font-size: 14px;
  color: var(--gov-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-item:hover {
  border-color: var(--gov-blue);
  color: var(--gov-blue);
}

.pagination-item.active {
  background-color: var(--gov-blue);
  border-color: var(--gov-blue);
  color: var(--gov-white);
}

.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   文章详情页样式（百度SEO优化）
   ============================================ */

/* 阅读进度条 */
.article-reading-progress {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(67, 97, 238, 0.1);
  z-index: 999;
  overflow: hidden;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gov-blue), var(--gov-blue-light));
  width: 0%;
  transition: width 0.3s ease;
}

.article-detail-page {
  padding: 40px 0;
}

.article-detail-layout {
  display: flex;
  gap: 40px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.article-detail-main {
  flex: 1;
  max-width: 800px;
}

.article-detail-sidebar {
  width: 260px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* 文章头部 */
.article-detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gov-border);
  opacity: 0;
  animation: slideInLeft 0.5s ease 0.2s forwards;
}

/* 百度SEO：H1仅一个，页面核心标题 */
.article-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gov-text);
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-detail-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--gov-text-light);
}

/* 文章正文（百度SEO：层级清晰） */
.article-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gov-text);
  opacity: 0;
  animation: fadeIn 0.5s ease 0.4s forwards;
}

/* H2标题带线稿分隔符 */
.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4,
.article-detail-content h5,
.article-detail-content h6 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.article-detail-content h1 {
  font-size: 26px;
}

.article-detail-content h2 {
  font-size: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gov-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* H2标题前的线稿分隔符 */
.article-detail-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background-color: var(--gov-blue);
  border-radius: 2px;
}

.article-detail-content h3 {
  font-size: 18px;
}

.article-detail-content h4 {
  font-size: 16px;
}

.article-detail-content p {
  margin-bottom: 16px;
}

.article-detail-content ul,
.article-detail-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-detail-content li {
  margin-bottom: 8px;
}

.article-detail-content a {
  color: var(--gov-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-detail-content a:hover {
  color: var(--gov-blue-dark);
}

/* 图片自适应+懒加载 */
.article-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gov-radius);
  margin: 24px 0;
}

/* 表格样式（移动端支持左右滑动） */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}

.article-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
  min-width: 600px;
}

.article-detail-content th,
.article-detail-content td {
  padding: 12px 16px;
  border: 1px solid var(--gov-border);
  text-align: left;
}

.article-detail-content th {
  background-color: var(--gov-gray);
  font-weight: 600;
}

.article-detail-content tr:nth-child(even) {
  background-color: var(--gov-gray);
}

.article-detail-content code {
  background-color: var(--gov-gray);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 14px;
}

.article-detail-content pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: var(--gov-radius);
  overflow-x: auto;
  margin: 24px 0;
}

.article-detail-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.article-detail-content blockquote {
  border-left: 4px solid var(--gov-blue);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--gov-text-light);
  font-style: italic;
}

/* 目录导航（百度SEO：辅助导航） */
.toc-nav {
  background-color: var(--gov-gray);
  padding: 20px;
  border-radius: var(--gov-radius);
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gov-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gov-border);
}

.toc-list {
  list-style: none;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-link {
  font-size: 14px;
  color: var(--gov-text-light);
  display: block;
  padding: 6px 0;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

/* 锚点目录hover高亮色 */
.toc-link:hover {
  color: var(--gov-blue);
  border-left-color: var(--gov-blue-light);
  background-color: var(--gov-blue-light);
}

.toc-link.active {
  color: var(--gov-blue);
  border-left-color: var(--gov-blue);
  font-weight: 500;
}

.toc-link.toc-h3 {
  padding-left: 24px;
  font-size: 13px;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background-color: var(--gov-blue);
  color: var(--gov-white);
  border: none;
  border-radius: var(--gov-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 94, 165, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--gov-blue-dark);
  transform: translateY(-2px);
}

/* ============================================
   关于我们页面（带线稿插图）
   ============================================ */

.about-page {
  padding: 40px 0;
}

.about-section {
  margin-bottom: 48px;
}

.about-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gov-text);
  margin-bottom: 20px;
}

.about-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gov-text);
}

.about-content p {
  margin-bottom: 16px;
}

/* 关于我们页面布局（带插图） */
.about-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-main {
  flex: 1;
}

.about-sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* 侧边线稿插图 */
.about-illustration {
  background-color: var(--gov-gray);
  padding: 32px;
  border-radius: var(--gov-radius);
  text-align: center;
}

.about-illustration svg {
  width: 160px;
  height: 160px;
  color: var(--gov-blue);
  opacity: 0.8;
}

/* 服务优势 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.service-item {
  padding: 24px;
  background-color: var(--gov-gray);
  border-radius: var(--gov-radius);
  text-align: center;
}

.service-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--gov-blue);
  margin-bottom: 8px;
}

.service-label {
  font-size: 14px;
  color: var(--gov-text-light);
}

/* ============================================
   联系方式页面（带线稿插图）
   ============================================ */

.contact-page {
  padding: 40px 0;
}

.contact-layout {
  display: flex;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.contact-map {
  flex: 1;
  height: 400px;
  background-color: var(--gov-gray);
  border-radius: var(--gov-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gov-text-light);
  position: relative;
  overflow: hidden;
}

/* 地图区域线稿插图 */
.contact-map-illustration {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  color: var(--gov-blue);
  opacity: 0.3;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--gov-blue-light);
  border-radius: var(--gov-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gov-blue);
}

.contact-detail h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gov-text);
  margin-bottom: 6px;
}

.contact-detail p {
  font-size: 14px;
  color: var(--gov-text-light);
  line-height: 1.6;
}

/* ============================================
   底部信息
   ============================================ */

.footer {
  background-color: var(--gov-gray);
  border-top: 1px solid var(--gov-border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section {
  flex: 1;
}

.footer-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gov-text);
  margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: var(--gov-text-light);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--gov-blue);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gov-border);
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  color: var(--gov-text-lighter);
}

/* ============================================
   404页面（带线稿插图）
   ============================================ */

.error-page {
  min-height: calc(100vh - 72px - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background-color: var(--gov-gray);
}

.error-content {
  max-width: 500px;
  background-color: var(--gov-white);
  padding: 60px 40px;
  border-radius: var(--gov-radius);
  border: 1px solid var(--gov-border);
}

/* 404线稿插图 */
.error-illustration {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  color: var(--gov-blue);
  opacity: 0.8;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--gov-blue);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--gov-text);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--gov-text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--gov-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--gov-blue);
  color: var(--gov-white);
  border: none;
  box-shadow: 0 2px 4px rgba(0, 94, 165, 0.3);
}

.btn-primary:hover {
  background-color: var(--gov-blue-dark);
  color: var(--gov-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 94, 165, 0.4);
}

.btn-secondary {
  background-color: var(--gov-white);
  color: var(--gov-text);
  border: 1px solid var(--gov-border);
}

.btn-secondary:hover {
  border-color: var(--gov-blue);
  color: var(--gov-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   搜索相关
   ============================================ */

.search-results-page {
  padding: 40px 0;
}

.search-header {
  margin-bottom: 32px;
}

.search-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gov-text);
  margin-bottom: 8px;
}

.search-keyword {
  color: var(--gov-blue);
}

.search-count {
  font-size: 14px;
  color: var(--gov-text-light);
}

.search-empty {
  text-align: center;
  padding: 60px 24px;
}

/* 搜索无结果线稿插图 */
.search-empty-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  color: var(--gov-text-lighter);
}

.search-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gov-text);
  margin-bottom: 8px;
}

.search-empty-desc {
  font-size: 14px;
  color: var(--gov-text-light);
}

/* 搜索结果高亮 */
.search-highlight {
  background-color: #fff3cd;
  padding: 0 2px;
}

/* ============================================
   加载状态
   ============================================ */

.loading {
  text-align: center;
  padding: 60px 24px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gov-border);
  border-top-color: var(--gov-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 14px;
  color: var(--gov-text-light);
}

/* ============================================
   线稿插图样式（全站通用）
   ============================================ */

/* 线稿图标基础样式 */
.line-icon {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 小尺寸线稿图标 */
.line-icon-sm {
  width: 24px;
  height: 24px;
}

/* 中尺寸线稿图标 */
.line-icon-md {
  width: 40px;
  height: 40px;
}

/* 大尺寸线稿图标 */
.line-icon-lg {
  width: 80px;
  height: 80px;
}

/* ============================================
   页面标题区
   ============================================ */

.page-header {
  background-color: var(--gov-blue);
  color: var(--gov-white);
  padding: 48px 0;
  margin-bottom: 40px;
}

.page-header-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header-desc {
  font-size: 16px;
  opacity: 0.9;
}

/* ============================================
   移动端适配（百度移动搜索深度适配）
   ============================================ */

@media (max-width: 1024px) {
  .banner-container {
    height: 350px;
  }
  
  .banner-title {
    font-size: 28px;
  }
  
  .banner-content {
    padding: 40px 32px 32px;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .articles-layout {
    flex-direction: column;
  }
  
  .articles-sidebar {
    width: 100%;
  }
  
  .article-detail-layout {
    flex-direction: column;
  }
  
  .article-detail-sidebar {
    width: 100%;
    position: static;
  }
  
  .contact-layout {
    flex-direction: column;
  }
  
  .about-layout {
    flex-direction: column;
  }
  
  .about-sidebar {
    width: 100%;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gov-gray);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    z-index: 1000;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-item {
    padding: 16px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }
  
  .header-search {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .banner-container {
    height: 280px;
    border-radius: 0;
  }
  
  .banner-title {
    font-size: 22px;
  }
  
  .banner-subtitle {
    font-size: 14px;
  }
  
  .banner-content {
    padding: 30px 20px 20px;
  }
  
  .banner-prev,
  .banner-next {
    display: none;
  }
  
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .hero-stat-number {
    font-size: 36px;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .category-section,
  .latest-section {
    padding: 40px 0;
  }
  
  .section-title,
  .latest-title {
    font-size: 22px;
  }
  
  .article-item {
    flex-direction: column;
    padding: 16px;
  }
  
  .article-date {
    margin-left: 0;
    margin-top: 12px;
  }
  
  .page-header {
    padding: 32px 0;
  }
  
  .page-header-title {
    font-size: 24px;
  }
  
  .article-detail-title {
    font-size: 22px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .error-code {
    font-size: 56px;
  }
  
  .error-content {
    padding: 40px 24px;
  }
  
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
  
  .container,
  .breadcrumb-inner,
  .footer-inner {
    padding: 0 16px;
  }
  
  /* 百度移动适配：正文占比≥80% */
  .article-detail-main {
    width: 100%;
  }
}

/* ============================================
   打印样式
   ============================================ */

@media print {
  .header,
  .footer,
  .breadcrumb,
  .article-detail-sidebar,
  .back-to-top,
  .banner-section,
  .banner-container {
    display: none;
  }
  
  .main {
    min-height: auto;
  }
  
  .article-detail-content {
    font-size: 12pt;
    line-height: 1.6;
  }
}

/* ============================================
   文章详情模态框样式
   ============================================ */

/* 模态框容器 */
.article-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.article-modal.active {
  display: block;
}

/* 模态框遮罩层 */
.article-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* 模态框内容容器 */
.article-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* 模态框头部 */
.article-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.article-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #6b7280;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.article-modal-close:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.article-modal-close:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* 模态框主体 */
.article-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  min-height: 0;
}

/* 模态框文章元信息 */
.article-modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

/* 模态框文章内容 */
.article-modal-text {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.article-modal-text h2,
.article-modal-text h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #111827;
}

.article-modal-text h2 {
  font-size: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.article-modal-text h3 {
  font-size: 20px;
}

.article-modal-text p {
  margin-bottom: 16px;
}

.article-modal-text ul,
.article-modal-text ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-modal-text li {
  margin-bottom: 8px;
}

.article-modal-text blockquote {
  margin: 16px 0;
  padding: 16px;
  background-color: #f9fafb;
  border-left: 4px solid #3b82f6;
  color: #6b7280;
}

.article-modal-text code {
  padding: 2px 6px;
  background-color: #f3f4f6;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

.article-modal-text pre {
  margin: 16px 0;
  padding: 16px;
  background-color: #1f2937;
  border-radius: 8px;
  overflow-x: auto;
}

.article-modal-text pre code {
  padding: 0;
  background-color: transparent;
  color: #e5e7eb;
}

/* 模态框目录 */
.article-modal-toc {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.article-modal-toc .toc-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.article-modal-toc .toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-modal-toc .toc-item {
  margin-bottom: 8px;
}

.article-modal-toc .toc-link {
  display: block;
  padding: 6px 12px;
  color: #4b5563;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  font-size: 14px;
}

.article-modal-toc .toc-link:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.article-modal-toc .toc-link.active {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.article-modal-toc .toc-h3 {
  padding-left: 32px;
}

/* 加载状态 */
.article-modal-body .loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.article-modal-body .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.article-modal-body .loading-text {
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 错误消息 */
.error-message {
  padding: 20px;
  text-align: center;
  color: #dc2626;
  background-color: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .article-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .article-modal-header {
    padding: 16px;
  }

  .article-modal-body {
    padding: 16px;
  }

  .article-modal-title {
    font-size: 18px;
  }

  .article-modal-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .article-modal-text h2 {
    font-size: 20px;
    margin-top: 24px;
  }

  .article-modal-text h3 {
    font-size: 18px;
    margin-top: 20px;
  }
}

/* 友情链接板块（新增） */
.friend-links-section {
  padding: 60px 0;
  background-color: #f9fafb;
}

.friend-links-section .section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 40px;
}

.friend-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.friend-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.friend-link-item:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.friend-link-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.friend-link-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 友情链接响应式 */
@media (max-width: 768px) {
  .friend-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .friend-links-grid {
    grid-template-columns: 1fr;
  }
}
