:root {
  --bg-dark: #171235;
  --bg-dark-2: #231a4b;
  --bg-soft: #f7f5ff;
  --bg-sky: #eef9ff;
  --primary: #8c63ff;
  --primary-2: #5ce1cf;
  --text-main: #1b2440;
  --text-muted: #6f7a98;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(26, 20, 72, 0.15);
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-soft);
  line-height: 1.65;
}

a {
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(23, 18, 53, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(17, 13, 40, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar {
  padding: 0.75rem 0;
}

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

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

.brand-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 230deg, var(--primary), var(--primary-2), #9ef4ea, var(--primary));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

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

.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.dropdown-item:hover {
  background: #f0ebff;
  color: #4a34a1;
}

.btn-cta {
  border: none;
  border-radius: 999px;
  color: #0f1730;
  font-weight: 700;
  padding: 0.64rem 1.1rem;
  background: linear-gradient(115deg, var(--primary-2), #9df0ff);
}

.offcanvas {
  background: linear-gradient(165deg, #1c1445, #101e49);
  color: #fff;
}

.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 150px 0 90px;
  background: radial-gradient(circle at 18% 15%, rgba(116, 89, 255, 0.45), transparent 45%),
    radial-gradient(circle at 78% 88%, rgba(92, 225, 207, 0.35), transparent 48%),
    linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  color: #fff;
}

.hero-kicker {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-title span {
  display: block;
  margin-top: 0.35rem;
  color: #a7f4ea;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 1.3rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-hero-primary,
.btn-hero-ghost {
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
}

.btn-hero-primary {
  color: #10163b;
  border: none;
  background: linear-gradient(120deg, #91ffe0, #62dbff);
}

.btn-hero-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.hero-metrics .metric-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  text-align: center;
  padding: 0.7rem 0.3rem;
}

.metric-box strong {
  display: block;
  font-size: 1.08rem;
  color: #fff;
}

.metric-box span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-visual {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(7, 8, 30, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(14, 16, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.floating-note h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #8ff8ea;
}

.floating-note p {
  margin: 0.25rem 0 0.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.floating-note small {
  color: rgba(255, 255, 255, 0.72);
}

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

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

.section-sky {
  background: var(--bg-sky);
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  color: #5e6ca3;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  line-height: 1.25;
  font-weight: 800;
  color: #171c38;
}

.section-lead {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.section-link {
  color: #5342be;
  font-weight: 700;
}

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

.drama-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(21, 30, 73, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.drama-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(21, 30, 73, 0.14);
}

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

.drama-card .card-body h3 {
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.drama-card .card-body p {
  margin: 0;
  color: #606b8f;
  font-size: 0.92rem;
}

.badge-soft {
  font-size: 0.72rem;
  color: #3554a9;
  background: #e8f0ff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-weight: 700;
}

.tag-group {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-group span {
  border-radius: 999px;
  background: #f1f4ff;
  color: #42558d;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.latest-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #e8eeff;
  box-shadow: 0 10px 26px rgba(26, 33, 66, 0.07);
  padding: 0.75rem;
  display: flex;
  gap: 0.85rem;
  height: 100%;
}

.latest-thumb {
  width: 148px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.latest-content h3 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.06rem;
  font-weight: 700;
}

.latest-content p {
  margin: 0;
  color: #63719a;
  font-size: 0.9rem;
}

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

.latest-top small {
  color: #8290b5;
}

.mini-tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mini-tags span {
  font-size: 0.72rem;
  background: #f2f5ff;
  color: #4e5f92;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
}

.category-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8eeff;
  box-shadow: 0 8px 20px rgba(33, 40, 74, 0.06);
  height: 100%;
}

.category-top {
  padding: 0.85rem 0.8rem;
  color: #fff;
  background: linear-gradient(130deg, #6e5ff4, #21bfd6);
}

.category-top h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.category-top p {
  margin: 0.22rem 0 0;
  font-size: 0.76rem;
  opacity: 0.9;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.8rem 0.95rem;
}

.category-list li {
  color: #576385;
  font-size: 0.84rem;
  padding: 0.2rem 0;
}

.ranking-section {
  background: radial-gradient(circle at 0 20%, rgba(111, 89, 255, 0.45), transparent 38%),
    radial-gradient(circle at 90% 90%, rgba(73, 226, 206, 0.3), transparent 40%),
    linear-gradient(140deg, #19143b, #132b58);
}

.ranking-intro {
  color: rgba(255, 255, 255, 0.86);
}

.ranking-intro .section-kicker {
  color: rgba(173, 236, 255, 0.9);
}

.ranking-intro p {
  color: rgba(255, 255, 255, 0.78);
}

.rank-board {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1rem;
}

.rank-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.66rem 0.78rem;
  margin-bottom: 0.6rem;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.rank-item:last-child {
  margin-bottom: 0;
}

.rank-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4c5683;
  background: #e8edff;
}

.rank-num.top {
  color: #fff;
  background: linear-gradient(145deg, #8264ff, #29d8c5);
}

.rank-item h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2a4d;
}

.rank-item p {
  margin: 0;
  font-size: 0.8rem;
  color: #6f7da5;
}

.heat {
  font-weight: 800;
  color: #4e38be;
}

.faq-section {
  background: #f7f9ff;
}

.accordion-item {
  border: 1px solid #e5ebff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.accordion-button {
  font-weight: 700;
  color: #1d2642;
}

.accordion-button:not(.collapsed) {
  color: #4332a2;
  background: #f0ecff;
  box-shadow: none;
}

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

.friendlinks-section {
  background: #ffffff;
  padding: 56px 0;
  border-top: 1px solid #edf1ff;
}

.friendlinks-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.friend-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: #eef3ff;
  color: #384d8b;
  font-weight: 600;
  font-size: 0.9rem;
}

.friend-link:hover {
  background: #dde8ff;
  color: #273e82;
}

.site-footer {
  background: #111731;
  color: #bdc8e8;
  padding: 52px 0 22px;
}

.footer-brand {
  display: inline-block;
  color: #fff;
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

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

.footer-desc {
  margin: 0;
  color: #9eabd0;
}

.footer-title {
  font-size: 0.98rem;
  color: #f0f3ff;
  margin-bottom: 0.75rem;
}

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

.footer-links li,
.footer-updates li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #9fb2e3;
}

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

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

.footer-bottom p {
  margin: 0;
  color: #98a7cf;
  font-size: 0.88rem;
}

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

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  font-size: 1.15rem;
  background: linear-gradient(145deg, #78eed5, #8c63ff);
  color: #0d1233;
  box-shadow: 0 10px 24px rgba(38, 48, 90, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

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

.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.form-control {
  border-radius: 10px;
  border-color: #dce2f9;
}

.form-control:focus {
  border-color: #9f8dff;
  box-shadow: 0 0 0 0.2rem rgba(140, 99, 255, 0.15);
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 128px;
  }

  .hero-visual img {
    height: 360px;
  }

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

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 116px;
    padding-bottom: 72px;
  }

  .latest-item {
    flex-direction: column;
  }

  .latest-thumb {
    width: 100%;
    height: 195px;
  }

  .card-media img {
    height: 250px;
  }

  .rank-item {
    grid-template-columns: 34px 1fr;
  }

  .heat {
    grid-column: 2;
    justify-self: end;
  }
}