:root { --hzq-nav-height: 78px; }
html.hzq-nav-host { scroll-padding-top: var(--hzq-nav-height); }
body.hzq-nav-host { padding-top: var(--hzq-nav-height) !important; }

.hzq-nav,
.hzq-nav * { box-sizing: border-box; }

.hzq-nav {
  position: fixed;
  z-index: 2147483000;
  inset: 0 0 auto;
  height: var(--hzq-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 68px);
  color: #082d55;
  border: 0;
  border-bottom: 1px solid rgba(8, 45, 85, 0.13);
  border-radius: 0;
  background: rgba(249, 252, 255, 0.92);
  box-shadow: 0 10px 30px rgba(8, 45, 85, 0.08);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  backdrop-filter: blur(14px) saturate(125%);
}

.hzq-nav a { color: inherit; text-decoration: none; }
.hzq-nav button { margin: 0; font: inherit; letter-spacing: 0; }

.hzq-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #082d55;
}

.hzq-nav__logo {
  display: block;
  width: 50px;
  height: 50px;
  flex: none;
  border: 1px solid rgba(216, 182, 91, 0.52);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 16px rgba(8, 45, 85, 0.14);
}

.hzq-nav__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hzq-nav__brand-copy { display: grid; gap: 2px; }
.hzq-nav__brand-copy strong {
  color: #082d55;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
}
.hzq-nav__brand-copy small {
  color: #66819a;
  font: 9px/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
}

.hzq-nav__links {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 34px;
  translate: -50% 0;
}
.hzq-nav__links a {
  position: relative;
  padding: 29px 0 25px;
  color: #496985;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.hzq-nav__links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: #d8b65b;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.hzq-nav__links a:hover,
.hzq-nav__links a[aria-current='page'] { color: #082d55; }
.hzq-nav__links a:hover::after,
.hzq-nav__links a[aria-current='page']::after { transform: scaleX(1); }

.hzq-nav__actions { display: flex; align-items: center; gap: 8px; }
.hzq-nav__button,
.hzq-nav__account-trigger {
  width: auto;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(8, 45, 85, 0.22);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.54);
  color: #082d55;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, translate 0.2s ease;
}
.hzq-nav__button:hover,
.hzq-nav__account-trigger:hover {
  translate: 0 -1px;
  background: #edf3f9;
  border-color: #0b5b9b;
}
.hzq-nav__points {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f6edcf;
  border-color: rgba(169, 132, 42, 0.36);
}
.hzq-nav__point-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #b60021;
  box-shadow: 0 0 0 5px rgba(182, 0, 33, 0.1);
}
.hzq-nav__account { position: relative; }
.hzq-nav__account-trigger { display: flex; align-items: center; gap: 8px; }
.hzq-nav__account-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hzq-nav__account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 150px;
  padding: 8px;
  border: 1px solid rgba(8, 45, 85, 0.16);
  border-radius: 0;
  background: #fff;
  color: #082d55;
  box-shadow: 0 18px 50px rgba(5, 16, 13, 0.25);
  opacity: 0;
  visibility: hidden;
  translate: 0 -5px;
  transition: 0.18s ease;
}
.hzq-nav__account.open .hzq-nav__account-popover {
  opacity: 1;
  visibility: visible;
  translate: 0;
}
.hzq-nav__account-popover button {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #082d55;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}
.hzq-nav__account-popover button:hover { background: #edf3f9; }

.hzq-shell__modal {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 25, 49, 0.76);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  backdrop-filter: blur(7px);
}
.hzq-shell__modal.open { display: flex; }
.hzq-shell__panel { position: relative; width: min(430px, 100%); padding: 30px; color: #082d55; background: #f7f9fc; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.hzq-shell__panel h2 { margin: 0 0 8px; font-size: 26px; }
.hzq-shell__panel > p { margin: 0 0 22px; color: #67716d; font-size: 13px; line-height: 1.7; }
.hzq-shell__close { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 25px; cursor: pointer; }
.hzq-shell__form { display: grid; gap: 13px; }
.hzq-shell__form input { height: 46px; padding: 0 13px; border: 1px solid #abb7b2; border-radius: 0; font: 13px inherit; background: #fff; }
.hzq-shell__form button,
.hzq-shell__purchase { height: 46px; display: flex; align-items: center; justify-content: center; border: 0; color: #fff; background: #0b5b9b; font: 700 13px inherit; cursor: pointer; }
.hzq-shell__purchase { margin-top: 10px; color: #082d55 !important; border: 1px solid #082d55; background: transparent; }
.hzq-shell__message { min-height: 18px; margin: 0 !important; color: #b60021 !important; font-size: 12px !important; }

@media (max-width: 620px) {
  :root { --hzq-nav-height: 66px; }
  .hzq-nav { padding: 0 14px; }
  .hzq-nav__brand-copy small { display: none; }
  .hzq-nav__brand-copy strong { font-size: 15px; }
  .hzq-nav__logo { width: 42px; height: 42px; }
  .hzq-nav__button,
  .hzq-nav__account-trigger { height: 36px; padding: 0 10px; font-size: 12px; }
  .hzq-nav__auth { display: none; }
  .hzq-nav__links { display: none; }
  .hzq-nav__account-name { max-width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .hzq-nav,
  .hzq-nav * { transition: none !important; }
}
