:root {
  --bg: #0b0f1c;
  --bg-soft: #11182d;
  --surface: #151d34;
  --surface-2: #1b2644;
  --text: #edf1ff;
  --muted: #9eabcf;
  --primary: #7c5cff;
  --secondary: #14d9b3;
  --accent: #ff8f4e;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(circle at 20% 0%, #1a2547 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-strip {
  background: linear-gradient(90deg, #111c3a, #1d1240);
  border-bottom: 1px solid var(--border);
  color: #d6def9;
  font-size: 0.9rem;
  padding: 0.55rem 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.45rem;
  box-shadow: 0 0 0 4px rgba(255, 143, 78, 0.2);
}

.top-link {
  color: #c8f6ef;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.25s ease;
}

.site-header .navbar {
  background: rgba(9, 13, 24, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  padding: 0.9rem 0;
}

.site-header.scrolled .navbar {
  border-bottom-color: var(--border);
  background: rgba(9, 13, 24, 0.92);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  right: -3px;
  top: -3px;
}

.navbar .nav-link {
  color: #d3dcfc;
  font-weight: 500;
  margin: 0 0.3rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff;
}

.dropdown-menu-dark {
  background: #121a30;
  border-color: var(--border);
}

.btn-theme {
  background: linear-gradient(135deg, var(--primary), #955cff);
  color: #fff;
  border: none;
}

.btn-theme:hover {
  color: #fff;
  filter: brightness(1.07);
}

.btn-outline-theme {
  border: 1px solid rgba(124, 92, 255, 0.6);
  color: #d9d1ff;
}

.btn-outline-theme:hover {
  background: rgba(124, 92, 255, 0.2);
  color: #fff;
}

.offcanvas {
  background: #0e1528;
}

.offcanvas-brand {
  color: #fff;
  text-decoration: none;
}

.mobile-menu .list-group-item {
  background: transparent;
  color: #d2dbfa;
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-menu .list-group-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  padding: 6rem 0 4.5rem;
}

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

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 11, 20, 0.94) 28%, rgba(14, 22, 40, 0.6) 70%, rgba(7, 9, 16, 0.9) 100%);
}

.highlight-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(20, 217, 179, 0.18);
  color: #91ffea;
  border: 1px solid rgba(20, 217, 179, 0.45);
}

.hero-section h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text {
  color: #b7c1e3;
  max-width: 680px;
}

.metric-card {
  background: rgba(19, 27, 50, 0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
}

.metric-title {
  font-size: 0.78rem;
  color: #9aa8d4;
  margin-bottom: 0.25rem;
}

.metric-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #fff;
}

.spotlight-card {
  background: rgba(17, 25, 44, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.spotlight-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.spotlight-content {
  padding: 1.1rem 1.15rem 1.2rem;
}

.spotlight-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8ff3e0;
  margin-bottom: 0.4rem;
}

.spotlight-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.chip {
  font-size: 0.75rem;
  color: #dce2ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

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

.tone-alt {
  background: linear-gradient(180deg, rgba(20, 26, 45, 0.7), rgba(14, 20, 36, 0.5));
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #87f0df;
}

.section-heading h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  border-color: rgba(124, 92, 255, 0.5);
}

.media-cover {
  position: relative;
}

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

.media-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.tag-hot {
  background: rgba(255, 143, 78, 0.9);
  color: #fff;
}

.tag-new {
  background: rgba(20, 217, 179, 0.9);
  color: #fff;
}

.tag-pick {
  background: rgba(124, 92, 255, 0.95);
  color: #fff;
}

.media-body {
  padding: 0.95rem 1rem 1rem;
}

.media-title {
  font-size: 1.04rem;
  margin: 0;
}

.media-meta {
  color: #a8b4d8;
  font-size: 0.86rem;
  margin: 0.45rem 0 0.65rem;
}

.media-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.media-footer a {
  font-size: 0.88rem;
  color: #cfd8ff;
}

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

.score {
  color: #9df6e8;
  font-weight: 700;
}

.feature-banner {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  min-height: 340px;
}

.feature-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(180deg, rgba(2, 6, 14, 0.12), rgba(2, 6, 14, 0.88));
}

.feature-overlay h3 {
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
}

.feature-overlay p {
  margin-bottom: 0.45rem;
  color: #e9edff;
}

.feature-date {
  font-size: 0.86rem;
  opacity: 0.9;
}

.faq-note {
  margin-top: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
  border-radius: 12px;
  overflow: hidden;
}

.accordion-button {
  background: var(--surface);
  color: #edf1ff;
  font-weight: 600;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--surface-2);
  color: #fff;
}

.accordion-button::after {
  filter: invert(1) saturate(0);
}

.accordion-body {
  color: #b8c4e7;
  background: #121a30;
}

.links-section {
  padding-top: 2.5rem;
}

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

.friend-link {
  background: var(--surface);
  border: 1px solid var(--border);
  color: #dae2ff;
  border-radius: 999px;
  text-align: center;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.friend-link:hover {
  color: #fff;
  border-color: rgba(124, 92, 255, 0.75);
  transform: translateY(-2px);
}

.site-footer {
  background: #070b16;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 3rem 0 1.1rem;
  color: #afb9d8;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

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

.footer-links,
.update-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.update-list span {
  color: #91ffea;
  margin-right: 0.35rem;
}

.bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.4rem;
  padding-top: 1rem;
  font-size: 0.92rem;
}

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

.modal-dark {
  background: #10182e;
  color: #eaf0ff;
  border: 1px solid var(--border);
}

.modal-dark .form-control {
  background: #0f1425;
  border-color: rgba(255, 255, 255, 0.16);
  color: #e8efff;
}

.modal-dark .form-control:focus {
  border-color: rgba(124, 92, 255, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(124, 92, 255, 0.2);
}

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

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

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

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 5.2rem 0 3.5rem;
  }

  .media-cover img {
    height: 195px;
  }

  .feature-banner {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  .top-strip {
    font-size: 0.82rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 575px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .spotlight-card img {
    height: 230px;
  }

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