@font-face {
  font-family: "Exo 2";
  src: url("/assets/huali/fonts/exo2-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("/assets/huali/fonts/exo2-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("/assets/huali/fonts/exo2-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("/assets/huali/fonts/exo2-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --hh-bg: #070b16;
  --hh-bg-2: #0b1220;
  --hh-elev: rgba(14, 20, 36, 0.78);
  --hh-elev-solid: #121a2e;
  --hh-cyan: #3ee0d4;
  --hh-cyan-2: #7af0e6;
  --hh-violet: #8b7cff;
  --hh-pink: #d48cff;
  --hh-text: #e8eef8;
  --hh-muted: #9aa6bf;
  --hh-dim: #6d7890;
  --hh-line: rgba(126, 230, 220, 0.14);
  --hh-line-strong: rgba(126, 230, 220, 0.32);
  --hh-danger: #ff6b8a;
  --hh-ok: #3ee0a8;
  --hh-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  --hh-radius: 16px;
  --hh-font: "Exo 2", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --hh-header-h: 64px;
  --hh-wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--hh-bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--hh-font);
  background: var(--hh-bg);
  color: var(--hh-text);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- atmosphere: quieter grid, softer glow ---- */
body.hh-site,
body.hh-app {
  background-color: var(--hh-bg);
  background-image:
    radial-gradient(920px 520px at 86% -8%, rgba(139, 124, 255, 0.18), transparent 62%),
    radial-gradient(780px 480px at -8% 108%, rgba(62, 224, 212, 0.13), transparent 58%),
    radial-gradient(640px 420px at 40% 28%, rgba(62, 224, 212, 0.04), transparent 72%);
  background-attachment: fixed;
}
body.hh-site::before,
body.hh-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(126, 230, 220, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 230, 220, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
}
body.hh-site::after,
body.hh-app::after {
  content: "";
  position: fixed;
  width: 38vw;
  max-width: 520px;
  height: 38vw;
  max-height: 520px;
  right: -10%;
  top: 6%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(62, 224, 212, 0.08), rgba(139, 124, 255, 0.04) 46%, transparent 72%);
  filter: blur(10px);
}

.hh-wrap, .hh-header, .hh-footer, .hh-main { position: relative; z-index: 1; }

.hh-wrap {
  width: min(var(--hh-wrap), calc(100% - 48px));
  margin: 0 auto;
}

/* ---- header ---- */
.hh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--hh-header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid var(--hh-line);
}
.hh-header .hh-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--hh-wrap), calc(100% - 48px));
}
.hh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hh-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 16px;
  flex-shrink: 0;
}
.hh-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 0 0 1px var(--hh-line), 0 0 16px rgba(62, 224, 212, 0.22);
}
.hh-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.hh-nav a {
  color: var(--hh-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  transition: color .18s, background .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
}
.hh-nav a:hover { color: var(--hh-text); background: rgba(255,255,255,0.045); }
.hh-nav a.is-active { color: var(--hh-cyan-2); background: rgba(62, 224, 212, 0.08); }
.hh-nav a.hh-nav-ext { color: var(--hh-muted); }
.hh-nav .hh-nav-sep {
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: var(--hh-line-strong);
  flex-shrink: 0;
}

.hh-nav a.hh-btn,
a.hh-btn,
button.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--hh-line-strong);
  color: var(--hh-text) !important;
  background: linear-gradient(180deg, rgba(62, 224, 212, 0.16), rgba(139, 124, 255, 0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.hh-nav a.hh-btn:hover,
a.hh-btn:hover,
button.hh-btn:hover {
  border-color: var(--hh-cyan);
  box-shadow: 0 0 0 1px rgba(62, 224, 212, 0.22), 0 8px 22px rgba(62, 224, 212, 0.12);
}
a.hh-btn:focus-visible,
button.hh-btn:focus-visible,
.hh-nav a:focus-visible,
.hh-form input:focus-visible {
  outline: 2px solid var(--hh-cyan);
  outline-offset: 2px;
}
a.hh-btn-ghost, .hh-btn-ghost {
  background: transparent !important;
  border: 1px solid var(--hh-line) !important;
  color: var(--hh-text) !important;
  box-shadow: none !important;
}
a.hh-btn-ghost:hover, .hh-btn-ghost:hover {
  border-color: var(--hh-cyan) !important;
  background: rgba(62, 224, 212, 0.06) !important;
}
a.hh-btn-lg { padding: 12px 22px; font-size: 15px; }

/* hamburger */
.hh-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--hh-line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  z-index: 61;
}
.hh-menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--hh-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hh-header.is-open .hh-menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hh-header.is-open .hh-menu-btn span:nth-child(2) { opacity: 0; }
.hh-header.is-open .hh-menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.hh-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.55);
  z-index: 45;
  backdrop-filter: blur(2px);
}

