/* ===== 野花影院 全站主题样式 v2.0 ===== */
/* 深蓝渐变 + 玻璃拟态 + 暗黑模式自适应 + 响应式布局 */

/* ===== CSS变量与色彩系统 ===== */
:root {
  /* 品牌色板 */
  --brand-primary: #1a5c9e;
  --brand-secondary: #7b2ff7;
  --brand-accent: #00c6ff;
  --brand-gold: #f5b942;
  --brand-pink: #ff6b9d;
  --brand-purple: #a855f7;

  /* 浅色模式 */
  --bg-body: #f0f4fa;
  --bg-card: #ffffff;
  --bg-soft: #e8eef6;
  --bg-footer: #0d1f33;
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --bg-hero-start: #e3edf7;
  --bg-hero-end: #f7f0ff;
  --text-primary: #1e2a3a;
  --text-secondary: #2c3e50;
  --text-heading: #0f1e2f;
  --text-body: #1f2d3d;
  --text-muted: #44576b;
  --text-link: #0b4f8a;
  --text-link-hover: #093d6e;
  --text-on-dark: #edf2f9;
  --text-on-dark-muted: #c0d0e0;
  --border-light: rgba(27, 55, 84, 0.12);
  --border-card: rgba(27, 55, 84, 0.08);
  --shadow-sm: 0 2px 12px rgba(20, 40, 80, 0.06);
  --shadow-md: 0 8px 30px rgba(20, 40, 80, 0.1);
  --shadow-lg: 0 20px 50px rgba(20, 40, 80, 0.15);
  --shadow-glow: 0 0 30px rgba(0, 198, 255, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 60px;

  /* 渐变定义 */
  --gradient-hero: linear-gradient(135deg, #e8f0fe 0%, #f5f0ff 50%, #fff0f6 100%);
  --gradient-card: linear-gradient(145deg, #ffffff, #f8faff);
  --gradient-nav: linear-gradient(90deg, #0b4f8a, #7b2ff7);
  --gradient-text: linear-gradient(135deg, #1a5c9e, #7b2ff7);
  --gradient-btn: linear-gradient(135deg, #1a5c9e, #7b2ff7);
  --gradient-btn-hover: linear-gradient(135deg, #0b4f8a, #6a1fd4);
  --gradient-border: linear-gradient(135deg, rgba(26, 92, 158, 0.3), rgba(123, 47, 247, 0.3));
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(0, 198, 255, 0.08), transparent 60%);
}

/* 暗黑模式 */
[data-theme="dark"] {
  --bg-body: #0d1520;
  --bg-card: #1a2535;
  --bg-soft: #1e2a3a;
  --bg-footer: #070d16;
  --bg-glass: rgba(26, 37, 53, 0.6);
  --bg-glass-strong: rgba(26, 37, 53, 0.9);
  --bg-hero-start: #0f1e2f;
  --bg-hero-end: #1a1030;
  --text-primary: #e8f0fa;
  --text-secondary: #c0d4e8;
  --text-heading: #ffffff;
  --text-body: #d0dce8;
  --text-muted: #8aa0b8;
  --text-link: #5cb0e8;
  --text-link-hover: #8ad0ff;
  --text-on-dark: #f0f6fc;
  --text-on-dark-muted: #a8c0d8;
  --border-light: rgba(160, 190, 220, 0.15);
  --border-card: rgba(160, 190, 220, 0.1);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 198, 255, 0.1);
  --gradient-hero: linear-gradient(135deg, #0e1e30 0%, #1a1030 60%, #200a18 100%);
  --gradient-card: linear-gradient(145deg, #1a2535, #1e2a3a);
  --gradient-text: linear-gradient(135deg, #5cb0e8, #c084fc);
  --gradient-btn: linear-gradient(135deg, #1a5c9e, #7b2ff7);
  --gradient-btn-hover: linear-gradient(135deg, #0b4f8a, #6a1fd4);
  --gradient-border: linear-gradient(135deg, rgba(92, 176, 232, 0.3), rgba(192, 132, 252, 0.3));
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(0, 198, 255, 0.05), transparent 60%);
}

/* ===== 基础重置与排版 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-body);
  background-image: var(--gradient-glow);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.75;
  font-size: 16px;
  transition: background-color 0.4s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2.5rem 0 1.2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--brand-primary);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 1rem;
  bottom: -6px;
  width: 40px;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 1.5rem 0 0.6rem;
  color: var(--text-heading);
}

h4 {
  font-size: 1.15rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-link-hover);
  text-decoration: none;
}

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

::selection {
  background: var(--brand-primary);
  color: #ffffff;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 10px;
  border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-secondary);
}

/* ===== 容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== 按钮 ===== */
.btn {
  background: var(--gradient-btn);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26, 92, 158, 0.25);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  background: var(--gradient-btn-hover);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 92, 158, 0.35);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 92, 158, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  box-shadow: none;
}

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

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-glass-strong);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  opacity: 0.85;
}

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

.menu a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.15rem 0.15rem 1.2rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 158, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  color: var(--text-body);
  padding: 0.6rem 0.3rem;
  outline: none;
  width: 160px;
  font-size: 0.9rem;
  transition: width 0.3s ease;
}

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

.search-box input:focus {
  width: 200px;
}

.search-box button {
  background: var(--gradient-btn);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--gradient-btn-hover);
  transform: scale(1.05);
}

/* 暗黑模式按钮 */
#darkModeToggle {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#darkModeToggle:hover {
  background: var(--bg-card);
  border-color: var(--brand-primary);
  transform: rotate(15deg) scale(1.05);
  box-shadow: var(--shadow-sm);
}

#darkModeToggle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--brand-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

#darkModeToggle:hover::before {
  opacity: 0.1;
}

/* 移动端菜单按钮 */
.mobile-menu {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu:hover {
  background: var(--bg-card);
}

/* ===== Hero区域 ===== */
.hero {
  background: var(--gradient-hero);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  overflow: hidden;
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 180px;
}

/* Hero统计卡片 */
.hero-stats {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
  position: relative;
  overflow: hidden;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-btn);
}

.stat-item {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  display: block;
}

/* ===== 卡片网格 ===== */
.section-title {
  margin-top: 3.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-card);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-btn);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: transparent;
  background: var(--gradient-card);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.card h4 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.badge {
  background: var(--gradient-btn);
  color: #ffffff;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  letter-spacing: 0.03em;
}

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

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.article-item a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.article-item a:hover {
  color: var(--brand-primary);
}

