/* =========================================================
   金桔影院 · 完整样式表 (style.css)
   风格：现代暗金质感 + 柔和渐变 + 毛玻璃
   响应式 + 暗色模式 + 动效
   ========================================================= */

/* ---------- CSS变量 ---------- */
:root {
  /* 主色调：金桔橙 + 深海蓝 */
  --brand-orange: #f59e0b;
  --brand-orange-light: #fbbf24;
  --brand-orange-dark: #d97706;
  --brand-blue: #1e293b;
  --brand-blue-light: #334155;
  --brand-blue-dark: #0f172a;

  /* 浅色模式 */
  --bg-light: #f6f7f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafd;
  --text-strong: #1f2937;
  --text-body: #3a4a5a;
  --text-sub: #5b6b7c;
  --text-secondary: #7b8b9e;
  --text-link: #1d4ed8;
  --text-link-hover: #1e3a8a;
  --border-light: #e3e8f0;
  --border-light-hover: #cbd5e1;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-border: rgba(226, 232, 240, 0.6);
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --footer-bg: #111c2e;
  --footer-text: #cbd5e1;
  --footer-heading: #f8fafc;
  --button-bg: var(--brand-blue);
  --button-text: #ffffff;
  --button-hover: #0f172a;
  --badge-bg: #eef2f7;
  --tag-bg: #eef2f6;
  --hero-start: #243b53;
  --hero-end: #1a2a3f;
  --hero-text: #ffffff;
  --hero-subtext: #cbd5e1;
  --card-glass: rgba(255, 255, 255, 0.6);
  --card-glass-border: rgba(255, 255, 255, 0.3);
  --input-bg: rgba(255, 255, 255, 0.8);
  --scrollbar-track: #eef2f6;
  --scrollbar-thumb: #cbd5e1;
  --faq-bg: #ffffff;
  --faq-hover: #f8fafc;
  --gradient-soft: linear-gradient(135deg, #f0f4f8 0%, #e9edf2 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* ---------- 暗色模式变量 ---------- */
[data-theme="dark"] {
  --bg-light: #0b1120;
  --bg-card: #1e293b;
  --bg-card-hover: #243244;
  --text-strong: #f8fafc;
  --text-body: #d7e0ea;
  --text-sub: #a5b4c7;
  --text-secondary: #8a9bb0;
  --text-link: #93c5fd;
  --text-link-hover: #bae6fd;
  --border-light: #2d3a4e;
  --border-light-hover: #3d4c63;
  --nav-bg: rgba(15, 23, 42, 0.72);
  --nav-border: rgba(51, 65, 85, 0.6);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --footer-bg: #020617;
  --footer-text: #94a3b8;
  --footer-heading: #f1f5f9;
  --button-bg: #f59e0b;
  --button-text: #0f172a;
  --button-hover: #fbbf24;
  --badge-bg: #2d3a4e;
  --tag-bg: #1e293b;
  --hero-start: #1e293b;
  --hero-end: #0f172a;
  --hero-text: #f8fafc;
  --hero-subtext: #cbd5e1;
  --card-glass: rgba(30, 41, 59, 0.6);
  --card-glass-border: rgba(148, 163, 184, 0.2);
  --input-bg: rgba(30, 41, 59, 0.8);
  --scrollbar-track: #1e293b;
  --scrollbar-thumb: #3d4c63;
  --faq-bg: #1e293b;
  --faq-hover: #243244;
  --gradient-soft: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-card: linear-gradient(145deg, #1e293b 0%, #243244 100%);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-light);
  background-image: var(--gradient-soft);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.75;
  font-size: 1rem;
  transition: background-color 0.35s ease, color 0.35s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* 选中颜色 */
::selection {
  background: rgba(245, 158, 11, 0.25);
  color: var(--text-strong);
}

/* ---------- 标题 ---------- */
h1, h2, h3, h4, h5 {
  color: var(--text-strong);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2::before {
  content: '';
  width: 6px;
  height: 1.4em;
  background: linear-gradient(180deg, var(--brand-orange-light), var(--brand-orange));
  border-radius: 4px;
  flex-shrink: 0;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.6rem;
}

p {
  color: var(--text-body);
  margin: 0.6rem 0;
  line-height: 1.75;
}

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

a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }
}

/* 主内容区 */
main.container {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* 网格系统 */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.75rem;
  margin: 1.5rem 0;
}

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

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

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

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

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light-hover);
  background: var(--bg-card-hover);
}

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

.card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h3::after {
  content: '·';
  color: var(--brand-orange);
  font-weight: 900;
  font-size: 1.5em;
  line-height: 1;
  margin-left: auto;
  opacity: 0.5;
}

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

.card a {
  font-weight: 600;
}

/* ---------- 毛玻璃卡片变体 ---------- */
.glass-card {
  background: var(--card-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--card-glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 导航 ---------- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.logo a {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--text-strong) 30%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.logo span {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.menu {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
}

.menu a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  position: relative;
  text-decoration: none;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-light));
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 0.15rem 0.5rem 0.15rem 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

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

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

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

.search-box button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-sub);
  font-size: 1rem;
  padding: 0.35rem 0.6rem;
  transition: color 0.2s ease, transform 0.2s ease;
  border-radius: 50%;
}