/* community buttons (kept for compatibility, quieter than before) */
a.hh-btn-group,
.hh-nav a.hh-btn-group {
  background: linear-gradient(180deg, rgba(62, 224, 212, 0.18), rgba(99, 102, 241, 0.12)) !important;
  border-color: rgba(62, 224, 212, 0.38) !important;
  color: #d7fff9 !important;
}
a.hh-btn-channel,
.hh-nav a.hh-btn-channel {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.18), rgba(62, 224, 212, 0.08)) !important;
  border-color: rgba(165, 180, 252, 0.36) !important;
  color: #e4e8ff !important;
}

/* ---- hero ---- */
.hh-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0 64px;
}
.hh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hh-cyan-2);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hh-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hh-cyan));
}
.hh-hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: 0.04em;
  font-weight: 700;
  background: linear-gradient(180deg, #f5fbff 18%, #9be8e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hh-hero .lead {
  font-size: 17px;
  color: var(--hh-muted);
  max-width: 36em;
  margin: 0 0 22px;
  line-height: 1.75;
}
.hh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.hh-chips li {
  font-size: 12px;
  color: var(--hh-cyan-2);
  border: 1px solid var(--hh-line);
  background: rgba(62, 224, 212, 0.06);
  border-radius: 999px;
  padding: 5px 11px;
  letter-spacing: 0.02em;
}
.hh-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hh-hero-links {
  margin: 16px 0 0;
  color: var(--hh-dim);
  font-size: 13px;
}
.hh-hero-links a {
  color: var(--hh-muted);
  text-decoration: none;
}
.hh-hero-links a:hover { color: var(--hh-cyan-2); }
.hh-hero-links span { margin: 0 8px; color: var(--hh-dim); }
.hh-hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hh-hero-mark::before {
  content: "";
  position: absolute;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 224, 212, 0.24), rgba(139, 124, 255, 0.07) 45%, transparent 70%);
  filter: blur(14px);
}
.hh-hero-mark img {
  width: min(340px, 78%);
  height: auto;
  position: relative;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.42));
  border-radius: 28%;
}

/* ---- sections / cards ---- */
.hh-section { padding: 12px 0 80px; }
.hh-section h2,
.hh-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--hh-text);
}
.hh-section .sub,
.hh-page-head .sub {
  color: var(--hh-muted);
  margin: 0 0 32px;
  max-width: 42em;
}
.hh-page-head { padding: 48px 0 0; }
.hh-page-head + .hh-section,
.hh-page-head + * { /* spacing handled by section */ }

