:root {
  --bg: #f5f6ff;
  --bg-soft: #fffdf8;
  --ink: #1f2437;
  --muted: #667085;
  --primary: #6b5cff;
  --secondary: #29b8a6;
  --warm: #ffb865;
  --line: #e7e8f3;
  --card-shadow: 0 14px 35px rgba(38, 43, 79, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: radial-gradient(1300px 500px at 100% -10%, rgba(107, 92, 255, 0.15), transparent), radial-gradient(1200px 600px at -10% 100%, rgba(41, 184, 166, 0.13), transparent), linear-gradient(180deg, var(--bg), var(--bg-soft));
  line-height: 1.6;
}

a {
  color: inherit;
}

.top-ticker {
  background: #0f1324;
  color: #d2d8f5;
  font-size: 0.8125rem;
  padding: 0.45rem 0;
}

.site-header {
  background: rgba(10, 14, 28, 0.84);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 11, 24, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(53, 71, 189, 0.45);
}

.navbar .nav-link {
  color: rgba(244, 246, 255, 0.88);
  font-size: 0.95rem;
}

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

.dropdown-menu-dark {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-glow {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(120deg, rgba(107, 92, 255, 0.9), rgba(41, 184, 166, 0.9));
  padding-inline: 0.85rem;
}

.btn-glow:hover {
  color: #fff;
  transform: translateY(-1px);
}

.offcanvas {
  background: #12182f;
}

.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.84);
}

.hero-section {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 12, 26, 0.78) 0%, rgba(17, 28, 51, 0.55) 40%, rgba(8, 12, 26, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6.5rem;
  padding-bottom: 5rem;
}

.hero-copy {
  max-width: 690px;
  color: #fff;
}

.hero-kicker {
  margin: 0 0 0.7rem;
  letter-spacing: 1.1px;
  font-size: 0.83rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.6rem;
  max-width: 630px;
}

.hero-actions .btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--primary), #7a75ff);
  box-shadow: 0 12px 26px rgba(87, 81, 221, 0.42);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-1px);
}

.hero-meta {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
}

.category-section {
  margin-top: -2.35rem;
  position: relative;
  z-index: 5;
}

.category-board {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--card-shadow);
  padding: 1rem;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff, #f6f8ff);
  height: 100%;
}

.category-pill strong {
  display: block;
  font-size: 0.94rem;
}

.category-pill small {
  color: var(--muted);
  font-size: 0.78rem;
}

.pill-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(107, 92, 255, 0.16), rgba(41, 184, 166, 0.16));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
}

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

.more-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--primary);
}

.poster-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(25, 30, 63, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 28px rgba(25, 30, 63, 0.13);
}

.poster-wrap {
  position: relative;
}

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

.badge-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1px;
  color: #fff;
  padding: 0.26rem 0.56rem;
  border-radius: 999px;
  background: rgba(14, 18, 36, 0.74);
  backdrop-filter: blur(3px);
}

.card-body {
  padding: 0.85rem 0.85rem 0.95rem;
}

.card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e2236;
}

.card-text {
  margin: 0.5rem 0 0.66rem;
  font-size: 0.84rem;
  color: #5d647d;
  min-height: 2.5em;
}

.meta {
  font-size: 0.78rem;
  color: #7a8098;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.promo-section {
  padding-top: 3.2rem;
}

.promo-box {
  border-radius: 1.2rem;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(125deg, #6b5cff 0%, #3e5ede 52%, #29b8a6 100%);
  box-shadow: 0 18px 34px rgba(40, 71, 167, 0.26);
}

.promo-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.85;
}

.promo-box h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  margin: 0 0 0.6rem;
}

.faq-section {
  scroll-margin-top: 88px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

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

.accordion-button:not(.collapsed) {
  color: #2c3170;
  background: rgba(107, 92, 255, 0.08);
  box-shadow: none;
}

.links-section {
  padding-bottom: 1.2rem;
}

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

.friend-link {
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px dashed #cfd4ea;
  transition: all 0.2s ease;
}

.friend-link:hover {
  border-style: solid;
  border-color: rgba(107, 92, 255, 0.55);
  color: var(--primary);
  transform: translateY(-2px);
}

.site-footer {
  margin-top: 2.8rem;
  background: linear-gradient(180deg, #131a35, #0b1125);
  color: rgba(240, 243, 255, 0.9);
}

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

.site-footer a {
  color: rgba(239, 243, 255, 0.86);
  text-decoration: none;
}

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

.footer-brand {
  display: inline-flex;
  font-weight: 700;
  font-size: 1.15rem;
}

.site-footer ul li {
  margin-bottom: 0.42rem;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.15);
}

.modal-content {
  border-radius: 1rem;
  border: 1px solid var(--line);
}

#today,
#midnight,
#domestic,
#docs,
#serial,
#discover {
  scroll-margin-top: 90px;
}

@media (max-width: 1199.98px) {
  .poster-wrap img {
    height: 230px;
  }
}

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

  .hero-content {
    padding-top: 5.6rem;
    padding-bottom: 3.7rem;
  }

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

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

  .hero-section {
    min-height: 460px;
  }

  .hero-meta span {
    font-size: 0.78rem;
  }

  .category-board {
    padding: 0.8rem;
  }

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

  .promo-box {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}