: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: #35170f;
  border: 0;
  border-bottom: 1px solid rgba(92, 46, 20, 0.14);
  border-radius: 0;
  background: rgba(255, 251, 239, 0.88);
  box-shadow: 0 10px 30px rgba(125, 61, 20, 0.07);
  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: #35170f;
}

.hzq-nav__logo {
  display: block;
  width: 50px;
  height: 50px;
  flex: none;
  border: 1px solid rgba(125, 61, 20, 0.18);
  border-radius: 4px;
  overflow: hidden;
  background: #fff4d4;
  box-shadow: 0 5px 16px rgba(121, 58, 20, 0.12);
}

.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: #35170f;
  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: #8b654d;
  font: 9px/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
}

.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(105, 53, 24, 0.24);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.54);
  color: #35170f;
  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: #fff4d4;
  border-color: #ce7a2c;
}
.hzq-nav__points {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffe8a4;
  border-color: rgba(183, 100, 28, 0.3);
}
.hzq-nav__point-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #d94b24;
  box-shadow: 0 0 0 5px rgba(217, 75, 36, 0.11);
}
.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(67, 31, 18, 0.17);
  border-radius: 0;
  background: #fff;
  color: #35170f;
  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: #35170f;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}
.hzq-nav__account-popover button:hover { background: #f7ecd6; }

.hzq-shell__modal {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 12, 10, 0.72);
  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: #151b1a; background: #f4f7f2; 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: #e84b36; font: 700 13px inherit; cursor: pointer; }
.hzq-shell__purchase { margin-top: 10px; color: #151b1a !important; border: 1px solid #151b1a; background: transparent; }
.hzq-shell__message { min-height: 18px; margin: 0 !important; color: #d43f2d !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__account-name { max-width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .hzq-nav,
  .hzq-nav * { transition: none !important; }
}