.hh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hh-plan-board { display: flex; flex-direction: column; gap: 36px; }
.hh-plan-group h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hh-muted);
  letter-spacing: 0.06em;
}
.hh-card, .hh-plan, .hh-feature {
  background: var(--hh-elev);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hh-card::before, .hh-plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 224, 212, 0.5), rgba(139, 124, 255, 0.4), transparent);
}
.hh-plan {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hh-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 224, 212, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}
.hh-plan .name { font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: 0.01em; }
.hh-plan .price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 12px 0 6px;
  color: #f4fbff;
  line-height: 1.1;
}
.hh-plan .price small { font-size: 13px; color: var(--hh-muted); font-weight: 500; margin-left: 6px; }
.hh-plan .meta { color: var(--hh-muted); font-size: 13px; margin: 0 0 8px; }
.hh-plan .desc {
  color: var(--hh-dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.hh-plan a.hh-btn { width: 100%; margin-top: auto; }
.hh-plan.is-featured {
  border-color: rgba(62, 224, 212, 0.48);
  box-shadow: 0 0 0 1px rgba(62, 224, 212, 0.16), 0 18px 50px rgba(62, 224, 212, 0.08), var(--hh-shadow);
  background: linear-gradient(180deg, rgba(62, 224, 212, 0.08), rgba(14, 20, 36, 0.78) 42%);
}
.hh-plan.is-flagship {
  border-color: rgba(139, 124, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(139, 124, 255, 0.16), 0 18px 50px rgba(139, 124, 255, 0.08), var(--hh-shadow);
  background: linear-gradient(180deg, rgba(139, 124, 255, 0.10), rgba(14, 20, 36, 0.78) 42%);
}
.hh-plan .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--hh-cyan-2);
  border: 1px solid var(--hh-line-strong);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(7, 11, 22, 0.4);
}
.hh-plan.is-flagship .tag { color: #d5ceff; border-color: rgba(139, 124, 255, 0.5); }
.hh-plan .hh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.hh-plan .hh-tags span {
  font-size: 11px;
  color: var(--hh-muted);
  border: 1px solid var(--hh-line);
  border-radius: 999px;
  padding: 2px 8px;
}

.hh-feature h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: 0; }
.hh-feature p { margin: 0; color: var(--hh-muted); font-size: 14px; line-height: 1.7; }
.hh-icon-dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--hh-line-strong);
  background: linear-gradient(160deg, rgba(62, 224, 212, 0.22), rgba(139, 124, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 16px rgba(62, 224, 212, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hh-cyan-2);
}
.hh-icon-dot svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hh-section-cta { margin: 32px 0 0; }

/* ---- tables / forms ---- */
.hh-table-wrap { overflow-x: auto; padding: 8px 6px 6px; }
table.hh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.hh-table th, table.hh-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hh-line);
  vertical-align: middle;
}
table.hh-table tbody tr:last-child td { border-bottom: 0; }
table.hh-table tbody tr:hover td { background: rgba(62, 224, 212, 0.035); }
table.hh-table th { color: var(--hh-dim); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; }
table.hh-table td { color: var(--hh-text); }
.hh-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--hh-line);
  color: var(--hh-cyan-2);
  background: rgba(62, 224, 212, 0.08);
}
.hh-badge.is-off { color: var(--hh-dim); border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }

.hh-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.hh-form input, .hh-form select, .hh-form textarea {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hh-line);
  color: var(--hh-text);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
.hh-form input::placeholder { color: var(--hh-dim); }
.hh-form input:focus {
  border-color: var(--hh-cyan);
  box-shadow: 0 0 0 3px rgba(62, 224, 212, 0.12);
}
.hh-msg { margin-top: 14px; color: var(--hh-muted); min-height: 1.4em; }
.hh-msg.ok { color: var(--hh-ok); }
.hh-msg.err { color: var(--hh-danger); }
.hh-redeem { max-width: 720px; margin: 0 auto; padding: 48px 0 80px; }
.hh-redeem .hh-card { padding: 28px; }

/* ---- footer ---- */
.hh-footer {
  border-top: 1px solid var(--hh-line);
  padding: 36px 0 44px;
  color: var(--hh-dim);
  font-size: 13px;
  margin-top: auto;
}
.hh-footer .hh-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px 40px;
  align-items: start;
}
.hh-foot-brand p { margin: 12px 0 0; color: var(--hh-dim); max-width: 28em; line-height: 1.7; }
.hh-foot-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--hh-muted);
  font-weight: 600;
}
.hh-foot-col a,
.hh-foot-links a {
  display: block;
  color: var(--hh-dim);
  text-decoration: none;
  padding: 4px 0;
}
.hh-foot-col a:hover { color: var(--hh-cyan-2); }
.hh-foot-links,
.hh-group-bar .hh-bar-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hh-footer .hh-foot-links { margin-left: 0; }
.hh-footer a.hh-btn-group,
.hh-footer a.hh-btn-channel {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  border-radius: 0 !important;
  color: var(--hh-dim) !important;
  font-weight: 500;
  justify-content: flex-start;
  width: auto;
}
.hh-footer a.hh-btn-group:hover,
.hh-footer a.hh-btn-channel:hover { color: var(--hh-cyan-2) !important; }

