:root {
  --bg: #f4f5ff;
  --surface: #ffffff;
  --surface-2: #eef1ff;
  --text: #1a2040;
  --muted: #687194;
  --primary: #6f52ff;
  --primary-deep: #5035d9;
  --accent: #28d7b3;
  --accent-deep: #19b294;
  --border: #dfe4ff;
  --shadow: 0 12px 35px rgba(32, 38, 74, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 0%, #eef0ff 0%, var(--bg) 55%, #f8f9ff 100%);
  color: var(--text);
}

a {
  text-decoration: none;
}

.section-anchor {
  scroll-margin-top: 104px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1040;
  padding-top: 12px;
  transition: padding 0.25s ease;
}

.nav-shell {
  border-radius: 18px;
  border: 1px solid rgba(150, 160, 220, 0.28);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(41, 50, 89, 0.08);
  padding: 0.45rem 0.95rem;
}

.site-header.scrolled {
  padding-top: 8px;
}

.site-header.scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

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

.navbar .nav-link {
  color: #3d4668;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #8572ff);
}

.btn-accent {
  color: #fff;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #24c8ff);
  box-shadow: 0 8px 20px rgba(31, 191, 166, 0.3);
}

.btn-accent:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), #0cb6ec);
}

.mobile-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 100%);
}

.mobile-panel .nav-link {
  color: var(--text);
  background: transparent;
}

main {
  padding-top: 98px;
}

.hero-section {
  padding: 0.7rem 0 2rem;
}

.hero-shell {
  position: relative;
  min-height: 470px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 44px rgba(20, 27, 55, 0.22);
}

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

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(110deg, rgba(14, 18, 37, 0.88) 0%, rgba(30, 39, 72, 0.66) 46%, rgba(39, 44, 85, 0.3) 100%);
  color: #fff;
}

.hero-pill {
  display: inline-flex;
  width: fit-content;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  margin-bottom: 0.95rem;
}

.hero-overlay h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  max-width: 680px;
}

.hero-overlay p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin-bottom: 1.4rem;
}

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

.hero-actions .btn {
  border-radius: 999px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.metrics-wrap {
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 30px rgba(34, 42, 74, 0.08);
}

.metric-title {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.metric-value {
  margin: 0.25rem 0 0;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
}

.section-block {
  padding: 1.2rem 0 1rem;
}

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

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.view-more,
.section-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.category-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 0.9rem 0.8rem;
  box-shadow: 0 8px 20px rgba(44, 51, 81, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(33, 42, 74, 0.12);
}

.category-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.album-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(37, 44, 81, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(39, 45, 80, 0.16);
}

.album-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card .card-body {
  background: #fff;
}

.album-card p {
  color: var(--muted);
}

.tag-hot {
  font-size: 0.76rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff7d59, #ff5f84);
}

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

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #e6e9ff;
  border-radius: 14px;
  padding: 0.58rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  transition: all 0.2s ease;
}

.ranking-item:hover {
  border-color: #d2d9ff;
  transform: translateX(2px);
}

.rank-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  background: linear-gradient(135deg, var(--primary), #8e78ff);
}

.ranking-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 58px;
}

.ranking-content {
  flex: 1;
  min-width: 0;
}

.ranking-content h3 {
  margin: 0;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-content p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-badge {
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #29c8ab, #1ab8f4);
}

.latest-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 10px 24px rgba(34, 42, 74, 0.11);
}

.latest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.latest-card:hover img {
  transform: scale(1.05);
}

.latest-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 13, 31, 0) 0%, rgba(9, 13, 31, 0.84) 85%);
}

.latest-overlay h3 {
  margin: 0;
  font-size: 0.95rem;
}

.latest-overlay span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.86);
}

.faq-wrap .accordion-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.72rem;
  background: var(--surface);
}

.faq-wrap .accordion-button {
  font-weight: 600;
  color: var(--text);
  background: #fff;
}

.faq-wrap .accordion-button:not(.collapsed) {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #8d7bff);
  box-shadow: none;
}

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

.friend-links-box {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f7f8ff 100%);
  box-shadow: 0 10px 26px rgba(33, 39, 77, 0.08);
  padding: 1rem;
}

.friend-links-box h2 {
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}

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

.friend-links-grid a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed #c9d0ff;
  border-radius: 10px;
  min-height: 42px;
  color: #4a5586;
  background: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.friend-links-grid a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7d68ff);
  border-color: transparent;
}

.site-footer {
  margin-top: 2.1rem;
  background: #0f1228;
  color: #aeb7dc;
  padding: 2.2rem 0 1rem;
}

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

.footer-text {
  margin-top: 0.7rem;
  margin-bottom: 0;
  line-height: 1.7;
}

.footer-title {
  color: #ecf0ff;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #aeb7dc;
  display: inline-block;
  margin-bottom: 0.45rem;
}

.footer-links a:hover,
.footer-updates span,
.site-footer a:hover {
  color: #7fd9ff;
}

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

.footer-updates span {
  display: inline-block;
  min-width: 90px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  font-size: 0.9rem;
}

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

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #8a78ff);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1050;
}

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

@media (min-width: 768px) {
  .friend-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  main {
    padding-top: 86px;
  }

  .nav-shell {
    border-radius: 14px;
  }

  .hero-shell,
  .hero-overlay {
    min-height: 390px;
  }

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

@media (max-width: 575.98px) {
  .hero-shell,
  .hero-overlay {
    min-height: 330px;
    border-radius: 20px;
  }

  .hero-overlay {
    padding: 1rem;
  }

  .hero-overlay p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .metrics-wrap {
    margin-top: -22px;
  }

  .metric-card {
    padding: 0.78rem;
  }

  .ranking-thumb {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .rank-num {
    flex-basis: 28px;
    height: 28px;
  }

  .latest-card {
    min-height: 230px;
  }
}