:root {
  --bg: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #f6f9ff;
  --text: #0f172a;
  --muted: #5b6478;
  --primary: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --dark: #0b1220;
  --border: #dce6ff;
  --shadow: 0 12px 32px rgba(22, 34, 78, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, #f3f8ff 0%, #eef4ff 45%, #f5f8ff 100%);
  line-height: 1.6;
  padding-top: 84px;
}

a {
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(170, 188, 235, 0.35);
  transition: all 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 24px rgba(26, 45, 95, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}

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

.navbar .nav-link {
  color: #1f2a44;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #ef7d00);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

.btn-accent:hover {
  color: #fff;
  filter: brightness(1.05);
}

.notice-wrap {
  padding-top: 1rem;
}

.notice-card {
  background: linear-gradient(135deg, #141b2f, #1d2846);
  color: #edf4ff;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.notice-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9bc0ff;
}

.notice-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.update-list {
  padding-left: 1rem;
  color: #cbddff;
  margin: 0;
}

.hero-block {
  padding: 1rem 0 0.5rem;
}

.hero-carousel {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-carousel .carousel-item {
  height: 500px;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 12, 24, 0.75) 0%, rgba(8, 12, 24, 0.55) 38%, rgba(8, 12, 24, 0.2) 100%);
}

.hero-content {
  left: 8%;
  right: auto;
  bottom: 18%;
  max-width: 620px;
}

.hero-content h1,
.hero-content h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.9vw, 2.6rem);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 0.8rem;
}

.hero-content p {
  color: rgba(237, 246, 255, 0.92);
  max-width: 52ch;
}

.hero-kicker {
  display: inline-block;
  background: rgba(93, 213, 255, 0.24);
  border: 1px solid rgba(147, 221, 255, 0.4);
  color: #dcf7ff;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 0.9rem;
}

.quick-panel {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.btn-filter {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: #293658;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #f1f6ff;
  color: #315087;
  border-radius: 999px;
  font-size: 12px;
  padding: 0.26rem 0.7rem;
}

.content-section {
  padding: 2rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #f7faff 0%, #f1f6ff 100%);
  border-top: 1px solid #e5eeff;
  border-bottom: 1px solid #e5eeff;
}

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

.kicker {
  margin-bottom: 0.25rem;
  color: #5a77b4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.film-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(25, 41, 86, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.film-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(19, 37, 82, 0.12);
}

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

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-hot {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff9e00, #ff5f00);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}

.score {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 11px;
  color: #fff;
  background: rgba(8, 16, 36, 0.72);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.film-card .card-body {
  padding: 0.72rem;
}

.film-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.film-card p {
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 38px;
  margin-bottom: 0.45rem;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #60729f;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

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

.tag-cloud a {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: #2f4b84;
  border: 1px solid #d6e4ff;
  background: #f5f9ff;
}

.editor-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px dashed #c8d9ff;
  background: #f6faff;
  border-radius: 12px;
  padding: 0.8rem;
}

.editor-note img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e7efff;
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-list span {
  width: 32px;
  height: 24px;
  border-radius: 8px;
  background: #eef4ff;
  color: #345489;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.rank-list a {
  color: #26344f;
  font-weight: 600;
}

.rank-list em {
  color: #f08b00;
  font-style: normal;
  font-weight: 700;
}

.topic-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 230px;
}

.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.topic-overlay {
  position: relative;
  z-index: 1;
  min-height: 230px;
  background: linear-gradient(180deg, rgba(10, 20, 45, 0.15) 0%, rgba(9, 18, 39, 0.78) 100%);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.topic-overlay h3 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.topic-overlay p {
  color: #dfe9ff;
  margin-bottom: 0;
  font-size: 0.88rem;
}

.friend-section {
  background: #fff;
}

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

.friend-grid a {
  border: 1px solid #d8e5ff;
  border-radius: 12px;
  background: #f5f9ff;
  color: #2f4f8b;
  padding: 0.7rem 0.9rem;
  text-align: center;
  font-weight: 600;
}

.friend-grid a:hover {
  background: #eaf2ff;
}

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

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

.site-footer {
  margin-top: 1rem;
  background: linear-gradient(145deg, #0a1222, #101b31);
  color: #c8d7f3;
  padding: 2.2rem 0 1.2rem;
}

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

.footer-text {
  max-width: 52ch;
  color: #9fb4dd;
}

.site-footer h4 {
  color: #edf3ff;
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
}

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

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

.footer-links a {
  color: #a8bde5;
}

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

.footer-bottom {
  border-top: 1px solid rgba(163, 185, 223, 0.25);
  margin-top: 1.2rem;
  padding-top: 1rem;
  color: #8ea7d5;
  font-size: 0.9rem;
}

.floating-tools {
  position: fixed;
  right: 14px;
  top: 40%;
  transform: translateY(-50%);
  z-index: 1020;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.floating-tools a,
.floating-tools button {
  width: 38px;
  height: 38px;
  border: 1px solid #d7e5ff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #2f4f86;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 15px rgba(24, 47, 96, 0.1);
}

.floating-tools button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-tools button.show {
  opacity: 1;
  pointer-events: auto;
}

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

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

  .hero-carousel .carousel-item,
  .topic-card,
  .topic-overlay {
    min-height: 380px;
    height: 380px;
  }

  .hero-content {
    left: 6%;
    bottom: 14%;
    max-width: 90%;
  }

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

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

  .hero-carousel .carousel-item,
  .topic-card,
  .topic-overlay {
    min-height: 300px;
    height: 300px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 1.35rem;
  }

  .hero-content p {
    font-size: 0.88rem;
  }

  .section-heading {
    align-items: center;
  }

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