:root {
  --bg: #f3f6ff;
  --card: #ffffff;
  --text: #1f2a44;
  --muted: #6c7a96;
  --brand: #6a5cff;
  --brand-2: #14b8a6;
  --dark: #0d1324;
  --line: #e5eaf5;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #eef2ff 0%, var(--bg) 46%, #f7fbff 100%);
  line-height: 1.6;
  padding-top: 78px;
}

a {
  text-decoration: none;
}

.site-header .navbar {
  background: rgba(9, 15, 32, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled .navbar {
  background: rgba(9, 15, 32, 0.95);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 18px rgba(88, 91, 255, 0.35);
}

.brand-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

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

.btn-brand {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(63, 95, 255, 0.28);
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero-section {
  padding: 20px 0 18px;
}

.hero-carousel {
  box-shadow: 0 24px 48px rgba(24, 40, 90, 0.18);
  border-radius: 1rem;
}

.hero-carousel .carousel-item img {
  height: min(66vh, 620px);
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 14, 28, 0.72) 0%, rgba(8, 14, 28, 0.44) 45%, rgba(8, 14, 28, 0.18) 100%);
}

.hero-carousel .carousel-caption {
  left: 8%;
  right: auto;
  bottom: 15%;
  max-width: 560px;
  z-index: 2;
}

.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.hero-carousel h1,
.hero-carousel h2 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-carousel h1 {
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
}

.hero-carousel h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.hero-carousel p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
}

.quick-entry {
  padding-bottom: 14px;
}

.entry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  padding: 14px 8px;
  transition: 0.22s ease;
  height: 100%;
}

.entry-card span {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 6px;
}

.entry-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
}

.entry-card:hover {
  transform: translateY(-2px);
  border-color: #dbe3f8;
  box-shadow: 0 10px 24px rgba(44, 65, 120, 0.08);
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.section-head h2 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 700;
}

.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.more-link {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
}

.media-card {
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(35, 60, 120, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-card:hover .poster-wrap img {
  transform: scale(1.04);
}

.badge-rate {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 0.74rem;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #f97316);
  padding: 3px 8px;
  border-radius: 999px;
}

.media-body {
  padding: 10px 10px 12px;
}

.media-body h3 {
  font-size: 0.98rem;
  margin: 0 0 2px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.meta {
  margin-top: 8px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  color: #8390a9;
}

.join-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 260px;
  box-shadow: 0 22px 44px rgba(21, 43, 98, 0.18);
}

.join-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(52, 69, 138, 0.84), rgba(29, 176, 155, 0.65));
}

.join-content {
  position: relative;
  z-index: 2;
  padding: 52px 24px;
  text-align: center;
  color: #fff;
}

.join-content h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  margin-bottom: 8px;
}

.join-content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 18px;
}

.custom-accordion .accordion-item {
  border: 1px solid var(--line);
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.custom-accordion .accordion-button {
  font-weight: 600;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--brand);
  background: #f0f4ff;
}

.friend-section {
  padding-top: 8px;
}

.friend-link {
  background: #fff;
  border: 1px solid var(--line);
  color: #42506d;
  border-radius: 999px;
  padding: 11px 10px;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.friend-link:hover {
  border-color: #ced8f5;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(63, 95, 255, 0.12);
}

.site-footer {
  margin-top: 12px;
  color: #c7d2e8;
  background: linear-gradient(180deg, #0d1324 0%, #0a0f1d 100%);
  padding-top: 46px;
}

.site-footer h4 {
  color: #f3f6ff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #9faecc;
  font-size: 0.88rem;
}

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

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

.footer-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  opacity: 0.85;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin-top: 18px;
  margin-bottom: 14px;
}

.notice-modal {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

.notice-modal .modal-header {
  background: #f4f7ff;
}

.notice-modal .modal-body li {
  margin-bottom: 8px;
}

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

  .hero-carousel .carousel-item img {
    height: 54vh;
  }

  .hero-carousel .carousel-caption {
    left: 6%;
    right: 6%;
    bottom: 12%;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel .carousel-item img {
    height: 48vh;
  }

  .hero-carousel p {
    font-size: 0.9rem;
  }

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

  .join-content {
    padding: 36px 16px;
  }
}