:root {
  --bg: #f5f7ff;
  --surface: #ffffff;
  --ink: #14172d;
  --muted: #69708f;
  --primary: #5d4dff;
  --primary-dark: #4537d6;
  --accent: #ff7e57;
  --line: #e8ebfb;
  --footer: #0f1230;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-top: 76px;
}

a {
  text-decoration: none;
}

.site-header {
  background: rgba(15, 18, 48, 0.62);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 18, 48, 0.92);
  box-shadow: 0 8px 24px rgba(8, 10, 28, 0.28);
}

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

.navbar-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

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

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

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

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

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

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

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.offcanvas {
  background: #12153a;
  color: #fff;
}

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

.mobile-brand {
  color: #fff;
}

.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.62rem 0.8rem;
}

.offcanvas .nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.hero-section {
  min-height: 86vh;
  position: relative;
  display: flex;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 24, 0.76) 0%, rgba(7, 9, 24, 0.45) 40%, rgba(7, 9, 24, 0.68) 100%);
}

.hero-content {
  z-index: 2;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.hero-section h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.4px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  font-size: 1.05rem;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
}

.btn-main {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  border: none;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
}

.btn-main:hover {
  background: var(--primary-dark);
  color: #fff;
}

.section-block {
  padding: 76px 0;
}

.section-heading h2,
.section-title-row h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-heading p,
.section-title-row p {
  color: var(--muted);
  margin-bottom: 0;
}

.intro-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.15rem;
  box-shadow: 0 10px 28px rgba(28, 35, 88, 0.05);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  background: #edeaff;
  font-size: 1.1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

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

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

.more-link:hover {
  color: var(--primary-dark);
}

.alt-bg {
  background: #eff2ff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(24, 29, 75, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(24, 29, 75, 0.14);
}

.poster-wrap {
  position: relative;
}

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

.score-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 18, 40, 0.8);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.2rem 0.42rem;
  border-radius: 8px;
}

.media-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.media-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.rank-section {
  background: linear-gradient(180deg, #edf3ff 0%, #e8eeff 100%);
}

.rank-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dde5ff;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.rank-item span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5d4dff;
  color: #fff;
  font-weight: 700;
  font-size: 0.87rem;
  flex: 0 0 auto;
}

.rank-item strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.rank-item em {
  font-style: normal;
  color: var(--muted);
  margin-left: auto;
  font-size: 0.8rem;
}

.app-banner {
  background: linear-gradient(120deg, #22197a 0%, #4b35bd 55%, #6d52ec 100%);
  color: #fff;
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 20px 45px rgba(26, 21, 81, 0.3);
}

.app-banner h2 {
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.app-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.app-image {
  width: min(220px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 28px rgba(7, 7, 18, 0.35);
}

.friend-links-wrap {
  padding-top: 48px;
}

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

.friend-links-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  color: #29305a;
  border-radius: 12px;
  text-align: center;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
}

.friend-links-grid a:hover {
  border-color: #c8d2ff;
  color: var(--primary);
}

.site-footer {
  margin-top: 32px;
  background: var(--footer);
  color: rgba(255, 255, 255, 0.88);
  padding: 60px 0 24px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  margin-bottom: 0.6rem;
}

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

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

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

.footer-bottom {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .friend-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 72px;
  }

  .hero-section {
    min-height: 72vh;
  }

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

  .app-banner {
    padding: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .section-block {
    padding: 58px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

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

  .rank-item {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .rank-item em {
    width: 100%;
    margin-left: 0;
  }
}