:root {
  --bg: #f4f6ff;
  --surface: #ffffff;
  --ink: #1f2437;
  --muted: #6d7387;
  --primary: #6f44ff;
  --primary-dark: #4e2bd6;
  --accent: #ff5e7a;
  --line: #e8ebf7;
  --shadow: 0 14px 34px rgba(37, 25, 96, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a {
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(26, 22, 65, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.navbar {
  min-height: 74px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  position: relative;
  box-shadow: 0 8px 20px rgba(111, 68, 255, 0.35);
}

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

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #192035;
}

.nav-link {
  font-weight: 500;
  color: #30364d;
}

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

.btn-pill {
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
}

main {
  padding-top: 74px;
}

.hero-section {
  background: linear-gradient(135deg, #4f3be8 0%, #7f38e0 45%, #ff4f75 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(4px);
}

.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 0.38rem 0.85rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
}

.hero-desc {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-item {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.1);
}

.hero-media-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px rgba(17, 10, 58, 0.35);
}

.hero-media-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
}

.hero-media-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 9, 18, 0.8), rgba(10, 9, 18, 0.08));
}

.hero-media-overlay p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
}

.section-block {
  padding: 58px 0;
}

.section-head {
  margin-bottom: 12px;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7180af;
  font-weight: 700;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 800;
  color: #1a2035;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.category-card {
  border-radius: 16px;
  padding: 1rem;
  color: #fff;
  min-height: 146px;
  box-shadow: var(--shadow);
}

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

.category-card p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.95;
}

.category-card small {
  font-size: 0.76rem;
  opacity: 0.95;
}

.cat-a { background: linear-gradient(135deg, #6654ff, #8f6dff); }
.cat-b { background: linear-gradient(135deg, #00a8b8, #0dc8a8); }
.cat-c { background: linear-gradient(135deg, #ff5f89, #ff7e64); }
.cat-d { background: linear-gradient(135deg, #4a65ff, #4ea9ff); }
.cat-e { background: linear-gradient(135deg, #7f3fff, #c05dff); }
.cat-f { background: linear-gradient(135deg, #0e9f6e, #1dc9a8); }
.cat-g { background: linear-gradient(135deg, #f06d3a, #ff9f43); }
.cat-h { background: linear-gradient(135deg, #4a7bff, #6fd0ff); }
.cat-i { background: linear-gradient(135deg, #e23f76, #ff7091); }
.cat-j { background: linear-gradient(135deg, #5c5cff, #5ba4ff); }

.media-card,
.spotlight-card {
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 36, 55, 0.09);
  background: var(--surface);
}

.media-card .card-img-top,
.spotlight-card .card-img-top {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.media-card .card-body,
.spotlight-card .card-body {
  padding: 0.85rem 0.9rem 0.95rem;
}

.card-title {
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #1d2137;
}

.meta {
  margin-bottom: 0.52rem;
  font-size: 0.78rem;
  color: #717a94;
}

.chip-wrap {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.chip-wrap span {
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #eef1ff;
  color: var(--primary-dark);
  font-weight: 600;
}

.ranking-board {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: 0 14px 34px rgba(29, 33, 55, 0.09);
}

.ranking-board li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.64rem 0.45rem;
  border-bottom: 1px solid var(--line);
}

.ranking-board li:last-child {
  border-bottom: 0;
}

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

.ranking-board h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.ranking-board p {
  margin: 0;
  font-size: 0.76rem;
  color: #7d849d;
}

.friend-wrap {
  background: #fff;
  border: 1px dashed #d6ddfb;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

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

.friend-link {
  display: block;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #e4e9ff;
  padding: 0.7rem 0.8rem;
  color: #2f3550;
  font-weight: 600;
  background: #fafbff;
  transition: all 0.2s ease;
}

.friend-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
}

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

.custom-accordion .accordion-button {
  font-weight: 700;
  color: #232945;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: #f3f5ff;
  color: var(--primary-dark);
  box-shadow: none;
}

.site-footer {
  background: #131b2f;
  color: rgba(241, 245, 255, 0.9);
  padding: 56px 0 24px;
}

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

.footer-text {
  color: rgba(241, 245, 255, 0.72);
  font-size: 0.92rem;
}

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

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: rgba(241, 245, 255, 0.78);
}

.footer-links a {
  color: rgba(241, 245, 255, 0.78);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.84rem;
  color: rgba(241, 245, 255, 0.7);
}

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

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(83, 63, 201, 0.34);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 1050;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 50px;
  }

  .hero-media-card img {
    height: 350px;
  }

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

@media (max-width: 767.98px) {
  .section-block {
    padding: 46px 0;
  }

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

  .media-card .card-img-top,
  .spotlight-card .card-img-top {
    height: 195px;
  }

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

@media (max-width: 575.98px) {
  .hero-media-card img {
    height: 320px;
  }

  .category-card {
    min-height: 134px;
  }
}