:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #162335;
  --muted: #6e7b8f;
  --primary: #0aa3a1;
  --primary-dark: #09767d;
  --accent: #ff6b6b;
  --deep: #0f1a2d;
  --line: #e5ebf3;
  --shadow: 0 16px 36px rgba(16, 35, 53, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.site-header {
  background: linear-gradient(90deg, rgba(15, 26, 45, 0.95), rgba(11, 47, 66, 0.9));
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  z-index: 1050;
}

.site-header.scrolled {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.navbar {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #9ef7f2, var(--primary));
  color: #07252e;
  font-size: 0.9rem;
}

.brand-text {
  color: #f3f8ff;
  font-size: 1.02rem;
}

.navbar .nav-link {
  color: rgba(238, 246, 255, 0.86);
  font-size: 0.94rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

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

.btn-cta {
  background: linear-gradient(135deg, var(--accent), #ff8b6e);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  font-weight: 600;
}

.btn-cta:hover,
.btn-cta:focus {
  background: linear-gradient(135deg, #ff5b5b, #ff7a58);
  color: #fff;
}

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

.mobile-nav-list .list-group-item {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  padding-left: 0;
  padding-right: 0;
}

.page-main {
  padding-top: 78px;
}

.hero-section .carousel-item {
  position: relative;
}

.hero-section .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7, 16, 34, 0.72), rgba(7, 16, 34, 0.3), rgba(7, 16, 34, 0.5));
}

.hero-section .carousel-item img {
  height: 560px;
  object-fit: cover;
}

.carousel-caption-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 700px;
  text-align: left;
  color: #f4f8ff;
}

.hero-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(240, 245, 255, 0.9);
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.58rem 1.1rem;
  font-weight: 600;
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
}

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

.bg-soft {
  background: #eef3f8;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 700;
  color: #12253a;
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-more {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

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

.feature-banner img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transform: scale(1.01);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 38, 0.82), rgba(8, 20, 38, 0.2));
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}

.feature-overlay h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-overlay p {
  margin: 0.45rem 0 0.95rem;
  font-size: 0.92rem;
  color: rgba(245, 250, 255, 0.92);
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(19, 33, 48, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(19, 33, 48, 0.12);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.score-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
}

.media-card .card-body {
  padding: 1rem 1rem 1.08rem;
}

.media-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1a2a3f;
}

.media-card .meta {
  margin: 0.35rem 0 0.55rem;
  color: #5f6d82;
  font-size: 0.86rem;
}

.media-card .desc {
  margin: 0;
  color: #3e4e63;
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.tag-row span {
  font-size: 0.76rem;
  color: var(--primary-dark);
  background: #e6f8f7;
  border: 1px solid #c7edeb;
  border-radius: 999px;
  padding: 0.17rem 0.55rem;
}

.update-date {
  margin: 0.85rem 0 0;
  font-size: 0.79rem;
  color: #73829a;
}

.custom-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: #fff;
}

.custom-accordion .accordion-button {
  font-weight: 600;
  color: #18304d;
  background: #fff;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: #0b5563;
  background: #eaf9f8;
  box-shadow: none;
}

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

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

.friend-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  border: 1px dashed #b4c5d8;
  color: #1e3b59;
  font-weight: 600;
  background: #fff;
  transition: all 0.25s ease;
}

.friend-links a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #f0fbfb;
}

.app-cta {
  border-radius: 18px;
  background: linear-gradient(135deg, #156b85, #214f7e 45%, #2f3e7b);
  color: #ecf6ff;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.app-cta h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin-top: 0.55rem;
  margin-bottom: 0.7rem;
}

.app-cta p {
  margin-bottom: 1rem;
  color: rgba(236, 246, 255, 0.9);
}

.app-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.site-footer {
  background: #0d1628;
  color: #c9d5e9;
  padding: 3rem 0 1.3rem;
}

.footer-top {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 213, 233, 0.16);
}

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

.site-footer h3 {
  color: #eef6ff;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

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

.footer-links li + li {
  margin-top: 0.42rem;
}

.footer-links a {
  color: #c9d5e9;
  font-size: 0.92rem;
}

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

.footer-bottom {
  padding-top: 1rem;
  font-size: 0.86rem;
  color: #9fb0c9;
}

.footer-bottom p {
  margin: 0;
}

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

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(10, 163, 161, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1080;
}

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

@media (max-width: 991.98px) {
  .hero-section .carousel-item img {
    height: 500px;
  }

  .hero-content {
    max-width: 100%;
  }

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

@media (max-width: 767.98px) {
  .page-main {
    padding-top: 72px;
  }

  .hero-section .carousel-item img {
    height: 440px;
  }

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

  .hero-meta span {
    font-size: 0.75rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .btn-cta,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

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

  .app-cta {
    padding: 1.4rem;
  }
}