* {
  box-sizing: border-box;
}

:root {
  --brand-ink: #101828;
  --brand-muted: #667085;
  --brand-line: #e6edf7;
  --brand-blue: #1f6fff;
  --brand-blue-dark: #164ec9;
  --brand-cyan: #20c9ff;
  --brand-green: #18c78f;
  --brand-surface: #ffffff;
  --brand-bg: #f5f8fc;
  --brand-shadow: 0 18px 48px rgba(18, 52, 110, .10);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, rgba(31, 111, 255, .08), transparent 32%), var(--brand-bg);
  color: var(--brand-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 111, 255, .28);
  outline-offset: 3px;
}

.legacy-login-bar {
  min-height: 40px;
  color: #fff;
  background: #666666;
  font-size: 14px;
}

.legacy-login-inner {
  width: min(1350px, calc(100% - 40px));
  min-height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legacy-login-left,
.legacy-login-right {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  white-space: nowrap;
}

.legacy-login-left {
  flex: 1;
}

.legacy-login-right {
  justify-content: flex-end;
}

.legacy-login-bar a,
.legacy-login-bar span {
  color: rgba(255, 255, 255, .95);
  line-height: 40px;
}

.legacy-login-bar a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(214, 227, 242, .78);
  box-shadow: 0 10px 32px rgba(16, 24, 40, .05);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1200px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: auto;
  height: 54px;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border-bottom: 0;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand-blue-dark);
  background: rgba(31, 111, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 255, .08);
}

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

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 100%;
  height: 12px;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 328px;
  padding: 10px;
  border: 1px solid rgba(214, 227, 242, .92);
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 38px rgba(16, 24, 40, .14);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(214, 227, 242, .92);
  border-top: 1px solid rgba(214, 227, 242, .92);
  background: rgba(255, 255, 255, .98);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel a {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 7px;
  color: #4b5f7a;
  font-size: 13px;
  line-height: 1;
  background: transparent;
  box-shadow: none;
}

.nav-dropdown-panel a:hover {
  color: var(--brand-blue-dark);
  background: rgba(31, 111, 255, .08);
  box-shadow: none;
}

.button,
.btn {
  min-height: 44px;
  touch-action: manipulation;
}

@media (max-width: 820px) {
  .legacy-login-inner {
    width: min(100% - 28px, 1200px);
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
  }

  .legacy-login-left,
  .legacy-login-right {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .legacy-login-left::-webkit-scrollbar,
  .legacy-login-right::-webkit-scrollbar {
    display: none;
  }

  .legacy-login-bar a,
  .legacy-login-bar span {
    line-height: 28px;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .brand img {
    height: 42px;
    max-width: 180px;
  }

  .nav-menu {
    width: 100%;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

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

  .nav-menu a {
    min-height: 38px;
    padding: 0 10px;
  }

  .nav-dropdown {
    min-height: 38px;
  }

  .nav-dropdown-panel {
    display: none;
  }
}


.global-site-footer {
  padding: 24px 0 28px;
  color: #6b7280;
  font-size: 13px;
  background: #f6f8fb;
  border-top: 1px solid #e4ebf3;
}

.global-site-footer__inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  line-height: 1.9;
  text-align: center;
}

.global-site-footer__inner > :not(.global-site-footer__sep) {
  display: inline;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.global-site-footer__sep {
  color: #c1c9d6;
  font-size: 12px;
}

.global-site-footer a {
  color: #4b5f7a;
  text-decoration: none;
  transition: color .18s ease;
}

.global-site-footer a:hover {
  color: #0a60df;
}

@media (max-width: 820px) {
  .global-site-footer {
    padding: 20px 0 24px;
  }

  .global-site-footer__inner {
    width: min(100% - 28px, 1200px);
    gap: 6px 10px;
    font-size: 12px;
    line-height: 1.8;
  }

  .global-site-footer__sep {
    display: none;
  }

  .global-site-footer__inner > :not(.global-site-footer__sep) {
    width: 100%;
  }
}