.hh-empty, .hh-loading { color: var(--hh-muted); padding: 20px 0; text-align: left; }

/* ---- Xboard / Naive UI skin ---- */
body.hh-app #app,
body.hh-app .n-config-provider,
body.hh-app .n-layout,
body.hh-app .n-layout-scroll-container,
body.hh-app .n-layout-content,
body.hh-app .n-layout-header,
body.hh-app .n-layout-sider,
body.hh-app .n-layout-sider-scroll-container {
  background: transparent !important;
  color: var(--hh-text) !important;
}
body.hh-app .n-layout-header {
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hh-line) !important;
  background: rgba(7, 11, 22, 0.6) !important;
}
body.hh-app .n-layout-sider {
  background: rgba(8, 12, 24, 0.82) !important;
  border-right: 1px solid var(--hh-line) !important;
}
body.hh-app .n-card {
  background: var(--hh-elev) !important;
  border: 1px solid var(--hh-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--hh-shadow) !important;
  color: var(--hh-text) !important;
}
body.hh-app .n-card-header, body.hh-app .n-card__content { color: var(--hh-text) !important; }
body.hh-app .n-input,
body.hh-app .n-input-wrapper,
body.hh-app .n-input .n-input__input-el,
body.hh-app .n-base-selection,
body.hh-app .n-base-selection-label {
  background: rgba(255,255,255,0.04) !important;
  color: var(--hh-text) !important;
  border-color: var(--hh-line) !important;
  --n-border: 1px solid var(--hh-line) !important;
  --n-border-hover: 1px solid var(--hh-cyan) !important;
  --n-border-focus: 1px solid var(--hh-cyan) !important;
  --n-caret-color: var(--hh-cyan) !important;
  --n-color: rgba(255,255,255,0.04) !important;
  --n-text-color: var(--hh-text) !important;
  --n-placeholder-color: var(--hh-dim) !important;
}
body.hh-app .n-button {
  --n-border: 1px solid var(--hh-line) !important;
  border-radius: 999px !important;
}
body.hh-app .n-button--primary-type {
  --n-color: transparent !important;
  background: linear-gradient(135deg, rgba(46, 201, 192, 0.95), rgba(106, 98, 255, 0.95)) !important;
  border: 0 !important;
  color: #071018 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 22px rgba(62, 224, 212, 0.18) !important;
}
body.hh-app .n-menu {
  background: transparent !important;
  --n-item-text-color: var(--hh-muted) !important;
  --n-item-text-color-hover: var(--hh-text) !important;
  --n-item-text-color-active: var(--hh-cyan-2) !important;
  --n-item-color-active: rgba(62, 224, 212, 0.10) !important;
  color: var(--hh-muted) !important;
}
body.hh-app .n-menu-item-content--selected { color: var(--hh-cyan-2) !important; }
body.hh-app .n-data-table { --n-merged-th-color: transparent !important; --n-merged-td-color: transparent !important; color: var(--hh-text) !important; }
body.hh-app .n-data-table .n-data-table-th,
body.hh-app .n-data-table .n-data-table-td {
  background: transparent !important;
  border-color: var(--hh-line) !important;
  color: var(--hh-text) !important;
}
body.hh-app .n-tag { border-color: var(--hh-line) !important; }
body.hh-app .n-tabs-tab { color: var(--hh-muted) !important; }
body.hh-app .n-tabs-tab--active { color: var(--hh-cyan-2) !important; }
body.hh-app .n-modal-body, body.hh-app .n-dialog, body.hh-app .n-drawer-body {
  background: var(--hh-elev-solid) !important;
  color: var(--hh-text) !important;
  border: 1px solid var(--hh-line);
}
body.hh-app a { color: var(--hh-cyan-2); }
body.hh-app #hh-app-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
body.hh-app #hh-app-header + #app { min-height: calc(100vh - var(--hh-header-h)); }

