:root {
  --bg: #0b1020;
  --surface: #121a2c;
  --surface-soft: #18243a;
  --text: #ecf2ff;
  --muted: #9eb0d5;
  --accent: #5de4c7;
  --accent-2: #8b7dff;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(93, 228, 199, 0.08), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(139, 125, 255, 0.1), transparent 35%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header .navbar {
  background: rgba(8, 12, 24, 0.58);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled .navbar {
  background: rgba(8, 12, 24, 0.9);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
}

.brand-mark {
  color: var(--accent);
  margin-right: 0.4rem;
}

.nav-link {
  color: rgba(236, 242, 255, 0.82);
  font-weight: 500;
}

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

.dropdown-menu {
  border-color: var(--line);
}

.btn-accent {
  border: 0;
  color: #061318;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #7cf0dd);
}

.btn-accent:hover {
  color: #051015;
  transform: translateY(-1px);
}

.offcanvas {
  background: #0c1324;
  color: var(--text);
}

.hero-section {
  min-height: 78vh;
  padding-top: 6rem;
  background-image:
    linear-gradient(110deg, rgba(8, 12, 24, 0.9) 15%, rgba(8, 12, 24, 0.62) 58%, rgba(8, 12, 24, 0.88) 100%),
    url('../images/6336062572.jpg');
  background-size: cover;
  background-position: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #08131a;
  background: linear-gradient(135deg, var(--accent), #6de5ff);
  font-weight: 700;
}

.hero-title {
  font-size: clamp(1.8rem, 3.7vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 56ch;
}

.glass-panel {
  background: rgba(18, 26, 44, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.chip {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  text-decoration: none;
}

.chip:hover {
  border-color: rgba(93, 228, 199, 0.5);
}

.stat-num {
  font-size: 1.45rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.section-block {
  padding: 2.2rem 0;
}

.section-head {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.35rem;
  margin: 0;
  padding-left: 0.95rem;
  position: relative;
}

.section-title::before {
  content: "";
  width: 6px;
  border-radius: 8px;
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.section-more {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.section-more:hover {
  color: #fff;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-5px);
  border-color: rgba(93, 228, 199, 0.36);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.28);
}

.media-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.media-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.media-card .card-text {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}

.tag {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.24rem 0.52rem;
  border: 1px solid transparent;
}

.tag-cyan { background: rgba(93, 228, 199, 0.14); border-color: rgba(93, 228, 199, 0.45); }
.tag-purple { background: rgba(139, 125, 255, 0.16); border-color: rgba(139, 125, 255, 0.45); }
.tag-orange { background: rgba(255, 171, 89, 0.15); border-color: rgba(255, 171, 89, 0.5); }
.tag-red { background: rgba(255, 99, 132, 0.15); border-color: rgba(255, 99, 132, 0.45); }
.tag-green { background: rgba(95, 223, 127, 0.16); border-color: rgba(95, 223, 127, 0.45); }
.tag-yellow { background: rgba(255, 220, 120, 0.18); border-color: rgba(255, 220, 120, 0.45); }

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

.promo-banner {
  min-height: 250px;
  border: 1px solid var(--line);
  background-image:
    linear-gradient(95deg, rgba(9, 13, 27, 0.88) 12%, rgba(9, 13, 27, 0.52) 58%, rgba(9, 13, 27, 0.92) 100%),
    url('../images/409177046.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

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

.news-body {
  padding: 1rem;
}

.news-date {
  font-size: 0.76rem;
  color: var(--muted);
}

.news-body h3 {
  font-size: 1rem;
  margin: 0.45rem 0;
}

.news-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--surface-soft);
  box-shadow: none;
}

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

.friend-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.friend-links a:hover {
  color: #fff;
  border-color: rgba(93, 228, 199, 0.48);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.7rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: #090e1b;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.footer-title {
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

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

.text-secondary-custom {
  color: var(--muted);
}

.modal-dark {
  background: linear-gradient(180deg, #131c2f, #111726);
  color: var(--text);
  border: 1px solid var(--line);
}

.form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(93, 228, 199, 0.5);
  box-shadow: none;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #78ead6);
  color: #021015;
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1050;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 5.4rem;
    padding-bottom: 2rem;
  }

  .media-card .card-img-top {
    height: 170px;
  }
}

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

  .media-card .card-img-top {
    height: 150px;
  }

  .news-card img {
    height: 170px;
  }
}