/* ==================== 变量定义 ==================== */
:root {
  /* 颜色系统 */
  --color-primary: #c8232c;
  --color-primary-dark: #a01d24;
  --color-primary-light: #e8394e;
  --color-pku-red: #b51a1a;
  --color-secondary: #003d7a;
  --color-accent: #f5a623;
  
  /* 中性色 */
  --color-bg: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #f3f4f6;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-border-light: #f0f1f3;
  
  /* 文字颜色 */
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  --color-text-inverse: #ffffff;
  
  /* 阴影 - 减少使用 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  
  /* 间距 - 更紧凑 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --spacing-2xl: 2rem;
  --spacing-3xl: 2.5rem;
  
  /* 圆角 - 减少 */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 2px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* 过渡 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 基础样式 ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== 容器 ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ==================== 顶部导航 ==================== */
.top-header {
  background: linear-gradient(135deg, #c8232c 0%, #a01d24 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  gap: var(--spacing-xl);
  min-width: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-width: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
  opacity: 0.95;
}

.logo-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo-exam {
  height: 40px;
}

.brand-logo-edu {
  height: 26px;
  opacity: 0.9;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
}

.main-nav {
  display: none;
  gap: var(--spacing-xs);
}

.nav-link {
  padding: var(--spacing-sm) var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--spacing-md);
  right: var(--spacing-md);
  height: 2px;
  background: white;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  flex-shrink: 0;
  margin-left: auto;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--mobile-nav-top, 72px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  z-index: 120;
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    max-height 0.28s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  max-height: 70vh;
  overflow-y: auto;
  pointer-events: auto;
}

.mobile-nav-content {
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.mobile-nav-link {
  padding: var(--spacing-md);
  color: var(--color-text-primary);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-primary);
}

/* ==================== 主内容区 ==================== */
.main-content {
  min-height: calc(100vh - 80px);
}

/* ==================== Hero 区域 ==================== */
.hero-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-2xl);
}

.hero-content-card {
  max-width: 800px;
  background: transparent;
  padding: 0;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 600;
  color: #222;
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
  letter-spacing: 1px;
}

.hero-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 700px;
}

.hero-gallery {
  width: 100%;
  max-width: 1100px;
  min-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fdfdfd;
  border: 1px solid var(--color-border-light);
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px;
}

.hero-gallery-item {
  flex: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #eef2f7;
  transition: all 0.5s ease;
  min-width: 100px;
}

.hero-gallery-item:hover {
  flex: 2;
}

.hero-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-gallery-empty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .hero-gallery {
    flex-wrap: wrap;
    min-height: auto;
  }
  
  .hero-gallery-item {
    flex: none;
    width: calc(50% - 6px);
    height: 180px;
  }
  
  .hero-gallery-item:hover {
    flex: none;
  }
}

@media (max-width: 480px) {
  .hero-gallery-item {
    width: 100%;
  }
}

/* ==================== 按钮样式 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  font-size: 14px;
}

.btn-outline:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==================== 区块样式 ==================== */
section {
  padding: var(--spacing-2xl) 0;
}

.section-news,
.section-articles,
.section-tools {
  background: #fdfdfd;
  position: relative;
}

/* 通知公告 - 斜纹背景 */
.section-news.pattern-bg {
  background: repeating-linear-gradient(
    -45deg,
    #f0f1f3,
    #f0f1f3 1px,
    #f8f9fa 1px,
    #f8f9fa 6px
  );
  padding: 80px 0 100px;
}

/* 研究成果 - 斜纹背景 */
.section-articles {
  background: #ffffff;
  padding: 80px 0 100px;
}

/* 教师工具箱 - 斜纹背景（稍微不同的颜色） */
.section-tools {
  background: repeating-linear-gradient(
    -45deg,
    #f5f7fa,
    #f5f7fa 1px,
    #fafbfc 1px,
    #fafbfc 6px
  );
  padding: 80px 0 100px;
}

.section-about {
  background: white;
  padding: 80px 0 100px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid #e9ecef;
}

.section-header-content {
  flex: 1;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text-primary);
}

.section-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.section-link:hover {
  color: var(--color-primary-dark);
}