.search-box button:hover {
  color: var(--brand-orange);
  transform: scale(1.1);
}

/* 主题切换按钮 */
.theme-toggle {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 0.45rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  white-space: nowrap;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
  opacity: 0.95;
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  color: #0f172a;
}

/* 导航右侧操作区 */
.nav-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Hero 区域 ---------- */
.hero {
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  margin: 2rem 0;
  color: var(--hero-text);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15), transparent 60%);
  animation: heroGlow 8s ease-in-out infinite;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 70%);
  z-index: -1;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero h1 {
  color: var(--hero-text);
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 750px;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
  color: var(--hero-subtext);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  color: #0f172a;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-sub);
  padding: 0.5rem 0;
  margin: 0.5rem 0 1rem 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb li::after {
  content: '›';
  color: var(--text-secondary);
}

.breadcrumb li:last-child::after {
  display: none;
}

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

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

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--text-strong);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.badge:hover {
  border-color: var(--brand-orange);
  background: rgba(245, 158, 11, 0.1);
  color: var(--brand-orange-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

[data-theme="dark"] .badge {
  background: var(--badge-bg);
  color: var(--text-strong);
}

[data-theme="dark"] .badge:hover {
  border-color: var(--brand-orange);
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-orange-light);
}

/* 卡片内徽章组合 */
.badge-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

/* ---------- 文章列表 ---------- */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  padding: 1.1rem 0.8rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.2s ease, padding-left 0.3s ease;
  border-radius: 8px;
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list li:hover {
  background: var(--faq-hover);
  padding-left: 1.2rem;
}

.article-list time {
  color: var(--text-secondary);
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--tag-bg);
  padding: 0.15rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
}

.article-list a {
  font-size: 1.05rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s ease;
  flex: 1;
}

.article-list a:hover {
  color: var(--brand-orange);
  text-decoration: none;
}

/* 文章列表外层卡片容器 */
.article-section {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* 阅读更多按钮 */
.read-more-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: #ffffff;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
}

[data-theme="dark"] .read-more-btn {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  color: #0f172a;
}

[data-theme="dark"] .read-more-btn:hover {
  background: linear-gradient(135deg, var(--brand-orange-light), var(--brand-orange));
  color: #0f172a;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--faq-bg);
  border-radius: 14px;
  padding: 1.1rem 1.5rem;
  margin: 0.8rem 0;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.faq-item.open {
  border-color: var(--brand-orange);
  background: var(--faq-hover);
}

.faq-question {
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}

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

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

.faq-answer {
  margin-top: 0.8rem;
  color: var(--text-body);
  display: none;
  line-height: 1.7;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-light);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeInUp 0.3s ease;
}

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

