:root {
  --bg: #f4f2ff;
  --surface: #ffffff;
  --ink: #1c1b2f;
  --muted: #6f7191;
  --brand: #6f5bff;
  --brand-2: #ff7f5f;
  --line: #e7e3fb;
  --soft: #f8f6ff;
  --nav: #101326;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.top-nav {
  background: rgba(16, 19, 38, 0.72);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.top-nav.is-scrolled {
  background: rgba(16, 19, 38, 0.95);
  box-shadow: 0 8px 24px rgba(4, 6, 18, 0.35);
}

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 14px rgba(111, 91, 255, 0.35);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
}

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

.btn-brand {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgba(111, 91, 255, 0.28);
}

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

.mobile-panel {
  background: #14172f;
}

.mobile-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background: url('../images/bluefilm.jpg') center center / cover no-repeat;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 28, 0.42) 0%, rgba(10, 13, 28, 0.84) 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: 84px;
  color: #fff;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  padding: 6px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 800;
}

.hero-content p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 20px;
}

.panel-title {
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-panel li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel li:last-child {
  border-bottom: none;
}

.hero-panel strong {
  color: #ffddb4;
}

.hero-panel small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

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

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(22, 23, 44, 0.06);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.feature-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

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

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

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

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-title a {
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(26, 28, 54, 0.12);
}

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

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

.score {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(10, 15, 34, 0.78);
  border-radius: 999px;
  padding: 4px 9px;
}

.media-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.card-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 9px;
}

.card-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #74789b;
}

.ranking-wrap {
  margin-top: -8px;
}

.ranking-box {
  background: linear-gradient(135deg, #e8ebff, #f7ecff);
  border: 1px solid #dfe0ff;
  border-radius: 20px;
  padding: 26px;
}

.ranking-box h2 {
  margin: 0;
  font-size: 1.5rem;
}

.ranking-box p {
  color: #5f668a;
}

.rank-more {
  color: #3f47d8;
  font-weight: 600;
}

.rank-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(121, 126, 223, 0.22);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 78px;
}

.rank-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2d367f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.rank-item h3 {
  font-size: 0.96rem;
  margin: 0 0 3px;
}

.rank-item p {
  margin: 0;
  font-size: 0.8rem;
}

.download-panel {
  border-radius: 22px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, #1a2050, #6130a5 70%, #8e4aa9);
  box-shadow: 0 18px 36px rgba(23, 18, 64, 0.28);
}

.download-panel h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 10px;
}

.download-panel p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.download-icon {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.friend-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.friend-wrap h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.friend-wrap p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.friend-grid a {
  color: #2d2f56;
  border: 1px solid #d8d3ff;
  background: #f7f5ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.friend-grid a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #f0edff;
}

.site-footer {
  background: #0d1020;
  color: #d8dcf7;
}

.site-footer .brand-icon {
  width: 30px;
  height: 30px;
}

.footer-text {
  margin-top: 12px;
  margin-bottom: 0;
  color: #a9aed1;
  font-size: 0.92rem;
}

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

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #b6bbdf;
  font-size: 0.92rem;
}

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

.footer-line {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 24px 0 12px;
}

.site-footer .small,
.site-footer .small a {
  color: #98a0cb;
}

#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(95, 83, 255, 0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1030;
}

#backToTop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

  .hero-content {
    padding-top: 132px;
    padding-bottom: 64px;
  }

  .download-icon {
    margin-left: 0;
  }
}

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

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

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

  .section-title a {
    font-size: 0.9rem;
  }

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

  .download-panel {
    padding: 24px;
  }
}