* {
  box-sizing: border-box;
}

:root {
  --bg: #eef2ff;
  --bg-soft: #f8fbff;
  --panel: #ffffff;
  --text: #1d2340;
  --muted: #677199;
  --accent: #6b4dff;
  --accent-2: #06b6d4;
  --border: #dbe3ff;
  --shadow: 0 10px 30px rgba(40, 52, 92, 0.12);
}

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #e8f7ff 0%, var(--bg) 35%, #f5f0ff 100%);
}

a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(10px);
}

.nav-shell {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.brand-name,
.brand-mobile {
  font-weight: 700;
  color: var(--text);
}

.nav-link {
  color: #3b436a;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.9rem !important;
}

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

.search-wrap {
  width: 300px;
  gap: 0.5rem;
}

.search-wrap .form-control,
.mobile-search .form-control {
  border-radius: 999px;
  border: 1px solid var(--border);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
  border-radius: 999px;
}

.btn-accent:hover,
.btn-accent:focus {
  color: #fff;
  filter: brightness(0.96);
}

.btn-soft {
  border-radius: 999px;
  border: 1px solid #cfd8ff;
  background: #f6f8ff;
  color: #37406c;
}

.btn-soft:hover {
  background: #edf1ff;
}

.btn-outline-accent {
  border-radius: 999px;
  border-color: #8a79ff;
  color: #5a45dd;
}

.btn-outline-accent:hover {
  background: #efeaff;
  color: #4d39cc;
  border-color: #7f6df7;
}

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

.hero-panel {
  background: linear-gradient(120deg, #ffffff 0%, #f3f7ff 55%, #eefaff 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.update-badge {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #4d5b8d;
  background: #edf2ff;
}

.hero-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0;
}

.hero-desc {
  color: var(--muted);
  line-height: 1.75;
  max-width: 50ch;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #dbe9ff;
}

.stat-card {
  border: 1px solid #dce4ff;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  padding: 0.65rem 0.4rem;
}

.stat-card strong {
  display: block;
  font-size: 1rem;
  color: #2a3260;
}

.stat-card span {
  font-size: 0.75rem;
  color: #6e79a3;
}

.banner-section {
  padding-top: 0.6rem;
}

.banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.banner-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(1.05);
}

.banner-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(8, 12, 32, 0) 0%, rgba(8, 12, 32, 0.72) 100%);
  color: #fff;
}

.banner-content h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.banner-content p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

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

.section-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title i {
  color: #644fff;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(30, 48, 90, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(36, 52, 90, 0.15);
}

.video-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.video-body {
  padding: 0.65rem 0.7rem 0.8rem;
}

.video-body h3 {
  margin: 0 0 0.45rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: #26305a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #7280a5;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: #ecebff;
  color: #5647d4;
}

.rank-panel,
.comment-panel,
.friend-panel,
.faq-wrap,
.tag-cloud,
.filter-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(34, 45, 84, 0.08);
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 1px solid #e3e9ff;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  color: #2b365e;
  background: #fbfcff;
}

.rank-item em {
  font-style: normal;
  color: #6a53ff;
  font-weight: 700;
}

.tag-cloud {
  padding: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-pill {
  border: 1px solid #d7ddff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: #3e4b79;
  background: #f9faff;
  font-size: 0.88rem;
}

.tag-pill:hover {
  color: #4d39cc;
  border-color: #b9adff;
}

.filter-box {
  padding: 0.9rem 1rem;
}

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

.friend-panel a {
  border: 1px dashed #cfd8ff;
  border-radius: 12px;
  padding: 0.62rem 0.8rem;
  color: #33406a;
  background: #f9fbff;
  text-align: center;
  font-weight: 600;
}

.friend-panel a:hover {
  border-style: solid;
  border-color: #b8c6ff;
  background: #f1f5ff;
}

.comment-panel .form-control {
  border-radius: 12px;
  border-color: #d7e0ff;
}

.form-notice {
  color: #4b3bc7;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.comment-list {
  display: grid;
  gap: 0.7rem;
}

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

.comment-item h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #24315a;
}

.comment-item time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: #7f8aaf;
}

.comment-item p {
  margin: 0.45rem 0 0;
  color: #4b5683;
  line-height: 1.65;
}

.faq-wrap .accordion-item {
  border: 0;
  border-bottom: 1px solid #e4eaff;
}

.faq-wrap .accordion-item:last-child {
  border-bottom: 0;
}

.faq-wrap .accordion-button {
  font-weight: 600;
  color: #2e3a64;
}

.faq-wrap .accordion-button:not(.collapsed) {
  color: #503cce;
  background: #f4f1ff;
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid #d8e1ff;
  background: rgba(255, 255, 255, 0.65);
}

.site-footer p,
.site-footer a {
  color: #51608d;
}

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

.footer-links {
  display: flex;
  gap: 1rem;
}

.modal-content {
  border-radius: 16px;
  border: 1px solid #dce4ff;
}

@media (max-width: 991.98px) {
  .nav-shell {
    border-radius: 18px;
  }

  .hero-image {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.2rem;
  }

  .video-thumb {
    height: 130px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}