/* ==================== 新的精致标题设计 ==================== */
.section-header-elegant {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.title-line-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-line {
  width: 50px;
  height: 1px;
  background-color: var(--color-pku-red);
}

.title-circle {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  border: 1px solid var(--color-pku-red);
  background-color: transparent;
}

.section-title-elegant {
  font-family: var(--font-serif);
  font-size: 32px;
  color: #222;
  margin: 0 10px;
  font-weight: normal;
  letter-spacing: 2px;
}

.section-title-elegant-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.section-title-elegant-link:hover {
  color: var(--color-primary);
}

.section-description-centered {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 40px 0;
}

/* ==================== 斜切过渡区 ==================== */
.slant-transition {
  position: relative;
  height: 120px;
  background-color: #ffffff;
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
  padding-left: 20px;
  overflow: hidden;
}

.watermark-code {
  color: #f2f2f2;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 5px;
  white-space: nowrap;
  user-select: none;
  opacity: 0.8;
  margin-bottom: 10px;
  margin-left: 10%;
}

/* ==================== 通知公告 ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;
  position: relative;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

.notice-card {
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 25px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* 左侧日期和标签区 */
.card-date-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 65px;
  gap: 4px;
}

.card-date-md {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-pku-red);
  font-weight: bold;
  line-height: 1;
}

.card-tag {
  font-size: 11px;
  color: var(--color-pku-red);
  font-weight: 600;
  white-space: nowrap;
}

/* 中间分割线 */
.card-sep {
  margin: 0 15px;
  display: flex;
  align-items: center;
}

/* 右侧文字区 */
.card-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  flex: 1;
}

/* 旧的 news 相关样式保留以备兼容 */
.news-item {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: none;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-item:hover {
  border-left-width: 4px;
  background: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: var(--spacing-md);
}

.news-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.news-date {
  font-size: 12px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
  flex-grow: 1;
}

.news-excerpt {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==================== 文章展示 ==================== */
.article-filter {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 0;
}

.filter-btn {
  padding: 8px 4px;
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  color: var(--color-pku-red);
}

.filter-btn.active {
  background: transparent;
  color: var(--color-pku-red);
  border-bottom: 2px solid var(--color-pku-red);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.article-card {
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 24px;
  min-height: 320px;
}

.article-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.article-tag {
  padding: 2px 8px;
  background: transparent;
  color: var(--color-pku-red);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--color-pku-red);
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  min-height: calc(1.4em * 2);
}

.article-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  min-height: calc(1.7em * 3);
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px dashed var(--color-border);
}

.article-author {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.article-date {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-tertiary);
}

/* ==================== 工具箱 ==================== */
.tools-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.tool-category {
  background: white;
  padding: 30px;
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-pku-red);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.tool-category:hover {
  box-shadow: 0 12px 30px rgba(139, 0, 0, 0.08);
  transform: translateY(-8px);
  border-color: var(--color-pku-red);
}

.category-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 15px;
}

.category-number {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-pku-red);
  opacity: 0.5;
}

.category-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0;
}

.category-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
  flex: 1;
}

.category-enter-tag {
  font-size: 13px;
  color: var(--color-pku-red);
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.tool-category:hover .category-enter-tag {
  gap: 10px;
}

/* 移除旧的子列表样式 */
.tool-list, .tool-item, .category-more-link {
  display: none !important;
}

.tool-desc {
  display: none;
}

.tool-download {
  display: inline-flex;
  align-items: center;
  color: var(--color-pku-red);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.tool-item:hover .tool-name {
  color: var(--color-pku-red);
}

.tool-item:hover .tool-download {
  opacity: 1;
}

/* “进入专题库”链接样式 */
.category-more-link {
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-weight: 600;
  transition: color 0.2s;
}

.category-more-link:hover {
  color: var(--color-pku-red);
}

/* ==================== 教师工具箱分栏布局 ==================== */
.tools-split-layout {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.tools-diagram-side {
  flex: 2; /* 左侧稍放大，仍与右侧保持平衡 */
  min-width: 0;
}

.tools-cards-side {
  flex: 1; /* 右侧占 35% 左右 */
  min-width: 300px;
}

.tools-categories-vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--color-pku-red);
}

.tool-category-compact {
  background: transparent;
  padding: 24px 15px;
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
  position: relative;
}

.tool-category-compact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-pku-red);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.tool-category-compact:hover {
  background: #f8f9fa;
  padding-left: 25px;
}

.tool-category-compact:hover::before {
  transform: scaleY(1);
}

