```css

/* ===== 全局重置与设计变量 ===== */
:root {
  color-scheme: light dark;
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --success: #10b981;
  --danger: #ef4444;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 20px rgba(var(--accent-rgb), 0.3);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-banner: linear-gradient(145deg, #0d1e30 0%, #1e3a5f 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  --bg-light: #f0f4f8;
  --bg-card-light: #ffffff;
  --bg-elevated-light: #f8fafc;
  --text-light: #1e293b;
  --text-title-light: #0f172a;
  --text-secondary-light: #475569;
  --border-light: #e2e8f0;
  --bg-dark: #0f1923;
  --bg-card-dark: #1a2634;
  --bg-elevated-dark: #243244;
  --text-dark: #cbd5e1;
  --text-title-dark: #f1f5f9;
  --text-secondary-dark: #94a3b8;
  --border-dark: #334155;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  line-height: 1.75;
  font-size: 1rem;
  transition: background-color var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.dark body {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--primary));
  background-clip: content-box;
}

/* ===== 标题层级 ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-title-light);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color var(--transition-base);
}

html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 {
  color: var(--text-title-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ===== 段落和文本 ===== */
p, li, blockquote, summary {
  color: var(--text-light);
  transition: color var(--transition-base);
}

html.dark p, html.dark li, html.dark blockquote, html.dark summary {
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
}

.secondary-text, .meta, .date, .tag {
  color: var(--text-secondary-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

html.dark .secondary-text, html.dark .meta, html.dark .date, html.dark .tag {
  color: var(--text-secondary-dark);
}

/* ===== 链接 ===== */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

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

html.dark a {
  color: #60a5fa;
}

html.dark a:hover {
  color: #93c5fd;
}

/* ===== 导航栏 ===== */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 2rem !important;
}

html.dark .navbar {
  background: rgba(10, 20, 35, 0.85);
  border-bottom-color: rgba(51, 65, 85, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.logo {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform var(--transition-base);
  display: inline-block;
}

.logo:hover {
  transform: scale(1.05);
}

.logo span {
  -webkit-text-fill-color: var(--accent);
  background: none;
}

.menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.menu a {
  color: var(--text-title-light);
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.menu a:hover {
  color: var(--primary);
  text-decoration: none;
}

.menu a:hover::after {
  width: 100%;
}

html.dark .menu a {
  color: var(--text-title-dark);
}

html.dark .menu a:hover {
  color: #60a5fa;
}

/* ===== 按钮 ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== 卡片 ===== */
.card, .bg-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

html.dark .card, html.dark .bg-card {
  background: linear-gradient(145deg, rgba(26, 38, 52, 0.9), rgba(36, 50, 68, 0.7));
  border-color: rgba(51, 65, 85, 0.5);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.3);
}

html.dark .card:hover {
  border-color: rgba(96, 165, 250, 0.3);
}

.card svg {
  transition: transform var(--transition-base);
}

.card:hover svg {
  transform: scale(1.05);
}

.card > div:last-child {
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  transition: color var(--transition-base);
}

.card p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* ===== Banner ===== */
.banner {
  background: var(--gradient-banner) !important;
  border-radius: var(--radius-lg) !important;
  padding: 3rem 2rem !important;
  margin: 2rem 0 !important;
  color: white !important;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: bannerGlow 8s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
  0% {
    transform: translateX(-10%) rotate(0deg);
  }
  100% {
    transform: translateX(10%) rotate(5deg);
  }
}

.banner h1, .banner h2 {
  color: white !important;
  border: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner .btn-primary {
  background: linear-gradient(135deg, var(--accent), #d97706);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.banner .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.banner > div:first-child {
  position: relative;
  z-index: 1;
}

/* ===== 搜索框 ===== */
.search-input {
  background: var(--bg-card-light);
  color: var(--text-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  transition: all var(--transition-base);
  width: 100%;
  max-width: 400px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

html.dark .search-input {
  background: var(--bg-elevated-dark);
  color: var(--text-dark);
  border-color: var(--border-dark);
}

/* ===== 返回顶部按钮 ===== */
.to-top {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
}

.to-top:active {
  transform: translateY(0) scale(1);
}

/* ===== 移动菜单 ===== */
.mobile-menu {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem !important;
  position: sticky;
  top: 64px;
  z-index: 999;
  display: none;
  animation: slideDown 0.3s ease;
}

html.dark .mobile-menu {
  background: rgba(10, 20, 35, 0.95);
  border-bottom-color: rgba(51, 65, 85, 0.5);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-title-light);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  text-decoration: none;
  padding-left: 1.5rem;
}

html.dark .mobile-menu a {
  color: var(--text-title-dark);
}

/* ===== FAQ ===== */
details {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  transition: all var(--transition-base);
  overflow: hidden;
}

html.dark details {
  background: rgba(26, 38, 52, 0.6);
  border-color: rgba(51, 65, 85, 0.5);
}

details:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-sm);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-title-light);
  transition: color var(--transition-base);
  list-style: none;
  position: relative;
  padding-right: 2rem;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition-base);
}

details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

html.dark summary {
  color: var(--text-title-dark);
}

details p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  animation: fadeIn 0.3s ease;
}

html.dark details p {
  border-top-color: var(--border-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 表格 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card-light);
}

tr:last-child td {
  border-bottom: none;
}

html.dark td {
  background: var(--bg-card-dark);
  border-bottom-color: var(--border-dark);
}

tr:hover td {
  background: rgba(var(--primary-rgb), 0.05);
}

html.dark tr:hover td {
  background: rgba(96, 165, 250, 0.05);
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.tag:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: translateY(-2px);
}

html.dark .tag {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

html.dark .tag:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(145deg, #0d1b2a, #1a2634) !important;
  color: #cbd5e1 !important;
  padding: 3rem 2rem !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  margin-top: 4rem !important;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.footer h4 {
  color: white !important;
  margin-bottom: 1rem;
}

.footer p {
  color: #94a3b8 !important;
  margin-bottom: 0.5rem;
}

.footer a {
  color: #93c5fd !important;
  transition: all var(--transition-fast);
}

.footer a:hover {
  color: #dbeafe !important;
  text-decoration: none;
  padding-left: 5px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #94a3b8 !important;
  display: inline-block;
  transition: all var(--transition-fast);
}

.footer ul li a:hover {
  color: #60a5fa !important;
  transform: translateX(5px);
}

/* ===== 文章卡片 ===== */
.article-card {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition-base);
}

.article-card:hover::after {
  width: 100%;
}

.article-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.article-card .meta {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.article-card a {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.article-card a:hover {
  gap: 0.5rem;
}

/* ===== 区块间距 ===== */
section {
  margin: 3rem 0;
  scroll-margin-top: 80px;
}

section:first-of-type {
  margin-top: 2rem;
}

/* ===== 工具类 ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

/* ===== 网格布局 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* ===== Flex布局工具 ===== */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画 */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== 图片懒加载淡入 ===== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 0.5rem 1rem !important;
  }
  
  .menu {
    gap: 1.5rem;
  }
  
  .menu a {
    font-size: 0.95rem;
  }
  
  .banner {
    padding: 2rem 1.5rem !important;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .banner p {
    font-size: 1rem !important;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .navbar {
    padding: 0.5rem 0.75rem !important;
  }
  
  .logo {
    font-size: 1.5rem !important;
  }
  
  .menu {
    display: none;
  }
  
  #mobileMenuBtn {
    display: block !important;
  }
  
  .mobile-menu {
    display: none;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .banner {
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
    border-radius: 1rem !important;
  }
  
  .banner > div {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .banner h1 {
    font-size: 1.5rem;
  }
  
  .banner p {
    font-size: 0.9rem !important;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card > div:last-child {
    padding: 0.75rem;
  }
  
  .footer {
    padding: 2rem 1rem !important;
  }
  
  .footer > div:first-child {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .footer > div:last-child {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .to-top {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .banner h1 {
    font-size: 1.3rem;
  }
  
  .banner .btn-primary {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .card > div:last-child {
    padding: 0.5rem;
  }
  
  .card h3 {
    font-size: 0.95rem;
  }
  
  .card p {
    font-size: 0.8rem;
  }
  
  details {
    padding: 0.75rem 1rem;
  }
  
  .footer {
    border-radius: 1rem 1rem 0 0 !important;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .navbar, .footer, .to-top, .mobile-menu, .btn-primary {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .card, .bg-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== 无障碍支持 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.5);
  outline-offset: 2px;
}

/* ===== 高对比度模式 ===== */
@media (prefers-contrast: high) {
  :root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --accent: #b45309;
  }
  
  .card, .bg-card {
    border-width: 2px;
  }
  
  .btn-primary {
    border: 2px solid white;
  }
}

/* ===== 暗色模式适配细节 ===== */
html.dark .card svg text {
  fill: #f1f5f9;
}

html.dark .card svg rect {
  fill: #1a2634;
}

html.dark .banner {
  background: linear-gradient(145deg, #0a1628, #162a4a) !important;
}

/* ===== 自定义动画 ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== 加载骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
}

html.dark .skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
}

/* ===== 分隔线 ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 2rem 0;
  border: none;
}

html.dark .divider {
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

/* ===== 引用块 ===== */
blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

html.dark blockquote {
  background: rgba(96, 165, 250, 0.1);
}

/* ===== 列表 ===== */
ul, ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.5rem;
}

/* ===== 图片响应式 ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== 视频容器 ===== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== 徽章/标签 ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.badge-accent {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

html.dark .badge-primary {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

html.dark .badge-accent {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

html.dark .badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

html.dark .badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ===== 进度条 ===== */
.progress {
  background: var(--border-light);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

html.dark .progress {
  background: var(--border-dark);
}

/* ===== 工具提示 ===== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background: var(--text-title-light);
  color: var(--bg-light);
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

html.dark .tooltip .tooltip-text {
  background: var(--text-title-dark);
  color: var(--bg-dark);
}

/* ===== 表单样式 ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-title-light);
}

html.dark .form-group label {
  color: var(--text-title-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card-light);
  color: var(--text-light);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

html.dark .form-control {
  background: var(--bg-elevated-dark);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

/* ===== 选择框样式 ===== */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

/* ===== 复选框和单选框 ===== */
.checkbox-group, .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item, .radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

html.dark .modal-content {
  background: var(--bg-card-dark);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary-light);
  transition: all var(--transition-fast);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

html.dark .modal-close {
  color: var(--text-secondary-dark);
}

html.dark .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
}

/* ===== 导航标签页 ===== */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

html.dark .tabs {
  border-bottom-color: var(--border-dark);
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

html.dark .tab-btn {
  color: var(--text-secondary-dark);
}

html.dark .tab-btn:hover {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary-light);
  transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
  color: var(--text-secondary-light);
  margin: 0 0.25rem;
}

.breadcrumb .current {
  color: var(--primary);
  font-weight: 500;
}

html.dark .breadcrumb a {
  color: var(--text-secondary-dark);
}

html.dark .breadcrumb .separator {
  color: var(--text-secondary-dark);
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
}

.page-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
}

.page-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

html.dark .page-link {
  border-color: var(--border-dark);
  color: var(--text-dark);
}

html.dark .page-link:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

/* ===== 通知/提示 ===== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: slideIn 0.3s ease;
}

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

.alert-info {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--primary);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

html.dark .alert-info {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

html.dark .alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

html.dark .alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

html.dark .alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  padding: 0;
}

.alert-close:hover {
  opacity: 1;
}

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-secondary-light);
  margin-bottom: 0.5rem;
}

html.dark .timeline-date {
  color: var(--text-secondary-dark);
}

/* ===== 统计数字 ===== */
.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary-light);
  margin-top: 0.5rem;
}

html.dark .stat-label {
  color: var(--text-secondary-dark);
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-item::before {
    left: -1.6rem;
    width: 10px;
    height: 10px;
  }
  
  .alert {
    padding: 0.75rem 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
}
```