:root {
  --bg: #0a0f19;
  --bg-soft: #101a2c;
  --surface: #121d31;
  --surface-2: #182742;
  --text: #eaf1ff;
  --muted: #9db0d4;
  --line: rgba(169, 196, 255, 0.16);
  --primary: #4de3c4;
  --secondary: #7d86ff;
  --accent: #ffb454;
  --danger: #ff5f7a;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body.site-body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -20%, rgba(77, 227, 196, 0.15), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(125, 134, 255, 0.15), transparent 40%),
    var(--bg);
  line-height: 1.55;
  padding-top: 76px;
}

.container {
  max-width: 1180px;
}

.site-navbar {
  background: rgba(10, 15, 25, 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.site-navbar.is-scrolled {
  background: rgba(10, 15, 25, 0.92);
  border-bottom-color: var(--line);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--primary), var(--secondary));
  color: #061018;
  font-size: 0.85rem;
  box-shadow: 0 0 0 4px rgba(77, 227, 196, 0.15);
}

.navbar-nav .nav-link {
  color: #d6e2ff;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(125, 134, 255, 0.2);
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.btn-glow {
  border: 0;
  color: #03161a;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #6af4da);
  box-shadow: 0 8px 18px rgba(77, 227, 196, 0.3);
}

.btn-glow:hover {
  color: #03161a;
  transform: translateY(-1px);
}

.btn-outline-neon {
  border: 1px solid rgba(77, 227, 196, 0.55);
  color: var(--primary);
  background: transparent;
  border-radius: 10px;
  padding: 0.6rem 1rem;
}

.btn-outline-neon:hover {
  color: #05171d;
  background: var(--primary);
}

.offcanvas {
  background: #0f1728;
}

.hero-section {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.45);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 15, 25, 0.95) 20%, rgba(10, 15, 25, 0.62) 58%, rgba(10, 15, 25, 0.88) 100%);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  color: #bcd5ff;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(125, 134, 255, 0.2);
  border: 1px solid rgba(125, 134, 255, 0.4);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.18;
  margin: 0;
}

.hero-text {
  margin-top: 1rem;
  color: #cbdbfa;
  max-width: 60ch;
}