/* FAQ容器 */
.faq-container {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* ---------- HowTo ---------- */
.howto-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.howto-card h3 {
  color: var(--brand-orange-dark);
  font-size: 1.1rem;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .howto-card h3 {
  color: var(--brand-orange-light);
}

.howto-card h3:first-child {
  margin-top: 0;
}

.howto-card h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--brand-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.howto-card p {
  font-size: 0.95rem;
  padding-left: 1.2rem;
}

.howto-card ul,
.howto-card ol {
  padding-left: 2.5rem;
  margin: 0.5rem 0;
}

.howto-card li {
  margin: 0.3rem 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 0 0 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-light), var(--brand-orange));
}

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

.footer a:hover {
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer h4 {
  color: var(--footer-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer .col {
  margin-bottom: 1.5rem;
}

.footer .col p {
  color: var(--footer-text);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer .grid-3 {
  gap: 2rem;
}

.copyright {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 2rem;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--footer-text);
  font-size: 0.88rem;
}

.copyright a {
  color: var(--footer-text);
}

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

[data-theme="dark"] .back-to-top {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  color: #0f172a;
}

[data-theme="dark"] .back-to-top:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

/* ---------- 辅助类 ---------- */
.text-subtle {
  color: var(--text-sub);
  font-size: 0.9rem;
}

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

.text-small {
  font-size: 0.85rem;
}

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

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

/* 区块间距 */
.section-spacing {
  margin: 3rem 0;
}

/* 卡片网格内徽章 */
.card .badge {
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* 联系方式样式 */
.contact-info {
  background: var(--gradient-card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.contact-info .icon {
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 营业时间标签 */
.hours-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--brand-orange-dark);
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

[data-theme="dark"] .hours-tag {
  color: var(--brand-orange-light);
}

/* 链接卡片 */
.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: var(--text-body);
}

.link-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.link-card h4 {
  margin-bottom: 0.3rem;
}

/* 信息网格（地图/链接/法律） */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.info-section h4 {
  color: var(--text-strong);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-section h4::before {
  content: '◆';
  color: var(--brand-orange);
  font-size: 0.8rem;
}

.info-section p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.info-section a {
  margin-right: 0.3rem;
}

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

.animate-on-scroll.visible {
  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; }
.delay-5 { transition-delay: 0.5s; }

/* 悬停缩放动画 */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 图片悬停效果 */
.img-zoom {
  overflow: hidden;
  border-radius: 12px;
}

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

.img-zoom:hover img {
  transform: scale(1.05);
}

/* 渐变背景动画 */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-animate {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b, #d97706);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
}

/* ---------- 响应式 ---------- */

/* 平板及以下 */
@media (max-width: 1024px) {
  .nav-wrap {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .menu {
    justify-content: center;
    gap: 1rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

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

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

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
  }

  h2::before {
    height: 1.2em;
  }

  .hero {
    padding: 2rem 1.5rem;
    border-radius: 18px;
    margin: 1.5rem 0;
  }

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

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

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
  }

  .nav-wrap {
    flex-direction: column;
    gap: 0.6rem;
  }

  .menu {
    gap: 0.5rem;
  }

  .menu a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .search-box {
    width: 100%;
    max-width: 300px;
  }

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

  .search-box input:focus {
    width: 100%;
  }

  .card {
    padding: 1.25rem;
  }

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

  .article-list li:hover {
    padding-left: 0.8rem;
  }

  .article-list time {
    font-size: 0.78rem;
  }

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

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

  .footer {
    padding-top: 2.5rem;
  }

  .footer .grid-3 {
    gap: 1.5rem;
  }

  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .howto-card {
    padding: 1.25rem;
  }
}

/* 小手机 */
@media (max-width: 480px) {
  .hero {
    padding: 1.75rem 1.25rem;
  }

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

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

  .grid-2,
  .grid-3 {
    gap: 1rem;
  }

  .card {
    padding: 1.1rem;
  }

  .theme-toggle {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }

  .menu a {
    font-size: 0.85rem;
  }

  .article-list a {
    font-size: 0.95rem;
  }

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

  .faq-answer {
    font-size: 0.9rem;
  }
}

/* ---------- 暗色模式额外修正 ---------- */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .hero h1 {
  color: #f8fafc;
}

[data-theme="dark"] .hero p {
  color: #cbd5e1;
}

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

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

[data-theme="dark"] .footer h4::after {
  background: var(--brand-orange);
}

[data-theme="dark"] .card h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .card h3::after {
  color: var(--brand-orange);
}

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

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

[data-theme="dark"] .logo a {
  background: linear-gradient(135deg, #f8fafc 30%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .logo span {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .menu a {
  color: #cbd5e1;
}

[data-theme="dark"] .menu a:hover {
  color: var(--brand-orange-light);
}

[data-theme="dark"] .hero-badge {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
  color: #0f172a;
}

[data-theme="dark"] .search-box {
  background: rgba(30, 41, 59, 0.8);
}

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

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

[data-theme="dark"] .badge {
  background: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .badge:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-orange-light);
}

[data-theme="dark"] .faq-item {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .faq-item:hover {
  border-color: var(--brand-orange);
  background: #243244;
}

[data-theme="dark"] .faq-item.open {
  border-color: var(--brand-orange);
  background: #243244;
}

[data-theme="dark"] .faq-question {
  color: #f1f5f9;
}

[data-theme="dark"] .faq-answer {
  color: #cbd5e1;
  border-top-color: #334155;
}

[data-theme="dark"] .info-section {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .info-section h4 {
  color: #f1f5f9;
}

[data-theme="dark"] .info-section h4::before {
  color: var(--brand-orange);
}

[data-theme="dark"] .article-list li {
  border-bottom-color: #334155;
}

[data-theme="dark"] .article-list li:hover {
  background: rgba(30, 41, 59, 0.6);
}

[data-theme="dark"] .article-list time {
  background: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .article-list a {
  color: #e2e8f0;
}

[data-theme="dark"] .article-list a:hover {
  color: var(--brand-orange-light);
}

[data-theme="dark"] .howto-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .howto-card h3 {
  color: var(--brand-orange-light);
}

[data-theme="dark"] .howto-card p,
[data-theme="dark"] .howto-card li {
  color: #cbd5e1;
}

[data-theme="dark"] .contact-info {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .contact-info p {
  color: #cbd5e1;
}

[data-theme="dark"] .contact-info .icon {
  background: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .link-card {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .link-card:hover {
  border-color: var(--brand-orange);
}

[data-theme="dark"] .link-card h4 {
  color: #f1f5f9;
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

/* ---------- 打印样式 ---------- */
@media print {
  .sticky-nav,
  .back-to-top,
  .search-box,
  .theme-toggle,
  .footer {
    display: none !important;
  }

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

  .card,
  .faq-item,
  .info-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .hero {
    background: #f8f9fa;
    color: #000000;
    padding: 1.5rem;
  }

  .hero h1,
  .hero p {
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 焦点可见性 ---------- */
:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 安全区域 ---------- */
@supports (padding: max(0px)) {
  .sticky-nav {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .back-to-top {
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    right: max(1.5rem, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* ---------- 高对比度模式 ---------- */
@media (prefers-contrast: high) {
  :root {
    --text-body: #000000;
    --text-strong: #000000;
    --text-sub: #333333;
    --text-secondary: #444444;
    --border-light: #666666;
  }

  .card,
  .faq-item,
  .info-section,
  .hero {
    border-width: 2px;
  }
}

/* ---------- 暗色模式下的滚动条 ---------- */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1e293b;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #4a5a6e;
  border: 2px solid #1e293b;
  background-clip: content-box;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
  border: 2px solid #1e293b;
  background-clip: content-box;
}

/* ---------- 结语 ---------- */
/* 金桔影院 · 让每一部好电影都值得被发现 */