:root {
  --bg: #070b16;
  --bg-soft: #0d1426;
  --panel: #111a2e;
  --panel-soft: #0f182a;
  --text: #edf1ff;
  --muted: #a3acc4;
  --accent: #7b61ff;
  --accent-2: #13d8b1;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% 5%, #1a2343 0%, #070b16 38%), radial-gradient(circle at 85% 15%, #16253f 0%, transparent 30%), #070b16;
  font-family: Inter, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.top-notice {
  background: #050811;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.38rem 0;
}

.navbar {
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.48rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 14px rgba(123, 97, 255, 0.45);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-link {
  color: #c6d0e6;
  font-size: 0.95rem;
  margin: 0 0.2rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-2) !important;
}

.dropdown-menu-dark {
  border-color: var(--border);
  background: #0d1424;
}

.btn-accent {
  color: #fff;
  border: none;
  background: linear-gradient(90deg, var(--accent), #8f7bff 48%, var(--accent-2));
  box-shadow: 0 8px 20px rgba(42, 208, 177, 0.28);
}

.btn-accent:hover {
  color: #fff;
  filter: brightness(1.06);
}

.btn-search {
  color: #d8dff2;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn-search:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
}

.offcanvas {
  background: #0a1020;
}

.offcanvas .nav-link {
  color: #d5def4;
  padding: 0.55rem 0;
}

main {
  padding-top: 104px;
}

.hero-section {
  position: relative;
  min-height: 560px;
  margin-top: 1.2rem;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(1.15);
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(8, 10, 20, 0.1) 0%, rgba(7, 11, 22, 0.82) 74%, rgba(7, 11, 22, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 3rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  background: rgba(19, 216, 177, 0.14);
  border: 1px solid rgba(19, 216, 177, 0.45);
  color: #b4fff0;
  margin-bottom: 0.85rem;
}

.hero-content h1 {
  font-size: 2.35rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-content p {
  color: #d0d9ef;
  line-height: 1.72;
  margin-bottom: 1.1rem;
}

.quick-entry {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.quick-tile {
  height: 100%;
  min-height: 86px;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  color: #e5ebff;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.quick-tile span {
  font-size: 1.2rem;
}

.quick-tile strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.quick-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 97, 255, 0.8);
}

.content-block {
  padding: 2.6rem 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: 1.42rem;
  letter-spacing: 0.01em;
}

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

.more-link {
  font-size: 0.9rem;
  color: var(--accent-2);
}

.more-link:hover {
  color: #a8ffef;
}

.media-card {
  display: block;
  height: 100%;
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.chip,
.score {
  position: absolute;
  top: 0.5rem;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
}

.chip {
  left: 0.5rem;
  color: #f6f2ff;
  background: rgba(123, 97, 255, 0.8);
}

.score {
  right: 0.5rem;
  color: #fff;
  background: rgba(19, 216, 177, 0.84);
}

.media-info {
  padding: 0.7rem 0.7rem 0.82rem;
}

.media-info h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.media-info p {
  margin: 0.3rem 0 0.26rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.media-info time {
  color: #8490af;
  font-size: 0.74rem;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 97, 255, 0.82);
  box-shadow: var(--shadow);
}

.media-card:hover .poster-wrap img {
  transform: scale(1.04);
}

.rank-board {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 1rem;
  padding: 1.15rem;
}

.rank-list .list-group-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 0;
  padding-right: 0;
}

.rank-list .num {
  width: 2rem;
  font-weight: 700;
  color: #8ec6ff;
}

.rank-list h4 {
  margin: 0;
  font-size: 0.95rem;
}

.rank-list small {
  color: var(--muted);
}

.trend {
  margin-left: auto;
  font-weight: 700;
}

.trend.up {
  color: #47e2c3;
}

.trend.down {
  color: #ff7272;
}

.trend.flat {
  color: #a4b0cc;
}

.faq-accordion .accordion-item {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  background: #121c32;
  color: #edf1ff;
  box-shadow: none;
  font-weight: 600;
}

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

.faq-accordion .accordion-button::after {
  filter: invert(1) grayscale(1);
}

.faq-accordion .accordion-body {
  color: #ccd5eb;
  line-height: 1.72;
}

.app-cta {
  margin-top: 0.2rem;
  margin-bottom: 2.8rem;
}

.cta-card {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 290px;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
}

.cta-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 18, 35, 0.88), rgba(22, 32, 56, 0.55));
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 3.1rem 1rem;
}

.cta-content h2 {
  margin: 0.75rem 0 0.6rem;
}

.cta-content p {
  color: #d3ddf5;
  margin-bottom: 1rem;
}

.friend-links-block {
  padding: 1rem 0 2.9rem;
}

.friend-links a {
  border: 1px solid var(--border);
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  color: #d6def4;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.86rem;
}

.friend-links a:hover {
  border-color: rgba(19, 216, 177, 0.65);
  color: #b7fff1;
}

.site-footer {
  background: #060913;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.3rem 0 1rem;
}

.site-footer h3 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.footer-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-list a {
  color: #c4cee6;
  font-size: 0.88rem;
}

.footer-list a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  color: #98a3bf;
  font-size: 0.85rem;
}

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

.footer-dots {
  display: flex;
  gap: 0.45rem;
}

.footer-dots span {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  opacity: 0.86;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1080;
}

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

.preview-modal {
  background: #0d1528;
  color: #edf2ff;
  border: 1px solid var(--border);
}

.preview-modal ul {
  padding-left: 1rem;
  color: #cad4ee;
}

@media (max-width: 991.98px) {
  main {
    padding-top: 96px;
  }

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

  .hero-content {
    padding: 2rem 1.3rem;
  }

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

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

  .hero-section {
    min-height: 410px;
    margin-top: 0.8rem;
  }

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

  .hero-content p {
    font-size: 0.92rem;
  }

  .section-head {
    align-items: center;
  }

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

  .section-head p {
    font-size: 0.82rem;
  }

  .content-block {
    padding: 2.1rem 0;
  }
}