a[data-huali-id] {
  display: inline-flex !important;
  align-items: center;
  margin: 6px 8px 0 0;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--hh-line-strong) !important;
  background: linear-gradient(180deg, rgba(62, 224, 212, 0.14), rgba(139, 124, 255, 0.10)) !important;
  color: var(--hh-text) !important;
  text-decoration: none !important;
  font-size: 13px !important;
}

.hh-steps { display: flex; flex-direction: column; gap: 16px; }
.hh-step {
  background: var(--hh-elev);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow);
  padding: 24px 26px 26px;
  position: relative;
  overflow: hidden;
}
.hh-step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 224, 212, 0.5), rgba(139, 124, 255, 0.4), transparent);
}
.hh-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 8px;
  border: 1px solid var(--hh-line-strong);
  background: linear-gradient(160deg, rgba(62, 224, 212, 0.22), rgba(139, 124, 255, 0.12));
  color: var(--hh-cyan-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
}
.hh-step h3 {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 650;
}
.hh-step p { margin: 0 0 10px; color: var(--hh-muted); }
.hh-step p:last-child { margin-bottom: 0; }
.hh-step ol, .hh-step ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--hh-text); }
.hh-step li { margin: 7px 0; color: var(--hh-text); }
.hh-step li::marker { color: var(--hh-cyan); }
.hh-step a { color: var(--hh-cyan-2); text-decoration: none; }
.hh-step a:hover { text-decoration: underline; }
.hh-plan-list { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.hh-plan-list th, .hh-plan-list td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hh-line);
}
.hh-plan-list th { color: var(--hh-dim); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; }
.hh-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 2px solid var(--hh-cyan);
  background: rgba(62, 224, 212, 0.06);
  color: var(--hh-muted);
  font-size: 13px;
  border-radius: 0 10px 10px 0;
}

/* login/register card */
body.hh-app #app > .n-config-provider > .wh-full,
body.hh-app #app .wh-full.flex.items-center.justify-center {
  height: auto !important;
  min-height: calc(100vh - var(--hh-header-h));
  padding: 48px 16px 64px;
  box-sizing: border-box;
}
body.hh-app .n-card.max-w-md { width: 100%; max-width: 440px !important; overflow: hidden; }
body.hh-app .n-card.max-w-md .text-center img,
body.hh-app .n-card.max-w-md img.mb-1em {
  width: 88px !important; height: 88px !important; max-width: 88px !important;
  object-fit: cover; border-radius: 20px; margin: 0 auto 12px !important; display: block;
  box-shadow: 0 0 0 1px var(--hh-line-strong), 0 0 28px rgba(62, 224, 212, 0.25);
}
body.hh-app .n-card.max-w-md .p-6 { padding: 32px 32px 22px !important; }
body.hh-app h5.text-muted, body.hh-app .text-muted { color: var(--hh-muted) !important; line-height: 1.65; }
body.hh-app [class*="bg-[--n-color-embedded]"],
body.hh-app .n-card .bg-\[--n-color-embedded\] {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid var(--hh-line);
  color: var(--hh-muted) !important;
}
body.hh-app .text-gray-500, body.hh-app a.text-gray-500 { color: var(--hh-cyan-2) !important; }
body.hh-app .n-button--default-type,
body.hh-app .n-button--tertiary-type,
body.hh-app .n-button--quaternary-type {
  --n-text-color: var(--hh-text) !important;
  --n-text-color-hover: var(--hh-cyan-2) !important;
  --n-text-color-pressed: var(--hh-cyan-2) !important;
  --n-text-color-focus: var(--hh-cyan-2) !important;
  --n-color: transparent !important;
  --n-border: 1px solid var(--hh-line) !important;
  color: var(--hh-text) !important;
}
body.hh-app .n-button--default-type .n-button__content,
body.hh-app .n-button--default-type .n-button__icon { color: inherit !important; }
body.hh-app .n-input__suffix, body.hh-app .n-input__prefix,
body.hh-app .n-input__suffix .n-icon, body.hh-app .n-base-icon,
body.hh-app .n-input__eye { color: var(--hh-muted) !important; }
body.hh-app .n-input .n-input__input-el,
body.hh-app .n-input .n-input__textarea-el { color: var(--hh-text) !important; caret-color: var(--hh-cyan); }
body.hh-app .n-input .n-input__placeholder { color: var(--hh-dim) !important; }
body.hh-app .n-input-group { display: flex; gap: 8px; }
body.hh-app .n-input-group > .n-button { flex: 0 0 auto; min-width: 96px; }
body.hh-app .n-checkbox__label, body.hh-app .n-checkbox__label * { color: var(--hh-muted) !important; }
body.hh-app .n-checkbox-box { border-radius: 4px !important; }
body.hh-app .n-form-item-label, body.hh-app .n-form-item-feedback { color: var(--hh-muted) !important; }
body.hh-app .n-dropdown-menu, body.hh-app .n-popover, body.hh-app .n-select-menu {
  background: var(--hh-elev-solid) !important; color: var(--hh-text) !important;
  --n-color: var(--hh-elev-solid) !important; --n-option-text-color: var(--hh-text) !important;
}
body.hh-app .n-dropdown-option-body__label, body.hh-app .n-base-select-option__content { color: var(--hh-text) !important; }
body.hh-app .n-message, body.hh-app .n-notification {
  background: var(--hh-elev-solid) !important; color: var(--hh-text) !important; border: 1px solid var(--hh-line);
}
body.hh-app .n-message__content, body.hh-app .n-notification-main__content,
body.hh-app .n-notification-main__header { color: var(--hh-text) !important; }
body.hh-app .n-dialog__title, body.hh-app .n-dialog__content, body.hh-app .n-card-header__main { color: var(--hh-text) !important; }
body.hh-app .n-input .n-input-wrapper,
body.hh-app .n-input .n-input__input,
body.hh-app .n-input .n-input__suffix,
body.hh-app .n-input .n-input__prefix { background: transparent !important; }
body.hh-app .n-input {
  --n-color: rgba(255,255,255,0.05) !important;
  --n-color-focus: rgba(255,255,255,0.07) !important;
  background: rgba(255,255,255,0.05) !important;
  border-radius: 10px !important;
}

