:/* ==========================================
   老司机官网入口 · 全站样式表
   设计语言：深蓝科技 + 金色点缀
   版本：v1.0 (2025)
   ========================================== */

/* ---------- CSS变量与主题系统 ---------- */
:root {
  /* 主色调 - 深海蓝 */
  --primary: #0f4c81;
  --primary-light: #1a6fb5;
  --primary-dark: #0a3557;
  --primary-50: #e8f1f9;
  --primary-100: #d1e3f3;
  --primary-200: #a3c7e7;
  --primary-300: #75abdb;
  --primary-400: #478fd0;
  --primary-500: #2a6fa8;
  --primary-600: #1d5a8a;
  --primary-700: #154a73;
  --primary-800: #0e3a5c;
  --primary-900: #0a2a42;

  /* 辅助色 - 琥珀金 */
  --accent: #ffbe3f;
  --accent-light: #ffce6b;
  --accent-dark: #e6a62e;
  --accent-50: #fff8e8;
  --accent-100: #fdeec7;
  --accent-200: #fbd88a;
  --accent-300: #f9c24d;

  /* 中性色 */
  --bg-body: #f0f4f8;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #f8fafc;
  --bg-dark: #0b2239;
  --bg-dark-2: #0e2a45;

  /* 文本色 */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  --text-on-dark: #e2e8f0;
  --text-heading: #0f172a;

  /* 边框与分割线 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: rgba(255, 255, 255, 0.1);

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(15, 76, 129, 0.15);

  /* 毛玻璃效果 */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --glass-blur: 20px;

  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* 间距 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 布局 */
  --container-max: 1280px;
  --container-padding: 1.5rem;
  --header-height: 64px;

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 动画 */
  --animation-duration: 0.4s;
}

/* ---------- 暗色模式 ---------- */
[data-theme="dark"] {
  --primary: #4aa3e2;
  --primary-light: #6bb8f0;
  --primary-dark: #2c7ab8;
  --primary-50: #0d2a45;
  --primary-100: #123a5e;
  --primary-200: #1a4d7a;
  --primary-300: #226096;
  --primary-400: #2a73b2;
  --primary-500: #3a86cc;
  --primary-600: #4a99e0;
  --primary-700: #6bb0e8;
  --primary-800: #8cc4f0;
  --primary-900: #add8f8;

  --accent: #ffbe3f;
  --accent-light: #ffce6b;
  --accent-dark: #e6a62e;
  --accent-50: #33260d;
  --accent-100: #4d3a14;
  --accent-200: #66501c;
  --accent-300: #806625;

  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --bg-muted: #1a2332;
  --bg-dark: #0a0f1e;
  --bg-dark-2: #111827;

  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  --text-on-dark: #e2e8f0;
  --text-heading: #f8fafc;

  --border: #334155;
  --border-light: #1e293b;
  --border-dark: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(74, 163, 226, 0.2);

  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ---------- 重置与基础 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(15, 76, 129, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 190, 63, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading);
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul, ol {
  list-style-position: inside;
}

/* ---------- 容器 ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 640px) {
  :root {
    --container-padding: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
  }
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

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

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.5rem 0.375rem 1rem;
  transition: all var(--transition-fast);
  width: 220px;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  min-width: 0;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.search-box button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: scale(1.02);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--bg-muted);
  transform: rotate(15deg);
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  line-height: 1;
}

.menu-toggle:hover {
  background: var(--bg-muted);
}

/* 导航右侧工具组 */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- 主内容区 ---------- */
main {
  min-height: 100vh;
  padding-bottom: 2rem;
}

/* ---------- Hero区域 ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 50%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 4rem 0 5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 190, 63, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 500px;
}

.hero-text h1 {
  color: var(--text-light);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-dark);
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 190, 63, 0.3);
  color: var(--bg-dark);
}

.hero-image {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}

.hero-image svg:hover {
  transform: scale(1.02) rotate(1deg);
}

/* ---------- 通用区块 ---------- */
.section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.section:hover {
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--text-heading);
}

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

