:root {
  --primary: #2f80ed;
  --primary-dark: #125fc8;
  --primary-soft: #edf6ff;
  --secondary: #17a77a;
  --orange: #f47d3b;
  --gold: #f5b23d;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --background: #f8fbff;
  --text: #15223a;
  --muted: #61728a;
  --border: #e2edf9;
  --shadow-sm: 0 8px 24px rgba(47, 128, 237, 0.08);
  --shadow-md: 0 18px 44px rgba(39, 108, 198, 0.13);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Hiragino Sans GB",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.36);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.icon.is-mask-icon {
  background-color: currentColor;
  stroke: none;
}

.icon-img {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1996%) hue-rotate(198deg) brightness(96%) contrast(94%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 237, 249, 0.9);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
}

.brand img {
  width: 122px;
  height: auto;
  border-radius: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 38px;
  color: #192943;
  font-size: 14px;
  white-space: nowrap;
}

.primary-nav a,
.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 180ms ease;
}

.nav-dropdown-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active {
  color: var(--primary-dark);
  font-weight: 700;
}

.primary-nav a.is-active::after,
.nav-dropdown-trigger.is-active::after {
  position: absolute;
  right: 6px;
  bottom: 7px;
  left: 6px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-dropdown-trigger {
  gap: 6px;
}

.nav-caret {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: translateY(3px) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  z-index: 120;
  display: grid;
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgba(221, 232, 245, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(30, 78, 136, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  visibility: hidden;
}

.nav-dropdown-menu::before {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(221, 232, 245, 0.96);
  border-left: 1px solid rgba(221, 232, 245, 0.96);
  background: rgba(255, 255, 255, 0.98);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.primary-nav .nav-dropdown-menu a {
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  color: #263a59;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.primary-nav .nav-dropdown-menu a:hover,
.primary-nav .nav-dropdown-menu a:focus-visible {
  background: #edf6ff;
  color: var(--primary-dark);
}

.primary-nav .nav-dropdown-menu a::after {
  display: none;
}

.round-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #63b9ff, #2678ea);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 128, 237, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.round-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(47, 128, 237, 0.3);
}

.round-action .icon {
  width: 20px;
  height: 20px;
}

.round-action .icon-img {
  filter: brightness(0) invert(1);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 22px;
  color: #102957;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

.section-title .line {
  position: relative;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 128, 237, 0), var(--primary));
}

.section-title .line:last-child {
  background: linear-gradient(90deg, var(--primary), rgba(47, 128, 237, 0));
}

.section-title .line::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.section-title .line:first-child::after {
  right: -3px;
}

.section-title .line:last-child::after {
  left: -3px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b94ff, #1f73e8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(47, 128, 237, 0.3);
}

.primary-button .icon {
  width: 16px;
  height: 16px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #318cf2 0%, #1d72df 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) 1.35fr;
  gap: 30px;
  padding: 28px 0 20px;
}

.footer-brand img {
  width: 130px;
  height: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 245px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.social-links a:nth-child(1) {
  background: #41c060;
}

.social-links a:nth-child(2) {
  background: #111827;
}

.social-links a:nth-child(3) {
  background: #f14a3c;
}

.site-footer nav h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
}

.site-footer nav a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.75;
}

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

.qr-block {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  column-gap: 14px;
  align-content: start;
  align-items: center;
}

.qr-block img {
  grid-row: span 2;
  width: 78px;
  height: 78px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
}

.qr-block strong {
  color: #fff;
  font-size: 14px;
}

.qr-block span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.footer-social-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 14px;
  align-items: center;
}

.footer-social-panel .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-panel .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(10, 56, 117, 0.2);
  cursor: pointer;
}

.footer-social-panel .footer-social a img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.footer-social-panel .footer-social a.is-active {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 8px 16px rgba(10, 56, 117, 0.24);
}

.footer-social-panel .footer-social a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.footer-social-panel .footer-qr,
.youth-footer .footer-social-panel .footer-qr {
  display: block;
  width: 88px;
  height: 88px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.copyright {
  padding: 10px 24px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 12px;
}

/* 所有页面共用的“少年行”标准页脚 */
body .site-footer.unified-footer {
  color: #fff;
  background: #2d73cf;
}

body .site-footer.unified-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, minmax(110px, 0.7fr)) minmax(260px, 1.35fr);
  gap: clamp(28px, 2.4vw, 48px);
  align-items: start;
  width: min(calc(100% - 96px), 1720px);
  max-width: none;
  padding: 42px 0 32px;
}

body .site-footer.unified-footer .footer-logo {
  width: 150px;
  height: auto;
  margin-top: 5px;
  filter: brightness(0) invert(1);
}

body .site-footer.unified-footer nav {
  display: grid;
  gap: 6px;
}

body .site-footer.unified-footer nav strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

body .site-footer.unified-footer nav a {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.5;
}

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

body .site-footer.unified-footer .footer-social-panel {
  display: grid;
  grid-template-columns: auto 88px;
  gap: 34px;
  align-items: center;
  justify-content: end;
}

body .site-footer.unified-footer .footer-social-panel .footer-social {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

body .site-footer.unified-footer .footer-social-panel .footer-social a {
  width: 34px;
  height: 34px;
}

body .site-footer.unified-footer .footer-social-panel .footer-qr {
  width: 88px;
  height: 88px;
}

body .site-footer.unified-footer .copyright {
  padding: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .nav-shell {
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 8px 0;
  }

  .primary-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

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

  .footer-brand,
  .qr-block,
  .footer-social-panel {
    grid-column: span 3;
  }

  .youth-footer .footer-social-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1200px) {
  body .site-footer.unified-footer .footer-grid {
    grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
    width: min(100% - 48px, 1080px);
  }

  body .site-footer.unified-footer .footer-social-panel {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    position: static;
  }

  .brand img {
    width: 116px;
  }

  .round-action {
    margin-left: auto;
  }

  .section-title {
    gap: 12px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .section-title .line {
    width: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand,
  .qr-block,
  .footer-social-panel {
    grid-column: span 2;
  }

  .youth-footer .footer-social-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body .site-footer.unified-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 32px, 560px);
    gap: 28px 22px;
    padding: 34px 0 28px;
  }

  body .site-footer.unified-footer .footer-logo,
  body .site-footer.unified-footer .footer-social-panel {
    grid-column: 1 / -1;
  }

  body .site-footer.unified-footer .footer-social-panel {
    grid-template-columns: auto 82px;
    gap: 24px;
    justify-content: space-between;
  }

  body .site-footer.unified-footer .footer-social-panel .footer-qr {
    width: 82px;
    height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
