:root {
  --bg: #f7f6ff;
  --surface: #ffffff;
  --surface-soft: #f0eeff;
  --ink: #151729;
  --muted: #707493;
  --primary: #6d4aff;
  --primary-dark: #5535db;
  --accent: #ff8f40;
  --header: rgba(10, 13, 34, 0.72);
  --footer: #0b1026;
  --radius: 18px;
}

* {
  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;
}

a {
  text-decoration: none;
}

.site-header .navbar {
  padding: 0.85rem 0;
  background: var(--header);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled .navbar {
  background: rgba(10, 13, 34, 0.94);
  box-shadow: 0 10px 28px rgba(8, 10, 24, 0.35);
}

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

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), #ffc56d);
  color: #1b1d2f;
  font-size: 0.9rem;
}

.brand-text {
  letter-spacing: 0.3px;
}

.desktop-nav .nav-link {
  color: rgba(233, 236, 255, 0.9);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.dropdown-menu {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(10, 14, 32, 0.16);
  padding: 0.55rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1f2030;
  font-weight: 600;
}

.btn-accent:hover {
  background: #ff9c56;
  border-color: #ff9c56;
  color: #151729;
}

.mobile-panel {
  background: #10153a;
  color: #e8ecff;
}

.mobile-link {
  color: #e8ecff;
  padding: 0.72rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 500;
}

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

.hero-section {
  position: relative;
  min-height: 86vh;
  padding: 8rem 0 4.75rem;
  color: #fff;
  background: linear-gradient(110deg, rgba(7, 10, 26, 0.85) 18%, rgba(36, 19, 64, 0.56) 58%, rgba(5, 23, 43, 0.75) 100%), url('../images/ancientroad.jpg') center center / cover no-repeat;
}

.hero-content {
  max-width: 760px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.hero-content h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-lead {
  max-width: 640px;
  font-size: 1.04rem;
  color: rgba(243, 246, 255, 0.9);
  margin-bottom: 1.5rem;
}

.hero-meta {
  margin-top: 1.2rem;
}

.hero-meta li {
  margin: 0.3rem 0.45rem 0 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.92);
}

.section-intro {
  padding: 4.8rem 0 2.2rem;
}

.intro-head h2,
.section-heading h2,
.app-wrap h2,
.friends-section h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: 0 14px 34px rgba(25, 23, 63, 0.08);
}

.feature-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ece7ff;
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: #6b6f8f;
  margin: 0;
}

.content-section {
  padding: 4.4rem 0;
}

.alt-bg {
  background: var(--surface-soft);
}

.section-heading {
  margin-bottom: 1.35rem;
}

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

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

.film-card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(22, 26, 48, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.film-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(22, 26, 48, 0.15);
}

.poster-wrap {
  position: relative;
}

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

.score-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.76rem;
  color: #fff;
  background: linear-gradient(135deg, #09ab75, #00c58a);
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-weight: 600;
}

.film-title {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.film-meta {
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.film-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.film-tags span {
  font-size: 0.73rem;
  background: #f4f5ff;
  color: #5f6486;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.ranking-section {
  padding: 4.2rem 0;
  background: linear-gradient(180deg, #eef3ff 0%, #f8f8ff 100%);
}

.rank-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(22, 26, 48, 0.08);
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
}

.rank-num {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8ebff;
  color: var(--primary-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-card h3 {
  font-size: 0.98rem;
  margin: 0;
}

.rank-card p {
  margin: 0.14rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.app-section {
  padding: 4.6rem 0;
}

.app-wrap {
  background: linear-gradient(120deg, #20134a 0%, #3f2a86 52%, #0f335d 100%);
  color: #f4f6ff;
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 20px 48px rgba(24, 17, 58, 0.32);
}

.app-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
  color: #d9d3ff;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.app-wrap p {
  color: rgba(239, 242, 255, 0.9);
}

.app-shot {
  width: min(100%, 255px);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.faq-section {
  padding: 4rem 0;
}

.accordion-item {
  border: 0;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.8rem;
  box-shadow: 0 10px 30px rgba(22, 26, 48, 0.08);
}

.accordion-button {
  font-weight: 600;
  background: #fff;
}

.accordion-button:not(.collapsed) {
  color: #302066;
  background: #f4f1ff;
  box-shadow: none;
}

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

.friends-section {
  padding: 3.6rem 0;
  background: #f5f1ff;
}

.friend-link {
  background: #fff;
  color: #33395c;
  border: 1px solid #e1def4;
  border-radius: 999px;
  padding: 0.48rem 0.92rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.friend-link:hover {
  color: var(--primary-dark);
  border-color: #cdc5f8;
  transform: translateY(-2px);
}

.site-footer {
  background: var(--footer);
  color: #b5bcdd;
  padding: 3.5rem 0 1.25rem;
}

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

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

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

.footer-links a {
  color: #b5bcdd;
}

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

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.88rem;
}

.trailer-modal .modal-content {
  border: 0;
  border-radius: 16px;
  background: #11173a;
  color: #eef2ff;
}

.trailer-modal .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.trailer-frame {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, #2b195f, #27467b);
}

.trailer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #fff;
  text-align: center;
}

.play-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
  font-size: 1.05rem;
}

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

  .app-wrap {
    padding: 1.6rem;
  }

  .app-shot {
    margin-top: 0.3rem;
  }
}

@media (max-width: 767.98px) {
  .section-intro,
  .content-section,
  .ranking-section,
  .app-section,
  .faq-section,
  .friends-section {
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
  }

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

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

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

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

  .hero-meta li {
    font-size: 0.75rem;
  }
}