/* ===== 青青影院 · 高级主题样式表 ===== */
/* 风格：深蓝金典 · 电影质感 · 毛玻璃 + 渐变光晕 */

/* ---------- CSS 自定义属性（主题令牌） ---------- */
:root {
  /* 主色板 - 暗夜影院 */
  --primary-deep: #0b1424;
  --primary-deep-rgb: 11, 20, 36;
  --secondary-deep: #101f33;
  --accent-gold: #d4af37;
  --accent-gold-light: #f0d77b;
  --accent-gold-dark: #a8842c;
  --accent-rgb: 212, 175, 55;

  /* 文本 */
  --text-light: #eef2f8;
  --text-muted: #9fb0c7;
  --text-dark: #0d1b2a;
  --text-soft: #c8d6e5;

  /* 背景 */
  --bg-body: #f0f4fa;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-border: rgba(255, 255, 255, 0.6);
  --bg-code: #f6f8fc;
  --bg-input: #ffffff;
  --bg-footer: #0a1420;

  /* 边框 */
  --border-soft: rgba(100, 116, 139, 0.15);
  --border-strong: rgba(100, 116, 139, 0.3);

  /* 阴影 */
  --shadow-sm: 0 4px 24px rgba(2, 12, 27, 0.06);
  --shadow-md: 0 8px 30px rgba(2, 12, 27, 0.1);
  --shadow-lg: 0 20px 60px rgba(2, 12, 27, 0.12);

  /* 渐变 */
  --gradient-gold: linear-gradient(135deg, #f5e28a 0%, #d4af37 50%, #b8860b 100%);
  --gradient-banner: linear-gradient(145deg, #0a1a2f 0%, #142c47 45%, #0f2239 100%);
  --gradient-card-hover: linear-gradient(145deg, rgba(212,175,55,0.05), rgba(255,255,255,0.02));

  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 50px;

  /* 字体 */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 间距 */
  --section-space: 4.5rem;

  /* 过渡 */
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* 霓虹光 */
  --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ---------- 暗色模式覆盖 ---------- */
[data-theme="dark"] {
  --bg-body: #0b1420;
  --bg-card: rgba(30, 41, 59, 0.65);
  --bg-card-solid: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.7);
  --bg-glass-border: rgba(148, 163, 184, 0.15);
  --bg-code: #1e293b;
  --bg-input: #1e293b;

  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #e2e8f0;
  --text-soft: #cbd5e1;

  --border-soft: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.35);

  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);

  --gradient-banner: linear-gradient(145deg, #060d18 0%, #0f2034 45%, #0a1524 100%);
  --bg-footer: #020a12;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.75;
  font-size: 16px;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.08), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(15, 35, 60, 0.05), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 20px;
  border: 2px solid var(--bg-body);
}

::selection {
  background: var(--accent-gold);
  color: #0d1b2a;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.2rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: var(--section-space) 0 1.5rem;
  position: relative;
  padding-left: 1.2rem;
  font-weight: 700;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 5px;
  height: 0.9em;
  background: var(--gradient-gold);
  border-radius: 10px;
  box-shadow: var(--glow-gold);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 1.2rem 0 0.6rem;
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  text-wrap: pretty;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--accent-gold-light);
  text-decoration: none;
}

/* 带下划线动画的链接 */
a:not(.btn):not(.logo):not(.nav-links a):not(.footer a)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

a:not(.btn):not(.logo):not(.nav-links a):not(.footer a):hover::after {
  width: 100%;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

li {
  margin: 0.5rem 0;
}

strong {
  font-weight: 700;
  color: var(--accent-gold);
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.anchor-offset {
  scroll-margin-top: 100px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 18, 30, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(6, 12, 22, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo::before {
  content: "🎬";
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

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

.nav-links a {
  color: #dbe4f0;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: var(--transition-fast);
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-gold-light);
}

.nav-links a:hover::before {
  width: 100%;
}

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

.search-box {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.15rem 0.15rem 1rem;
  transition: var(--transition-fast);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.search-box:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.4rem 0.5rem;
  outline: none;
  font-size: 0.9rem;
  width: 160px;
  color: #fff;
  transition: width 0.3s ease;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

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

.search-box button {
  background: var(--gradient-gold);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.2rem;
  color: #0d1b2a;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.search-box button:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-gold);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.2rem;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-gold);
}

.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.8rem;
  transition: var(--transition-fast);
}

.mobile-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Banner 主视觉 ---------- */
.banner {
  background: var(--gradient-banner);
  padding: 4rem 0 5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 60%);
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.banner-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.banner-text h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.banner-text h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.banner-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.banner-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: #e2e8f0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-gold);
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-pill);
  color: #0d1b2a;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  color: #0d1b2a;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn::after {
  content: "▶";
  font-size: 0.8rem;
}

.banner-svg {
  flex: 1 1 35%;
  text-align: center;
  min-width: 250px;
  position: relative;
}

.banner-svg svg {
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
  animation: float 6s ease-in-out infinite;
  border-radius: var(--radius-lg);
}

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

/* ---------- 卡片系统 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.3);
  background: var(--bg-card);
}

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

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

.card h3 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.card .badge {
  position: relative;
  z-index: 1;
}

.badge {
  background: var(--gradient-gold);
  color: #0d1b2a;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ---------- FAQ 折叠面板 ---------- */
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.8rem;
  margin: 1rem 0;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
  user-select: none;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-question span {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  line-height: 1.8;
  animation: fadeInDown 0.4s ease;
}

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

/* ---------- 文章卡片 ---------- */
article.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

article.card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

article.card .meta::before {
  content: "📅";
}

.readmore {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.readmore::after {
  content: "→";
  transition: transform 0.3s ease;
}

.readmore:hover::after {
  transform: translateX(5px);
}

/* ---------- 步骤列表 (HowTo) ---------- */
ol, ul {
  margin-bottom: 1.5rem;
}

ol li, ul li {
  margin: 0.8rem 0;
  line-height: 1.8;
  position: relative;
}

ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

ol li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
}

ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 2rem;
  height: 2rem;
  background: var(--gradient-gold);
  color: #0d1b2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding-left: 1.8rem;
  position: relative;
}

ul li::before {
  content: "◆";
  position: absolute;
  left: 0.3rem;
  color: var(--accent-gold);
  font-size: 0.8rem;
  top: 0.1em;
}

/* ---------- 联系 & 信息区 ---------- */
#contact p {
  margin-bottom: 0.6rem;
}