.tool-category-compact .category-header {
  margin-bottom: 8px;
  border-bottom: none;
  padding-bottom: 0;
}

.tool-category-compact .category-number {
  font-size: 24px;
  opacity: 0.3;
}

.tool-category-compact .category-title {
  font-size: 18px;
  transition: color 0.3s;
}

.tool-category-compact:hover .category-title {
  color: var(--color-pku-red);
}

.category-desc-mini {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 0 36px; /* Align with title */
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .tools-split-layout {
    flex-direction: column;
    gap: 50px;
  }
  
  .tools-diagram-side,
  .tools-cards-side {
    width: 100%;
    flex: none;
  }

  .fa-svg-content {
    width: 100%;
    max-width: 100%;
  }
}

/* ==================== 交互式 SVG 形成性评价流程图 ==================== */
.fa-svg-container {
  max-width: 1000px;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  height: 100%;
  display: flex;
  align-items: center;
}

.fa-svg-content {
  width: 108%;
  max-width: none;
  height: auto;
  display: block;
}

/* SVG 内部元素交互 */
.svg-node-rect, .svg-node-pill {
  fill: #ffffff;
  stroke: #111111;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.svg-clickable-node {
  cursor: pointer;
  outline: none;
}

.svg-clickable-node:hover .svg-node-rect,
.svg-clickable-node:hover .svg-node-pill {
  fill: var(--color-pku-red);
  stroke: var(--color-pku-red);
  filter: drop-shadow(0 5px 10px rgba(139, 0, 0, 0.2));
}

.svg-clickable-node:hover text {
  fill: #ffffff !important;
}

.svg-clickable-node text {
  transition: fill 0.3s ease;
  pointer-events: none;
}

.svg-arrow {
  fill: #111111;
}

/* ==================== 关于我们 (新版学术风) ==================== */
.about-pure-layout {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-text-content {
  background: transparent;
}

.about-text-content p {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #333;
  line-height: 2.2;
  margin: 0;
  text-align: justify;
  letter-spacing: 0.5px;
}

.about-text-content p strong {
  font-size: 22px;
  color: var(--color-pku-red);
  font-weight: 700;
}

.about-contact-aside {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--color-border-light);
  padding-top: 30px;
}

