```css
/* ============================================
   午夜影视 - 完整主题样式
   风格：暗夜影院 / 渐变霓虹 / 毛玻璃质感
   ============================================ */

/* ---------- CSS 变量与基础重置 ---------- */
:root {
  --primary: #e94560;
  --primary-glow: rgba(233, 69, 96, 0.35);
  --secondary: #0f3460;
  --accent: #533483;
  --dark-bg: #0a0a14;
  --dark-card: rgba(26, 26, 46, 0.85);
  --light-bg: #f0edea;
  --light-card: rgba(255, 255, 255, 0.88);
  --text-light: #e8e6e3;
  --text-dark: #1a1a1a;
  --border-light: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(0, 0, 0, 0.08);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --blur: blur(16px);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

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

body.dark .article-card,
body.dark .post-item,
body.dark .widget,
body.dark .faq-item,
body.dark .friend-links-box {
  background: var(--dark-card);
  border-color: var(--border-light);
  box-shadow: var(--shadow-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

body.dark .article-card h3,
body.dark .article-card h4 {
  color: #f0e6e6;
}

body.dark .article-card p {
  color: #b8b4b0;
}

body.dark .faq-q {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
}

body.dark .faq-a {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-light);
}

body.dark .breadcrumb {
  color: #888;
}

body.dark .widget li {
  border-bottom-color: var(--border-light);
}

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

/* ---------- 导航栏 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

body.dark .header {
  background: rgba(10, 10, 20, 0.95);
}

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

.logo a {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 30%, #e94560 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s;
}

.logo a:hover {
  transform: scale(1.03);
}

.logo span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 30px;
  transition: var(--transition);
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover {
  background: rgba(233, 69, 96, 0.15);
  color: #fff;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 4px 6px 4px 16px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 6px 8px;
  width: 140px;
  font-size: 0.88rem;
}

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

.search-box button {
  background: linear-gradient(135deg, var(--primary), #c62f4a);
  border: none;
  border-radius: 30px;
  padding: 6px 16px;
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(233, 69, 96, 0.3);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.dark-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ddd;
  border-radius: 30px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  background: rgba(10, 10, 20, 0.98);
  backdrop-filter: blur(20px);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 12px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: slideDown 0.3s ease;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1rem;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--primary);
}

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

/* ---------- 渐变 Banner ---------- */
.banner {
  background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #0f3460 100%);
  color: #fff;
  padding: 40px 0 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 8s infinite alternate;
}

.banner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 10s infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.banner-slide {
  display: none;
  animation: fadeIn 0.8s ease;
}

.banner-slide.active {
  display: block;
}

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

.banner-content {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.banner-text {
  flex: 1;
}

.banner-text h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff 20%, #ff8a9a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.banner-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.banner-cta {
  background: linear-gradient(135deg, var(--primary), #c62f4a);
  color: #fff;
  padding: 12px 32px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(233, 69, 96, 0.35);
  border: none;
}

.banner-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(233, 69, 96, 0.5);
}

.banner-svg {
  flex-shrink: 0;
  width: 220px;
  height: 140px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.banner-svg:hover {
  transform: scale(1.03) rotate(1deg);
}

.banner-dots {
  text-align: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.5);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 0.9rem;
  padding: 16px 0;
  color: #888;
}

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

.breadcrumb a:hover {
  color: #c62f4a;
}

/* ---------- 主布局 ---------- */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin: 30px 0 40px;
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 文章卡片 ---------- */
.article-card {
  background: var(--light-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: 28px;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.article-card h2 {
  color: var(--primary);
  font-size: 1.65rem;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.article-card h3 {
  font-size: 1.35rem;
  margin: 20px 0 10px;
  color: inherit;
  font-weight: 600;
}

.article-card h4 {
  font-size: 1.1rem;
  margin: 14px 0 8px;
  color: #333;
  font-weight: 600;
}

body.dark .article-card h4 {
  color: #ddd;
}

.article-card p {
  margin-bottom: 14px;
  color: #555;
  line-height: 1.85;
}

body.dark .article-card p {
  color: #aaa;
}

.article-card ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.article-card ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta::before {
  content: "📅";
  font-size: 0.8rem;
}

/* ---------- 文章网格 ---------- */
.grid-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 600px) {
  .grid-articles {
    grid-template-columns: 1fr;
  }
}

.post-item {
  background: var(--light-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.post-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.post-item h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: inherit;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.3s;
}

.post-item:hover h4 {
  color: var(--primary);
}

.post-item p {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.7;
}

body.dark .post-item p {
  color: #999;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 10px;
  transition: var(--transition);
  position: relative;
}

.read-more::after {
  content: "→";
  margin-left: 4px;
  transition: transform 0.3s;
  display: inline-block;
}

.read-more:hover {
  color: #c62f4a;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

@media (max-width: 1024px) {
  .sidebar {
    position: static;
  }
}

.widget {
  background: var(--light-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.widget:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.widget h3 {
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 16px;
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  transition: padding-left 0.3s;
}

body.dark .widget li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.widget li:hover {
  padding-left: 8px;
}

.widget li a {
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s;
  display: block;
}

.widget li a:hover {
  color: var(--primary);
}

.widget p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 6px;
  line-height: 1.7;
}

body.dark .widget p {
  color: #aaa;
}

/* ---------- FAQ 样式 ---------- */
.faq-item {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--light-card);
  border: 1px solid var(--border-dark);
  transition: var(--transition);
}

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

.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.02);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
  color: inherit;
  font-size: 0.95rem;
}

.faq-q::after {
  content: "＋";
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-q::after {
  transform: rotate(45deg);
}

.faq-q:hover {
  background: rgba(233, 69, 96, 0.06);
}

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  background: rgba(0, 0, 0, 0.01);
  border-top: 1px solid transparent;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.8;
}

body.dark .faq-a {
  color: #aaa;
}

.faq-item.active .faq-a {
  padding: 16px 20px;
  max-height: 300px;
  border-top-color: var(--border-dark);
}

/* ---------- 友情链接 & 底部信息 ---------- */
.friend-links-box {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  background: var(--light-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.friend-links-box a {
  color: var(--primary);
  text-decoration: none;
  margin-right: 12px;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.friend-links-box a:hover {
  color: #c62f4a;
  text-decoration: underline;
}

/* ---------- 页脚 ---------- */
.footer {
  background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 100%);
  color: #bbb;
  padding: 50px 0 30px;
  margin-top: 60px;
  position: relative;
}

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

.footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  padding: 6px 0;
}

.footer-grid li a {
  font-size: 0.9rem;
}

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

.footer-bottom p {
  margin-bottom: 6px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), #c62f4a);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
  z-index: 999;
  border: none;
}

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

.back-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

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

.article-card,
.post-item,
.widget,
.faq-item {
  animation: fadeInUp 0.6s ease both;
}

.post-item:nth-child(2),
.post-item:nth-child(4),
.post-item:nth-child(6),
.post-item:nth-child(8),
.post-item:nth-child(10) {
  animation-delay: 0.1s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav-links,
  .search-box {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    padding: 12px 0;
  }

  .logo a {
    font-size: 1.5rem;
  }

  .banner-content {
    flex-direction: column;
    gap: 24px;
  }

  .banner-text h2 {
    font-size: 1.9rem;
  }

  .banner-svg {
    width: 100%;
    height: 120px;
  }

  .article-card {
    padding: 20px;
  }

  .article-card h2 {
    font-size: 1.4rem;
  }

  .container {
    padding: 0 16px;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .dark-toggle {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .friend-links-box {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .banner-text h2 {
    font-size: 1.6rem;
  }

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

  .banner-cta {
    padding: 10px 24px;
    font-size: 0.88rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .widget {
    padding: 18px;
  }
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #c62f4a, var(--accent));
  background-clip: content-box;
  border: 2px solid transparent;
}

/* ---------- 选中文本 ---------- */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- 平滑滚动锚点偏移 ---------- */
#home,
#articles,
#faq,
#howto,
#contact {
  scroll-margin-top: 90px;
}

/* ---------- 焦点可见性 ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- 减少动效偏好 ---------- */
@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;
  }
}
```