```css
/* ===== 午夜影院 全局样式 ===== */
:root {
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --text-primary-light: #1f2937;
  --text-secondary-light: #334155;
  --text-heading-light: #0b1e33;
  --text-link-light: #0a4b7a;
  --card-bg-light: #ffffff;
  --border-light: #d1d9e6;
  --footer-bg-light: #1e293b;
  --footer-text-light: #e2e8f0;
  --text-primary-dark: #e2e8f0;
  --text-secondary-dark: #cbd5e1;
  --text-heading-dark: #f8fafc;
  --card-bg-dark: #1e293b;
  --border-dark: #334155;
  --footer-bg-dark: #0b1522;
  --footer-text-dark: #cbd5e1;
  --accent: #0a4b7a;
  --accent-hover: #0d5f9e;
  --gradient-start: #0b2a45;
  --gradient-end: #123a5e;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary-light);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* 暗黑模式 */
body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);
}

/* 标题 */
h1, h2, h3, h4 {
  color: var(--text-heading-light);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: var(--text-heading-dark);
}

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

body.dark-mode a {
  color: #93c5fd;
}

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

/* 辅助文字 */
.muted, .article-meta, .date, .author, .small-text {
  color: var(--text-secondary-light);
}

body.dark-mode .muted,
body.dark-mode .article-meta,
body.dark-mode .date,
body.dark-mode .author {
  color: var(--text-secondary-dark);
}

/* ===== 卡片 ===== */
.card, .article-card, .faq-item, .step-card {
  background-color: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

body.dark-mode .card,
body.dark-mode .article-card,
body.dark-mode .faq-item,
body.dark-mode .step-card {
  background-color: var(--card-bg-dark);
  border-color: var(--border-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.card:hover, .article-card:hover, .step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 75, 122, 0.3);
}

body.dark-mode .card:hover,
body.dark-mode .article-card:hover,
body.dark-mode .step-card:hover {
  border-color: rgba(147, 197, 253, 0.3);
}

/* ===== 导航栏 ===== */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: var(--transition);
}

body.dark-mode .navbar {
  background: rgba(30, 41, 59, 0.7);
  border-bottom-color: rgba(51, 65, 85, 0.5);
}

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

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  margin-left: 0.5rem;
  font-weight: 500;
  color: var(--text-primary-light);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

body.dark-mode .nav-links a {
  color: var(--text-primary-dark);
}

.nav-links a:hover {
  background: rgba(10, 75, 122, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

body.dark-mode .nav-links a:hover {
  background: rgba(147, 197, 253, 0.1);
}

/* ===== 按钮 ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(10, 75, 122, 0.3);
}

body.dark-mode .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #0f172a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(10, 75, 122, 0.4);
}

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(145deg, var(--footer-bg-light), #0f1a2b);
  color: var(--footer-text-light);
  padding: 2.5rem 2rem 1rem;
  margin-top: 3rem;
  position: relative;
}

body.dark-mode .footer {
  background: linear-gradient(145deg, var(--footer-bg-dark), #0a1522);
  color: var(--footer-text-dark);
}

.footer a {
  color: #b0c4de;
  transition: color 0.3s ease;
}

body.dark-mode .footer a {
  color: #9ab3d1;
}

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

/* ===== 表格 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

body.dark-mode table {
  background-color: var(--card-bg-dark);
}

th {
  background: linear-gradient(135deg, #e6edf5, #dbe5f0);
  color: #1e293b;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
}

body.dark-mode th {
  background: linear-gradient(135deg, #293548, #1e293b);
  color: #f1f5f9;
}

td, th {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
}

body.dark-mode td,
body.dark-mode th {
  border-color: var(--border-dark);
}

tr:hover td {
  background: rgba(10, 75, 122, 0.03);
}

body.dark-mode tr:hover td {
  background: rgba(147, 197, 253, 0.05);
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(145deg, var(--gradient-start), var(--gradient-end));
  color: #f0f9ff;
  padding: 4rem 2rem;
  border-radius: 0 0 30px 30px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

body.dark-mode .hero {
  background: linear-gradient(145deg, #0a1e2f, #0d2a3f);
  color: #e0f2fe;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(224, 159, 61, 0.2), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(10, 75, 122, 0.4), transparent 70%);
  pointer-events: none;
}

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

.hero p {
  color: #e5eef8;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hero .highlight {
  color: #ffd700;
  font-weight: 600;
}

/* ===== FAQ 样式 ===== */
.faq-item {
  margin-bottom: 0.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-heading-light);
  background: rgba(10, 75, 122, 0.02);
  border-radius: var(--radius-md);
  transition: var(--transition);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark-mode .faq-item summary {
  color: var(--text-heading-dark);
  background: rgba(147, 197, 253, 0.05);
}

.faq-item summary::after {
  content: '▾';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item details[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: rgba(10, 75, 122, 0.06);
}

.faq-answer {
  padding: 0.5rem 1.25rem 1.25rem;
  color: var(--text-primary-light);
  border-top: 1px solid var(--border-light);
}

body.dark-mode .faq-answer {
  color: var(--text-primary-dark);
  border-top-color: var(--border-dark);
}

/* ===== 搜索框 ===== */
.search-input {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  transition: var(--transition);
  outline: none;
  min-width: 200px;
}

body.dark-mode .search-input {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border-color: #475569;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 75, 122, 0.1);
}

/* ===== 暗色模式切换按钮 ===== */
.dark-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-primary-light);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

body.dark-mode .dark-toggle {
  border-color: #475569;
  color: var(--text-primary-dark);
  background: rgba(0, 0, 0, 0.2);
}

.dark-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== 毛玻璃效果 ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

body.dark-mode .glass-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(51, 65, 85, 0.5);
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

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

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

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

/* ===== 文章卡片 hover 效果 ===== */
.article-card {
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e09f3d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.article-card h3 {
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.article-card:hover h3 {
  color: var(--accent);
}

/* ===== 联系区域 ===== */
#contact {
  background: linear-gradient(135deg, rgba(10, 75, 122, 0.03), rgba(224, 159, 61, 0.03));
  border-radius: var(--radius-lg);
  margin: 0 2rem;
}

/* ===== 友情链接 ===== */
.friend-links a {
  display: inline-block;
  margin: 0.3rem 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(10, 75, 122, 0.05);
  transition: var(--transition);
}

.friend-links a:hover {
  background: rgba(10, 75, 122, 0.1);
  transform: translateY(-1px);
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }

  .nav-links {
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 0.5rem;
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
  }

  .search-input {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero {
    padding: 2.5rem 1rem;
    border-radius: 0 0 20px 20px;
  }

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

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

  .card, .article-card, .faq-item, .step-card {
    padding: 1rem;
  }

  #contact {
    margin: 0 1rem;
    padding: 1.5rem 1rem;
  }

  .footer {
    padding: 2rem 1rem 1rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 0.8rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

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

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

  .card, .article-card, .faq-item, .step-card {
    padding: 0.8rem;
  }

  .btn-primary {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .search-input {
    min-width: 100%;
  }
}

/* ===== 暗色模式细节优化 ===== */
body.dark-mode .navbar .dark-toggle {
  color: #e2e8f0;
}

body.dark-mode .hero .highlight {
  color: #ffd700;
}

body.dark-mode .faq-item summary::after {
  color: #60a5fa;
}

body.dark-mode .article-card:hover h3 {
  color: #60a5fa;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent), #e09f3d);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-hover), #f0b04a);
}

/* ===== 选中文本样式 ===== */
::selection {
  background: rgba(10, 75, 122, 0.2);
  color: var(--text-heading-light);
}

body.dark-mode::selection {
  background: rgba(147, 197, 253, 0.2);
  color: var(--text-heading-dark);
}

/* ===== 打印样式 ===== */
@media print {
  .navbar, .footer, .back-to-top, .search-input, .dark-toggle {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card, .article-card, .faq-item, .step-card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
```