.article-item span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

/* 文章摘要卡片 */
.article-summary {
  margin: 1.5rem 0;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-summary:hover {
  box-shadow: var(--shadow-md);
}

.article-summary h3 {
  color: var(--text-heading);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.article-summary p {
  color: var(--text-body);
  line-height: 1.8;
}

.article-summary .btn {
  margin-top: 1rem;
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--bg-card);
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  background: var(--bg-card);
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-heading);
  font-size: 1rem;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background: var(--bg-soft);
}

.faq-question span {
  font-size: 1.2rem;
  color: var(--brand-primary);
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-question.active span {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-body);
  border-top: 1px solid var(--border-light);
  background: var(--bg-body);
  animation: fadeIn 0.3s ease;
}

.faq-answer p {
  margin-top: 1rem;
  line-height: 1.8;
}

/* ===== HowTo步骤 ===== */
.howto-steps {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
}

.step {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.step:hover {
  background: var(--bg-soft);
  transform: translateX(8px);
}

.step:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--gradient-btn);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 92, 158, 0.3);
}

.step h4 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.step p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-btn);
}

.footer a {
  color: var(--text-on-dark-muted);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.footer h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

.footer p,
.footer li {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 2;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  transition: transform 0.3s ease;
}

.footer ul li:hover {
  transform: translateX(5px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-btn);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  border: none;
}

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

.back-to-top:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-link);
  transition: color 0.3s ease;
}

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

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

/* ===== 表格 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--bg-soft);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

/* ===== 锚点 ===== */
.anchor {
  scroll-margin-top: 80px;
}

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

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

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ===== 通用工具类 ===== */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===== 响应式设计 ===== */
/* 平板 */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .hero-stats {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .nav-inner {
    padding: 0.5rem 0;
    gap: 0.8rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .menu,
  .search-box {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .menu.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
  }

  .menu.show a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .menu.show a:hover {
    background: var(--bg-soft);
  }

  .hero-grid {
    padding: 2rem 0;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

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

  .article-item span {
    font-size: 0.8rem;
  }

  .article-summary {
    padding: 1.5rem;
  }

  .faq-question {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.2rem 1rem;
  }

  .howto-steps {
    padding: 1.5rem;
  }

  .step {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
  }

  .step-num {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .search-box {
    display: none;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 10px 12px;
  }

  .breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }
}

/* 超小屏 */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  #darkModeToggle,
  .mobile-menu {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

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

.scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 花式装饰 */
.flower-decoration {
  position: relative;
}

.flower-decoration::after {
  content: '🌼';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

/* 高亮块 */
.review-highlight {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.review-highlight::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 5rem;
  color: var(--brand-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.review-highlight p {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* SVG占位 */
.svg-placeholder {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  border: 2px dashed var(--border-light);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.svg-placeholder:hover {
  border-color: var(--brand-primary);
  background: var(--bg-card);
}

/* 链接区域 */
.link-section {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.link-section a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.link-section a:hover {
  background: var(--gradient-btn);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 图标按钮 */
.icon-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.icon-btn:hover {
  background: var(--gradient-btn);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

/* 加载动画 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

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

/* 提示框 */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  font-size: 0.95rem;
  border: 1px solid;
  animation: fadeIn 0.3s ease;
}

.alert-success {
  background: rgba(46, 160, 67, 0.1);
  border-color: rgba(46, 160, 67, 0.3);
  color: #2ea043;
}

.alert-info {
  background: rgba(26, 92, 158, 0.1);
  border-color: rgba(26, 92, 158, 0.3);
  color: var(--brand-primary);
}

.alert-warning {
  background: rgba(245, 185, 66, 0.1);
  border-color: rgba(245, 185, 66, 0.3);
  color: #b8860b;
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}

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

/* 玻璃拟态卡片 */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* 渐变边框效果 */
.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 数字统计动画效果 */
.stat-number {
  position: relative;
}

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

/* 打印样式 */
@media print {
  .navbar,
  .back-to-top,
  .footer,
  .search-box,
  .mobile-menu,
  #darkModeToggle {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card,
  .article-item,
  .faq-item,
  .howto-steps {
    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(--brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 隐藏文本 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 键盘导航高亮 */
:focus:not(:focus-visible) {
  outline: none;
}

/* 链接下划线动画 */
.animated-link {
  position: relative;
  display: inline-block;
}

.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.animated-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}