:root {
  --bg: #f3f6ff;
  --bg-soft: #eef3ff;
  --surface: #ffffff;
  --text: #1d2640;
  --muted: #66708b;
  --primary: #6d4dff;
  --primary-dark: #5438d8;
  --secondary: #10b7a4;
  --stroke: #dce4ff;
  --shadow: 0 12px 30px rgba(41, 53, 108, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #f6f9ff 0%, var(--bg) 50%, #edf2ff 100%);
  padding-top: 108px;
}

a {
  text-decoration: none;
}

.site-header {
  transition: all 0.25s ease;
}

.site-header.scrolled .navbar-shell {
  box-shadow: 0 10px 24px rgba(35, 44, 86, 0.16);
}

.topline {
  background: linear-gradient(90deg, #1f2a52, #24396d);
  color: #dbe5ff;
  font-size: 12px;
  padding: 7px 0;
}

.navbar-shell {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e4e9ff;
  padding: 0.8rem 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 18px rgba(98, 80, 255, 0.38);
}

.brand-name {
  color: #1e2a4f;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link {
  color: #37425f;
  font-weight: 500;
  margin: 0 0.2rem;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

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

.btn-glass {
  border: 1px solid #d7defd;
  background: #f5f7ff;
  color: #36426a;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}

.mobile-brand {
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-section {
  padding: 0 0 1.25rem;
}

#heroCarousel {
  max-width: 1360px;
  margin: 0 auto;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 15, 38, 0.8) 20%, rgba(10, 15, 38, 0.35) 60%, rgba(10, 15, 38, 0.2) 100%);
}

.hero-media img {
  height: 500px;
  object-fit: cover;
}

.carousel-caption {
  text-align: left;
  left: 9%;
  right: auto;
  bottom: 18%;
  max-width: 560px;
}

.carousel-caption .eyebrow {
  font-size: 0.84rem;
  color: #b6c8ff;
  margin-bottom: 0.45rem;
}

.carousel-caption h1,
.carousel-caption h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.carousel-caption p {
  color: #eaf0ff;
  margin-bottom: 1rem;
}

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

.search-strip {
  margin-top: 0.85rem;
}

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

.search-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.45rem;
}

.search-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.search-form {
  display: flex;
  gap: 0.65rem;
}

.search-form .form-control {
  border-radius: 12px;
  border: 1px solid #d8e0ff;
  min-height: 46px;
}

.search-form .btn {
  border-radius: 12px;
  min-width: 86px;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag-item {
  border: 1px solid #d9e0ff;
  color: #4a5580;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  background: #f8faff;
}

.tag-item:hover {
  border-color: #c3cfff;
  color: var(--primary);
}

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

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
  font-weight: 800;
}

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

.media-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(56, 72, 125, 0.08);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(57, 70, 122, 0.16);
}

.thumb-wrap {
  position: relative;
}

.thumb-wrap img {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.score-badge,
.tag-badge {
  position: absolute;
  top: 10px;
  font-size: 0.72rem;
  border-radius: 999px;
  color: #fff;
  line-height: 1;
  padding: 0.33rem 0.55rem;
}

.score-badge {
  left: 10px;
  background: linear-gradient(120deg, #ff8f1f, #ffb347);
}

.tag-badge {
  right: 10px;
  background: rgba(18, 31, 66, 0.68);
}

.card-content {
  padding: 0.9rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-content h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  min-height: 2.35rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  color: #7883a4;
  font-size: 0.76rem;
}

.media-card .btn {
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  align-self: flex-start;
}

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

.panel-intro {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.small-tip {
  color: #7180ad;
  font-size: 0.86rem;
}

.category-tile {
  border: 1px solid #dce2ff;
  border-radius: 12px;
  display: block;
  padding: 0.78rem 0.82rem;
  background: linear-gradient(180deg, #fdfdff 0%, #f7f9ff 100%);
  color: #2e3a5c;
  transition: all 0.2s ease;
}

.category-tile strong {
  display: block;
  font-size: 0.92rem;
}

.category-tile span {
  display: block;
  color: #7a86aa;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.category-tile:hover {
  border-color: #b8c7ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(92, 108, 168, 0.14);
}

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

.rank-list li {
  counter-increment: rank;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #dde5ff;
  padding: 0.56rem 0;
  gap: 0.9rem;
}

.rank-list li::before {
  content: counter(rank);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8edff;
  color: #3d4e8d;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.rank-list a {
  flex: 1;
  color: #28365f;
}

.rank-list span {
  color: #ff991f;
  font-weight: 700;
  font-size: 0.86rem;
}

.media-card.compact .thumb-wrap img {
  height: 240px;
}

.media-card.compact .card-content p {
  min-height: auto;
}

.promo-section {
  padding: 0.4rem 0 2rem;
}

.promo-box {
  border-radius: 22px;
  background: linear-gradient(120deg, #2a2f57, #344e8c 45%, #265f69 100%);
  color: #f0f5ff;
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(28, 35, 72, 0.28);
}

.promo-box .eyebrow {
  color: #b4cbff;
  margin-bottom: 0.35rem;
}

.promo-box h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin-bottom: 0.55rem;
}

.promo-box p {
  color: #deebff;
}

.promo-box .btn {
  border-radius: 10px;
  padding: 0.48rem 1rem;
  font-weight: 600;
}

.promo-image {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 22px rgba(15, 18, 38, 0.3);
}

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

.faq-wrap .accordion-button {
  font-weight: 600;
  background: #fdfdff;
}

.faq-wrap .accordion-button:not(.collapsed) {
  background: #eef2ff;
  color: #2f3d6d;
  box-shadow: none;
}

.partner-section {
  padding-top: 1rem;
}

.partner-box {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  box-shadow: var(--shadow);
}

.partner-box a {
  border: 1px solid #d8e0ff;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  text-align: center;
  color: #3d4c79;
  background: #f7f9ff;
  font-weight: 500;
}

.partner-box a:hover {
  border-color: #bdccff;
  color: var(--primary);
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 1.1rem;
  background: linear-gradient(150deg, #181c2f, #1d2440 55%, #16293f 100%);
  color: #d7e1ff;
}

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

.site-footer p {
  color: #b6c4e7;
}

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

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

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: #cdd9fb;
}

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

.update-time {
  font-size: 0.84rem;
  margin-top: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(202, 216, 255, 0.18);
  margin-top: 1.2rem;
  padding-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #b5c3e8;
  font-size: 0.85rem;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(49, 63, 125, 0.26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 50;
}

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

.modal-content {
  border-radius: 14px;
  border: 1px solid #dde4ff;
}

@media (max-width: 1199.98px) {
  .thumb-wrap img,
  .media-card.compact .thumb-wrap img {
    height: 210px;
  }
}

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

  .hero-media img {
    height: 420px;
  }

  .carousel-caption {
    left: 7%;
    bottom: 14%;
    max-width: 78%;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .hero-media img {
    height: 360px;
  }

  .carousel-caption {
    max-width: 86%;
    bottom: 12%;
  }

  .carousel-caption p {
    font-size: 0.92rem;
  }

  .search-panel,
  .panel-box,
  .partner-box {
    padding: 1rem;
  }

  .thumb-wrap img,
  .media-card.compact .thumb-wrap img {
    height: 190px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .logo-dot {
    width: 30px;
    height: 30px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .partner-box {
    grid-template-columns: 1fr;
  }
}