.hero-panel {
  background: rgba(19, 33, 57, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  backdrop-filter: blur(8px);
}

.hero-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.quick-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  border-top: 1px dashed rgba(192, 217, 255, 0.2);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.quick-list li:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.quick-list strong {
  font-size: 0.95rem;
}

.quick-list p {
  margin: 0.24rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-tag {
  font-size: 0.75rem;
  align-self: start;
  color: #0e1728;
  background: var(--accent);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.stat-card {
  background: rgba(18, 29, 49, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.stat-card span {
  font-size: 0.8rem;
  color: #9cb0d6;
  display: block;
}

.stat-card strong {
  margin-top: 0.2rem;
  display: block;
  font-size: 1.15rem;
}

.content-section {
  padding: 68px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(24, 39, 66, 0.36), rgba(24, 39, 66, 0.1));
  border-top: 1px solid rgba(153, 181, 233, 0.1);
  border-bottom: 1px solid rgba(153, 181, 233, 0.08);
}

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

.section-heading h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  margin: 0.4rem 0 0.3rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-link {
  color: #b9ccf5;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.chip {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.chip-red { background: rgba(255, 95, 122, 0.22); border: 1px solid rgba(255, 95, 122, 0.5); }
.chip-violet { background: rgba(125, 134, 255, 0.24); border: 1px solid rgba(125, 134, 255, 0.5); }
.chip-cyan { background: rgba(77, 227, 196, 0.22); border: 1px solid rgba(77, 227, 196, 0.52); }
.chip-gold { background: rgba(255, 180, 84, 0.25); border: 1px solid rgba(255, 180, 84, 0.5); }
.chip-green { background: rgba(75, 209, 129, 0.23); border: 1px solid rgba(75, 209, 129, 0.52); }
.chip-blue { background: rgba(89, 147, 255, 0.22); border: 1px solid rgba(89, 147, 255, 0.5); }
.chip-gray { background: rgba(183, 196, 222, 0.22); border: 1px solid rgba(183, 196, 222, 0.4); }

.media-card,
.poster-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.media-card:hover,
.poster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 134, 255, 0.45);
}

.media-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.poster-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.media-thumb img,
.poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.media-card:hover img,
.poster-card:hover img {
  transform: scale(1.05);
}

.media-body {
  padding: 0.85rem 0.9rem 1rem;
}

.media-body h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.media-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.media-body small {
  margin-top: 0.46rem;
  display: inline-block;
  color: #b8c8e5;
  font-size: 0.78rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.28rem 0.58rem;
  font-size: 0.7rem;
}

.badge-tone-red { background: rgba(255, 95, 122, 0.2); color: #ff8fa2; }
.badge-tone-orange { background: rgba(255, 180, 84, 0.22); color: #ffd39a; }
.badge-tone-purple { background: rgba(145, 122, 255, 0.22); color: #cdbfff; }
.badge-tone-green { background: rgba(75, 209, 129, 0.2); color: #9af1be; }
.badge-tone-cyan { background: rgba(77, 227, 196, 0.22); color: #9cf3e0; }
.badge-tone-yellow { background: rgba(241, 214, 90, 0.2); color: #f7eaa5; }
.badge-tone-pink { background: rgba(255, 126, 180, 0.2); color: #ffb5d6; }

.score {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.update-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.update-board h2 {
  margin: 0.55rem 0 0.9rem;
  font-size: 1.5rem;
}

.update-list li {
  padding: 0.68rem 0;
  border-top: 1px dashed rgba(190, 214, 255, 0.2);
}

.update-list li:first-child {
  border-top: 0;
}

.update-list span {
  display: inline-block;
  color: #a8c2ff;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.update-list p {
  margin: 0;
  font-size: 0.88rem;
  color: #dbe7ff;
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px !important;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.accordion-button {
  background: transparent;
  color: #ecf2ff;
  box-shadow: none !important;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background: rgba(125, 134, 255, 0.15);
}

.accordion-button::after {
  filter: invert(1) grayscale(1);
}

.accordion-body {
  color: #cdddfb;
}

.links-section {
  padding-top: 26px;
}

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

.friend-link {
  text-decoration: none;
  color: #dce8ff;
  background: rgba(18, 29, 49, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.68rem 0.8rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.friend-link:hover {
  color: #061018;
  background: var(--primary);
  border-color: var(--primary);
}

.site-footer {
  margin-top: 30px;
  padding: 46px 0 20px;
  border-top: 1px solid rgba(172, 196, 243, 0.15);
  background: #0b1220;
}

.footer-brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
}

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

.site-footer p,
.site-footer li,
.site-footer a {
  color: #b8c9ea;
  text-decoration: none;
  font-size: 0.9rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(172, 196, 243, 0.15);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  color: #042024;
  background: var(--primary);
  font-weight: 700;
  display: none;
  z-index: 1040;
  box-shadow: 0 10px 24px rgba(77, 227, 196, 0.35);
}

.search-modal {
  background: #0f1a2d;
  border: 1px solid var(--line);
  color: #e5efff;
  border-radius: 14px;
}

.search-modal .form-control {
  border: 1px solid rgba(173, 201, 255, 0.35);
  background: rgba(10, 15, 25, 0.72);
  color: #fff;
}

.search-modal .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(77, 227, 196, 0.22);
}

.suggest-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(141, 164, 210, 0.4);
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
  font-size: 0.78rem;
  color: #c8d9f7;
}

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

  .hero-section {
    min-height: 560px;
    padding: 34px 0 24px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.7rem;
  }

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

  .content-section {
    padding: 54px 0;
  }

  .media-body h3 {
    font-size: 0.95rem;
  }

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