:root {
  --navy: #1b2f57;
  --mint: #d8efe6;
  --mint-deep: #b8dfd1;
  --site-header-offset: 112px;
  --radius: 14px;
  --hero-curve: clamp(40px, 6vw, 72px);
}

html {
  scroll-padding-top: var(--site-header-offset);
}

.hero-shell {
  background: var(--navy);
  padding-top: var(--site-header-offset);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: var(--hero-curve);
  border-bottom-right-radius: var(--hero-curve);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: var(--navy);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

/* 头部全屏自适应：让 header 内部不要被通用 .container 宽度限制 */
.site-header .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .site-header .container {
    padding: 0 12px;
  }
}

.masthead {
  border-bottom: 0px;/*1px solid rgba(230, 238, 249, 0.16);*/
  color: #cfdae9;
  font-size: 14px;
  letter-spacing: 0.4px;
  background: transparent;
  position: relative;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background: #002658;
  z-index: 0;
  pointer-events: none;
}

.masthead > * {
  position: relative;
  z-index: 1;
}

.masthead-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.masthead-inner > span {
  display: none;
}

.masthead-inner .logo {
  flex-shrink: 0;
  padding-left: 0;
}

.masthead-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 1px 0 6px;
  color: #fff;
  background: transparent;
  position: relative;
  border-bottom: 0;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  z-index: 0;
  pointer-events: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border-radius: 8px;
  padding: 5px 14px;
  font-weight: 800;
  font-size: 24px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
  filter: brightness(1.15);
}

.logo-part1 {
  background-image: linear-gradient(90deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.logo-part2 {
  background-image: linear-gradient(90deg, #c084fc 0%, #e879f9 50%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.logo:hover .logo-part1 {
  filter: brightness(1.1);
}

.logo:hover .logo-part2 {
  filter: brightness(1.1);
}

.logo-dot {
  color: #ffd700;
  font-size: 12px;
  margin: 0 2px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-left: 0;
  margin-top: 0;
  margin-right: auto;
  padding: 4px 10px;
  min-height: 0;
  border-radius: 14px;
}

.desktop-nav .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #d9deeb;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.5px;
}

.desktop-nav .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}

.nav-item:hover {
  background: rgba(127, 209, 240, 0.16);
  color: #ecf9ff;
}

.desktop-nav .menu-item-has-children > a::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.8;
}

.sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  display: grid;
  gap: 4px;
  margin: 0;
  background: #fff;
  color: #2a3242;
  border-radius: var(--radius);
  border: 1px solid #dfe4ef;
  box-shadow: 0 14px 26px rgba(9, 16, 27, 0.18);
  padding: 8px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
}

.sub-menu a {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 15px;
  color: #3a4256;
  display: block;
  text-transform: none;
  letter-spacing: 0;
}

.sub-menu a:hover {
  background: #edf8ff;
  color: #15507d;
}

.nav-item:hover .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.search {
  width: min(360px, 100%);
  background: rgba(235, 243, 252, 0.14);
  border: 1px solid rgba(182, 205, 228, 0.42);
  border-radius: var(--radius);
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 0 8px 0 12px;
  gap: 8px;
  color: #d5e2f1;
  font-size: 15px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search:focus-within {
  border-color: #9ec2e2;
  background: rgba(235, 243, 252, 0.2);
  box-shadow: 0 0 0 3px rgba(158, 194, 226, 0.24);
}

.search > form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #edf4ff;
  font-size: 15px;
  font-family: inherit;
  transition: color 0.2s ease;
}

.search .search-input:focus {
  color: #ffffff;
}

.search .search-input::placeholder {
  color: #b8c8db;
  opacity: 1;
  transition: opacity 0.22s ease, color 0.22s ease;
}

.search .search-input:focus::placeholder {
  opacity: 0.35;
  color: #d2dceb;
}
.search-btn {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #d8e6f5;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.search-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(127, 209, 240, 0.55);
  border-radius: 10px;
  background: rgba(127, 209, 240, 0.08);
  color: #dff6ff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Footer - Standard multi-column layout */
footer {
  background: #f8f7f5;
  border-top: 1px solid #e0ded8;
  color: #6b7280;
  font-size: 14px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 48px 0 40px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1 1 300px;
  max-width: 320px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

.footer-column a {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #4f46e5;
}

.footer-copyright {
  font-size: 13px;
  color: #99a3ad;
  margin: 16px 0 0 0;
  font-weight: 500;
}

.footer-bottom {
  background: var(--navy);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 30;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 330px);
  background: #fff;
  color: #20283a;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  box-shadow: -10px 0 24px rgba(8, 12, 20, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 31;
  overflow: auto;
  padding: 16px 14px 22px;
}

.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.drawer-open .mobile-drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.drawer-head .logo .logo-part1 {
  background-image: linear-gradient(90deg, #1b2f57 0%, #3d5a80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-head .logo .logo-part2 {
  background-image: linear-gradient(90deg, #9333ea 0%, #c084fc 50%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-head .logo .logo-dot {
  color: #ff6b6b;
}

.drawer-close {
  border: 1px solid #d7ddeb;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #2a3242;
}

.mobile-drawer .mobile-nav .nav-item {
  border-bottom: 1px solid #edf1f7;
  padding: 8px 0;
}

.mobile-drawer .mobile-nav .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-drawer .mobile-nav .menu-item {
  list-style: none;
}

.mobile-drawer .mobile-nav .nav-item > a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  color: #263147;
  font-size: 17px;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.mobile-drawer .mobile-nav .menu-item-has-children > a::after {
  content: "▾";
  font-size: 14px;
  color: #61708a;
  transition: transform 0.2s ease;
}

.mobile-drawer .mobile-nav .menu-item-has-children.open > a::after {
  transform: rotate(180deg);
}

.mobile-drawer .mobile-nav .nav-item > .sub-menu {
  display: none;
  position: static;
  min-width: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  border: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  padding: 2px 0 8px 0;
  gap: 2px;
}

.mobile-drawer .mobile-nav .menu-item-has-children.open > .sub-menu {
  display: grid;
}

.mobile-drawer .mobile-nav .sub-menu a {
  color: #55617b;
  font-size: 14px;
  padding: 8px 2px 8px 10px;
  border-left: 2px solid #e5eaf4;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.mobile-drawer .mobile-nav .sub-menu a:hover {
  color: #2d364a;
  border-left-color: #96a4c0;
  background: #f8faff;
}

@media (max-width: 640px) {
  :root {
    --site-header-offset: 72px;
  }
  .masthead {
    display: block;
  }
  .masthead-inner {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .masthead-inner .logo {
    font-size: 20px;
  }
  .masthead-inner .search {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }
  .masthead-inner .menu-toggle {
    flex: 0 0 auto;
    margin-left: 8px;
    white-space: nowrap;
  }
  .topbar {
    display: none;
    grid-template-columns: auto 1fr auto;
    padding: 8px 0 14px;
  }
  .desktop-nav {
    display: none;
  }
  .search {
    min-height: 32px;
    font-size: 14px;
  }
  .menu-toggle { display: inline-grid; place-items: center; }
  .footer-main { flex-direction: column; gap: 32px; padding: 32px 0 24px; }
  .footer-links { gap: 40px; justify-content: flex-start; }
}
