```css
/* ===== 丁香花影院 全站样式 ===== */
/* 设计语言：现代·沉浸·柔和·高级 */
/* 支持：响应式 / 暗色模式 / 动效 / 毛玻璃 / 渐变 */

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色 · 丁香紫+深海蓝 */
  --primary: #5b4b8a;
  --primary-light: #7c6cb6;
  --primary-dark: #3f3568;
  --secondary: #2c5f8a;
  --accent-glow: rgba(123, 108, 182, 0.35);

  /* 功能色 */
  --success: #2e7d5e;
  --warning: #b7791f;
  --danger: #c53030;

  /* 中性色（亮色模式） */
  --bg-body: #f6f7fc;
  --bg-card: #ffffff;
  --bg-soft: #eef0f8;
  --bg-glass: rgba(255, 255, 255, 0.6);
  --text-primary: #1a1f36;
  --text-secondary: #4a5168;
  --text-tertiary: #7a8199;
  --text-heading: #0f1225;
  --text-on-dark: #f0f1fa;
  --border: rgba(90, 75, 138, 0.18);
  --border-strong: rgba(90, 75, 138, 0.3);
  --shadow-sm: 0 2px 8px rgba(31, 38, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 38, 58, 0.1);
  --shadow-lg: 0 16px 40px rgba(31, 38, 58, 0.16);
  --shadow-glow: 0 0 0 1px rgba(123, 108, 182, 0.08), 0 8px 30px rgba(91, 75, 138, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --blur: blur(16px) saturate(160%);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗色模式覆盖 */
[data-theme="dark"] {
  --bg-body: #0e1018;
  --bg-card: #1a1e2e;
  --bg-soft: #222738;
  --bg-glass: rgba(22, 26, 40, 0.65);
  --text-primary: #e6e8f2;
  --text-secondary: #b4bacd;
  --text-tertiary: #8b92ab;
  --text-heading: #ffffff;
  --text-on-dark: #f0f1fa;
  --border: rgba(140, 130, 190, 0.16);
  --border-strong: rgba(140, 130, 190, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(123, 108, 182, 0.2), 0 8px 30px rgba(0, 0, 0, 0.5);
  --accent-glow: rgba(123, 108, 182, 0.4);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

/* ---------- 背景装饰 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, var(--accent-glow), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(44, 95, 138, 0.12), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(123, 108, 182, 0.08), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  width: 34px;
  height: 34px;
  fill: var(--primary);
  filter: drop-shadow(0 2px 4px var(--accent-glow));
  -webkit-text-fill-color: initial;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 40%;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
  border: none;
  padding: 9px 18px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  width: 180px;
}

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

.search-box button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: filter 0.2s;
}

.search-box button:hover {
  filter: brightness(1.1);
}

.dark-toggle {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
  line-height: 1;
}

.dark-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-heading);
  line-height: 1;
  padding: 4px 8px;
}

/* 响应式导航 */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg-card);
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 12px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-box input {
    width: 110px;
  }

  .nav-inner {
    padding: 12px 16px;
  }
}

@media (max-width: 600px) {
  .nav-actions .search-box {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .logo a {
    font-size: 1.3rem;
  }
}

/* ---------- Hero Banner ---------- */
.hero {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  margin: 32px 0;
  padding: 56px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 480px;
}

.hero-btn {
  background: #ffffff;
  color: var(--primary-dark);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  background: var(--bg-soft);
}

.hero svg {
  width: 200px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 24px;
    text-align: center;
    justify-content: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero svg {
    width: 140px;
  }
}

/* ---------- 通用区块标题 ---------- */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-heading);
  margin: 48px 0 28px;
  border-left: 6px solid var(--primary);
  padding-left: 20px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 3px;
}

/* ---------- 卡片网格 ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

.card h3 {
  font-size: 1.35rem;
  color: var(--text-heading);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

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

.card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* 卡片中的引用块 */
blockquote.card {
  font-style: italic;
  border-left: 4px solid var(--primary);
  background: var(--bg-soft);
  padding: 24px 28px;
  position: relative;
}

blockquote.card::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

/* ---------- 文章列表 ---------- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.article-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.article-item:hover {
  background: var(--bg-soft);
  padding-left: 16px;
  padding-right: 16px;
}

.article-item h4 {
  color: var(--text-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 600;
  transition: color 0.2s;
}

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

.article-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
}

.article-meta {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
  font-size: 1.05rem;
  transition: background 0.2s;
  user-select: none;
}

.faq-question span {
  transition: transform 0.3s ease;
  color: var(--primary);
  font-size: 1.2rem;
  margin-left: 12px;
}

.faq-item.active .faq-question {
  background: var(--primary);
  color: #fff;
}

.faq-item.active .faq-question span {
  transform: rotate(180deg);
  color: #fff;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-primary);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 20px 24px;
  max-height: 500px;
}

/* ---------- HowTo ---------- */
.howto-steps {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.howto-steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.howto-steps h3 {
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 20px;
  font-weight: 700;
}

.howto-steps ol {
  padding-left: 24px;
  color: var(--text-primary);
  margin-bottom: 20px;
  counter-reset: howto;
  list-style: none;
}

.howto-steps li {
  margin-bottom: 14px;
  position: relative;
  padding-left: 36px;
  line-height: 1.8;
  counter-increment: howto;
}

.howto-steps li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.howto-steps p {
  color: var(--text-secondary);
  margin-top: 8px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

/* ---------- 表格 ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  border: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  color: var(--text-primary);
}

.info-table th {
  background: var(--bg-soft);
  color: var(--text-heading);
  font-weight: 600;
}

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

/* ---------- 按钮 ---------- */
.btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--accent-glow);
  display: inline-block;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--border);
  border-color: var(--border-strong);
}

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

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

/* 动画延迟 */
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: var(--transition);
  line-height: 1;
}

.to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px var(--accent-glow);
}

/* ---------- 数字动画 ---------- */
.stat-number {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ---------- 电影海报占位 ---------- */
.movie-poster {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.movie-poster:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.movie-poster svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

/* ---------- 客户评价 ---------- */
.grid-cards blockquote.card {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  font-style: normal;
  padding: 24px;
  position: relative;
}

.grid-cards blockquote.card::after {
  content: "";
  position: absolute;
  bottom: 16px;
  right: 20px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bg-footer, #17202a);
  color: var(--text-footer, #d1d5db);
  padding: 48px 0 24px;
  margin-top: 60px;
  border-radius: 28px 28px 0 0;
  border-top: 1px solid var(--border);
}

[data-theme="dark"] .footer {
  background-color: #0b0f18;
  color: #94a3b8;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.footer h4 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer .columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer .columns > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #94a3b8;
  gap: 10px;
}

/* ---------- 响应式优化 ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.4rem;
    margin: 36px 0 20px;
  }

  .card {
    padding: 20px;
  }

  .howto-steps {
    padding: 24px 20px;
  }

  .article-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: 32px 20px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .grid-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  .to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

/* ---------- 打印优化 ---------- */
@media print {
  .navbar,
  .hero,
  .to-top,
  .footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .faq-item,
  .howto-steps {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ---------- 无障碍与焦点 ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-soft);
  border-radius: 10px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ---------- 选中文本 ---------- */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- 图片加载过渡 ---------- */
img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.loaded {
  opacity: 1;
}
```