* {
  box-sizing: border-box;
}

:root {
  --bg: #eef3ff;
  --surface: #ffffff;
  --primary: #6a5cff;
  --primary-deep: #352a88;
  --accent: #22c7b8;
  --ink: #1a2442;
  --muted: #6f7b99;
  --line: #dbe3f4;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f4f7ff 0%, #edf2fb 100%);
}

a {
  text-decoration: none;
}

.site-header {
  z-index: 1030;
}

.top-strip {
  background: #130f2f;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-strip .container-xl {
  min-height: 36px;
}

.top-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
}

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

.navbar {
  background: linear-gradient(90deg, #211a5b 0%, #28367f 50%, #1d5f83 100%);
  box-shadow: 0 10px 24px rgba(23, 35, 82, 0.24);
}

.navbar-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #6df0e3);
  color: #0f2d2a;
  font-size: 0.8rem;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

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

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn-live {
  background: linear-gradient(135deg, #4ef0d8, #25b7c4);
  color: #07242d;
  border: 0;
  font-weight: 600;
}

.btn-live:hover {
  color: #07242d;
  opacity: 0.94;
}

.offcanvas {
  background: #0f1735;
  color: #dce7ff;
}

.offcanvas .nav-link {
  color: #dce7ff;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
}

.hero-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.hero-panel {
  background: linear-gradient(140deg, #2e236f 0%, #26388a 58%, #1f6888 100%);
  color: #eef5ff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 18px 36px rgba(36, 44, 103, 0.26);
}

.hero-kicker {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
}

.hero-panel h1 {
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  margin: 1rem 0 0.75rem;
  line-height: 1.25;
}

.hero-panel p {
  color: rgba(238, 245, 255, 0.9);
  margin-bottom: 0;
}

.tag-pill {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  color: #f4fbff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.tag-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.featured-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: 0 20px 40px rgba(17, 27, 71, 0.24);
}

.featured-banner img {
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(8, 14, 40, 0) 0%, rgba(8, 14, 40, 0.82) 70%);
  color: #fff;
}

.featured-overlay h2 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.feature-link {
  color: #a7ffec;
  font-weight: 600;
}

.update-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(22, 38, 86, 0.08);
}

.update-box h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.update-box ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.muted-section {
  background: linear-gradient(180deg, rgba(237, 244, 255, 0.92), rgba(234, 241, 252, 0.92));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

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

.section-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fd6f90, #ff8f64);
  color: #fff;
  font-size: 0.75rem;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(23, 41, 90, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(23, 41, 90, 0.14);
}

.card-cover {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

.media-card h3 {
  font-size: 1.03rem;
  margin: 0.2rem 0 0.45rem;
}

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

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

.chip {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eaf0ff;
  color: #3455b4;
  font-weight: 600;
}

.entry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(19, 30, 78, 0.08);
}

.entry-card h3 {
  font-size: 1.03rem;
  margin-bottom: 0.6rem;
}

.entry-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.rank-card {
  position: relative;
}

.rank-no {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  background: rgba(21, 31, 71, 0.85);
  color: #fff;
  z-index: 2;
}

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

.guide-accordion .accordion-button {
  font-weight: 600;
  color: #1c2952;
}

.guide-accordion .accordion-button:not(.collapsed) {
  background: #eaf1ff;
  box-shadow: none;
}

.guide-side {
  background: linear-gradient(165deg, #2a2f72, #22617f);
  color: #eef6ff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 14px 30px rgba(23, 34, 87, 0.22);
}

.guide-side h3 {
  font-size: 1.2rem;
}

.guide-side p,
.guide-side ul {
  color: rgba(238, 246, 255, 0.92);
}

.guide-side ul {
  padding-left: 1rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #2f3d66;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(17, 36, 84, 0.08);
}

.quick-link:hover {
  color: #1c2b56;
  border-color: #bcccf0;
}

.friend-section {
  padding-top: 2.4rem;
}

.friend-link {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  color: #314269;
  border-radius: 10px;
  padding: 0.78rem 0.6rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(14, 33, 78, 0.08);
}

.friend-link:hover {
  color: #222f55;
  border-color: #b7c7eb;
}

.site-footer {
  margin-top: 2rem;
  background: #0f1735;
  color: #ced8f4;
  padding: 2.6rem 0 1.2rem;
}

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

.site-footer h3 {
  font-size: 1rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: #ced8f4;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding-top: 1rem;
  gap: 0.5rem;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d3bf, #58a7ff);
  color: #05232d;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(16, 34, 80, 0.24);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1050;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

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

@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }

  .hero-panel {
    padding: 1.4rem;
  }

  .featured-banner {
    min-height: 320px;
  }

  .card-cover {
    height: 170px;
  }
}

@media (max-width: 767.98px) {
  .content-section {
    padding: 2.5rem 0;
  }

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

  .featured-banner {
    min-height: 280px;
  }
}

@media (max-width: 575.98px) {
  .hero-panel h1 {
    font-size: 1.45rem;
  }

  .card-cover {
    height: 152px;
  }

  .section-heading p {
    width: 100%;
  }
}