:root {
  --wechat: #07c160;
}
.site-header {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  width: min(1280px, calc(100% - 96px));
  height: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.site-header .brand {
  gap: 14px;
  width: fit-content;
}
.site-header .brand img {
  width: 142px;
}
.brand-divider {
  display: none;
}
.brand-edition {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
}
.desktop-nav {
  display: flex;
  gap: 8px;
}
.desktop-nav a {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 7px;
  transition:
    color 160ms,
    background 160ms;
}
.desktop-nav a:hover {
  color: var(--ink);
  background: var(--panel-soft);
}
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.site-header .theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
}
.site-header .theme-toggle .ico {
  width: 17px;
  height: 17px;
}
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 6px;
  padding: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.login-button:hover {
  color: var(--red);
}
.login-button .ico {
  width: 15px;
  height: 15px;
}
.site-header .nav-consult {
  height: 42px;
  padding: 0 16px;
  gap: 10px;
}
.site-footer {
  padding-top: 36px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 64px;
}
.footer-brand .brand {
  gap: 13px;
}
.footer-brand .brand img {
  width: 148px;
}
.footer-brand .brand-edition {
  font-size: 12px;
}
.footer-brand > p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px 30px;
  padding-top: 6px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 1.8;
  white-space: nowrap;
}
.footer-nav a:hover {
  color: var(--red);
}
.footer-nav .ico {
  width: 14px;
  height: 14px;
}
.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.footer-consult {
  height: 44px;
  padding: 0 16px;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}
.footer-consult:hover,
[data-theme="dark"] .footer-consult:hover {
  background: var(--panel-soft);
  color: var(--ink);
  border-color: var(--muted);
}
.footer-consult .ico {
  width: 17px;
  height: 17px;
}
.footer-login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.footer-login:hover {
  color: var(--ink);
}
.footer-login .ico {
  width: 13px;
  height: 13px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.ico[style*="assets/wechat.svg"] {
  color: var(--wechat);
}
#consult-dialog .dialog-symbol {
  color: var(--wechat);
  background: color-mix(in srgb, var(--wechat) 9%, var(--panel));
}
@media (max-width: 1180px) {
  .nav-shell {
    width: calc(100% - 64px);
    gap: 20px;
  }
  .site-header .brand-edition {
    display: none;
  }
  .desktop-nav a {
    padding: 10px;
  }
  .footer-main {
    gap: 35px;
  }
  .footer-brand .brand-edition {
    display: none;
  }
}
@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }
  .desktop-nav {
    display: none;
  }
  .footer-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
  }
  .footer-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 28px;
  }
  .footer-actions {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 680px) {
  .site-header {
    height: 72px;
  }
  .nav-shell {
    width: calc(100% - 36px);
    gap: 12px;
  }
  .site-header .brand img {
    width: 122px;
  }
  .nav-actions {
    gap: 10px;
  }
  .site-header .nav-consult {
    display: none;
  }
  .site-header .theme-toggle {
    min-width: 40px;
    min-height: 40px;
  }
  .login-button {
    font-size: 13px;
    gap: 5px;
  }
  .site-footer {
    padding-top: 30px;
    padding-bottom: 24px;
  }
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .footer-brand .brand img {
    width: 138px;
  }
  .footer-brand .brand-edition {
    display: block;
  }
  .footer-brand > p {
    margin-top: 12px;
    font-size: 14px;
  }
  .footer-nav {
    grid-row: auto;
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px 18px;
    padding-top: 0;
  }
  .footer-nav a {
    min-height: 34px;
  }
  .footer-actions {
    grid-row: auto;
    grid-column: auto;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 5px;
    margin-top: 24px;
    padding-top: 20px;
  }
}
@media (max-width: 360px) {
  .nav-shell {
    width: calc(100% - 32px);
    gap: 8px;
  }
  .site-header .brand img {
    width: 112px;
  }
  .nav-actions {
    gap: 8px;
  }
  .login-button {
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  .site-header .theme-toggle {
    width: 44px;
    height: 44px;
  }
  .footer-nav a,
  .footer-login {
    min-height: 44px;
  }
}