body.hh-app #app:has(.n-layout-sider){
  height:calc(100vh - var(--hh-head,64px))!important;
  height:calc(100dvh - var(--hh-head,64px))!important;
  min-height:0!important;
}
.title-text.color-primary,.color-primary,.text-primary{color:#7af0e6!important;}
.n-radio-group--button-group .n-radio-button--checked .n-radio__label{color:#fff!important;}
.n-button--info-type:not(.n-button--disabled):not(.n-button--primary-type){color:#7af0e6!important;}
.n-button--info-type .n-button__content{color:inherit!important;}
.hh-import{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px 4px;}
.hh-import a[data-huali-id]{flex:1 1 140px;justify-content:center;margin:0!important;font-weight:600;}
.hh-import a[data-huali-id]:hover{filter:brightness(1.15);}

/* hide legacy group bar if an older site.js still injects it */
.hh-group-bar { display: none !important; }
body.hh-app .hh-header {
  height: var(--hh-header-h);
  min-height: var(--hh-header-h);
  flex-direction: row;
  align-items: center;
  padding: 0;
}

body.hh-app .n-message-container,
body.hh-app .n-notification-container {
  top: calc(var(--hh-head, var(--hh-header-h)) + 12px) !important;
}
@media (min-width: 961px) {
  .hh-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .hh-wrap,
  .hh-header .hh-wrap { width: min(var(--hh-wrap), calc(100% - 32px)); }
  .hh-header { z-index: 80; }
  .hh-menu-btn { display: inline-flex; }
  .hh-nav-mask { display: none; z-index: 55; top: var(--hh-header-h); }
  .hh-header.is-open .hh-nav-mask { display: block; }
  .hh-nav {
    position: fixed;
    top: var(--hh-header-h);
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    height: calc(100dvh - var(--hh-header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 16px 18px 28px;
    background: rgba(9, 13, 24, 0.97);
    border-left: 1px solid var(--hh-line);
    box-shadow: -18px 0 40px rgba(0,0,0,0.35);
    transform: translateX(110%);
    transition: transform .22s ease;
    z-index: 70;
    overflow-y: auto;
  }
  .hh-header.is-open .hh-nav { transform: none; }
  .hh-nav .hh-nav-sep { width: 100%; height: 1px; margin: 10px 0; }
  .hh-nav a { padding: 11px 12px; font-size: 15px; border-radius: 12px; }
  .hh-nav a.hh-btn { width: 100%; }
  .hh-hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 36px; }
  .hh-hero-mark { order: -1; }
  .hh-hero-mark img { width: min(200px, 52%); border-radius: 28%; }
  .hh-grid { grid-template-columns: 1fr; }
  .hh-footer .hh-wrap { grid-template-columns: 1fr 1fr; }
  .hh-foot-brand { grid-column: 1 / -1; }
  .hh-page-head { padding-top: 32px; }
  body.hh-app .n-card.max-w-md .p-6 { padding: 22px 18px 16px !important; }
  body.hh-app #app .wh-full.flex.items-center.justify-center { padding: 24px 12px 40px; align-items: flex-start !important; }
}
@media (max-width: 640px) {
  .hh-footer .hh-wrap { grid-template-columns: 1fr; gap: 24px; }
  .hh-hero h1 { font-size: 40px; }
  .hh-plan .price { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-plan { transition: none; }
  .hh-plan:hover { transform: none; }
}

/* ===== 20261130ui2: interaction states + polish ===== */
a.hh-btn, button.hh-btn { transition: border-color .18s, box-shadow .18s, background .18s, transform .08s, opacity .18s; vertical-align: middle; }
a.hh-btn:active, button.hh-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(0,0,0,0.25) !important; filter: brightness(0.95); }
button.hh-btn:disabled, button.hh-btn[disabled], a.hh-btn[aria-disabled="true"], .hh-btn.is-disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none; box-shadow: none !important; transform: none;
}
.hh-form button.hh-btn { min-width: 96px; padding: 0 22px; min-height: 48px; border-radius: 12px; }
.hh-form input { min-height: 48px; }
.hh-nav a:active { background: rgba(255,255,255,0.07); }
.hh-menu-btn:hover { border-color: var(--hh-line-strong); }
.hh-menu-btn:active { background: rgba(255,255,255,0.07); }
.hh-menu-btn:focus-visible { outline: 2px solid var(--hh-cyan); outline-offset: 2px; }
.hh-plan:active { transform: translateY(-1px); }
.hh-plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; }
.hh-plan .name { padding-right: 56px; }
.hh-hero-links a, .hh-foot-col a { transition: color .18s; }
.hh-loading { display: flex; align-items: center; gap: 10px; }
.hh-loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--hh-line-strong); border-top-color: var(--hh-cyan);
  animation: hh-spin .8s linear infinite; flex-shrink: 0;
}
td.hh-loading { display: table-cell; }
td.hh-loading::before { display: inline-block; vertical-align: -2px; margin-right: 10px; }
@keyframes hh-spin { to { transform: rotate(360deg); } }
.hh-empty {
  border: 1px dashed var(--hh-line-strong); border-radius: var(--hh-radius);
  padding: 28px 20px; text-align: center; background: rgba(255,255,255,0.02);
}
td.hh-empty { border-radius: 0; border: 0; padding: 28px 16px; }
.hh-empty .hh-btn { margin-top: 14px; }
body.hh-app .n-button:not(.n-button--disabled):active { transform: translateY(1px); }
body.hh-app .n-button--disabled { opacity: .5 !important; }
@media (prefers-reduced-motion: reduce) { .hh-loading::before { animation: none; } }
@media (max-width: 400px) {
  .hh-wrap, .hh-header .hh-wrap { width: calc(100% - 28px); }
  .hh-card, .hh-plan, .hh-feature { padding: 20px; }
  .hh-step { padding: 20px 18px 22px; }
  .hh-hero h1 { font-size: 36px; }
  .hh-cta .hh-btn { flex: 1 1 0; }
  .hh-form input { min-width: 0; flex: 1 1 100%; }
  .hh-form button.hh-btn { flex: 1 1 100%; }
  .hh-plan-list th, .hh-plan-list td { padding: 9px 8px; font-size: 13px; }
  table.hh-table th, table.hh-table td { padding: 12px 10px; }
}
/* nodes table */
table.hh-nodes td.num, table.hh-nodes th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.hh-nodes td.name { font-weight: 500; }
table.hh-nodes tr.hh-group-row td {
  background: rgba(62, 224, 212, 0.05); color: var(--hh-cyan-2); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; padding: 9px 16px; border-bottom: 1px solid var(--hh-line);
}
table.hh-nodes tbody tr.hh-group-row:hover td { background: rgba(62, 224, 212, 0.05); }
.hh-table-note { margin: 14px 2px 0; color: var(--hh-dim); font-size: 13px; }
@media (max-width: 480px) { table.hh-nodes { font-size: 13px; } table.hh-nodes th, table.hh-nodes td { padding: 11px 8px; } }
/* account card + kb empty (site.js) */
body.hh-app .hh-account-card { padding: 20px 24px; margin-bottom: 16px; }
.hh-account-head { font-size: 16px; font-weight: 600; margin-bottom: 14px; color: var(--hh-text); }
.hh-account-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.hh-account-grid dt { color: var(--hh-dim); font-size: 12px; margin-bottom: 4px; }
.hh-account-grid dd { margin: 0; color: var(--hh-text); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .hh-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.hh-app .hh-kb-empty { margin-top: 20px; padding: 28px 24px; text-align: center; border-style: dashed !important; }
.hh-kb-title { font-size: 15px; font-weight: 600; color: var(--hh-text); margin-bottom: 6px; }
.hh-kb-sub { color: var(--hh-muted); font-size: 13px; line-height: 1.7; }
/* 20: never show a spinner in pagination/size picker when idle */
body.hh-app .n-pagination .n-base-loading,
body.hh-app .n-pagination .n-base-suffix .n-base-loading { display: none !important; }
.hh-footer .hh-wrap.hh-foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hh-line); font-size: 12px; color: var(--hh-dim);
}
.hh-foot-legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.hh-foot-legal a { color: var(--hh-dim); text-decoration: none; }
.hh-foot-legal a:hover { color: var(--hh-cyan-2); }
.hh-step { scroll-margin-top: 84px; }
.hh-plan-group h3 { margin-bottom: 4px; color: var(--hh-text); font-size: 16px; letter-spacing: 0.02em; }
.hh-group-note { margin: 0 0 16px; color: var(--hh-dim); font-size: 13px; }