#contact .card {
  margin-top: 1.5rem;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-footer);
  color: var(--text-soft);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

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

.footer p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer a {
  color: #a8b8cc;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-gold-light);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #7a8ba0;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-gold);
  color: #0d1b2a;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: var(--transition-fast);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.back-to-top:active {
  transform: translateY(-2px) scale(0.95);
}

/* ---------- 滚动动画 ---------- */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画辅助类 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- 图片懒加载占位 ---------- */
.lazy-img {
  background: linear-gradient(110deg, var(--bg-code) 8%, var(--bg-card) 18%, var(--bg-code) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-sm);
}

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

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

  .banner-content {
    gap: 2rem;
  }

  .banner-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 800px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    background: rgba(10, 18, 30, 0.95);
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .nav-links a:hover {
    background: rgba(212, 175, 55, 0.1);
  }

  .mobile-menu {
    display: block;
  }

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

  .nav-actions {
    gap: 0.5rem;
  }

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

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

  .banner {
    padding: 3rem 0;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-text h1 {
    font-size: 2rem;
  }

  .banner-svg svg {
    max-width: 100%;
  }

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

  h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
  }

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

  .faq-item {
    padding: 1rem;
  }
}

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

  .container {
    padding: 0 12px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    flex: 1;
    width: auto;
  }

  .search-box input:focus {
    width: auto;
  }

  .banner-text h1 {
    font-size: 1.6rem;
  }

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

  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }

  .card {
    padding: 1.4rem;
  }

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

/* ---------- 无障碍与可访问性 ---------- */
@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(--accent-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* ---------- 高亮关键词样式 ---------- */
mark {
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  color: var(--accent-gold);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

/* ---------- 装饰性分隔线 ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: var(--section-space) 0;
  border: none;
  opacity: 0.3;
}

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

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

/* ---------- 通知提示 ---------- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  color: var(--text-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  z-index: 2000;
  transition: transform 0.4s ease;
  font-weight: 500;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- 表单控件优化 ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ---------- 按钮变体 ---------- */
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #0d1b2a;
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* ---------- 网格系统辅助 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 文字工具类 ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

/* ---------- 毛玻璃工具类 ---------- */
.glass {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
}

/* ---------- 暗色模式微调 ---------- */
[data-theme="dark"] .card {
  background: var(--bg-card);
}

[data-theme="dark"] .faq-item {
  background: var(--bg-card);
}

[data-theme="dark"] .navbar {
  background: rgba(6, 12, 22, 0.9);
}

[data-theme="dark"] .banner {
  background: var(--gradient-banner);
}

[data-theme="dark"] .search-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-box input {
  color: #e2e8f0;
}

[data-theme="dark"] .search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- 动画关键帧 ---------- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* 悬停时卡片图标微动 */
.card:hover .badge {
  animation: pulse 1s ease infinite;
}

/* 品牌区域特殊装饰 */
#brand .card-grid .card:nth-child(1) h3::before {
  content: "★ ";
  color: var(--accent-gold);
}

#brand .card-grid .card:nth-child(2) h3::before {
  content: "◆ ";
  color: var(--accent-gold);
}

#brand .card-grid .card:nth-child(3) h3::before {
  content: "● ";
  color: var(--accent-gold);
}

/* 影视库卡片渐变边 */
#product .card-grid .card {
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, #d4af37, #f0d77b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* 文章列表时间线风格 */
#articles .card-grid article {
  position: relative;
}

#articles .card-grid article::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* FAQ 区域底部渐变 */
#faq::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin-top: 2rem;
  opacity: 0.3;
}

/* 联系区域图标 */
#contact p:first-of-type::before {
  content: "🏢 ";
}

#contact p:nth-of-type(2)::before {
  content: "📧 ";
}

/* 页脚链接 hover 效果 */
.footer a {
  position: relative;
  padding-bottom: 2px;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

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

/* 响应式微调 */
@media (max-width: 600px) {
  h2 {
    padding-left: 0.8rem;
  }

  h2::before {
    width: 3px;
  }

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

  .faq-question span {
    font-size: 1.2rem;
  }
}

/* 打印时显示链接 URL */
@media print {
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
  }
}

/* 禁用文本选择（仅用于 UI 元素） */
.no-select {
  user-select: none;
  -webkit-user-select: none;
}

/* 鼠标拖拽抓取 */
.drag-handle {
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

/* 图片滤镜风格 */
.img-gold {
  filter: sepia(0.3) saturate(1.2) hue-rotate(-10deg);
}

.img-vintage {
  filter: sepia(0.5) contrast(1.05) brightness(0.95);
}

/* 阴影变体 */
.shadow-gold {
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.shadow-gold-lg {
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.25);
}

/* 渐变文字 */
.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 闪烁提示 */
.blink {
  animation: blink 1.5s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 带徽标的卡片角标 */
.card-corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gold);
  color: #0d1b2a;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* 结束 */
