@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: #0c1222;
  --hh-elev: rgba(14, 20, 38, 0.72);
  --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.16);
  --hh-line-strong: rgba(126, 230, 220, 0.32);
  --hh-danger: #ff6b8a;
  --hh-ok: #3ee0a8;
  --hh-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --hh-radius: 18px;
  --hh-font: "Exo 2", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --hh-header-h: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--hh-bg); }

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

/* ---- atmosphere (original, not copied) ---- */
body.hh-site,
body.hh-app {
  background-color: var(--hh-bg);
  background-image:
    radial-gradient(900px 480px at 82% -10%, rgba(139, 124, 255, 0.22), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(62, 224, 212, 0.16), transparent 55%),
    radial-gradient(600px 400px at 50% 30%, rgba(62, 224, 212, 0.05), transparent 70%);
  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.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 230, 220, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
body.hh-site::after,
body.hh-app::after {
  content: "";
  position: fixed;
  width: 42vw;
  max-width: 560px;
  height: 42vw;
  max-height: 560px;
  right: -8%;
  top: 8%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(62, 224, 212, 0.09), rgba(139, 124, 255, 0.05) 42%, transparent 70%);
  filter: blur(8px);
  animation: hh-drift 18s ease-in-out infinite;
}
@keyframes hh-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(-24px, 18px, 0) scale(1.06); opacity: 1; }
}

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

.hh-wrap {
  width: min(1120px, calc(100% - 40px));
  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(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--hh-line);
}
.hh-header .hh-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 40px));
}
.hh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hh-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 17px;
}
.hh-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 0 0 1px var(--hh-line), 0 0 18px rgba(62, 224, 212, 0.25);
}
.hh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hh-nav a {
  color: var(--hh-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .2s, background .2s, box-shadow .2s;
}
.hh-nav a:hover { color: var(--hh-text); background: rgba(255,255,255,0.04); }
.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;
}
.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.25), 0 8px 24px rgba(62, 224, 212, 0.12);
}
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-lg { padding: 12px 22px; font-size: 15px; }

/* ---- hero ---- */
.hh-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}
.hh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hh-cyan-2);
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hh-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hh-cyan));
}
.hh-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: 0.12em;
  font-weight: 700;
  background: linear-gradient(180deg, #f5fbff 20%, #9be8e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hh-hero .lead {
  font-size: 17px;
  color: var(--hh-muted);
  max-width: 34em;
  margin: 0 0 28px;
}
.hh-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hh-hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hh-hero-mark::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 224, 212, 0.28), rgba(139, 124, 255, 0.08) 45%, transparent 70%);
  filter: blur(12px);
}
.hh-hero-mark img {
  width: min(360px, 80%);
  height: auto;
  position: relative;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
  animation: hh-float 8s ease-in-out infinite;
}
@keyframes hh-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- sections / cards ---- */
.hh-section { padding: 24px 0 72px; }
.hh-section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.08em;
}
.hh-section .sub {
  color: var(--hh-muted);
  margin: 0 0 28px;
}
.hh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.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: 22px;
  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.55), rgba(139, 124, 255, 0.45), transparent);
}
.hh-plan .name { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.hh-plan .price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 10px 0 4px;
  color: #f4fbff;
}
.hh-plan .price small { font-size: 14px; color: var(--hh-muted); font-weight: 500; margin-left: 4px; }
.hh-plan .meta { color: var(--hh-muted); font-size: 13px; margin-bottom: 18px; }
.hh-plan a.hh-btn { width: 100%; }
.hh-plan.is-featured {
  border-color: rgba(62, 224, 212, 0.4);
  box-shadow: 0 0 0 1px rgba(62, 224, 212, 0.15), var(--hh-shadow);
}
.hh-plan .tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--hh-cyan-2);
  border: 1px solid var(--hh-line-strong);
  border-radius: 999px;
  padding: 2px 8px;
}
.hh-feature h3 { margin: 0 0 8px; font-size: 16px; }
.hh-feature p { margin: 0; color: var(--hh-muted); font-size: 14px; }
.hh-icon-dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--hh-line-strong);
  background: linear-gradient(160deg, rgba(62, 224, 212, 0.25), 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.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hh-cyan-2);
}
.hh-icon-dot svg {
  width: 24px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(62, 224, 212, 0.35));
}

.hh-table-wrap { overflow-x: auto; }
table.hh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.hh-table th, table.hh-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hh-line);
}
table.hh-table th { color: var(--hh-dim); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; }
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-form { display: flex; gap: 10px; flex-wrap: wrap; }
.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: 12px 14px;
  font: inherit;
  outline: none;
}
.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-footer {
  border-top: 1px solid var(--hh-line);
  padding: 28px 0 40px;
  color: var(--hh-dim);
  font-size: 13px;
}
.hh-footer .hh-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.hh-empty, .hh-loading { color: var(--hh-muted); padding: 12px 0; }

/* ---- 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 h1, body.hh-app h2, body.hh-app h3, body.hh-app p, body.hh-app span, body.hh-app div {
  /* don't force every div; let cards inherit */
}
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)); }

/* one-click import buttons injected by site.js */
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: 22px 24px 24px;
  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.55), rgba(139, 124, 255, 0.45), 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 12px;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.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: 6px 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 12px; }
.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.08em; }
.hh-note {
  margin-top: 12px;
  padding: 10px 12px;
  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;
}

@media (max-width: 860px) {
  .hh-hero { grid-template-columns: 1fr; padding: 40px 0 32px; text-align: left; }
  .hh-hero-mark { order: -1; }
  .hh-hero-mark img { width: min(220px, 60%); }
  .hh-grid { grid-template-columns: 1fr; }
  .hh-header { height: auto; min-height: var(--hh-header-h); }
  .hh-header .hh-wrap { flex-wrap: wrap; padding: 10px 0; }
  .hh-nav { width: 100%; justify-content: flex-start; }
  .hh-nav a:not(.hh-btn),
  body.hh-app .hh-nav a:not(.hh-btn) { display: inline-flex; padding: 6px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-hero-mark img, body.hh-site::after, body.hh-app::after { animation: none; }
}