.contact-info-block {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-item-pure {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label-pure {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value-pure {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #222;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-pure-layout {
    gap: 40px;
  }

  .about-text-content p {
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.2px;
  }

  .about-text-content p strong {
    font-size: 18px;
  }

  .about-contact-aside {
    justify-content: flex-start;
  }
  .contact-info-block {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==================== 页脚 (新版学术极简) ==================== */
.footer {
  background: #ffffff;
  color: var(--color-text-secondary);
  padding: 40px 0 30px; /* 从 60px/40px 缩减 */
  border-top: 3px solid var(--color-pku-red);
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px; /* 从 50px 缩减 */
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand-info {
  flex: 1.5;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-pku-red);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-tertiary);
  max-width: 400px;
}

.footer-section {
  flex: 1;
}

.footer-section h4 {
  color: #111;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20px;
  height: 2px;
  background: var(--color-pku-red);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--color-pku-red);
  padding-left: 5px;
}

.footer-qrcode-wrapper {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-qrcode img {
  width: 90px;
  height: 90px;
  padding: 5px;
  background: white;
  border: 1px solid #eee;
  margin-bottom: 10px;
  display: block;
}

.qrcode-text {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid #f0f0f0;
  padding-top: 30px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.copyright-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
}

.copyright-en {
  font-size: 11px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links a:hover {
    padding-left: 0;
  }
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.footer-meta a {
  color: var(--color-text-tertiary);
  margin: 0 var(--spacing-xs);
}

.footer-meta a:hover {
  color: white;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
  .header-brand {
    gap: var(--spacing-md);
  }
  
  .brand-logo-img {
    height: 40px;
  }
  
  .brand-logo-exam {
    height: 34px;
  }

  .brand-logo-edu {
    height: 22px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .tools-categories {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .top-header {
    z-index: 130;
  }

  .header-content {
    gap: var(--spacing-md);
  }
  
  .brand-logo-img {
    height: 36px;
  }
  
  .brand-logo-exam {
    height: 30px;
  }

  .brand-logo-edu {
    height: 20px;
  }
  
  .brand-divider {
    height: 28px;
  }
  
  .hero-section {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  section {
    padding: var(--spacing-xl) 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-categories {
    grid-template-columns: 1fr;
  }
  
  .learning-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }

  .article-filter {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    overflow: hidden;
  }

  .filter-btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    letter-spacing: 0;
    font-size: clamp(11px, 2.4vw, 14px);
    padding: 6px 2px;
  }

  .article-card {
    padding: 16px;
    min-height: 240px;
  }

  .article-tag {
    font-size: 12px;
    padding: 1px 6px;
  }

  .article-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
  }

  .article-excerpt {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 12px;
    min-height: calc(1.55em * 3);
  }

  .article-author,
  .article-date {
    font-size: 11px;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-logo-edu,
  .brand-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .brand-logos {
    gap: var(--spacing-sm);
  }
  
  .brand-logo-img {
    height: 32px;
  }
  
  .brand-logo-exam {
    height: 26px;
  }

  .about-text-content p {
    font-size: 14px;
    line-height: 1.8;
  }

  .about-text-content p strong {
    font-size: 16px;
  }
  
  .brand-divider {
    height: 24px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .article-filter {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    overflow: hidden;
  }

  .filter-btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(10px, 2.8vw, 12px);
    padding: 6px 1px;
    white-space: nowrap;
    letter-spacing: 0;
  }  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==================== 分页样式 ==================== */
.pagination-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn, .page-num {
  padding: 8px 16px;
  border: 1px solid var(--color-border-light);
  background: white;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled), .page-num:hover:not(.active) {
  border-color: var(--color-pku-red);
  color: var(--color-pku-red);
  background: #f8f1f1;
}

.page-num.active {
  background: var(--color-pku-red);
  color: white;
  border-color: var(--color-pku-red);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9f9f9;
}

.page-dots {
  color: #999;
  padding: 0 5px;
}

@media (max-width: 480px) {
  .pagination {
    gap: 5px;
  }
  .page-btn, .page-num {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-base) ease-out;
}

/* ==================== 实用工具类 ==================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* ==================== 详情模态框样式 ==================== */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.detail-modal.show {
  display: flex;
}

.detail-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.detail-modal-content {
  position: relative;
  background: white;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  z-index: 10000;
}

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

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

.detail-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.detail-modal-header {
  padding: 30px 30px 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

.detail-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.detail-date {
  color: #6c757d;
  font-size: 14px;
}

.detail-title {
  margin: 0;
  padding: 20px 30px 10px;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.detail-meta {
  padding: 0 30px 20px;
  border-bottom: 2px solid #f1f3f5;
}

.detail-excerpt {
  margin: 10px 0 0;
  color: #495057;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
}

.detail-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #6c757d;
}

.detail-article-meta span {
  display: inline-block;
}

.detail-body {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* 富文本内容样式 */
.detail-body h1,
.detail-body h2,
.detail-body h3,
.detail-body h4,
.detail-body h5,
.detail-body h6 {
  margin: 24px 0 12px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.detail-body h1 { font-size: 28px; }
.detail-body h2 { font-size: 24px; }
.detail-body h3 { font-size: 20px; }

.detail-body p {
  margin: 0 0 16px;
  text-align: justify;
}

.detail-body strong {
  font-weight: 700;
  color: #1a1a1a;
}

.detail-body em {
  font-style: italic;
  color: #495057;
}

.detail-body ul,
.detail-body ol {
  margin: 16px 0;
  padding-left: 28px;
}

.detail-body li {
  margin: 8px 0;
  line-height: 1.8;
}

.detail-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid #667eea;
  background: #f8f9fa;
  font-style: italic;
  color: #495057;
}

.detail-body code {
  padding: 2px 6px;
  background: #f1f3f5;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #e83e8c;
}

.detail-body pre {
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow-x: auto;
}

.detail-body pre code {
  padding: 0;
  background: none;
  color: #333;
}

.detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-body a {
  color: #667eea;
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.2s;
}

.detail-body a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

.detail-body hr {
  margin: 30px 0;
  border: none;
  border-top: 2px solid #e9ecef;
}

.detail-download {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f1f3f5;
  text-align: center;
}

.detail-download .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-size: 16px;
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .detail-modal-content {
    width: 95%;
    max-height: 90vh;
    border-radius: 8px;
  }
  
  .detail-modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  
  .detail-modal-header {
    padding: 20px 20px 10px;
  }
  
  .detail-title {
    padding: 15px 20px 10px;
    font-size: 22px;
  }
  
  .detail-meta {
    padding: 0 20px 15px;
  }
  
  .detail-body {
    padding: 20px;
    font-size: 15px;
  }
  
  .detail-article-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* 美化滚动条 */
.detail-body::-webkit-scrollbar {
  width: 8px;
}

.detail-body::-webkit-scrollbar-track {
  background: #f1f3f5;
  border-radius: 4px;
}

.detail-body::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.detail-body::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* ==================== 详情页面样式 (重塑版) ==================== */
.detail-page {
  background: #fdfdfd;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#detailPage .top-header {
  background: var(--color-pku-red);
  border-bottom: none;
}

#detailPage .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#detailPage .nav-link:hover,
#detailPage .nav-link.active {
  color: #ffffff;
}

#detailPage .nav-link.active::after {
  background: #ffffff;
}

#detailPage .mobile-menu-toggle span {
  background: #ffffff;
}

/* ==================== 通用面包屑导航 (全站统一) ==================== */
.breadcrumb-area {
  background: #f8f9fa;
  border-bottom: 1px solid var(--color-border-light);
  padding: 30px 0; /* 统一步调，增加呼吸感 */
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb-item {
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: var(--color-pku-red);
}

.breadcrumb-item.active {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.breadcrumb-separator {
  color: #ddd;
  font-size: 12px;
}

/* 列表页主体间距补偿 */
.list-main {
  min-height: calc(100vh - 400px);
  padding: 80px 0 120px; /* 进一步拉开与面包屑的距离 */
  background: #fff;
}

.detail-article {
  max-width: 1100px; /* 再次加宽 */
  margin: 0 auto;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

/* 文章头部 */
.detail-article-header {
  padding: 70px 100px 40px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.detail-article-title {
  font-family: var(--font-serif);
  font-size: 38px; /* 进一步放大标题 */
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0 0 20px;
}

.detail-article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  color: var(--color-text-tertiary);
  font-size: 14px;
  font-weight: 500;
  margin-top: 15px;
  text-align: center;
}

/* 关键修复：隐藏空元素，防止 gap 导致重心偏移 */
.detail-article-meta span:empty {
  display: none !important;
}

.detail-meta-category {
  color: var(--color-pku-red);
  font-weight: 600;
}

.detail-meta-date, .detail-meta-author, .detail-meta-views {
  font-family: var(--font-sans);
}

/* 确保移动端也能自然居中换行 */
@media (max-width: 600px) {
  .detail-article-meta {
    flex-wrap: wrap;
    gap: 10px 20px;
  }
}

/* 文章正文 */
.detail-article-body {
  padding: 60px 120px; /* 增加页边距以保证宽屏下的阅读体验 */
  font-size: 18px;
  line-height: 2.2;
  color: #333;
}

.detail-article-body h2,
.detail-article-body h3 {
  font-family: var(--font-serif);
  color: #111;
  margin: 2.5em 0 1.2em;
}

.detail-article-body h2 {
  font-size: 24px;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 12px;
}

.detail-article-body p {
  margin-bottom: 1.8em;
  text-align: justify;
}

.detail-article-body img {
  max-width: 100%;
  height: auto;
  margin: 2.5em 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.detail-article-body blockquote {
  margin: 2.5em 0;
  padding: 20px 30px;
  background: #f9f9f9;
  border-left: 4px solid var(--color-pku-red);
  font-style: normal;
  color: #555;
  font-size: 0.95em;
}

/* 下载区域 */
.detail-download-section {
  margin-top: 60px;
  padding: 30px 40px;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-download-section h3 {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-serif);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  font-size: 15px;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .detail-article {
    max-width: 95%;
  }

  .detail-article-header {
    padding: 40px 30px;
  }

  .detail-article-body {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .detail-article-title {
    font-size: 24px;
  }

  .detail-article-meta {
    flex-direction: column;
    gap: 10px;
  }

  .detail-article-body {
    font-size: 16px;
    padding: 30px 20px;
  }
  
  .detail-download-section {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
  .detail-article-body h2 { font-size: 1.35rem; }
  .detail-article-body h3 { font-size: 1.2rem; }
  
  .detail-download-section {
    padding: 1.5rem;
  }
}

/* ==================== 独立列表页样式 ==================== */
.list-main {
  min-height: calc(100vh - 400px);
  padding: 60px 0 100px; /* 增加顶部和底部间距 */
  background: #fff;
}

.list-content {
  max-width: 900px;
  margin: 0 auto;
}

.no-data {
  text-align: center;
  color: #999;
  padding: 3rem 0;
  font-size: 1.1rem;
}

.error-message {
  text-align: center;
  color: #dc3545;
  padding: 3rem 0;
  font-size: 1.1rem;
}

/* 列表项样式优化 */
.list-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #8b0000;
}

.list-item-header {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.list-item-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.list-item-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.list-item-title a:hover {
  color: #8b0000;
}

.list-item-excerpt {
  padding: 0.5rem 1.5rem 1rem 1.5rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.list-item-footer {
  padding: 0.75rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-item-category {
  color: #8b0000;
  font-size: 0.9rem;
  font-weight: 500;
}

.list-item-date {
  color: #999;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .list-main {
    padding: 2rem 0;
  }

  .list-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .list-item-header {
    padding: 1rem 1rem 0.5rem 1rem;
  }

  .list-item-title {
    font-size: 1.1rem;
  }

  .list-item-excerpt {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .list-item-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}


/* ==================== 响应式设计 (新卡片) ==================== */
@media (max-width: 768px) {
  .news-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
  }

  .notice-card {
    padding: 20px 15px;
  }

  .card-date-md {
    font-size: 15px;
  }

  .card-date-tag {
    min-width: 60px;
  }

  .card-text {
    font-size: 14px;
  }

  .section-header-elegant {
    gap: 10px;
    margin-bottom: 25px;
  }

  .section-title-elegant {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .title-line {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .news-grid,
  .card-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }

  .notice-card {
    padding: 15px 12px;
  }

  .card-date-md {
    font-size: 14px;
  }

  .card-sep {
    margin: 0 10px;
  }

  .card-sep svg {
    height: 40px;
  }

  .card-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .article-card {
    padding: 14px;
    min-height: 210px;
  }

  .article-title {
    font-size: 15px;
    min-height: calc(1.35em * 2);
  }

  .article-excerpt {
    font-size: 11px;
    line-height: 1.5;
    min-height: calc(1.5em * 3);
  }

  .section-title-elegant {
    font-size: 20px;
  }

  .title-line {
    width: 20px;
  }

  .section-header-elegant {
    margin-bottom: 20px;
  }
}

/* ==================== 列表页卡片样式 ==================== */
.list-notice-card {
  border-radius: 4px;
  margin-bottom: 20px;
}

.card-text-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-text a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.card-text a:hover {
  color: var(--color-primary);
}

.card-category {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ==================== 经典学术列表样式 (重构版) ==================== */
#newsList, #articlesList, #toolsList {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.academic-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 10px;
  border-bottom: 1px dashed var(--color-border);
  transition: all 0.2s ease;
  position: relative;
}

.academic-list-item:hover {
  background-color: var(--color-bg-secondary);
}

.academic-list-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--color-pku-red);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.academic-list-item:hover::before {
  opacity: 1;
}

.ali-title {
  flex: 1;
  padding-right: 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ali-title a {
  font-size: 16px;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  max-width: 100%;
}

.ali-title a:hover {
  color: var(--color-pku-red);
}

.ali-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.ali-tag {
  font-size: 12px;
  color: var(--color-pku-red);
  background: #f8f1f1;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.ali-date {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .academic-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 10px;
  }
  
  .academic-list-item::before {
    display: none;
  }
  
  .ali-title {
    white-space: normal;
    padding-right: 0;
    line-height: 1.5;
  }
  
  .ali-meta {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
}

/* ==================== 列表页带侧边栏布局 ==================== */
.list-layout {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.list-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-pku-red);
  font-family: var(--font-serif);
}

.list-filter {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-filter li {
  padding: 12px 15px;
  margin-bottom: 5px;
  color: var(--color-text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.list-filter li:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-pku-red);
}

.list-filter li.active {
  background-color: #f8f1f1;
  color: var(--color-pku-red);
  border-left-color: var(--color-pku-red);
  font-weight: 600;
}

.list-main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .list-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .list-sidebar {
    width: 100%;
  }
  
  .list-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .list-filter li {
    padding: 8px 15px;
    margin-bottom: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
  }
  
  .list-filter li.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-pku-red);
  }
}
ed);
  }
}