/* ---------- 网格布局 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 2rem;
}

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

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-muted));
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

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

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-light);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- 文章列表 ---------- */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-list li {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.article-list li:hover {
  background: var(--bg-card);
  border-color: var(--primary-200);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.article-list li a {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  transition: color var(--transition-fast);
}

.article-list li a:hover {
  color: var(--primary);
}

.article-list .date {
  color: var(--text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* ---------- FAQ样式 ---------- */
details {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

details:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}

details[open] {
  background: var(--bg-card);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

summary {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(45deg);
}

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

details p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- HowTo步骤 ---------- */
.steps {
  counter-reset: step-counter;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps li {
  counter-increment: step-counter;
  padding: 1rem 1rem 1rem 3.5rem;
  position: relative;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.steps li:hover {
  border-color: var(--primary-200);
  transform: translateX(4px);
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

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

th,
td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

th {
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
}

td {
  color: var(--text-secondary);
}

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

tr:hover td {
  background: var(--bg-muted);
}

/* ---------- 页脚 ---------- */
footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer .container {
  text-align: center;
}

footer h4 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-on-dark);
  opacity: 0.8;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

footer p {
  color: var(--text-on-dark);
  opacity: 0.6;
  font-size: 0.875rem;
  margin-top: 1rem;
}

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

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

.back-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  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; }

/* ---------- 动画工具类 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@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.6; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

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

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

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text p {
    margin: 0 auto 2rem;
  }
  
  .hero-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }
  
  .search-box {
    width: 180px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  :root {
    --header-height: 56px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open {
    display: flex;
    animation: fadeIn 0.3s ease-out;
  }
  
  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }
  
  .nav-links a:hover {
    background: var(--bg-muted);
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .search-box {
    display: none;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .article-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .article-list .date {
    font-size: 0.75rem;
  }
  
  .back-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .steps li {
    padding: 0.875rem 0.875rem 0.875rem 3rem;
  }
  
  .steps li::before {
    left: 0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .hero-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .theme-toggle {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .section {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }
  
  .card {
    padding: 1rem;
  }
  
  details {
    padding: 1rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  .navbar,
  .back-top,
  .hero-cta,
  .search-box,
  .theme-toggle,
  .menu-toggle {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    break-inside: avoid;
    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 var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--primary);
  color: var(--text-light);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-muted);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-muted);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
}

/* ---------- 工具类 ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

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

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

/* ---------- 分隔线 ---------- */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 2rem 0;
}

/* ---------- 文本对齐 ---------- */
.text-center {
  text-align: center;
}

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

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

/* ---------- 间距工具 ---------- */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* ---------- 显示工具 ---------- */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

/* ---------- 弹性布局工具 ---------- */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ---------- 网格工具 ---------- */
.grid {
  display: grid;
}

.place-items-center {
  place-items: center;
}

/* ---------- 定位工具 ---------- */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ---------- 溢出控制 ---------- */
.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* ---------- 宽度工具 ---------- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333%; }
.w-2\/3 { width: 66.667%; }
.w-1\/4 { width: 25%; }
.w-3\/4 { width: 75%; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* ---------- 字体工具 ---------- */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-white { color: #ffffff; }
.text-accent { color: var(--accent); }

/* ---------- 背景工具 ---------- */
.bg-card { background-color: var(--bg-card); }
.bg-muted { background-color: var(--bg-muted); }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-transparent { background-color: transparent; }

/* ---------- 边框工具 ---------- */
.border { border: 1px solid var(--border); }
.border-0 { border: none; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }

.border-primary { border-color: var(--primary); }
.border-accent { border-color: var(--accent); }

.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ---------- 阴影工具 ---------- */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow); }

/* ---------- 光标工具 ---------- */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-wait { cursor: wait; }
.cursor-not-allowed { cursor: not-allowed; }

/* ---------- 用户选择 ---------- */
.select-none {
  user-select: none;
  -webkit-user-select: none;
}

.select-all {
  user-select: all;
  -webkit-user-select: all;
}

/* ---------- 指针事件 ---------- */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ---------- 末尾：性能优化 ---------- */
img {
  content-visibility: auto;
}

.card,
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

/* 结束 */