```css
/* ============================================
   优优色影院 - 完整样式表
   设计风格：现代影视平台 / 深色优雅 / 毛玻璃质感
   响应式 + 暗色模式 + 交互动效
   ============================================ */

/* ---------- CSS 变量与主题 ---------- */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-footer: #0f172a;
  --bg-nav: rgba(255, 255, 255, 0.85);
  --bg-hero: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  --bg-glass: rgba(255, 255, 255, 0.6);

  --text-primary: #1f2937;
  --text-secondary: #475569;
  --text-title: #111827;
  --text-link: #2563eb;
  --text-button: #ffffff;
  --text-meta: #64748b;

  --brand-color: #2563eb;
  --brand-secondary: #7c3aed;
  --brand-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
  --accent-color: #f59e0b;

  --border-light: #e2e8f0;
  --border-dark: #334155;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --radius-sm: 0.5rem;
  --radius-md: 0.8rem;
  --radius-lg: 1rem;
  --radius-full: 2rem;

  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  --nav-height: 64px;
  --container-max: 1200px;
}

[data-theme="dark"] {
  --bg-primary: #0b1320;
  --bg-secondary: #111c2e;
  --bg-card: #1e293b;
  --bg-footer: #020617;
  --bg-nav: rgba(15, 23, 42, 0.9);
  --bg-hero: linear-gradient(145deg, #0f172a 0%, #020617 100%);
  --bg-glass: rgba(30, 41, 59, 0.7);

  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-title: #f8fafc;
  --text-link: #93c5fd;
  --text-button: #0f172a;
  --text-meta: #94a3b8;

  --brand-color: #3b82f6;
  --brand-secondary: #8b5cf6;
  --brand-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --accent-color: #fbbf24;

  --border-light: #334155;
  --border-dark: #1e293b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ---------- 基础重置与全局 ---------- */
*,
*::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 {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

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

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

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--brand-color);
  position: relative;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

p {
  color: var(--text-primary);
  margin: 0.8rem 0;
}

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

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

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  user-select: none;
  transition: transform 0.3s ease;
}

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

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

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--brand-color);
  text-decoration: none;
}

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

.theme-toggle,
.menu-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--brand-color);
  background: var(--brand-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  padding: 0.2rem 0.8rem;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  backdrop-filter: blur(20px);
  animation: slideDown 0.3s ease;
}

.mobile-menu a {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 500;
  transition: padding-left 0.2s ease;
}

.mobile-menu a:hover {
  padding-left: 1rem;
  color: var(--brand-color);
}

.mobile-menu .theme-toggle {
  margin-top: 0.8rem;
  align-self: flex-start;
}

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

/* ---------- Hero 区域 ---------- */
.hero {
  background: var(--bg-hero);
  color: #f1f5f9;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-2%, 2%) scale(1.05);
  }
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 650px;
  margin: 1rem auto;
  position: relative;
  z-index: 1;
}

.hero .btn {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  margin-top: 1.5rem;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

.hero .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.hero .btn:active {
  transform: translateY(0) scale(0.98);
}

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

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

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

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

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

.card h3 {
  margin-top: 0;
  color: var(--text-title);
  font-size: 1.2rem;
}

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

.badge {
  background: var(--brand-gradient);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  letter-spacing: 0.02em;
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 600px;
}

th {
  background: var(--brand-gradient);
  color: white;
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

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

/* ---------- FAQ 手风琴 ---------- */
details {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  margin: 1rem 0;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

details:hover {
  border-color: var(--brand-color);
  box-shadow: var(--shadow-md);
}

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

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

summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

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

details p {
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-light);
}

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

.article-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.article-item h4 {
  color: var(--text-title);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.article-item h4 a {
  color: var(--text-title);
}

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

.meta {
  color: var(--text-meta);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.article-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.article-item a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- 教程卡片 ---------- */
.howto-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.howto-card h3 {
  color: var(--brand-color);
  font-size: 1.1rem;
  margin-top: 1.2rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--brand-color);
  display: inline-block;
}

.howto-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- 页脚 ---------- */
footer {
  background: var(--bg-footer);
  color: #cbd5e1;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--brand-color);
}

footer a {
  color: #93c5fd;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

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

.footer-grid h4 {
  color: #f1f5f9;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #334155;
}

.footer-grid p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

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

/* 延迟动画 */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ---------- 图片占位符 ---------- */
.svg-img {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--text-meta);
  border: 1px dashed var(--border-light);
  font-size: 0.9rem;
}

/* ---------- 分割线 ---------- */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 2rem 0;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: var(--brand-gradient);
  border-radius: 3px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.2rem;
  }

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

  .hero {
    padding: 2.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    margin: 1rem 0;
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
  }

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

  .hero p {
    font-size: 1rem;
  }

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

  .card {
    padding: 1.4rem;
  }

  h2 {
    font-size: 1.4rem;
    padding-left: 0.7rem;
  }

  .article-item {
    padding: 1.2rem;
  }

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

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

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .theme-toggle {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
  }

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

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

  .table-wrap {
    margin: 1rem 0;
  }

  th,
  td {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
}

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

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

[data-theme="dark"] .svg-img {
  background: var(--bg-secondary);
  border-color: var(--border-dark);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .menu-toggle {
  background: rgba(30, 41, 59, 0.6);
  border-color: var(--border-dark);
}

[data-theme="dark"] .mobile-menu {
  background: var(--bg-card);
  border-color: var(--border-dark);
}

/* ---------- 辅助功能 ---------- */
:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
}

::selection {
  background: var(--brand-color);
  color: white;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--brand-color);
  border-radius: 4px;
}

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

/* 打印样式 */
@media print {
  .navbar,
  .back-to-top,
  .menu-toggle,
  .theme-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .article-item,
  details {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
```