/* Base */
:root {
  --bg: #f2f6ff;
  --surface: #ffffff;
  --surface-soft: #eaf1ff;
  --text: #182033;
  --muted: #6e7690;
  --primary: #3b63ff;
  --primary-deep: #111a3b;
  --primary-deeper: #0a1028;
  --accent: #ff7b5d;
  --line: #dfe6fa;
  --shadow: 0 14px 32px rgba(18, 34, 86, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header .navbar {
  background: linear-gradient(90deg, var(--primary-deeper), #1a2661 58%, #27357a);
  padding: 0.8rem 0;
  transition: all 0.25s ease;
}

.site-header .navbar.scrolled {
  box-shadow: 0 10px 24px rgba(2, 10, 37, 0.35);
}

.navbar-brand {
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #fff;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff2d6, var(--accent));
  box-shadow: 0 0 0 4px rgba(255, 123, 93, 0.2);
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn-guide,
.btn-accent {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.btn-guide:hover,
.btn-accent:hover {
  background: #ff6a49;
  border-color: #ff6a49;
  color: #fff;
}

.offcanvas {
  background: #111a3b;
  color: #fff;
}

.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 0;
}

.offcanvas .offcanvas-title a {
  color: #fff;
}

.offcanvas .btn-close {
  filter: invert(1);
}

/* Hero */
.hero-section {
  background: #0e1431;
}

#heroCarousel .carousel-item {
  height: 66vh;
  min-height: 420px;
  position: relative;
}

#heroCarousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 16, 40, 0.78), rgba(10, 16, 40, 0.35) 52%, rgba(10, 16, 40, 0.18));
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#heroCarousel .carousel-caption {
  z-index: 2;
  left: 9%;
  right: auto;
  bottom: 20%;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: #d8e0ff;
  letter-spacing: 0.04em;
}

#heroCarousel h1,
#heroCarousel h2 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

#heroCarousel p {
  color: rgba(255, 255, 255, 0.9);
}

.carousel-indicators [data-bs-target] {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 99px;
}

/* Ticker */
.ticker-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.ticker-label {
  background: #1e2a5f;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
}

.news-chip {
  font-size: 0.88rem;
  color: #223267;
  background: #edf2ff;
  border: 1px solid #dbe5ff;
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
}

.news-chip:hover {
  background: #dfe9ff;
}

/* Section Heads */
.section-head h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

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

.more-link {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Feature Cards */
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 17, 44, 0.82), rgba(12, 17, 44, 0.12));
}

.feature-body {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  z-index: 2;
  color: #fff;
}

.feature-body h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-body p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.92;
}

/* Catalog */
.catalog-section {
  background: transparent;
}

.section-alt {
  background: #eef3ff;
}

.media-card {
  border: 1px solid #e7ecfb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(25, 44, 98, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(25, 44, 98, 0.14);
}

.poster-wrap {
  position: relative;
}

.poster-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(16, 24, 55, 0.82);
  color: #fff;
  font-size: 0.76rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.media-card .card-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

.media-card .card-text {
  font-size: 0.84rem;
  margin: 0;
  color: #414a63;
}

/* FAQ */
.faq-intro {
  background: var(--surface);
  border: 1px solid #e4eafc;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(21, 37, 85, 0.08);
}

.faq-intro h2 {
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.update-note {
  color: var(--primary);
  font-weight: 600;
}

.accordion-item {
  border: 1px solid #e4eafc;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.accordion-button {
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-deep);
  background: #edf2ff;
}

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

/* App CTA */
.cta-panel {
  border-radius: 20px;
  background: linear-gradient(135deg, #1d2d73, #3f51a8 58%, #5c6ce2);
  color: #fff;
  padding: 2rem;
  box-shadow: 0 14px 36px rgba(20, 35, 84, 0.28);
}

.cta-panel h2 {
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
}

/* Friend links */
.link-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.friend-link {
  display: block;
  text-align: center;
  background: #f4f7ff;
  border: 1px dashed #ccd8ff;
  border-radius: 12px;
  padding: 0.75rem 0.45rem;
  color: #32457f;
  font-size: 0.9rem;
}

.friend-link:hover {
  background: #eaf0ff;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--primary-deeper), #141f4b);
  color: rgba(255, 255, 255, 0.92);
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 0.5rem;
}

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: #fff;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(255, 123, 93, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1050;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Modal */
.modal-content {
  border-radius: 16px;
  border: 1px solid #e5ebff;
}

.modal-header,
.modal-footer {
  border-color: #eef2ff;
}

/* Responsive */
@media (max-width: 991.98px) {
  #heroCarousel .carousel-caption {
    left: 7%;
    right: 7%;
    max-width: 100%;
  }

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

  .poster-wrap img {
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  #heroCarousel .carousel-item {
    height: 58vh;
    min-height: 360px;
  }

  #heroCarousel h1,
  #heroCarousel h2 {
    font-size: 1.45rem;
  }

  #heroCarousel p {
    font-size: 0.92rem;
  }

  .feature-card img {
    height: 190px;
  }

  .poster-wrap img {
    height: 205px;
  }

  .cta-panel {
    padding: 1.4rem;
  }
}