:root {
  --bg: #f2f5ff;
  --surface: #ffffff;
  --text: #1d2742;
  --muted: #7381a1;
  --primary: #5f6fff;
  --secondary: #25c8a4;
  --accent: #ff8f66;
  --nav: #0d1b38;
  --shadow: 0 14px 36px rgba(19, 35, 76, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: radial-gradient(circle at 10% 0%, #edf3ff 0%, #f7f8ff 38%, #f2f4fb 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.top-ticker {
  background: linear-gradient(90deg, #0b1630, #12264f);
  color: #dce7ff;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.ticker-link {
  color: #bde1ff;
  font-weight: 600;
}

.site-navbar {
  background: rgba(13, 27, 56, 0.86);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.site-navbar.scrolled {
  background: rgba(11, 22, 48, 0.96);
  box-shadow: 0 10px 24px rgba(7, 15, 35, 0.4);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}

.logo-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-navbar .nav-link {
  color: rgba(235, 241, 255, 0.9);
  font-weight: 500;
  padding: 0.6rem 0.9rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #ffffff;
}

.search-wrap {
  width: 240px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  align-items: center;
  gap: 0.55rem;
  color: #d9e3ff;
}

.search-wrap input {
  background: transparent;
  border: 0;
  color: #f3f7ff;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.search-wrap input::placeholder {
  color: #c7d4f6;
}

.btn-brand {
  background: linear-gradient(135deg, var(--primary), #7e51ff);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
}

.btn-brand:hover {
  color: #fff;
  filter: brightness(1.08);
}

.mobile-canvas .nav-link {
  color: #e7eeff;
  padding: 0.45rem 0;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(11, 17, 35, 0.82) 0%, rgba(14, 24, 58, 0.64) 48%, rgba(35, 16, 70, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #f2f6ff;
  padding: 2.5rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.hero-content p {
  color: rgba(234, 241, 255, 0.9);
  max-width: 62ch;
  margin-bottom: 0;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  min-width: 88px;
}

.hero-metrics strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-metrics span {
  font-size: 0.82rem;
  color: rgba(238, 244, 255, 0.82);
}

.glass-note {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: #eff4ff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.glass-note h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.glass-note p {
  font-size: 0.92rem;
  color: rgba(241, 247, 255, 0.9);
}

.glass-note small {
  color: rgba(226, 236, 255, 0.86);
}

.quick-item {
  background: var(--surface);
  border: 1px solid #e8ecfa;
  border-radius: 14px;
  height: 100%;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(27, 45, 93, 0.07);
}

.quick-item i {
  font-size: 1.25rem;
  color: var(--primary);
}

.quick-item:hover {
  transform: translateY(-3px);
  border-color: #d6def9;
}

.content-section {
  padding-top: 0.2rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #122247;
}

.section-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.more-link {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.film-card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 26px rgba(31, 49, 90, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.film-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(26, 44, 89, 0.18);
}

.poster-frame {
  position: relative;
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.tag-left,
.tag-right {
  position: absolute;
  top: 10px;
  font-size: 0.72rem;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.2px;
}

.tag-left {
  left: 10px;
  background: rgba(38, 197, 165, 0.92);
}

.tag-right {
  right: 10px;
  background: rgba(18, 31, 63, 0.82);
}

.film-card .card-body {
  padding: 0.72rem;
}

.film-title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a2848;
}

.film-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.vip-box {
  border-radius: 24px;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(120deg, #1b2963, #5743c2 52%, #2ba7c2 100%);
  box-shadow: 0 16px 34px rgba(35, 40, 100, 0.28);
}

.vip-box h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.vip-box p {
  margin: 0;
  color: rgba(235, 243, 255, 0.9);
}

.faq-accordion .accordion-item {
  border: 1px solid #e7ebf8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: #1f2b4a;
  background: #fff;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: #eef2ff;
  color: #152649;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
}

.friend-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e6ebfc;
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(25, 41, 80, 0.08);
}

.friend-box h2 {
  font-size: 1.35rem;
  margin: 0;
}

.friend-box p {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.friend-grid a {
  background: #f3f6ff;
  border: 1px solid #dde6ff;
  border-radius: 10px;
  padding: 0.62rem 0.85rem;
  color: #2a3b67;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.friend-grid a:hover {
  border-color: #c8d5ff;
  background: #edf2ff;
}

.site-footer {
  background: linear-gradient(180deg, #101a35, #0a132a);
  color: #d3defc;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
}

.site-footer h3 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d3defc;
}

.footer-links a:hover,
.site-footer a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(216, 226, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e4ecff;
}

.footer-line {
  margin: 1.4rem 0 1rem;
  border-color: rgba(196, 210, 255, 0.2);
}

.site-footer p {
  color: #c3cff0;
  font-size: 0.9rem;
}

.site-footer p a {
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #7f52ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(60, 83, 196, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1040;
}

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

.trailer-modal {
  background: #101c3a;
  color: #dce7ff;
  border: 1px solid rgba(222, 234, 255, 0.2);
}

.trailer-modal .modal-header {
  border-bottom-color: rgba(222, 234, 255, 0.2);
}

.trailer-cover {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.trailer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(5, 13, 28, 0.46);
  color: #ffffff;
}

.play-mask i {
  font-size: 2rem;
}

@media (max-width: 991.98px) {
  .hero-panel {
    min-height: 470px;
  }

  .hero-content {
    padding: 1.4rem;
  }

  .vip-box {
    padding: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .hero-panel {
    min-height: 430px;
  }

  .section-head h2 {
    font-size: 1.3rem;
  }

  .friend-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .top-ticker {
    font-size: 0.78rem;
  }

  .hero-content h1 {
    font-size: 1.55rem;
  }

  .hero-metrics {
    gap: 0.9rem;
  }

  .hero-metrics strong {
    font-size: 1rem;
  }

  .quick-item {
    min-height: 80px;
  }

  .film-title {
    font-size: 0.9rem;
  }
}