/* clickable feature cards */
a.hh-feature {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
a.hh-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 224, 212, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(62, 224, 212, 0.12);
}
a.hh-feature:focus-visible {
  outline: 2px solid var(--hh-cyan);
  outline-offset: 3px;
}
a.hh-feature:active {
  transform: translateY(-1px);
  filter: brightness(0.97);
}
.hh-feature-go {
  margin-top: 16px;
  color: var(--hh-cyan-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
a.hh-feature:hover .hh-feature-go { text-decoration: underline; }
.hh-feature-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--hh-dim);
}
.hh-feature-link {
  color: var(--hh-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.hh-feature-link:hover { color: var(--hh-cyan-2); }
@media (prefers-reduced-motion: reduce) {
  a.hh-feature { transition: none; }
  a.hh-feature:hover, a.hh-feature:active { transform: none; }
}

/* period prices on homepage plan cards + guide tables (20261201qy) */
.hh-periods {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--hh-muted);
  font-weight: 500;
}
.hh-periods b {
  color: var(--hh-text);
  font-weight: 650;
}
.hh-periods .dot { opacity: 0.55; }
.hh-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .hh-plan-list th, .hh-plan-list td { padding: 8px 8px; font-size: 13px; }
}


/* 20261201tg: bind telegram bot */
.hh-grid.hh-feature-grid.hh-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) {
  .hh-grid.hh-feature-grid.hh-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.hh-bind-card { padding: 28px 24px; }
.hh-bind-status { margin: 0 0 18px; font-size: 15px; color: var(--hh-text); line-height: 1.7; }
.hh-bind-actions { margin: 0; }
.hh-bind-steps { margin: 22px 0 0; padding-left: 18px; color: var(--hh-muted); line-height: 1.8; }
.hh-bind-steps li { margin: 0 0 8px; }
