/* ===== 悠悠影院 全站样式 v3.0 ===== */
/* ===== 设计变量 ===== */
:root {
  --bg-light: #f4f6fb;
  --bg-dark: #0b1322;
  --surface-light: #ffffff;
  --surface-dark: #16213a;
  --surface-2-light: #eef1f8;
  --surface-2-dark: #1e2a45;
  --text-primary-light: #0f1c2e;
  --text-secondary-light: #1f2d44;
  --text-muted-light: #3a4a63;
  --text-primary-dark: #f0f4ff;
  --text-secondary-dark: #d3dcec;
  --text-muted-dark: #a8b6d0;
  --border-light: #d3dce8;
  --border-dark: #2c3a5e;
  --brand: #1a3a7a;
  --brand-2: #2d5fc5;
  --accent: #f0b93b;
  --accent-2: #ffd66e;
  --link-light: #1d4ed8;
  --link-dark: #7ab0ff;
  --btn-bg: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  --btn-text: #ffffff;
  --btn-hover: linear-gradient(135deg, #1e3a8a, #172554);
  --shadow-sm: 0 2px 8px rgba(15, 30, 60, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 30, 60, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 30, 60, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --header-bg-light: rgba(255, 255, 255, 0.78);
  --header-bg-dark: rgba(11, 19, 34, 0.82);
  --footer-bg-light: #1b2b4d;
  --footer-bg-dark: #060d1c;
  --footer-text-light: #d0d9ec;
  --footer-text-dark: #9aa9c7;
  --gradient-banner: linear-gradient(135deg, #0f2557 0%, #1e3a8a 45%, #2d5fc5 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  --gradient-accent: linear-gradient(135deg, #f0b93b, #ffd66e);
  --glass-blur: blur(14px);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --surface: var(--surface-dark);
  --surface-2: var(--surface-2-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: var(--text-muted-dark);
  --border: var(--border-dark);
  --link: var(--link-dark);
  --header-bg: var(--header-bg-dark);
  --footer-bg: var(--footer-bg-dark);
  --footer-text: var(--footer-text-dark);
  --gradient-card: linear-gradient(145deg, rgba(22,33,58,0.9), rgba(22,33,58,0.6));
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --surface-2: var(--surface-2-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border: var(--border-light);
  --link: var(--link-light);
  --header-bg: var(--header-bg-light);
  --footer-bg: var(--footer-bg-light);
  --footer-text: var(--footer-text-light);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.75;
  transition: background 0.4s ease, color 0.3s ease;
  word-break: break-word;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 渐变背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 0%, rgba(45, 95, 197, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(240, 185, 59, 0.06) 0%, transparent 40%),
              radial-gradient(ellipse at 50% 100%, rgba(29, 78, 216, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.5s;
}

[data-theme="dark"] body::before {
  background: radial-gradient(ellipse at 20% 0%, rgba(45, 95, 197, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(240, 185, 59, 0.08) 0%, transparent 40%),
              radial-gradient(ellipse at 50% 100%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
}

/* ===== 排版 ===== */
h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 60px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
  color: var(--text-secondary);
}

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

p {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.8;
}

a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--brand-2);
  border-bottom-color: currentColor;
}

strong, b {
  color: var(--text-primary);
  font-weight: 700;
}

ul, ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

li {
  color: var(--text-primary);
  margin: 0.3rem 0;
}

blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

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

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

/* ===== 头部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 0;
  gap: 12px;
}

.logo h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: transform 0.2s;
}

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

[data-theme="dark"] .logo h2 {
  background: linear-gradient(135deg, #7ab0ff, #93c5fd 50%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
}

.nav-menu a {
  font-weight: 600;
  color: var(--text-primary);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  position: relative;
  font-size: 0.98rem;
  transition: color 0.2s, border-color 0.2s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-menu a:hover {
  color: var(--brand-2);
  border-bottom-color: transparent;
}

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

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

.theme-toggle, .search-toggle, .menu-icon {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover, .search-toggle:hover, .menu-icon:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-search-form {
  display: none;
  margin-top: 12px;
  padding-bottom: 12px;
  animation: slideDown 0.3s ease;
}

.mobile-search-form.active {
  display: block;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

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

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }
  
  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  
  .nav-menu a {
    padding: 10px 0;
    font-size: 1.05rem;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  .menu-icon {
    display: flex;
  }
}

@media (min-width: 769px) {
  .menu-icon {
    display: none;
  }
}

/* ===== 面包屑 ===== */
.breadcrumb {
  background: var(--surface);
  padding: 10px 20px;
  border-radius: 50px;
  margin: 24px 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--link);
}

/* ===== Hero 区域 ===== */
.hero {
  background: var(--gradient-banner);
  border-radius: var(--radius-lg);
  margin: 24px 0 40px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  transform: rotate(20deg);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(240, 185, 59, 0.1) 0%, transparent 60%);
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-accent);
  color: #1a2b4a;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(240, 185, 59, 0.3);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0.2em 0 0.4em;
  background: linear-gradient(135deg, #ffffff 60%, #d0dcff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 800px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.25);
  position: relative;
  overflow: hidden;
  text-align: center;
}

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

.btn:hover {
  background: var(--btn-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
  color: white;
}

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

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

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

[data-theme="dark"] .btn {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .btn:hover {
  background: linear-gradient(135deg, #1e40af, #172554);
}

[data-theme="dark"] .btn-outline {
  border-color: #93c5fd;
  color: #93c5fd;
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(147, 197, 253, 0.15);
  border-color: #93c5fd;
  color: #93c5fd;
}

/* ===== 区块通用 ===== */
section {
  margin-bottom: 48px;
}

.section-title {
  margin-bottom: 32px;
}

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

.card {
  background: var(--gradient-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  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-2);
}

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

.card h3 {
  margin-top: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.card a {
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

/* ===== 徽章 ===== */
.badge-list span {
  background: var(--brand);
  color: white;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 4px 6px 4px 0;
  display: inline-block;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .badge-list span {
  background: #2563eb;
}

/* ===== 表格 ===== */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.info-table th {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 600;
  padding: 16px 18px;
  text-align: left;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.info-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.info-table tr:hover td {
  background: var(--surface-2);
}

.info-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-sm);
}

.info-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-sm);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

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

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

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

.faq-question:hover {
  background: var(--surface-2);
}

.faq-question span {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--brand);
  flex-shrink: 0;
}

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

.faq-item.active .faq-question {
  background: var(--surface-2);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  display: none;
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-answer {
  display: block;
}

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

/* ===== 教程区块 ===== */
.howto-block {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.howto-block:hover {
  box-shadow: var(--shadow-md);
}

.howto-block ol, .howto-block ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.howto-block li {
  margin: 0.5rem 0;
  line-height: 1.8;
}

.howto-block li::marker {
  color: var(--brand);
  font-weight: 700;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 24px;
  margin-top: 64px;
  position: relative;
}

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

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

.footer-grid h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-grid a {
  color: var(--footer-text);
  display: block;
  margin: 10px 0;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-grid a:hover {
  color: #ffffff;
  transform: translateX(4px);
  border-bottom: none;
}

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

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--footer-text);
  line-height: 1.8;
}

.footer-copy p {
  color: var(--footer-text);
  font-size: 0.9rem;
  margin: 4px 0;
}

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--btn-bg);
  color: white;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.to-top:hover {
  background: var(--btn-hover);
  transform: translateY(-4px) scale(1.05);
}

.to-top:active {
  transform: translateY(0) scale(0.95);
}

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

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

/* ===== 暗色模式微调 ===== */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0a1628 0%, #132744 50%, #1e3a5f 100%);
}

[data-theme="dark"] .hero h1 {
  background: linear-gradient(135deg, #f0f4ff 60%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

[data-theme="dark"] .hero p {
  color: rgba(240, 244, 255, 0.9);
}

[data-theme="dark"] .card {
  background: linear-gradient(145deg, rgba(22, 33, 58, 0.95), rgba(22, 33, 58, 0.7));
}

[data-theme="dark"] .site-footer {
  background: #060d1c;
}

[data-theme="dark"] .footer-grid h4 {
  color: #f0f4ff;
}

/* ===== 工具类 ===== */
.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

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

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

.hidden {
  display: none !important;
}

/* ===== 响应式优化 ===== */
@media (max-width: 1024px) {
  .hero {
    padding: 40px 28px;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    border-radius: 24px;
    padding: 32px 20px;
    margin: 16px 0 32px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
    width: 100%;
  }
  
  .breadcrumb {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .footer-grid {
    gap: 28px;
  }
  
  .to-top {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .card {
    padding: 20px 16px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-question {
    padding: 16px 18px;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 18px 16px;
  }
  
  .nav-wrapper {
    padding: 10px 0;
  }
  
  .logo h2 {
    font-size: 1.5rem;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .site-header, .site-footer, .to-top, .hero-cta, .breadcrumb {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card, .faq-item, .howto-block {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 无障碍 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

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

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

/* ===== 选中文字样式 ===== */
::selection {
  background: var(--brand);
  color: white;
  text-shadow: none;
}

/* ===== 渐变边框卡片装饰 ===== */
.card.featured {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--gradient-accent) border-box;
  border: 2px solid transparent;
}

/* ===== 统计数字动画 ===== */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

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

/* ===== 标签组 ===== */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* ===== 图片容器 ===== */
.img-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.img-wrapper:hover img {
  transform: scale(1.03);
}

/* ===== 加载动画 ===== */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* ===== 提示气泡 ===== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--text-primary);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 100;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ===== 结束样式 ===== */
/* 悠悠影院 zpfmomb.cn 专属样式 */
/* 版本 3.0.0 - 2025 */
/* 作者: 设计研发团队 */