:root {
  --bg: #eef3ff;
  --bg-soft: #f6f8ff;
  --surface: #ffffff;
  --text: #222b4d;
  --muted: #6f7693;
  --primary: #5f6fff;
  --primary-deep: #4757f1;
  --accent: #2ec7b9;
  --line: rgba(95, 111, 255, 0.2);
  --shadow: 0 14px 36px rgba(32, 45, 120, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% -10%, #dce4ff, transparent 36%), linear-gradient(180deg, #f3f6ff 0%, #edf2ff 42%, #f6f8ff 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(95, 111, 255, 0.08);
  transition: box-shadow 0.25s ease;
  z-index: 1050;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(38, 52, 128, 0.12);
}

.navbar {
  padding: 0.85rem 0;
}

.brand {
  gap: 0.6rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 14px rgba(47, 100, 230, 0.35);
}

.brand-mark::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.brand-text {
  font-size: 1.06rem;
  font-weight: 700;
  color: #1f2a55;
}

.nav-link {
  color: #36406a;
  font-weight: 600;
  margin: 0 0.2rem;
  border-radius: 99px;
  padding: 0.45rem 0.85rem !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary);
  background: rgba(95, 111, 255, 0.1);
}

.search-wrap .form-control {
  min-width: 220px;
  border-radius: 999px;
  border-color: rgba(95, 111, 255, 0.24);
  background: #f7f8ff;
}

.dropdown-menu {
  border-radius: 12px;
}

.offcanvas {
  background: #f6f8ff;
}

.mobile-links .list-group-item {
  border-radius: 12px;
  margin-bottom: 0.4rem;
  border: 1px solid rgba(95, 111, 255, 0.15);
  background: #fff;
}

.hero-section {
  position: relative;
}

.hero-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 19, 47, 0.88) 8%, rgba(21, 36, 87, 0.72) 48%, rgba(28, 52, 115, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.2rem;
  min-height: 430px;
}

.hero-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.hero-title {
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(1.7rem, 3.3vw, 2.8rem);
  margin-bottom: 0.9rem;
}

.hero-desc {
  color: rgba(236, 240, 255, 0.92);
  max-width: 650px;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-meta span {
  font-size: 0.82rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  padding: 0.3rem 0.7rem;
}

.hero-actions .btn {
  border-radius: 12px;
  font-weight: 700;
}

.soft-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.soft-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span {
  font-size: 0.78rem;
  color: #dbe4ff;
}

.spotlight-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(8, 17, 41, 0.24);
}

.spotlight-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.spotlight-body {
  padding: 1rem 1rem 1.1rem;
}

.spotlight-body h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.spotlight-body p {
  color: #505c84;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.7rem;
}

.progress-wrap span {
  font-size: 0.8rem;
  color: #61709f;
}

.progress-wrap .progress {
  margin-top: 0.35rem;
  height: 0.45rem;
  border-radius: 99px;
  background: rgba(95, 111, 255, 0.18);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-bar-84 {
  width: 84%;
}

.stats-row {
  margin-top: 1rem;
}

.stat-box {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 8px 20px rgba(57, 74, 160, 0.08);
}

.stat-box h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.stat-box p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.section-soft {
  background: linear-gradient(180deg, rgba(99, 121, 255, 0.06), rgba(46, 199, 185, 0.04));
  border-top: 1px solid rgba(95, 111, 255, 0.08);
  border-bottom: 1px solid rgba(95, 111, 255, 0.08);
}

.section-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 800;
  color: #212c54;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.head-link,
.head-note {
  font-size: 0.86rem;
  color: #6673a3;
  text-decoration: none;
}

.head-link:hover {
  color: var(--primary);
}

.channel-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff, #f4f7ff);
  border: 1px solid rgba(95, 111, 255, 0.18);
  border-radius: 16px;
  padding: 1rem 0.95rem;
  min-height: 146px;
  box-shadow: 0 8px 20px rgba(52, 68, 145, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(49, 65, 142, 0.14);
}

.channel-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.channel-card p {
  font-size: 0.84rem;
  color: #606d99;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.channel-card span {
  font-size: 0.75rem;
  color: #7b86ad;
}

.feature-card,
.latest-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(95, 111, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(48, 61, 138, 0.1);
  transition: transform 0.2s ease;
}

.feature-card:hover,
.latest-card:hover {
  transform: translateY(-4px);
}

.card-cover,
.latest-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.feature-card .card-body,
.latest-body {
  padding: 0.9rem 0.95rem 1rem;
}

.meta-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: rgba(95, 111, 255, 0.1);
  border-radius: 99px;
  padding: 0.2rem 0.58rem;
  margin-bottom: 0.45rem;
}

.feature-card h3,
.latest-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.03rem;
  font-weight: 700;
}

.feature-card p,
.latest-card p {
  margin: 0;
  color: #626f9b;
  font-size: 0.84rem;
  line-height: 1.55;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.72rem;
  font-size: 0.77rem;
  color: #7a87ad;
}

.rank-list {
  display: grid;
  gap: 0.72rem;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid rgba(95, 111, 255, 0.18);
  border-radius: 14px;
  padding: 0.6rem;
}

.rank-no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7f88ff);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

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

.rank-item h3 {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
}

.rank-item p {
  margin: 0.18rem 0 0;
  font-size: 0.77rem;
  color: #6f7ca8;
}

.cta-banner {
  border-radius: 18px;
  padding: 2rem;
  background: linear-gradient(120deg, #4456f3, #5f6fff 50%, #2ec7b9);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 16px 34px rgba(43, 57, 146, 0.25);
}

.cta-banner h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 800;
}

.cta-banner p {
  margin: 0;
  color: rgba(245, 248, 255, 0.92);
}

.faq-accordion .accordion-item {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(95, 111, 255, 0.2);
  box-shadow: 0 6px 18px rgba(53, 69, 146, 0.08);
}

.faq-accordion .accordion-button {
  font-weight: 700;
  color: #27325d;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-deep);
  background: rgba(95, 111, 255, 0.08);
}

.faq-accordion .accordion-body {
  color: #5e6993;
  line-height: 1.7;
}

.friend-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.friend-link {
  text-decoration: none;
  font-size: 0.92rem;
  color: #2d3b71;
  font-weight: 700;
  background: #fff;
  border: 1px dashed rgba(95, 111, 255, 0.46);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  transition: all 0.2s ease;
}

.friend-link:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.site-footer {
  margin-top: 0.6rem;
  padding: 2.8rem 0 1.4rem;
  color: #cfd8ff;
  background: linear-gradient(180deg, #161d39, #10152c);
}

.site-footer .brand-text {
  color: #ecf1ff;
}

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

.footer-text {
  color: #aeb9e6;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-links {
  margin: 0;
  padding: 0;
}

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

.footer-links a {
  color: #b8c4ef;
  text-decoration: none;
  font-size: 0.88rem;
}

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

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 214, 255, 0.16);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #a8b4df;
}

.footer-bottom a {
  color: #e2e9ff;
  text-decoration: none;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(66, 81, 196, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 1090;
}

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

.modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(24, 38, 101, 0.3);
}

.modal-header {
  background: #f3f5ff;
}

@media (max-width: 991.98px) {
  .hero-content {
    min-height: auto;
    padding: 1.35rem;
  }

  .spotlight-card img {
    aspect-ratio: 16 / 10;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .section-block {
    padding: 2.2rem 0;
  }

  .hero-title {
    font-size: 1.58rem;
  }

  .hero-desc {
    font-size: 0.92rem;
  }

  .stat-box {
    padding: 0.8rem;
  }

  .channel-card {
    min-height: 136px;
  }
}