:root {
  --bg-deep: #120f2f;
  --bg-mid: #1b1f57;
  --bg-soft: #eef3ff;
  --card-bg: #ffffff;
  --text-main: #141a33;
  --text-soft: #6f789a;
  --line: #e8ecfb;
  --primary: #7a5cff;
  --secondary: #23d6b6;
  --accent: #42b7ff;
  --shadow: 0 16px 40px rgba(18, 20, 48, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background: #f7f9ff;
}

section[id] {
  scroll-margin-top: 92px;
}

#mainNav {
  background: rgba(12, 11, 33, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

#mainNav.scrolled {
  background: rgba(11, 10, 30, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-weight: 700;
  color: #fff;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

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

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 0.8rem;
}

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

.dropdown-menu {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}

.btn-neon {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 20px rgba(63, 83, 255, 0.28);
}

.btn-neon:hover {
  color: #fff;
  opacity: 0.95;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5.5rem;
  background: radial-gradient(circle at 78% 18%, rgba(35, 214, 182, 0.2), transparent 32%),
              radial-gradient(circle at 20% 80%, rgba(122, 92, 255, 0.23), transparent 34%),
              linear-gradient(120deg, var(--bg-deep), var(--bg-mid));
  color: #fff;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-kicker {
  color: #9ef3e3;
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
  letter-spacing: 1px;
}

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

.hero-desc {
  color: rgba(236, 242, 255, 0.88);
  max-width: 620px;
  line-height: 1.75;
}

.hero-chip {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e7eeff;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.32rem 0.75rem;
  background: rgba(255, 255, 255, 0.07);
}

.hero-panel {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-panel-body {
  padding: 1rem 1rem 1.1rem;
  color: #edf2ff;
  font-size: 0.92rem;
}

.section-block {
  padding: 4.8rem 0;
}

.featured-section {
  background: #fffaf5;
}

.latest-section {
  background: linear-gradient(180deg, #eff9ff 0%, #f5f9ff 100%);
}

.genres-section {
  background: #ffffff;
}

.section-kicker {
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  margin-bottom: 0.45rem;
  font-weight: 800;
}

.section-sub {
  margin: 0;
  color: var(--text-soft);
}

.text-link {
  color: #4b5de2;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.drama-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(27, 32, 70, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drama-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(27, 32, 70, 0.14);
}

.drama-card img {
  height: 228px;
  object-fit: cover;
}

.drama-card p {
  color: #5e6789;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64709a;
}

.tag-date {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  background: #e7edff;
  color: #3954dc;
  font-weight: 600;
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-wrap span {
  font-size: 0.74rem;
  color: #5f6da7;
  background: #f2f5ff;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
}

.launch-item {
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid #dfe8fb;
  border-radius: 14px;
  padding: 0.7rem;
  box-shadow: 0 8px 20px rgba(15, 30, 90, 0.07);
  height: 100%;
}

.launch-item img {
  width: 142px;
  height: 102px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.launch-content h3 {
  font-size: 1rem;
  margin: 0.35rem 0 0.35rem;
  font-weight: 700;
}

.launch-content p {
  margin: 0;
  color: #62709a;
  font-size: 0.88rem;
  line-height: 1.56;
}

.genre-card {
  height: 100%;
  border: 1px solid #dbe5ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #edf3ff 0%, #ffffff 56%);
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(40, 70, 160, 0.08);
}

.genre-card h3 {
  font-size: 1rem;
  margin-bottom: 0.42rem;
  font-weight: 700;
  color: #23317c;
}

.genre-card p {
  color: #66739d;
  font-size: 0.85rem;
  min-height: 2.8em;
  margin-bottom: 0.65rem;
}

.genre-card a {
  display: inline-block;
  color: #3a54df;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.rank-section {
  background: radial-gradient(circle at 8% 10%, rgba(35, 214, 182, 0.15), transparent 30%),
              linear-gradient(135deg, #14103c, #1d2f79 58%, #17457d);
}

.rank-wrap {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0.8rem;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 0.58rem 0.65rem;
}

.rank-item + .rank-item {
  margin-top: 0.55rem;
}

.rank-no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8edff;
  color: #3248c9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.rank-no.top {
  background: linear-gradient(135deg, #ff8a4b, #ff5f7c);
  color: #fff;
}

.rank-item img,
.rank-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dfe7ff;
  color: #4255b8;
  font-weight: 700;
}

.rank-info {
  min-width: 0;
}

.rank-info h3 {
  font-size: 0.96rem;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info p {
  margin: 0;
  color: #6f7898;
  font-size: 0.78rem;
}

.rank-hot {
  margin-left: auto;
  color: #2d3ec6;
  font-weight: 700;
  font-size: 0.82rem;
}

.faq-section {
  background: #f9fbff;
}

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

.accordion-button {
  font-weight: 600;
  color: #1d2a65;
}

.accordion-button:not(.collapsed) {
  background: #eef2ff;
  color: #25368f;
}

.partner-section {
  background: #fff;
  border-top: 1px solid #edf1ff;
}

.partner-link {
  border-radius: 12px;
  padding: 0.8rem 0.6rem;
  border: 1px solid #d7e2ff;
  background: #f8fbff;
  color: #3350d3;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.partner-link:hover {
  background: #eef4ff;
  color: #273fb4;
}

.site-footer {
  background: #0f132b;
  color: #c8d0f0;
  padding: 3.2rem 0 1.6rem;
}

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

.site-footer h3 {
  color: #e8ecff;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #c8d0f0;
  text-decoration: none;
}

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

.site-footer li + li {
  margin-top: 0.45rem;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-tags span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.78rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #95a0c6;
  font-size: 0.88rem;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 14px 24px rgba(29, 44, 132, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
  z-index: 999;
}

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

.modal-content {
  border: 1px solid #dee6ff;
  border-radius: 16px;
}

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

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

  .launch-item img {
    width: 128px;
  }
}

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

  .hero-image {
    height: 250px;
  }

  .drama-card img {
    height: 210px;
  }

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

  .launch-item img {
    width: 100%;
    height: 180px;
  }
}