:root {
  --bg: #f6f8ff;
  --surface: #ffffff;
  --ink: #17223d;
  --muted: #60708f;
  --primary: #6b4eff;
  --secondary: #02b9d8;
  --accent: #ff5c9f;
  --line: #e8edff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 12px 28px rgba(37, 52, 117, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  text-decoration: none;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 234, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
  z-index: 1040;
}

.site-header.navbar-scrolled {
  box-shadow: 0 8px 24px rgba(22, 35, 88, 0.08);
}

.navbar {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  box-shadow: 0 8px 16px rgba(107, 78, 255, 0.35);
}

.brand-mark::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 10px;
  width: 0;
  height: 0;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.brand-text {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.06rem;
}

.navbar-nav .nav-link {
  color: #314566;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  background: rgba(107, 78, 255, 0.1);
}

.search-mini .form-control {
  border-radius: 999px;
  border: 1px solid var(--line);
  min-width: 200px;
}

.btn-ghost {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #35507d;
  padding: 6px 14px;
}

.btn-ghost:hover {
  background: #eef3ff;
}

.hero-section {
  position: relative;
}

.hero-shell {
  border-radius: 30px;
  padding: 40px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 115, 186, 0.26), transparent 36%),
    radial-gradient(circle at 15% 85%, rgba(2, 185, 216, 0.28), transparent 40%),
    linear-gradient(120deg, #5f3ef4 0%, #3557f6 45%, #00a9cc 100%);
  color: #fff;
  box-shadow: 0 20px 42px rgba(45, 65, 161, 0.28);
}

.hero-kicker {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 0;
}

.btn-hero-primary,
.btn-hero-light {
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
}

.btn-hero-primary {
  background: #fff;
  color: #3d47dc;
}

.btn-hero-primary:hover {
  background: #f2f5ff;
  color: #2f3ac6;
}

.btn-hero-light {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-hero-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.16);
}

.spotlight-card {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 28px rgba(24, 36, 95, 0.35);
}

.spotlight-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.spotlight-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(8, 15, 36, 0.75), rgba(8, 15, 36, 0));
}

.spot-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
}

.spotlight-overlay h2 {
  margin: 8px 0 3px;
  font-size: 1.7rem;
}

.spotlight-overlay p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-dots {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.hero-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots .active {
  width: 24px;
  border-radius: 99px;
  background: #fff;
}

.section-block {
  position: relative;
}

.section-soft {
  background: linear-gradient(180deg, rgba(244, 247, 255, 0.7), rgba(251, 252, 255, 0.4));
}

.section-head h2 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 800;
}

.section-en {
  margin: 0;
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-more {
  font-weight: 600;
  color: #4057bf;
  font-size: 0.92rem;
}

.col-xl-2-4 {
  width: 20%;
}

.cat-card {
  height: 136px;
  border-radius: 16px;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 22px rgba(56, 76, 153, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.cat-card p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.92;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(45, 67, 155, 0.25);
}

.cat-1 { background: linear-gradient(135deg, #7353ff, #3a8bff); }
.cat-2 { background: linear-gradient(135deg, #14b7d1, #2f6ff6); }
.cat-3 { background: linear-gradient(135deg, #a64df4, #f15dbf); }
.cat-4 { background: linear-gradient(135deg, #08b27d, #4cb7ff); }
.cat-5 { background: linear-gradient(135deg, #2f88ff, #35c2d6); }
.cat-6 { background: linear-gradient(135deg, #ff6f83, #5b72ff); }
.cat-7 { background: linear-gradient(135deg, #18b88f, #1e8de9); }
.cat-8 { background: linear-gradient(135deg, #4a70ff, #7855ff); }
.cat-9 { background: linear-gradient(135deg, #ff7d54, #c45cff); }
.cat-10 { background: linear-gradient(135deg, #00b0c7, #5960ff); }

.film-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 16px rgba(30, 48, 111, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.film-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 26px rgba(37, 59, 131, 0.15);
}

.poster-thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.film-card-sm .poster-thumb {
  height: 220px;
}

.film-body {
  padding: 12px 12px 14px;
}

.film-body h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.film-body p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.film-meta {
  font-size: 0.82rem;
  color: #4f64b8;
  font-weight: 600;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  transition: all 0.2s ease;
}

.rank-item:hover {
  border-color: #cdd8ff;
  transform: translateX(4px);
  box-shadow: 0 10px 18px rgba(36, 58, 124, 0.1);
}

.rank-no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex: 0 0 28px;
}

.rank-item h3 {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 700;
}

.rank-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.about-box {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-box h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.about-box p {
  color: #4d5f82;
  line-height: 1.8;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faff;
  text-align: center;
  padding: 14px 8px;
}

.metric strong {
  display: block;
  color: #2d42a5;
  font-size: 1.1rem;
}

.metric span {
  color: #68789b;
  font-size: 0.8rem;
}

.friend-wrap {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
}

.friend-wrap h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-links a {
  border: 1px solid #d9e1ff;
  color: #3650ad;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  background: #f7f9ff;
}

.friend-links a:hover {
  border-color: #b8c7ff;
  background: #eff4ff;
}

.site-footer {
  background: #0f172a;
  color: #d3daf0;
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-text {
  color: #aab6d6;
  line-height: 1.75;
  margin-bottom: 0;
}

.footer-title {
  color: #f4f7ff;
  font-size: 1rem;
  margin: 4px 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(156, 174, 218, 0.2);
  color: #aeb9d9;
  font-size: 0.88rem;
}

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

.floating-rail {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  flex-direction: column;
  gap: 14px;
}

.floating-rail span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e8ff;
  color: #7d8bb0;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(20, 35, 92, 0.08);
}

@media (max-width: 1399.98px) {
  .col-xl-2-4 {
    width: 25%;
  }
}

@media (max-width: 991.98px) {
  .hero-shell {
    padding: 26px;
    border-radius: 22px;
  }

  .spotlight-card img {
    height: 360px;
  }

  .col-xl-2-4 {
    width: 33.3333%;
  }
}

@media (max-width: 767.98px) {
  .navbar {
    min-height: 68px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-desc {
    font-size: 0.94rem;
  }

  .spotlight-card img {
    height: 300px;
  }

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

  .section-sub {
    font-size: 0.88rem;
  }

  .section-more {
    display: none;
  }

  .col-xl-2-4 {
    width: 50%;
  }

  .cat-card {
    height: 118px;
  }

  .poster-thumb {
    height: 210px;
  }

  .film-card-sm .poster-thumb {
    height: 190px;
  }

  .about-box {
    padding: 20px;
  }
}