:root {
  --bg: #070d1b;
  --bg-soft: #0b1428;
  --surface: #111d38;
  --surface-2: #16254a;
  --line: rgba(124, 155, 216, 0.22);
  --text: #e9f2ff;
  --muted: #9cb0d6;
  --accent: #2de2c7;
  --accent-2: #7d6bff;
  --accent-3: #ff7e66;
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(45, 226, 199, 0.1), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(125, 107, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #03130f;
  padding: 0.5rem 0.8rem;
  z-index: 2000;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  background: rgba(6, 11, 22, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 0.4rem 0;
  font-size: 0.82rem;
}

.main-nav {
  padding: 0.65rem 0;
}

.navbar-brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.3px;
}

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

.brand-mark {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0.8rem rgba(45, 226, 199, 0.55);
}

.main-nav .nav-link {
  color: #c8d7f5;
  font-size: 0.96rem;
  margin: 0 0.2rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #fff;
}

.dropdown-menu {
  border: 1px solid var(--line);
  background: #0f1b34;
}

.btn-accent {
  color: #021511;
  background: linear-gradient(135deg, var(--accent), #77ffd5);
  border: none;
  font-weight: 600;
}

.btn-accent:hover {
  color: #021511;
  filter: brightness(0.95);
}

.btn-ghost {
  color: #d4e3ff;
  border: 1px solid var(--line);
  background: rgba(20, 34, 64, 0.6);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(45, 226, 199, 0.55);
}

.mobile-canvas {
  background: #0a1428;
  color: var(--text);
}

.hero-section {
  padding: 2.2rem 0 1.2rem;
}

.hero-copy {
  background: linear-gradient(160deg, rgba(20, 33, 61, 0.86), rgba(10, 18, 36, 0.82));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9feee1;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.hero-desc {
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.8rem;
  background: rgba(10, 18, 36, 0.65);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.05rem;
  color: #b8fff1;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.82rem;
}

.spotlight-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(18, 30, 56, 0.95), rgba(10, 17, 34, 0.98));
  box-shadow: 0 16px 30px rgba(5, 9, 18, 0.45);
}

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

.spotlight-body {
  padding: 1rem 1rem 1.1rem;
}

.spotlight-body h2 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.spotlight-body p {
  color: var(--muted);
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
}

.spotlight-meta li {
  color: #d7e4ff;
  font-size: 0.86rem;
  margin-bottom: 0.15rem;
}

.section-block {
  padding: 1.9rem 0 0.3rem;
}

.section-head {
  margin-bottom: 0.95rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #87d4ff;
  margin: 0;
  font-size: 0.75rem;
}

.section-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.section-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}

.section-link:hover {
  color: #a8ffee;
}

.badge-soft {
  background: rgba(45, 226, 199, 0.14);
  color: #9df6e8;
  border: 1px solid rgba(45, 226, 199, 0.35);
}

.film-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 28, 53, 0.98), rgba(12, 20, 38, 0.99));
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.film-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 226, 199, 0.45);
}

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

.film-body {
  padding: 0.72rem 0.78rem 0.85rem;
}

.film-body h3 {
  font-size: 1rem;
  margin: 0.55rem 0 0.36rem;
}

.film-body p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
  min-height: 2.35rem;
}

.film-body small {
  color: #9eb2d8;
  font-size: 0.74rem;
}

.film-meta {
  margin-top: 0.62rem;
  display: flex;
  justify-content: space-between;
  color: #bee7ff;
  font-size: 0.75rem;
}

.chip-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 24, 46, 0.8);
}

.chip-board.soft {
  background: rgba(10, 18, 35, 0.75);
}

.chip {
  text-decoration: none;
  color: #d8e5ff;
  border: 1px solid rgba(130, 158, 212, 0.3);
  border-radius: 999px;
  padding: 0.37rem 0.8rem;
  font-size: 0.83rem;
}

.chip:hover {
  color: #fff;
  border-color: rgba(45, 226, 199, 0.5);
}

.update-card {
  height: 100%;
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 27, 52, 0.96), rgba(10, 17, 35, 0.97));
}

.update-card img {
  width: 84px;
  height: 112px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.update-card h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1rem;
}

.update-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.rank-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(14, 24, 46, 0.82);
}

.rank-panel h3 {
  margin-bottom: 0.8rem;
  font-size: 1.06rem;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  background: rgba(9, 16, 30, 0.62);
}

.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-3), #ffb86c);
  color: #241000;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-item img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rank-item div {
  min-width: 0;
}

.rank-item strong {
  display: block;
  font-size: 0.9rem;
}

.rank-item small {
  color: var(--muted);
  font-size: 0.75rem;
}

.rank-item em {
  margin-left: auto;
  color: #9df6e8;
  font-style: normal;
  font-size: 0.78rem;
  white-space: nowrap;
}

.review-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(12, 20, 38, 0.85);
}

.review-card p {
  color: #d7e4ff;
  margin-bottom: 0.7rem;
}

.review-card footer {
  color: var(--muted);
  font-size: 0.82rem;
}

.editor-card,
.recent-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(13, 22, 42, 0.88);
  height: 100%;
}

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

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

.editor-card h3,
.recent-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.editor-card p,
.recent-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.faq-accordion .accordion-item {
  background: rgba(12, 20, 38, 0.9);
  border: 1px solid var(--line);
  margin-bottom: 0.6rem;
  border-radius: 12px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  background: rgba(14, 24, 46, 0.9);
  color: #e7f1ff;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(20, 34, 64, 0.95);
  color: #baffef;
}

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

.faq-accordion .accordion-body {
  color: var(--muted);
}

.friend-section {
  padding-bottom: 2.1rem;
}

.friend-link {
  display: block;
  text-align: center;
  border-radius: 10px;
  padding: 0.65rem 0.45rem;
  text-decoration: none;
  color: #dbe7ff;
  border: 1px dashed rgba(141, 169, 222, 0.45);
  background: rgba(10, 17, 31, 0.58);
  font-size: 0.88rem;
}

.friend-link:hover {
  color: #071111;
  background: var(--accent);
  border-color: transparent;
}

.site-footer {
  margin-top: 1.8rem;
  padding: 2rem 0 1.2rem;
  background: #060c18;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #e8f2ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
}

.site-footer h3 {
  font-size: 0.96rem;
  margin-bottom: 0.5rem;
}

.site-footer p,
.site-footer small,
.site-footer li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.site-footer li {
  margin-bottom: 0.3rem;
}

.site-footer li a:hover,
.site-footer .footer-bottom a {
  color: #b9fff2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #d9e8ff;
  background: rgba(12, 23, 44, 0.88);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1050;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.preview-modal {
  background: #0b152c;
  border: 1px solid var(--line);
  color: var(--text);
}

@media (max-width: 991.98px) {
  .main-nav .navbar-collapse {
    display: none !important;
  }

  .hero-copy {
    padding: 1.4rem;
  }

  .film-card img {
    height: 190px;
  }
}

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

  .hero-section {
    padding-top: 1.3rem;
  }

  .hero-copy h1 {
    font-size: 1.55rem;
  }

  .stat-box strong {
    font-size: 0.94rem;
  }

  .stat-box span {
    font-size: 0.74rem;
  }

  .update-card {
    align-items: center;
  }

  .update-card img {
    width: 76px;
    height: 98px;
  }

  .section-block {
    padding-top: 1.55rem;
  }
}