html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
section { scroll-margin-top: 24px; }
img { max-width: 100%; height: auto; display: block; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #0a0e20;
  color: #e8eaf6;
  overflow-x: hidden;
  line-height: 1.7;
}

/* 左侧固定侧栏 */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(160deg, #171039 0%, #0a0e20 100%);
  border-right: 1px solid rgba(167, 139, 250, 0.25);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  z-index: 200;
  transform: translateX(0);
  transition: transform 0.3s ease;
}
.sidebar .brand {
  color: #a78bfa;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 32px;
  text-align: center;
}
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar nav a {
  color: #9aa3c7;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.sidebar nav a::before { content: "★ "; color: #f5c451; opacity: 0.6; }
.sidebar nav a:hover { background: rgba(108, 92, 231, 0.18); color: #e8eaf6; transform: translateX(2px); }
.sidebar nav a.active { background: rgba(108, 92, 231, 0.28); color: #a78bfa; }
.sidebar .to-top {
  color: #9aa3c7;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid rgba(154, 163, 199, 0.2);
}

/* 汉堡与遮罩（默认隐藏） */
.menu-toggle { display: none; }
.overlay { display: none; }

/* 主内容 */
.main { margin-left: 240px; padding: 40px 48px 56px; }
.main section { margin-bottom: 72px; }

h1 {
  font-size: 44px;
  color: #fff;
  letter-spacing: 3px;
  margin: 18px 0 6px;
}
h2 {
  font-size: 30px;
  color: #a78bfa;
  margin: 20px 0 14px;
  border-left: 4px solid #f5c451;
  padding-left: 14px;
  letter-spacing: 1px;
}
h3 { color: #e8eaf6; font-size: 18px; margin: 14px 0 6px; }
p { color: #c9d0ea; margin: 8px 0; }

#subtitle {
  color: #f5c451;
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.lead { font-size: 17px; color: #d8ddf5; max-width: 720px; }
#title-desc {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(108, 92, 231, 0.12);
  border-radius: 12px;
  border-left: 3px solid #6c5ce7;
  font-size: 15px;
  color: #c3cbe8;
  max-width: 820px;
}

.hero-img, .block-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(108, 92, 231, 0.2);
  margin-bottom: 18px;
}

.stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 150px;
  text-align: center;
}
.stat strong { display: block; color: #a78bfa; font-size: 20px; }
.stat span { color: #9aa3c7; font-size: 13px; }

.quick-link { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: #f5c451;
  color: #0a0e20;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(245, 196, 81, 0.3); }
.btn.ghost { background: transparent; color: #a78bfa; border: 1px solid #a78bfa; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.chip {
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #9aa3c7;
  cursor: pointer;
  border: 1px solid rgba(154, 163, 199, 0.25);
}
.chip.active, .chip:hover { background: rgba(108, 92, 231, 0.35); color: #fff; border-color: #6c5ce7; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.film-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.film-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(108, 92, 231, 0.35); }
.film-card h3 { font-size: 17px; margin-top: 0; }
.film-card p { font-size: 14px; color: #9aa3c7; }
.tag {
  display: inline-block;
  background: rgba(245, 196, 81, 0.16);
  color: #f5c451;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 6px;
}

.note { font-size: 14px; color: #9aa3c7; font-style: italic; margin-top: 12px; }

.timeline { list-style: none; margin: 16px 0; }
.timeline li {
  padding: 10px 0 10px 22px;
  border-left: 2px solid rgba(108, 92, 231, 0.5);
  margin: 8px 0;
  color: #c9d0ea;
}
.timeline li strong { color: #f5c451; margin-right: 10px; }

.guide-col h3 { color: #f5c451; font-size: 17px; margin-top: 16px; }
.guide-col p { margin-left: 4px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 10px;
  padding: 14px 18px;
}
summary { cursor: pointer; color: #d8ddf5; font-weight: 600; }
details p { margin-top: 10px; color: #9aa3c7; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.tag-cloud a {
  background: rgba(108, 92, 231, 0.2);
  color: #d8ddf5;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  transition: background 0.2s, color 0.2s;
}
.tag-cloud a:hover { background: rgba(108, 92, 231, 0.5); color: #fff; }

footer {
  border-top: 1px solid rgba(154, 163, 199, 0.2);
  padding-top: 22px;
  margin-top: 40px;
  text-align: center;
}
footer p { color: #9aa3c7; font-size: 14px; }
footer a { color: #a78bfa; text-decoration: none; }
.foot-keywords { font-size: 13px; color: #7e86ad; margin-top: 8px; }

/* 手机适配 */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: fixed;
    top: 14px; left: 14px;
    z-index: 300;
    background: rgba(10, 14, 32, 0.9);
    border: 1px solid rgba(167, 139, 250, 0.5);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 22px; height: 2px;
    background: #a78bfa;
    border-radius: 2px;
  }
  .overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
  }
  .overlay.show { opacity: 1; visibility: visible; }

  .sidebar {
    transform: translateX(-100%);
    width: 240px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 40px rgba(108, 92, 231, 0.4); }

  .main {
    margin-left: 0;
    padding: 70px 18px 40px;
  }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  #subtitle { font-size: 16px; }
  .lead { font-size: 15px; }
  .stats { gap: 10px; }
  .stat { min-width: 110px; padding: 10px 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .film-card, details { padding: 12px 14px; }
  body { font-size: 15px; }
}
