:root {
  --bg: #f3f6ff;
  --surface: #ffffff;
  --surface-soft: #eef3ff;
  --text: #17223b;
  --muted: #6f7a98;
  --primary: #5c67ff;
  --primary-dark: #3e47d6;
  --accent: #17b9a6;
  --line: #dfe5ff;
  --shadow: 0 10px 30px rgba(63, 75, 150, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% -10%, #e6ecff 0%, transparent 40%),
              radial-gradient(circle at 90% 2%, #dcfbf6 0%, transparent 35%),
              var(--bg);
}

.site-header {
  backdrop-filter: blur(8px);
  background: rgba(243, 246, 255, 0.9);
  border-bottom: 1px solid rgba(92, 103, 255, 0.08);
}

.navbar {
  padding: 0.9rem 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--accent), var(--primary));
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(92, 103, 255, 0.25);
}

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

.nav-link {
  font-size: 0.95rem;
  color: #34415f;
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px;
}

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

.btn-subscribe {
  border-radius: 999px;
  background: linear-gradient(130deg, var(--primary), #7a62ff);
  color: #fff;
  border: 0;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.btn-subscribe:hover {
  color: #fff;
  background: linear-gradient(130deg, var(--primary-dark), #5f48f0);
}

.hero-section {
  padding: 2.2rem 0 1rem;
}

.hero-panel {
  background: linear-gradient(140deg, #ffffff, #f7f9ff);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-kicker {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.6px;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 800;
  color: #101a34;
}

.hero-desc {
  color: var(--muted);
  margin-top: 0.85rem;
  margin-bottom: 1.15rem;
  max-width: 820px;
}

.search-input {
  border-radius: 14px;
  border: 1px solid #d5defc;
  min-height: 46px;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(92, 103, 255, 0.18);
}

.btn-search,
.btn-reset {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 600;
}

.btn-search {
  border: 0;
  color: #fff;
  background: linear-gradient(130deg, var(--primary), #6f55ff);
}

.btn-search:hover {
  color: #fff;
  background: linear-gradient(130deg, var(--primary-dark), #4d39d5);
}

.btn-reset {
  border: 1px solid #cfd7f8;
  background: #fff;
  color: #3f4b72;
}

.search-empty {
  color: #d32a6a;
  font-size: 0.92rem;
}

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

.stat-chip {
  background: var(--surface-soft);
  border: 1px solid #d8e0ff;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
}

.stat-chip strong {
  font-size: 0.95rem;
}

.stat-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.section-heading a {
  color: #5d6798;
  text-decoration: none;
  font-size: 0.86rem;
}

.section-heading a:hover {
  color: var(--primary);
}

.media-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(22, 35, 84, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--surface);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(28, 39, 95, 0.16);
}

.media-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card .card-body {
  padding: 0.7rem 0.7rem 0.8rem;
}

.media-title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 700;
}

.media-subtitle {
  margin: 0.35rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.media-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #6f7b98;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  background: linear-gradient(130deg, #ff5e97, #ff7b58);
}

.ranking-board,
.recommend-box,
.comment-panel,
.faq-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.ranking-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  background: #f7f9ff;
  border: 1px solid #e3e8ff;
  border-radius: 12px;
  padding: 0.48rem 0.62rem;
}

.rank-no {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), var(--primary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 700;
}

.ranking-list a {
  text-decoration: none;
  color: #27324e;
  font-size: 0.9rem;
}

.ranking-list a:hover {
  color: var(--primary);
}

.score {
  color: #e54f91;
  font-weight: 700;
  font-size: 0.82rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d2dcff;
  background: #f4f7ff;
  color: #37446f;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  margin: 0.22rem;
  font-size: 0.84rem;
}

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

.comment-panel .form-control,
.modal-content .form-control {
  border-radius: 12px;
  border: 1px solid #d6defd;
}

.comment-panel .form-control:focus,
.modal-content .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(92, 103, 255, 0.16);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comment-item {
  border: 1px solid #e4eaff;
  border-radius: 14px;
  background: #f8faff;
  padding: 0.75rem 0.85rem;
}

.comment-item strong {
  font-size: 0.9rem;
}

.comment-item time {
  margin-left: 0.6rem;
  font-size: 0.76rem;
  color: #7c87a8;
}

.comment-item p {
  margin: 0.4rem 0 0;
  font-size: 0.87rem;
  color: #334165;
}

.accordion-item {
  border: 1px solid #e0e6ff;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.accordion-button {
  font-weight: 600;
  color: #29365b;
  background: #f7f9ff;
}

.accordion-button:not(.collapsed) {
  color: #1f2a4b;
  background: #eef2ff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.friend-links .friend-link {
  text-decoration: none;
  text-align: center;
  border: 1px dashed #c8d6ff;
  border-radius: 14px;
  background: #fff;
  color: #2e3a62;
  padding: 0.72rem 0.5rem;
  font-size: 0.88rem;
}

.friend-links .friend-link:hover {
  color: #fff;
  background: linear-gradient(130deg, var(--primary), #6e57ff);
  border-color: transparent;
}

.site-footer {
  margin-top: 1.2rem;
  border-top: 1px solid #dce3ff;
  background: #edf2ff;
  padding: 1rem 0 1.3rem;
  color: #516089;
  font-size: 0.86rem;
}

.footer-brand {
  color: #27345a;
  text-decoration: none;
  font-weight: 700;
}

.footer-brand:hover {
  color: var(--primary);
}

.footer-note {
  color: #6c789c;
}

.modal-content {
  border-radius: 18px;
  border: 1px solid #dfe6ff;
}

@media (max-width: 991.98px) {
  .hero-panel {
    padding: 1.35rem;
  }

  .section-heading h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 1.1rem;
  }

  .hero-panel {
    border-radius: 16px;
  }

  .media-title {
    font-size: 0.86rem;
  }

  .media-subtitle,
  .media-meta {
    font-size: 0.7rem;
  }

  .ranking-board,
  .recommend-box,
  .comment-panel,
  .faq-box {
    border-radius: 16px;
    padding: 0.85rem;
  }
}