/* He Code production stylesheet - generated by scripts/build-css.mjs */

/* tokens.css */
:root {
  --hj-bg: #050816;
  --hj-bg-elevated: #0a1020;
  --hj-bg-panel: rgba(10, 16, 32, 0.94);
  --hj-green: #00ff88;
  --hj-green-soft: #5cffb0;
  --hj-green-deep: #00d96e;
  --hj-green-dim: rgba(0, 255, 136, 0.14);
  --hj-green-glow: rgba(0, 255, 136, 0.35);
  --hj-cyan: #5ee4ff;
  --hj-cyan-dim: rgba(94, 228, 255, 0.1);
  --hj-white: #ffffff;
  --hj-white-soft: rgba(255, 255, 255, 0.88);
  --hj-orange: #ffb347;
  --hj-red: #ff5c6c;
  --hj-purple: #8ba4ff;
  --hj-text: #ffffff;
  --hj-text-muted: rgba(255, 255, 255, 0.5);
  --hj-text-soft: rgba(255, 255, 255, 0.78);
  --hj-border: rgba(255, 255, 255, 0.1);
  --hj-border-green: rgba(0, 255, 136, 0.28);
  --hj-border-strong: rgba(0, 255, 136, 0.42);
  --hj-radius-sm: 10px;
  --hj-radius-md: 14px;
  --hj-radius-lg: 18px;
  --hj-radius-xl: 22px;
  --hj-nav-h: 72px;
  --hj-font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --hj-mono: "JetBrains Mono", "Consolas", monospace;
  --hj-shadow-glow: 0 0 60px rgba(0, 255, 136, 0.12);
  --hj-shadow-panel: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --hj-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --hj-shadow-btn: 0 4px 16px rgba(0, 255, 136, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --hj-glass: rgba(12, 18, 36, 0.72);
  --hj-glass-border: rgba(255, 255, 255, 0.08);
  --hj-max-w: 1200px;
  --hj-ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* base.css */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--hj-font);
  color: var(--hj-text);
  background: var(--hj-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.hj-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.hj-main {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: var(--hj-max-w);
  margin: 0 auto;
  padding: 28px 32px 40px;
}

@media (max-width: 768px) {
  .hj-main {
    padding: 20px 16px 32px;
  }
}

.hj-page-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hj-page-hd h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.hj-page-hd h1 span {
  color: var(--hj-green);
}

.hj-page-hd p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--hj-text-muted);
  max-width: 560px;
}

.hj-body-row {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.hj-col-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hj-col-side {
  width: min(100%, 420px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 1024px) {
  .hj-body-row {
    flex-direction: column;
  }

  .hj-col-side {
    width: 100%;
  }
}

.hj-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}


/* components.css */

/* ── Nav ── */
.hj-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--hj-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.12);
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.hj-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hj-nav__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 191, 255, 0.15));
  border: 1.5px solid rgba(0, 255, 136, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  flex-shrink: 0;
  overflow: hidden;
}

.hj-nav__mark--img {
  background: transparent;
  border: none;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.15);
  padding: 0;
}

.hj-nav__mark--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.hj-nav__brand em {
  font-style: normal;
  color: var(--hj-green);
}

.hj-nav__links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.hj-nav__links a {
  padding: 8px 14px;
  border-radius: var(--hj-radius-sm);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, color 0.2s;
}

.hj-nav__links a:hover {
  color: var(--hj-text);
  background: rgba(255, 255, 255, 0.05);
}

.hj-nav__links a.is-active {
  background: var(--hj-green-dim);
  color: var(--hj-green);
  font-weight: 600;
}

.hj-nav__links a.is-hot {
  color: var(--hj-cyan);
}

.hj-nav__cta {
  padding: 10px 20px;
  border-radius: var(--hj-radius-sm);
  background: var(--hj-green);
  color: var(--hj-bg);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.hj-nav__cta--user {
  background: rgba(255, 255, 255, 0.08);
  color: var(--hj-text);
  border: 1px solid var(--hj-border-strong);
}

.hj-nav__cta--user:hover {
  background: rgba(0, 255, 136, 0.12);
  color: var(--hj-green);
}

.hj-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.35);
}

.hj-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(112, 224, 174, 0.34);
  border-radius: 13px;
  background: rgba(112, 224, 174, 0.10);
  color: var(--hj-green);
  cursor: pointer;
  position: relative;
  z-index: 3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-tap-highlight-color: transparent;
}

.hj-nav__toggle span {
  display: block;
  width: 22px;
  min-width: 22px;
  height: 2px;
  flex: 0 0 2px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(112, 224, 174, 0.36);
  transition: transform 180ms ease, opacity 150ms ease;
}

.hj-nav.is-open .hj-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hj-nav.is-open .hj-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.hj-nav.is-open .hj-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .hj-nav__toggle {
    display: flex;
  }

  .hj-nav__links {
    display: none;
    position: absolute;
    top: var(--hj-nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 16px 20px;
    background: rgba(5, 8, 22, 0.96);
    border-bottom: 1px solid var(--hj-border);
  }

  .hj-nav.is-open .hj-nav__links {
    display: flex;
  }

  .hj-nav__cta {
    display: none;
  }
}

/* ── Panel ── */
.hj-panel {
  border-radius: var(--hj-radius-lg);
  padding: 20px 22px;
  background: linear-gradient(160deg, var(--hj-bg-panel), rgba(5, 8, 22, 0.88));
  border: 1px solid var(--hj-border);
  box-shadow: var(--hj-shadow-panel);
}

.hj-panel__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.hj-panel__hd h2 {
  font-size: 1.1rem;
  font-weight: 800;
}

.hj-panel__sub {
  font-size: 0.875rem;
  color: var(--hj-text-muted);
  margin-bottom: 14px;
}

/* ── Badge / Tag ── */
.hj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--hj-border-strong);
  background: var(--hj-green-dim);
  color: var(--hj-green);
}

.hj-badge--cyan {
  border-color: rgba(0, 191, 255, 0.35);
  background: var(--hj-cyan-dim);
  color: var(--hj-cyan);
}

.hj-tag {
  padding: 6px 12px;
  border-radius: var(--hj-radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--hj-green-dim);
  border: 1px solid var(--hj-border-strong);
  color: var(--hj-green);
}

/* ── Metrics grid ── */
.hj-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hj-metric {
  padding: 12px 14px;
  border-radius: var(--hj-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hj-metric__label {
  font-size: 0.8rem;
  color: var(--hj-text-muted);
  margin-bottom: 4px;
}

.hj-metric__value {
  font-size: 1.35rem;
  font-weight: 800;
}

.hj-metric--green .hj-metric__value { color: var(--hj-green); }
.hj-metric--cyan .hj-metric__value { color: var(--hj-cyan); }
.hj-metric--orange .hj-metric__value { color: var(--hj-orange); }
.hj-metric--purple .hj-metric__value { color: var(--hj-purple); }

/* ── Stats row ── */
.hj-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hj-stat {
  text-align: center;
  padding: 16px 12px;
  border-radius: var(--hj-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.12);
}

.hj-stat__n {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hj-orange);
}

.hj-stat__n--green { color: var(--hj-green); }
.hj-stat__n--cyan { color: var(--hj-cyan); }

.hj-stat__l {
  font-size: 0.75rem;
  color: var(--hj-text-muted);
  margin-top: 4px;
}

/* ── Buttons ── */
.hj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--hj-radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hj-btn--primary {
  background: linear-gradient(135deg, var(--hj-green), #00cc6a);
  color: var(--hj-bg);
}

.hj-btn--primary:hover {
  box-shadow: 0 4px 24px rgba(0, 255, 136, 0.4);
}

.hj-btn--ghost {
  border: 1.5px solid rgba(0, 191, 255, 0.5);
  color: var(--hj-cyan);
  background: transparent;
}

.hj-btn--danger {
  border: 1.5px solid rgba(255, 71, 87, 0.5);
  color: var(--hj-red);
  background: transparent;
}

.hj-btn--block {
  width: 100%;
}

.hj-btn--lg {
  padding: 14px 28px;
  font-size: 0.95rem;
  border-radius: var(--hj-radius-lg);
}

.hj-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Chip ── */
.hj-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--hj-radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hj-chip--live {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 255, 136, 0.5);
  color: var(--hj-green);
}

.hj-chip--live .rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--hj-red);
  border-radius: 50%;
  margin-right: 6px;
  animation: hj-pulse 1.2s infinite;
}

.hj-chip--cyan {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 191, 255, 0.4);
  color: var(--hj-cyan);
}

@keyframes hj-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Section title ── */
.hj-sec-t {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Select ── */
.hj-select-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hj-select-row label {
  font-size: 0.875rem;
  color: var(--hj-text-muted);
}

.hj-select {
  min-width: min(100%, 360px);
  height: 48px;
  padding: 0 18px;
  border-radius: var(--hj-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 14, 32, 0.9);
  border: 1.5px solid rgba(0, 191, 255, 0.4);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(0, 191, 255, 0.08);
}

.hj-select .chev {
  color: var(--hj-cyan);
  font-size: 0.85rem;
  font-weight: 400;
}

.hj-meta {
  font-size: 0.85rem;
  color: var(--hj-text-muted);
}

.hj-meta .g { color: var(--hj-green); }
.hj-meta .o { color: var(--hj-orange); margin-left: 12px; }

/* ── Telemetry pills ── */
.hj-tels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hj-tel {
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--hj-radius-sm);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hj-tel b { font-weight: 800; }
.hj-tel--g b { color: var(--hj-green); }
.hj-tel--c b { color: var(--hj-cyan); }
.hj-tel--o b { color: var(--hj-orange); }

/* ── Device cards ── */
.hj-dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hj-dev-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 600px) {
  .hj-dev-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hj-dev-card {
  border-radius: var(--hj-radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.15);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hj-dev-card:hover,
.hj-dev-card.is-active {
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.12);
}

.hj-dev-card__thumb {
  height: 64px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 191, 255, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.hj-dev-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hj-dev-card__st {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--hj-green);
  font-weight: 600;
}

.hj-dev-card__info {
  padding: 8px 10px;
}

.hj-dev-card__name {
  font-size: 0.85rem;
  font-weight: 700;
}

.hj-dev-card__loc {
  font-size: 0.7rem;
  color: var(--hj-text-muted);
  margin-top: 2px;
}

/* ── Log list ── */
.hj-log-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--hj-text-soft);
}

.hj-log-item__time {
  font-family: var(--hj-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  width: 44px;
  flex-shrink: 0;
}

.hj-log-item--warn {
  color: var(--hj-orange);
}

/* ── Quick actions grid ── */
.hj-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hj-quick {
  padding: 14px 8px;
  border-radius: var(--hj-radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}

.hj-quick:hover {
  border-color: var(--hj-border-strong);
  background: var(--hj-green-dim);
}

.hj-quick.is-hot {
  border-color: rgba(0, 191, 255, 0.4);
  background: var(--hj-cyan-dim);
}

.hj-quick__ico {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.hj-quick__tx {
  font-size: 0.75rem;
  color: var(--hj-text-soft);
}

/* ── Placeholder image frame ── */
.hj-ph-frame {
  position: relative;
  border-radius: var(--hj-radius-xl);
  overflow: hidden;
  border: 1.5px dashed rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.04);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hj-ph-frame img,
.hj-ph-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hj-ph-frame__hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
}

/* ── Auth modal ── */
.hj-auth {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hj-auth[hidden] {
  display: none !important;
}

body.hj-auth-open {
  overflow: hidden;
}

.hj-auth__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.hj-auth__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 24px 22px 20px;
  border-radius: var(--hj-radius-xl);
  z-index: 1;
}

.hj-auth__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--hj-text-muted);
}

.hj-auth__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--hj-text);
}

.hj-auth__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hj-auth__sub {
  font-size: 0.85rem;
  color: var(--hj-text-muted);
  margin-bottom: 16px;
}

.hj-auth__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hj-auth__tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--hj-radius-sm);
  border: 1px solid var(--hj-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--hj-text-muted);
  font-weight: 600;
}

.hj-auth__tab.is-active {
  border-color: var(--hj-border-strong);
  background: var(--hj-green-dim);
  color: var(--hj-green);
}

.hj-auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--hj-text-muted);
}

.hj-auth__field input {
  padding: 10px 12px;
  border-radius: var(--hj-radius-sm);
  border: 1px solid var(--hj-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hj-text);
  font-size: 0.92rem;
}

.hj-auth__field input:focus {
  outline: none;
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.hj-auth__captcha-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.hj-auth__sms-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.hj-auth__sms-row input {
  flex: 1;
  min-width: 0;
}

.hj-auth__sms-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.hj-auth__success {
  text-align: center;
  padding: 12px 0 4px;
}

.hj-auth__success-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hj-bg);
  background: linear-gradient(180deg, var(--hj-green-soft, #5cffb0), var(--hj-green-deep, #00a844));
}

.hj-auth__success h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.hj-auth__success p {
  font-size: 0.88rem;
  color: var(--hj-text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.hj-auth__captcha-row input {
  flex: 1;
  min-width: 0;
}

.hj-auth__captcha-img {
  padding: 0;
  border: 1px solid var(--hj-border);
  border-radius: var(--hj-radius-sm);
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.hj-auth__captcha-img img {
  display: block;
}

.hj-auth__err {
  color: var(--hj-orange);
  font-size: 0.82rem;
  margin: 4px 0 10px;
}

.hj-auth__trial {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--hj-text-muted);
  line-height: 1.5;
}

.hj-auth__logged {
  padding: 8px 0 4px;
}

.hj-auth__logged p {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.hj-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--hj-green);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.hj-trial-hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--hj-text-muted);
  text-align: center;
}

.hj-history-loading {
  padding: 40px;
  text-align: center;
  color: var(--hj-text-muted);
}


/* pages.css */
/* ── Video feed ── */
.hj-video {
  flex: 1;
  min-height: 320px;
  border-radius: var(--hj-radius-xl);
  overflow: hidden;
  position: relative;
  border: 1.5px solid var(--hj-border-strong);
  box-shadow: var(--hj-shadow-glow);
}

.hj-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.hj-video__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.15), transparent 40%, rgba(5, 8, 22, 0.85));
  pointer-events: none;
}

.hj-video__corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0, 255, 136, 0.55);
  pointer-events: none;
}

.hj-video__corner--tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.hj-video__corner--tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.hj-video__corner--bl { bottom: 64px; left: 14px; border-right: none; border-top: none; }
.hj-video__corner--br { bottom: 64px; right: 14px; border-left: none; border-top: none; }

.hj-video__top {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.hj-video__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Upload zone (home / recognition) ── */
.hj-upload {
  flex: 1;
  min-height: 220px;
  border-radius: var(--hj-radius-xl);
  border: 2px dashed rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.hj-upload:hover,
.hj-upload.is-dragover {
  border-color: var(--hj-green);
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.15);
}

.hj-upload__ico {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--hj-green-dim);
  border: 1px solid var(--hj-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.hj-upload p {
  font-size: 1rem;
  color: var(--hj-text-muted);
}

.hj-upload__sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Recognition ── */
.hj-recog {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  min-height: 480px;
}

@media (max-width: 900px) {
  .hj-recog {
    grid-template-columns: 1fr;
  }
}

.hj-recog__cam {
  position: relative;
  border-radius: var(--hj-radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--hj-border-strong);
  min-height: 360px;
}

.hj-recog__cam img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.hj-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hj-scan__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--hj-green), transparent);
  box-shadow: 0 0 20px var(--hj-green);
  animation: hj-scan 2.5s ease-in-out infinite;
}

@keyframes hj-scan {
  0%, 100% { top: 10%; opacity: 0.3; }
  50% { top: 85%; opacity: 1; }
}

.hj-recog__result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--hj-radius-xl);
  background: linear-gradient(160deg, var(--hj-bg-panel), rgba(5, 8, 22, 0.88));
  border: 1px solid var(--hj-border);
}

.hj-recog__result h2 {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hj-risk {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid rgba(255, 71, 87, 0.5);
  color: var(--hj-red);
}

.hj-risk--mid {
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.5);
  color: var(--hj-orange);
}

.hj-conf {
  font-size: 0.9rem;
  color: var(--hj-green);
  font-weight: 700;
}

.hj-recog__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--hj-text-soft);
  flex: 1;
}

.hj-result-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}

.hj-result-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hj-result-table td:first-child {
  color: var(--hj-text-muted);
  width: 90px;
}

/* ── Chat (和解) ── */
.hj-chat-layout {
  display: grid;
  grid-template-columns: 1fr min(320px, 100%);
  gap: 20px;
  min-height: calc(100vh - var(--hj-nav-h) - 120px);
}

@media (max-width: 900px) {
  .hj-chat-layout {
    grid-template-columns: 1fr;
  }
}

.hj-chat-main {
  display: flex;
  flex-direction: column;
  border-radius: var(--hj-radius-xl);
  border: 1px solid var(--hj-border);
  background: linear-gradient(160deg, rgba(8, 14, 32, 0.95), rgba(5, 8, 22, 0.9));
  overflow: hidden;
}

.hj-chat-hd {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hj-chat-hd h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.hj-chat-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hj-chat-bdg {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hj-chat-bdg--main {
  background: var(--hj-green-dim);
  border: 1px solid var(--hj-border-strong);
  color: var(--hj-green);
}

.hj-chat-bdg--sub {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--hj-text-muted);
}

.hj-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hj-ch {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
}

.hj-ch:hover { transform: translateY(-1px); }

.hj-ch--g {
  background: var(--hj-green-dim);
  border: 1px solid var(--hj-border-strong);
  color: var(--hj-green);
}

.hj-ch--c {
  background: var(--hj-cyan-dim);
  border: 1px solid rgba(0, 191, 255, 0.35);
  color: var(--hj-cyan);
}

.hj-ch--o {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.35);
  color: var(--hj-orange);
}

.hj-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  max-height: 52vh;
}

.hj-msg-u {
  align-self: flex-end;
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 191, 255, 0.12));
  border: 1px solid rgba(0, 255, 136, 0.25);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hj-msg-a {
  align-self: flex-start;
  max-width: 90%;
  padding: 16px 18px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hj-msg-a ul {
  margin: 8px 0 8px 18px;
  color: var(--hj-text-soft);
}

.hj-msg-a__sh {
  font-weight: 700;
  color: var(--hj-cyan);
  margin-bottom: 6px;
}

.hj-msg-a__warn {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.3);
  color: var(--hj-orange);
  font-size: 0.85rem;
}

.hj-msg-a__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hj-ab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.hj-ab--fill {
  background: var(--hj-green-dim);
  border: 1px solid var(--hj-border-strong);
  color: var(--hj-green);
}

.hj-ab--outline {
  background: transparent;
  border: 1px solid rgba(255, 165, 0, 0.4);
  color: var(--hj-orange);
}

.hj-input-bar {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 5;
}

.hj-composer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 46px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hj-composer:focus-within {
  border-color: rgba(0, 255, 136, 0.42);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.hj-composer__input,
.hj-input-bar input[data-chat-input] {
  width: 100%;
  margin: 0;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--hj-text);
  font-size: 0.92rem;
  line-height: 1.55;
  outline: none;
  min-height: 24px;
  height: auto;
  appearance: none;
  -webkit-appearance: none;
  display: block;
}

.hj-composer__input::placeholder,
.hj-input-bar input[data-chat-input]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.hj-composer__actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hj-composer__attach {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  color: var(--hj-text-muted);
  transition: background 0.15s, color 0.15s;
}

.hj-composer__attach:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--hj-green);
}

.hj-composer__send {
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--hj-green-soft, #5cffb0), var(--hj-green-deep, #00a844));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 8px rgba(0, 255, 136, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s, opacity 0.15s;
}

.hj-composer__send::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4 20-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4 20-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hj-composer__send:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 14px rgba(0, 255, 136, 0.35);
}

.hj-composer__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.hj-chat-preview {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 2px;
}

.hj-chat-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.35);
}

.hj-chat-preview__rm {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 71, 87, 0.9);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hj-composer:has(.hj-chat-preview:not([hidden])) {
  padding-bottom: 46px;
}

.hj-msg-u__img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hj-msg-u__txt {
  line-height: 1.55;
}

.hj-chat-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hj-side-card {
  padding: 18px;
  border-radius: var(--hj-radius-lg);
  background: var(--hj-bg-panel);
  border: 1px solid var(--hj-border);
}

.hj-side-card h3 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--hj-text-soft);
}

.hj-side-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.hj-side-item .v {
  color: var(--hj-green);
  font-weight: 600;
}

/* ── Simulation ── */
.hj-sim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 480px;
}

@media (max-width: 900px) {
  .hj-sim {
    grid-template-columns: 1fr;
  }
}

.hj-sim-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hj-stab {
  padding: 10px 18px;
  border-radius: var(--hj-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--hj-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.hj-stab.is-on,
.hj-stab:hover {
  border-color: var(--hj-border-strong);
  background: var(--hj-green-dim);
  color: var(--hj-green);
}

.hj-plant-box {
  flex: 1;
  min-height: 320px;
  border-radius: var(--hj-radius-xl);
  border: 1.5px solid var(--hj-border);
  background:
    radial-gradient(ellipse at 50% 80%, rgba(0, 255, 136, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(8, 14, 32, 0.9), rgba(5, 8, 22, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hj-plant-box img,
.hj-plant-box svg {
  max-height: 280px;
  width: auto;
}

.hj-plant-box__stage {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--hj-cyan);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(0, 191, 255, 0.3);
}

.hj-gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .hj-gauges {
    grid-template-columns: 1fr;
  }
}

.hj-gau {
  padding: 16px;
  border-radius: var(--hj-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hj-gau__l {
  font-size: 0.75rem;
  color: var(--hj-text-muted);
  margin-bottom: 6px;
}

.hj-gau__v {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hj-green);
}

.hj-slider {
  margin-bottom: 16px;
}

.hj-slider__hd {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.hj-slider__hd span:first-child {
  color: var(--hj-text-muted);
}

.hj-slider__track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hj-slider__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--hj-green), var(--hj-cyan));
}

/* ── Data center ── */
.hj-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .hj-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hj-data-card {
  padding: 20px;
  border-radius: var(--hj-radius-lg);
  background: var(--hj-bg-panel);
  border: 1px solid var(--hj-border);
}

.hj-data-card__label {
  font-size: 0.8rem;
  color: var(--hj-text-muted);
  margin-bottom: 8px;
}

.hj-data-card__value {
  font-size: 1.75rem;
  font-weight: 800;
}

.hj-data-card__delta {
  font-size: 0.75rem;
  margin-top: 6px;
  color: var(--hj-green);
}

.hj-chart {
  min-height: 240px;
  border-radius: var(--hj-radius-lg);
  border: 1px solid var(--hj-border);
  background: var(--hj-bg-panel);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.hj-chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 180px;
  padding-top: 20px;
}

.hj-chart__bar {
  flex: 1;
  max-width: 48px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--hj-green), rgba(0, 255, 136, 0.3));
  min-height: 20px;
  transition: height 0.3s;
}

.hj-chart__bar:nth-child(even) {
  background: linear-gradient(180deg, var(--hj-cyan), rgba(0, 191, 255, 0.3));
}

.hj-chart__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--hj-text-muted);
}

/* ── About ── */
.hj-about-page {
  max-width: 1080px;
}

.hj-about-banner {
  position: relative;
  border-radius: var(--hj-radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--hj-border-strong);
  min-height: clamp(320px, 42vw, 420px);
}

.hj-about-banner__media {
  position: absolute;
  inset: 0;
}

.hj-about-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hj-about-banner__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 8, 22, 0.94) 0%, rgba(5, 8, 22, 0.82) 42%, rgba(5, 8, 22, 0.35) 72%, rgba(5, 8, 22, 0.15) 100%),
    linear-gradient(180deg, transparent 55%, rgba(5, 8, 22, 0.55) 100%);
}

.hj-about-banner__content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 48px);
  max-width: min(640px, 92%);
}

.hj-about-banner__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hj-about-banner__title span {
  background: linear-gradient(135deg, var(--hj-green), var(--hj-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hj-about-banner__sub {
  font-size: 0.95rem;
  color: var(--hj-text-muted);
  margin-bottom: 20px;
}

.hj-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--hj-radius-xl);
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .hj-about-hero {
    grid-template-columns: 1fr;
  }

  .hj-about-hero__visual {
    order: -1;
    max-height: 240px;
  }

  .hj-about-banner {
    min-height: auto;
  }

  .hj-about-banner__content {
    max-width: none;
    padding: 28px 22px 32px;
  }

  .hj-about-banner__shade {
    background:
      linear-gradient(180deg, rgba(5, 8, 22, 0.55) 0%, rgba(5, 8, 22, 0.88) 38%, rgba(5, 8, 22, 0.96) 100%);
  }
}

.hj-about-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hj-cyan);
  margin-bottom: 14px;
}

.hj-about-lead {
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  line-height: 1.85;
  color: var(--hj-text-soft);
  margin-bottom: 20px;
}

.hj-about-lead strong {
  color: var(--hj-green);
  font-weight: 800;
}

.hj-about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hj-about-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hj-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.28);
  backdrop-filter: blur(8px);
}

.hj-about-hero__visual {
  border-radius: var(--hj-radius-lg);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--hj-border-strong);
}

.hj-about-hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.hj-about-flow {
  padding: clamp(28px, 4vw, 36px);
  border-radius: var(--hj-radius-xl);
  margin-bottom: 28px;
}

.hj-about-section {
  margin-bottom: 24px;
}

.hj-about-section__hd {
  margin-bottom: 24px;
}

.hj-about-section__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--hj-cyan);
  margin-bottom: 8px;
}

.hj-about-section__hd h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.hj-about-section__hd p {
  font-size: 0.9rem;
  color: var(--hj-text-muted);
}

.hj-about-flow__track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.hj-about-flow__step {
  flex: 1 1 0;
  min-width: 140px;
  padding: 18px 14px;
  border-radius: var(--hj-radius-lg);
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: linear-gradient(160deg, rgba(0, 255, 136, 0.08), rgba(0, 191, 255, 0.04));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hj-about-flow__num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--hj-green);
  opacity: 0.85;
}

.hj-about-flow__step strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.hj-about-flow__step span:last-child {
  font-size: 0.72rem;
  color: var(--hj-text-muted);
  line-height: 1.45;
}

.hj-about-flow__arrow {
  flex-shrink: 0;
  align-self: center;
  color: var(--hj-green);
  opacity: 0.45;
  font-size: 1.1rem;
  padding: 0 2px;
}

.hj-about-prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 36px);
}

@media (max-width: 768px) {
  .hj-about-prose-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hj-about-flow__arrow {
    display: none;
  }

  .hj-about-flow__track {
    flex-direction: column;
  }

  .hj-about-flow__step {
    min-width: 0;
  }
}

.hj-about-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .hj-about-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hj-about-cap {
  padding: 16px 14px;
  border-radius: var(--hj-radius-lg);
  border: 1px solid var(--hj-border);
  background: rgba(0, 255, 136, 0.04);
  text-align: center;
}

.hj-about-cap__ico {
  font-size: 1.5rem;
  margin-bottom: 8px;
  line-height: 1;
}

.hj-about-cap strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hj-about-cap span {
  font-size: 0.72rem;
  color: var(--hj-text-muted);
  line-height: 1.45;
}

.hj-about-prose {
  font-size: 0.96rem;
  line-height: 1.95;
  color: var(--hj-text-soft);
}

.hj-about-vision {
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  border-radius: var(--hj-radius-xl);
  border: 1px solid rgba(0, 255, 136, 0.2);
  background:
    linear-gradient(135deg, rgba(0, 255, 136, 0.07), rgba(0, 191, 255, 0.04)),
    linear-gradient(160deg, var(--hj-bg-panel), rgba(5, 8, 22, 0.9));
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hj-about-vision::before {
  content: """;
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(0, 255, 136, 0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

.hj-about-vision__inner {
  position: relative;
  max-width: 820px;
}

.hj-about-vision::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1), transparent 70%);
  pointer-events: none;
}

.hj-about-vision__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hj-green);
  margin-bottom: 16px;
}

.hj-about-vision__quote {
  margin: 0 0 20px;
  padding: 0;
  border: none;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hj-about-vision__quote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--hj-green), var(--hj-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hj-about-vision h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.hj-about-vision__body,
.hj-about-vision p {
  font-size: clamp(0.94rem, 1.5vw, 1.02rem);
  line-height: 2;
  color: var(--hj-text-soft);
  position: relative;
}

.hj-about-vision p em {
  font-style: normal;
  color: var(--hj-cyan);
  font-weight: 600;
}

.hj-about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hj-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .hj-about-grid {
    grid-template-columns: 1fr;
  }
}

.hj-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hj-feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--hj-text-soft);
}

.hj-feature-list li::before {
  content: "✦";
  color: var(--hj-green);
  flex-shrink: 0;
}

.hj-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hj-hero-title span {
  color: var(--hj-green);
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.3);
}

.hj-hero-sub {
  font-size: 1rem;
  color: var(--hj-text-muted);
}

.hj-hero-sub2 {
  font-size: 0.95rem;
  color: var(--hj-cyan);
  margin-top: 6px;
}

.hj-hero-zone {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .hj-hero-zone {
    grid-template-columns: 1fr;
  }
}

.hj-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hj-hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hj-module-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hj-module-title::before {
  content: "";
  width: 3px;
  height: 16px;
  background: var(--hj-green);
  border-radius: 2px;
}

.hj-video--sm {
  min-height: 200px;
}

.hj-video--sm img {
  min-height: 200px;
}

.hj-link-more {
  text-align: center;
  font-size: 0.875rem;
  color: var(--hj-cyan);
  padding: 8px;
  display: block;
}

.hj-link-more:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════
   首页 · Home
   ══════════════════════════════════════ */
.hj-home {
  padding-top: 8px;
}

.hj-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
  min-height: calc(100vh - var(--hj-nav-h) - 80px);
  padding-bottom: 24px;
}

@media (max-width: 1024px) {
  .hj-home-hero {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: auto;
  }

  .hj-home-hero__visual {
    order: -1;
    align-self: center;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    min-height: 480px;
    --hj-visual-y: 52%;
  }
}

.hj-home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
  animation: hj-home-in 0.7s ease both;
}

.hj-home-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hj-home-hero__title span {
  background: linear-gradient(135deg, var(--hj-green) 0%, var(--hj-cyan) 55%, #6c8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 255, 136, 0.25));
}

.hj-home-hero__lead {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: var(--hj-text-soft);
  max-width: 540px;
}

.hj-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hj-home-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--hj-radius-xl);
  border: 1.5px dashed rgba(0, 255, 136, 0.35);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06), rgba(0, 191, 255, 0.04));
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
  max-width: 560px;
}

.hj-home-upload:hover,
.hj-home-upload.is-dragover {
  border-color: var(--hj-green);
  box-shadow: 0 0 36px rgba(0, 255, 136, 0.16);
  transform: translateY(-1px);
}

.hj-home-upload__ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--hj-green-dim);
  border: 1px solid var(--hj-border-strong);
  flex-shrink: 0;
}

.hj-home-upload__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hj-home-upload__text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.hj-home-upload__text small {
  font-size: 0.78rem;
  color: var(--hj-text-muted);
}

.hj-home-upload__go {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hj-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.hj-stats--home {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 560px;
}

.hj-stat--glass {
  text-align: left;
  padding: 16px 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s;
}

.hj-stat--glass:hover {
  border-color: rgba(0, 255, 136, 0.28);
  transform: translateY(-2px);
}

.hj-stat__icon {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 6px;
}

.hj-stat--glass .hj-stat__n {
  font-size: 1.35rem;
}

/* Hero 右侧视觉 — 撑满 hero 高度，预览卡 / 轨道 / tag 共用垂直中心 */
.hj-home-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 540px;
  animation: hj-home-in 0.8s 0.12s ease both;
  --hj-visual-y: 50%;
}

.hj-home-floats {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hj-home-float {
  position: absolute;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(6, 12, 28, 0.92);
  border: 1px solid rgba(0, 255, 136, 0.28);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.08);
  white-space: nowrap;
  animation: hj-float 4.5s ease-in-out infinite;
}

/* tag 环绕 --hj-visual-y 中心分布 */
.hj-home-float--1 { top: 20%; left: 0; animation-delay: 0s; }
.hj-home-float--2 { top: 30%; right: -2%; animation-delay: 0.4s; }
.hj-home-float--3 { top: 50%; left: -4%; animation-delay: 0.8s; }
.hj-home-float--4 { top: 72%; right: 0; animation-delay: 1.2s; }
.hj-home-float--5 { bottom: 12%; left: 2%; animation-delay: 0.6s; }
.hj-home-float--6 { bottom: 4%; right: 4%; animation-delay: 1s; }
.hj-home-float--7 { bottom: 0; left: 18%; animation-delay: 1.4s; }
.hj-home-float--8 { top: 40%; right: 18%; animation-delay: 1.8s; }

@media (max-width: 1024px) {
  .hj-home-float--3,
  .hj-home-float--6,
  .hj-home-float--8 {
    display: none;
  }
}

.hj-home-float__k {
  display: block;
  font-size: 0.62rem;
  color: var(--hj-text-muted);
  letter-spacing: 0.05em;
}

.hj-home-float__v {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--hj-green);
  margin-top: 2px;
}

.hj-home-float__v--warn { color: var(--hj-orange); }
.hj-home-float__v--cyan { color: var(--hj-cyan); }
.hj-home-float__v--purple { color: var(--hj-purple); }

.hj-home-float--tl,
.hj-home-float--br {
  /* legacy */
}

.hj-home-preview {
  position: absolute;
  left: 50%;
  top: var(--hj-preview-y, var(--hj-visual-y, 50%));
  transform: translate(-50%, -50%);
  width: min(100%, 360px);
  border-radius: var(--hj-radius-xl);
  overflow: hidden;
  z-index: 4;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 255, 136, 0.08);
}

.hj-home-orbit {
  position: absolute;
  top: var(--hj-orbit-y, var(--hj-visual-y, 50%));
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hj-home-orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.hj-home-orbit__ring--1 {
  width: 320px;
  height: 320px;
  animation: hj-orbit-spin 24s linear infinite;
}

.hj-home-orbit__ring--2 {
  width: 260px;
  height: 260px;
  border-color: rgba(0, 191, 255, 0.18);
  animation: hj-orbit-spin 18s linear infinite reverse;
}

.hj-home-orbit__ring--3 {
  width: 200px;
  height: 200px;
  border-style: dashed;
  animation: hj-orbit-spin 30s linear infinite;
}

.hj-home-orbit__core {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.25), rgba(5, 8, 22, 0.9));
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
  animation: hj-float 4s ease-in-out infinite;
  overflow: hidden;
  padding: 0;
}

.hj-home-orbit__core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.hj-home-preview__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hj-green);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.hj-home-preview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hj-green);
  box-shadow: 0 0 8px var(--hj-green);
  animation: hj-pulse 1.5s infinite;
}

.hj-home-preview__body {
  padding: 16px;
}

.hj-home-preview__img {
  position: relative;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1020;
  border: 1px solid rgba(0, 255, 136, 0.25);
  margin-bottom: 14px;
}

.hj-home-preview__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hj-home-preview__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.05), rgba(5, 8, 22, 0.35));
  pointer-events: none;
}

.hj-home-preview__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--hj-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hj-green);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 255, 136, 0.35);
}

.hj-home-preview__plant {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.85;
}

.hj-home-preview__box {
  position: absolute;
  top: 28%;
  left: 22%;
  width: 46%;
  height: 38%;
  border: 2px solid rgba(255, 71, 87, 0.75);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(255, 71, 87, 0.35);
}

.hj-home-preview__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hj-home-preview__meta div {
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hj-home-preview__meta em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  color: var(--hj-text-muted);
  margin-bottom: 4px;
}

.hj-home-preview__meta b {
  font-size: 0.82rem;
}

.hj-home-preview__meta b.is-warn { color: var(--hj-orange); }
.hj-home-preview__meta b.is-high { color: var(--hj-red); }

/* 流程条 */
.hj-home-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 20px 0 52px;
  padding: 20px 24px;
  border-radius: var(--hj-radius-xl);
  background: linear-gradient(135deg, rgba(8, 14, 32, 0.65), rgba(5, 8, 22, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

@media (max-width: 768px) {
  .hj-home-flow {
    flex-direction: column;
  }

  .hj-home-flow__arrow {
    display: none;
  }
}

.hj-home-flow__item {
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hj-home-flow__num {
  font-family: var(--hj-mono);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 255, 136, 0.55);
  flex-shrink: 0;
}

.hj-home-flow__txt h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--hj-text);
}

.hj-home-flow__txt p {
  font-size: 0.8rem;
  color: var(--hj-text-muted);
  line-height: 1.5;
}

.hj-home-flow__arrow {
  display: flex;
  align-items: center;
  color: rgba(0, 255, 136, 0.35);
  font-size: 1.2rem;
  padding: 0 4px;
  flex-shrink: 0;
}

/* 核心能力区 */
.hj-home-section__hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hj-home-section__hd .hj-link-more {
  display: inline-block;
  text-align: right;
  padding: 0;
  font-weight: 600;
}

.hj-home-section__eyebrow {
  font-family: var(--hj-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--hj-cyan);
  margin-bottom: 6px;
}

.hj-home-section__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
}

.hj-feature-grid--home {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .hj-feature-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hj-feature-grid--home {
    grid-template-columns: 1fr;
  }

  .hj-home-upload {
    flex-wrap: wrap;
  }

  .hj-home-upload__go {
    width: 100%;
    text-align: right;
  }

  .hj-stats--home {
    max-width: none;
  }
}

.hj-feature-card--home {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.hj-feature-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.hj-feature-card__tag {
  font-family: var(--hj-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hj-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hj-feature-card__tag.is-hot {
  color: var(--hj-cyan);
  border-color: rgba(0, 191, 255, 0.35);
  background: rgba(0, 191, 255, 0.1);
}

.hj-feature-card--home p {
  flex: 1;
}

.hj-feature-card--home .hj-feature-card__link {
  margin-top: auto;
  padding-top: 12px;
}

@keyframes hj-home-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hj-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hj-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Recognition History ── */
.hj-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.hj-history-toolbar__count {
  font-size: 0.88rem;
  color: var(--hj-text-muted);
}

.hj-btn--sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.hj-history-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .hj-history-layout {
    grid-template-columns: 1fr;
  }
}

.hj-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--hj-radius-xl);
  max-height: min(72vh, 640px);
  overflow-y: auto;
}

.hj-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hj-border);
  border-radius: var(--hj-radius-lg);
  background: rgba(6, 12, 28, 0.55);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.hj-history-item:hover {
  border-color: rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.06);
}

.hj-history-item.is-active {
  border-color: var(--hj-green);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.12);
  background: rgba(0, 255, 136, 0.08);
}

.hj-history-item__thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.hj-history-item__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.08);
  font-size: 1.4rem;
}

.hj-history-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hj-history-item__body strong {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hj-history-item__body em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--hj-text-muted);
}

.hj-history-item__del {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--hj-text-muted);
  transition: background 0.2s, color 0.2s;
}

.hj-history-item__del:hover {
  background: rgba(255, 71, 87, 0.15);
  color: var(--hj-red);
}

.hj-history-detail {
  padding: 24px;
  border-radius: var(--hj-radius-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hj-history-detail__img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hj-border-strong);
  max-height: 280px;
}

.hj-history-detail__img img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.hj-history-detail__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: rgba(0, 255, 136, 0.06);
  color: var(--hj-text-muted);
  font-size: 0.9rem;
}

.hj-history-empty {
  padding: 48px 24px;
  border-radius: var(--hj-radius-xl);
  text-align: center;
  max-width: 480px;
  margin: 24px auto 0;
}

.hj-history-empty__ico {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.hj-history-empty h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hj-history-empty p {
  color: var(--hj-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}


/* effects.css */
/* ── 全息背景 canvas ── */
.hj-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
}

/* ── 深空底层 ── */
.hj-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 600px at 12% 8%, rgba(108, 140, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 1200px 700px at 15% -5%, rgba(0, 255, 136, 0.14), transparent 55%),
    radial-gradient(ellipse 900px 600px at 88% 95%, rgba(0, 191, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 700px 500px at 72% 28%, rgba(140, 80, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 600px 400px at 50% 50%, rgba(108, 140, 255, 0.05), transparent 60%),
    #050816;
}

.hj-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.15), transparent),
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, black, transparent);
  opacity: 0.85;
}

.hj-bg-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hj-bg-aurora::before,
.hj-bg-aurora::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 60%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: hj-aurora 14s ease-in-out infinite alternate;
}

.hj-bg-aurora::before {
  top: -20%;
  left: -20%;
  background: linear-gradient(120deg, rgba(108, 140, 255, 0.18), rgba(0, 255, 136, 0.12), transparent);
}

.hj-bg-aurora::after {
  bottom: -30%;
  right: -20%;
  background: linear-gradient(290deg, rgba(0, 191, 255, 0.16), rgba(140, 80, 255, 0.08), transparent);
  animation-delay: -7s;
}

@keyframes hj-aurora {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, 2%) rotate(3deg); }
}

/* ── 玻璃面板增强 ── */
.hj-panel-glass {
  background: linear-gradient(
    145deg,
    rgba(12, 20, 42, 0.75),
    rgba(5, 8, 22, 0.65)
  ) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(0, 255, 136, 0.22) !important;
  box-shadow:
    0 0 40px rgba(0, 255, 136, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* ── Toast ── */
.hj-toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hj-toast {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(8, 14, 32, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: var(--hj-green);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  backdrop-filter: blur(12px);
}

.hj-toast.is-in {
  transform: translateX(0);
  opacity: 1;
}

.hj-toast--success { border-color: rgba(0, 255, 136, 0.5); color: var(--hj-green); }
.hj-toast--warn { border-color: rgba(255, 165, 0, 0.5); color: var(--hj-orange); }
.hj-toast--info { border-color: rgba(0, 191, 255, 0.5); color: var(--hj-cyan); }

/* ── V1/V2 版本切换 ── */
.hj-version-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.hj-version-bar--v1 {
  background: rgba(8, 14, 32, 0.88);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: rgba(255, 255, 255, 0.45);
}

.hj-version-bar--v1 a {
  color: var(--hj-green);
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.12);
  transition: background 0.2s;
}

.hj-version-bar--v1 a:hover {
  background: rgba(0, 255, 136, 0.22);
}

.hj-version-bar--v1 .is-current {
  color: var(--hj-bg);
  background: var(--hj-green);
  padding: 4px 10px;
  border-radius: 12px;
}

/* ── 打字指示器 ── */
.hj-msg-typing {
  display: flex;
  gap: 6px;
  padding: 16px 20px !important;
}

.hj-msg-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hj-cyan);
  animation: hj-bounce 1.2s infinite;
}

.hj-msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.hj-msg-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes hj-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ── 分析流程 ── */
.hj-analyze {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  min-height: 420px;
}

@media (max-width: 900px) {
  .hj-analyze { grid-template-columns: 1fr; }
}

.hj-analyze__visual {
  position: relative;
  border-radius: var(--hj-radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--hj-border-strong);
  min-height: 360px;
}

.hj-analyze__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.hj-scan__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  animation: hj-grid-pulse 2s ease-in-out infinite;
}

@keyframes hj-grid-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.hj-analyze__panel {
  padding: 28px;
  border-radius: var(--hj-radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hj-analyze__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--hj-green), var(--hj-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hj-analyze__progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.hj-analyze__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--hj-green), var(--hj-cyan));
  border-radius: 2px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.hj-analyze__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hj-analyze__steps li {
  font-size: 0.9rem;
  color: var(--hj-text-muted);
  padding-left: 24px;
  position: relative;
  transition: color 0.3s;
}

.hj-analyze__steps li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.2);
}

.hj-analyze__steps li.is-active {
  color: var(--hj-cyan);
}

.hj-analyze__steps li.is-active::before {
  content: "◉";
  color: var(--hj-green);
  animation: hj-pulse 1s infinite;
}

.hj-analyze__steps li.is-done {
  color: var(--hj-green);
}

.hj-analyze__steps li.is-done::before {
  content: "✓";
  color: var(--hj-green);
}

/* ── 识别框标记 ── */
.hj-box-mark {
  position: absolute;
  border: 2px solid var(--hj-green);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 20px rgba(0, 255, 136, 0.1);
  animation: hj-box-pulse 2s ease-in-out infinite;
}

.hj-box-mark::before {
  content: "AI";
  position: absolute;
  top: -22px;
  left: 0;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  background: var(--hj-green);
  color: var(--hj-bg);
  border-radius: 4px;
}

@keyframes hj-box-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.hj-recog__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hj-recog__result-hd {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.hj-recog__emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.hj-recog-idle {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
}

.hj-upload--lg {
  min-height: 280px;
}

.hj-recog-idle__hint {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--hj-text-muted);
}

.hj-recog-idle__hint span:first-child {
  color: var(--hj-green);
}

/* ── Range slider ── */
.hj-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--hj-green) 0%,
    var(--hj-cyan) var(--pct, 50%),
    rgba(255, 255, 255, 0.08) var(--pct, 50%)
  );
  outline: none;
  cursor: pointer;
}

.hj-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hj-green);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.6);
  border: 2px solid #fff;
}

.hj-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hj-green);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.6);
  border: 2px solid #fff;
}

/* ── 植物模拟 ── */
.hj-plant-emoji {
  font-size: 7rem;
  z-index: 2;
  transition: transform 0.4s ease, filter 0.4s;
  transform: scale(calc(0.75 + var(--health, 0.7) * 0.35));
  filter: drop-shadow(0 0 30px rgba(0, 255, 136, calc(var(--health, 0.7) * 0.5)));
}

.hj-plant-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.2), transparent 70%);
  animation: hj-glow-breathe 3s ease-in-out infinite;
}

@keyframes hj-glow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.hj-plant-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid currentColor;
}

/* ── 上下文卡片 ── */
.hj-context-card {
  padding: 14px;
  border-radius: var(--hj-radius-md);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.hj-context-card__crop {
  font-size: 1rem;
  font-weight: 700;
}

.hj-context-card__dis {
  font-size: 0.9rem;
  color: var(--hj-cyan);
  margin-top: 4px;
}

.hj-context-card__meta {
  font-size: 0.75rem;
  color: var(--hj-text-muted);
  margin-top: 6px;
}

/* ── 首页功能卡片 ── */
.hj-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .hj-feature-grid { grid-template-columns: 1fr; }
}

.hj-feature-card {
  padding: 24px 20px;
  border-radius: var(--hj-radius-lg);
  background: linear-gradient(160deg, rgba(8, 14, 32, 0.7), rgba(5, 8, 22, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.hj-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hj-green), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.hj-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.12);
}

.hj-feature-card:hover::before {
  opacity: 1;
}

.hj-feature-card.is-hot {
  border-color: rgba(0, 191, 255, 0.3);
}

.hj-feature-card__ico {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hj-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hj-feature-card p {
  font-size: 0.85rem;
  color: var(--hj-text-muted);
  line-height: 1.55;
}

.hj-feature-card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hj-cyan);
}

.hj-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--hj-green);
  margin-bottom: 16px;
}

.hj-hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hj-green);
  box-shadow: 0 0 10px var(--hj-green);
  animation: hj-pulse 1.5s infinite;
}

@keyframes hj-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hj-stat {
  transition: transform 0.2s, border-color 0.2s;
}

.hj-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.3);
}

.hj-chart__bar {
  height: 0 !important;
  transition: height 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}


/* polish.css */
/* ═══════════════════════════════════════
   禾解 · 控件质感增强层（V1 / V2 共用）
   ═══════════════════════════════════════ */

.hj-nav {
  border-bottom-color: var(--hj-glass-border);
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.92) 0%, rgba(5, 8, 22, 0.82) 100%);
  box-shadow: 0 1px 0 rgba(0, 255, 136, 0.06), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hj-nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(0, 255, 136, 0.35) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(0, 255, 136, 0.35) 70%, transparent 95%);
  pointer-events: none;
}

.hj-nav__mark {
  background: linear-gradient(145deg, rgba(0, 255, 136, 0.35), rgba(255, 255, 255, 0.08));
  border-color: rgba(0, 255, 136, 0.55);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hj-nav__links a {
  border: 1px solid transparent;
  transition: color 0.25s var(--hj-ease), background 0.25s var(--hj-ease), border-color 0.25s var(--hj-ease), box-shadow 0.25s var(--hj-ease);
}

.hj-nav__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
}

.hj-nav__links a.is-active {
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.18), rgba(0, 255, 136, 0.08));
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--hj-green-soft);
}

.hj-nav__cta {
  background: linear-gradient(180deg, var(--hj-green-soft) 0%, var(--hj-green-deep) 100%);
  color: #041008;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--hj-shadow-btn);
  transition: transform 0.2s var(--hj-ease), box-shadow 0.25s var(--hj-ease);
}

.hj-nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 255, 136, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hj-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.2s var(--hj-ease), box-shadow 0.25s var(--hj-ease), border-color 0.25s, background 0.25s;
}

.hj-btn--primary {
  background: linear-gradient(180deg, var(--hj-green-soft) 0%, var(--hj-green-deep) 55%, #00b359 100%);
  color: #041008;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--hj-shadow-btn);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hj-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hj-btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--hj-white-soft);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hj-btn--ghost:hover {
  border-color: rgba(0, 255, 136, 0.45);
  color: var(--hj-green-soft);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hj-panel {
  background: linear-gradient(165deg, rgba(14, 22, 42, 0.96) 0%, rgba(6, 10, 24, 0.92) 100%);
  border-color: var(--hj-border);
  box-shadow: var(--hj-shadow-panel);
  backdrop-filter: blur(16px) saturate(1.2);
}

.hj-panel-glass {
  position: relative;
  background: linear-gradient(155deg, rgba(16, 24, 48, 0.82) 0%, rgba(8, 12, 28, 0.72) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--hj-shadow-card), 0 0 0 1px rgba(0, 255, 136, 0.06) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
}

.hj-stat--glass {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--hj-shadow-card);
}

.hj-stat--glass:hover {
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 255, 136, 0.08);
}

.hj-upload,
.hj-home-upload {
  background: linear-gradient(160deg, rgba(0, 255, 136, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hj-upload:hover,
.hj-upload.is-dragover,
.hj-home-upload:hover,
.hj-home-upload.is-dragover {
  border-color: var(--hj-green);
  background: linear-gradient(160deg, rgba(0, 255, 136, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hj-home-upload__go {
  color: var(--hj-green-soft);
}

.hj-hero-badge {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.14), rgba(255, 255, 255, 0.04));
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--hj-green-soft);
}

.hj-home-hero__title span {
  background: linear-gradient(135deg, var(--hj-white) 0%, var(--hj-green-soft) 45%, var(--hj-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(0, 255, 136, 0.3));
}

.hj-home-float {
  background: linear-gradient(165deg, rgba(12, 20, 40, 0.95), rgba(6, 10, 24, 0.9));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 255, 136, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hj-home-orbit__core {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.15), rgba(0, 255, 136, 0.25) 40%, rgba(5, 8, 22, 0.9));
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 48px rgba(0, 255, 136, 0.3), inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

.hj-feature-card {
  background: linear-gradient(165deg, rgba(14, 22, 42, 0.85), rgba(6, 10, 24, 0.75));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--hj-shadow-card);
  backdrop-filter: blur(12px);
}

.hj-feature-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(0, 255, 136, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

.hj-feature-card__link {
  color: var(--hj-green-soft);
}

.hj-chat-main {
  background: linear-gradient(165deg, rgba(12, 20, 40, 0.98), rgba(5, 8, 22, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--hj-shadow-panel);
}

.hj-msg-u {
  background: linear-gradient(145deg, rgba(0, 255, 136, 0.22), rgba(255, 255, 255, 0.06));
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hj-msg-a {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hj-data-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, transform 0.2s var(--hj-ease), box-shadow 0.2s;
}

.hj-data-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hj-chart__bar {
  box-shadow: 0 -4px 16px rgba(0, 255, 136, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hj-version-bar {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hj-input-bar input[data-chat-input] {
  transition: color 0.2s;
}

.hj-input-bar input[data-chat-input]:focus {
  outline: none;
}

.hj-home-flow__item {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hj-home-preview__tag {
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.35);
}


/* material.css */
/* He Code · Material Design 3 dark refinement */
:root {
  --md-bg: #0b1411;
  --md-surface: #111d19;
  --md-surface-2: #172620;
  --md-surface-3: #1d2f27;
  --md-outline: rgba(191, 218, 205, .16);
  --md-outline-strong: rgba(191, 218, 205, .28);
  --md-primary: #79dca7;
  --md-primary-strong: #50c98d;
  --md-on-primary: #063822;
  --md-text: #ecf5ef;
  --md-muted: #a7b9b0;
  --md-shadow-1: 0 1px 2px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.18);
  --md-shadow-2: 0 4px 12px rgba(0,0,0,.24), 0 16px 40px rgba(0,0,0,.16);
  --hj-radius-sm: 10px;
  --hj-radius-md: 14px;
  --hj-radius-lg: 20px;
  --hj-radius-xl: 28px;
  --hj-border: var(--md-outline);
  --hj-text: var(--md-text);
  --hj-text-muted: var(--md-muted);
  --hj-green: var(--md-primary-strong);
  --hj-green-soft: var(--md-primary);
  --hj-bg: var(--md-bg);
}

html { background: var(--md-bg); }
body {
  background:
    radial-gradient(circle at 15% -10%, rgba(80,201,141,.13), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(121,220,167,.06), transparent 28rem),
    var(--md-bg) !important;
  color: var(--md-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  letter-spacing: -.006em;
}

.hj-bg-grid, .hj-bg-aurora, .hj-bg-glow, .hj-three-canvas, .hj-particles,
.hj-cyber-bg .hj-bg-grid, .hj-cyber-bg .hj-bg-aurora, .hj-cyber-bg .hj-bg-glow {
  opacity: .12 !important;
  filter: saturate(.55) blur(.2px);
}
.hj-particles, .hj-three-canvas { opacity: .16 !important; }

.hj-nav {
  height: 76px !important;
  padding-inline: max(28px, calc((100vw - 1240px) / 2 + 28px)) !important;
  background: rgba(11,20,17,.92) !important;
  border-bottom: 1px solid var(--md-outline) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.025) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
}
.hj-nav::after { display: none !important; }
.hj-nav__in { width: 100% !important; max-width: 1240px !important; margin-inline: auto !important; padding-inline: 28px !important; box-sizing: border-box !important; }
.hj-nav__brand { gap: 11px !important; font-weight: 750 !important; letter-spacing: -.02em; }
.hj-nav__brand em { color: var(--md-primary) !important; font-style: normal; }
.hj-nav__mark {
  border: 0 !important;
  border-radius: 13px !important;
  background: var(--md-surface-3) !important;
  box-shadow: var(--md-shadow-1) !important;
}
.hj-nav__links { gap: 4px !important; }
.hj-nav__links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 15px !important;
  color: var(--md-muted) !important;
  font-weight: 520;
}
.hj-nav__links a:hover { background: rgba(121,220,167,.08) !important; color: var(--md-text) !important; }
.hj-nav__links a.is-active { background: rgba(121,220,167,.14) !important; color: var(--md-primary) !important; }
.hj-nav__cta, .hj-btn--primary {
  min-height: 44px;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--md-primary) !important;
  color: var(--md-on-primary) !important;
  box-shadow: var(--md-shadow-1) !important;
  font-weight: 720 !important;
  text-shadow: none !important;
}
.hj-nav__cta:hover, .hj-btn--primary:hover { background: #91e9b9 !important; transform: translateY(-1px); box-shadow: var(--md-shadow-2) !important; }
.hj-btn--ghost {
  min-height: 42px;
  border: 1px solid var(--md-outline-strong) !important;
  border-radius: 14px !important;
  background: rgba(121,220,167,.045) !important;
  color: var(--md-primary) !important;
  box-shadow: none !important;
}
.hj-btn--ghost:hover { background: rgba(121,220,167,.11) !important; border-color: rgba(121,220,167,.38) !important; }

.hj-main { width: 100% !important; max-width: 1240px !important; margin-inline: auto !important; padding: 38px 28px 64px !important; box-sizing: border-box !important; }
.hj-page-hd { margin-bottom: 28px !important; align-items: flex-end; }
.hj-page-hd h1 { font-size: clamp(28px, 3vw, 40px) !important; letter-spacing: -.035em; line-height: 1.12; }
.hj-page-hd h1 span { color: var(--md-primary) !important; }
.hj-page-hd p { color: var(--md-muted) !important; margin-top: 9px !important; font-size: 14px; }

.hj-panel, .hj-panel-glass, .hj-card, .hj-about-card, .hj-chat-main,
.hj-chat-side > *, .hj-history-list, .hj-upload {
  background: linear-gradient(145deg, rgba(23,38,32,.96), rgba(15,27,22,.96)) !important;
  border: 1px solid var(--md-outline) !important;
  box-shadow: var(--md-shadow-1) !important;
  backdrop-filter: blur(16px) !important;
}
.hj-panel:hover, .hj-card:hover, .hj-about-card:hover { border-color: var(--md-outline-strong) !important; }

.hj-upload {
  border: 1px dashed rgba(121,220,167,.38) !important;
  border-radius: 28px !important;
  min-height: 310px !important;
  background: rgba(17,29,25,.9) !important;
  transition: border-color .18s, background .18s, transform .18s !important;
}
.hj-upload:hover, .hj-upload.is-drag { border-color: var(--md-primary) !important; background: rgba(29,47,39,.94) !important; transform: translateY(-2px); }
.hj-upload__ico {
  width: 68px !important; height: 68px !important;
  border-radius: 22px !important;
  background: rgba(121,220,167,.12) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hj-upload__sub, .hj-recog-idle__hint, .hj-trial-hint { color: var(--md-muted) !important; }
.hj-recog-idle { max-width: 760px; margin-inline: auto; }

.hj-chat-layout { grid-template-columns: minmax(0, 1fr) 310px !important; gap: 20px !important; align-items: start; }
.hj-chat-main { border-radius: 28px !important; min-height: 680px; overflow: hidden; }
.hj-chat-hd { min-height: 114px; padding: 24px !important; border-bottom: 1px solid var(--md-outline) !important; background: rgba(29,47,39,.52) !important; }
.hj-chat-hd h1 { font-size: 27px !important; letter-spacing: -.03em; }
.hj-chat-bdg { border-radius: 999px !important; border: 0 !important; background: rgba(121,220,167,.1) !important; color: var(--md-primary) !important; }
.hj-chat-msgs {
  padding: 26px 24px !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hj-chat-msgs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.hj-msgs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hj-msgs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.hj-msg-a { background: var(--md-surface-2) !important; border: 1px solid var(--md-outline) !important; border-radius: 6px 20px 20px 20px !important; color: var(--md-text) !important; box-shadow: none !important; }
.hj-msg-u { background: var(--md-primary) !important; color: var(--md-on-primary) !important; border-radius: 20px 6px 20px 20px !important; box-shadow: none !important; }
.hj-chat-form { margin: 0 14px 14px !important; border: 1px solid var(--md-outline-strong) !important; border-radius: 22px !important; background: #0f1c18 !important; box-shadow: var(--md-shadow-1) !important; }
.hj-chat-form:focus-within { border-color: rgba(121,220,167,.58) !important; box-shadow: 0 0 0 3px rgba(121,220,167,.08) !important; }
.hj-chat-input { color: var(--md-text) !important; }
.hj-chat-side { gap: 16px !important; }
.hj-chat-side > * { border-radius: 22px !important; padding: 20px !important; }
.hj-chat-chips { gap: 8px !important; }
.hj-chat-chip { border-radius: 999px !important; border: 1px solid var(--md-outline) !important; background: var(--md-surface-2) !important; color: var(--md-muted) !important; }
.hj-chat-chip:hover { background: rgba(121,220,167,.12) !important; color: var(--md-primary) !important; }

.hj-history-layout { gap: 20px !important; }
.hj-history-list { border-radius: 22px !important; padding: 8px !important; }
.hj-history-item { border-radius: 16px !important; border: 0 !important; }
.hj-history-item { content-visibility: auto; contain-intrinsic-size: auto 72px; }
.hj-history-item__thumb { content-visibility: auto; }
.hj-history-item:hover { background: rgba(121,220,167,.07) !important; }
.hj-history-item.is-active { background: rgba(121,220,167,.13) !important; box-shadow: inset 3px 0 var(--md-primary); }

.hj-about-banner { border-radius: 30px !important; overflow: hidden; border: 1px solid var(--md-outline) !important; box-shadow: var(--md-shadow-2) !important; }
.hj-about-banner__content { max-width: 700px; }
.hj-about-eyebrow { color: var(--md-primary) !important; letter-spacing: .12em; }
.hj-about-pill { border: 0 !important; border-radius: 999px !important; background: rgba(121,220,167,.12) !important; color: var(--md-primary) !important; }
.hj-about-card { border-radius: 22px !important; padding: 24px !important; }

.hj-home-hero__title { text-shadow: none !important; letter-spacing: -.045em !important; }
.hj-home-hero__title span { color: var(--md-primary) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
.hj-home-hero__copy { gap: 18px !important; position: relative; z-index: 4; }
.hj-main.hj-home { padding-top: 96px !important; }
.hj-home-hero__title {
  max-width: 620px;
  font-size: clamp(3rem, 5.5vw, 4.65rem) !important;
  line-height: 1.04 !important;
  font-weight: 820 !important;
  text-wrap: balance;
}
.hj-home-hero__lead { max-width: 500px !important; font-size: 1.02rem !important; line-height: 1.72 !important; }
.hj-hero-badge {
  width: max-content;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  background: rgba(121,220,167,.1) !important;
  color: var(--md-primary) !important;
  box-shadow: none !important;
  font-size: .78rem !important;
  letter-spacing: .01em;
}
.hj-home-upload, .hj-home-preview, .hj-home-float, .hj-stat--glass {
  border-color: var(--md-outline) !important;
  background: rgba(17,29,25,.94) !important;
  box-shadow: var(--md-shadow-1) !important;
}
.hj-home-upload { border-radius: 20px !important; }
.hj-home-preview { position: absolute !important; border-radius: 28px !important; }
.hj-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.hj-home-hero__visual .hj-home-preview {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}
.hj-home-float { border-radius: 16px !important; }
.hj-home-orbit__ring, .hj-home-orbit__core { opacity: .46 !important; box-shadow: none !important; }

/* Home workflow: one visual language instead of nested table-like borders. */
.hj-home-flow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 28px 0 64px !important;
  padding: 14px !important;
  border: 1px solid var(--md-outline) !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, rgba(19,34,29,.94), rgba(11,22,18,.94)) !important;
  box-shadow: var(--md-shadow-1) !important;
  backdrop-filter: blur(16px) !important;
}
.hj-home-flow__item {
  min-width: 0;
  min-height: 92px;
  padding: 16px 18px !important;
  align-items: center !important;
  gap: 16px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.hj-home-flow__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(121,220,167,.12);
  color: var(--md-primary) !important;
  font-size: 1rem !important;
}
.hj-home-flow__txt h3 { margin-bottom: 6px !important; font-size: 1rem !important; }
.hj-home-flow__txt p { font-size: .82rem !important; line-height: 1.55 !important; }
.hj-home-flow__arrow {
  display: grid !important;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 50%;
  background: transparent;
  color: var(--md-primary) !important;
  font-size: 1rem !important;
}

input, textarea, select { caret-color: var(--md-primary); }
::selection { background: rgba(121,220,167,.28); color: white; }

.hj-footer {
  position: relative;
  z-index: 5;
  margin-top: 40px;
  border-top: 1px solid var(--md-outline);
  background: rgba(9,18,15,.92);
  backdrop-filter: blur(18px);
}
.hj-footer__in, .hj-footer__bottom {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 28px;
  box-sizing: border-box;
}
.hj-footer__in {
  display: grid;
  grid-template-columns: minmax(260px,1.2fr) minmax(280px,1fr) minmax(220px,.8fr);
  gap: clamp(36px,6vw,80px);
  padding-top: 48px;
  padding-bottom: 42px;
}
.hj-footer__logo { display: inline-flex; align-items: center; gap: 11px; color: var(--md-text); font-size: 1.12rem; font-weight: 760; }
.hj-footer__logo em { color: var(--md-primary); font-style: normal; }
.hj-footer__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; overflow: hidden; background: rgba(121,220,167,.12); }
.hj-footer__mark img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hj-footer__brand p { max-width: 390px; margin-top: 16px; color: var(--md-muted); font-size: .86rem; line-height: 1.75; }
.hj-footer__nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.hj-footer__nav div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.hj-footer__nav span { margin-bottom: 3px; color: var(--md-text); font-size: .82rem; font-weight: 720; }
.hj-footer__nav a { color: var(--md-muted); font-size: .82rem; transition: color .2s ease; }
.hj-footer__nav a:hover { color: var(--md-primary); }
.hj-footer__service { padding: 18px; border: 1px solid var(--md-outline); border-radius: 18px; background: rgba(121,220,167,.055); }
.hj-footer__status { display: flex; align-items: center; gap: 8px; color: var(--md-primary); font-size: .82rem; font-weight: 680; }
.hj-footer__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--md-primary); box-shadow: 0 0 10px rgba(121,220,167,.65); }
.hj-footer__service p { margin-top: 13px; color: var(--md-text); font-size: .83rem; }
.hj-footer__service small { display: block; margin-top: 6px; color: var(--md-muted); font-size: .75rem; }
.hj-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--md-outline); color: var(--md-muted); font-size: .74rem; }

.hj-access { margin-top: 58px; }
.hj-access__secure { display: inline-flex; align-items: center; gap: 8px; color: var(--md-muted); font-size: .78rem; }
.hj-access__secure i { width: 8px; height: 8px; border-radius: 50%; background: var(--md-primary); box-shadow: 0 0 10px rgba(121,220,167,.55); }
.hj-access__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.hj-access-card { display: flex; min-width: 0; min-height: 390px; flex-direction: column; padding: 24px; border: 1px solid var(--md-outline); border-radius: 24px; background: rgba(17,29,25,.9); box-shadow: var(--md-shadow-1); }
.hj-access-card.is-open { border-color: rgba(121,220,167,.32); background: linear-gradient(150deg,rgba(121,220,167,.105),rgba(17,29,25,.92) 48%); }
.hj-access-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hj-access-card__num { color: var(--md-primary); font-family: var(--hj-mono); font-size: .78rem; font-weight: 760; }
.hj-access-card__status { padding: 6px 9px; border-radius: 999px; background: rgba(121,220,167,.12); color: var(--md-primary); font-size: .68rem; }
.hj-access-card__status.is-beta { background: rgba(87,195,255,.1); color: #7fd8ff; }
.hj-access-card__status.is-plan { background: rgba(255,190,92,.1); color: #ffca78; }
.hj-access-card h3 { margin-top: 27px; font-size: 1.12rem; }
.hj-access-card > p { min-height: 78px; margin-top: 10px; color: var(--md-muted); font-size: .82rem; line-height: 1.65; }
.hj-access-card ol { display: grid; gap: 9px; margin: 18px 0 22px; padding: 0; list-style: none; counter-reset: access-step; }
.hj-access-card ol li { display: flex; gap: 9px; color: var(--md-text); font-size: .78rem; counter-increment: access-step; }
.hj-access-card ol li::before { content: counter(access-step); display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 19px; border-radius: 6px; background: rgba(121,220,167,.12); color: var(--md-primary); font-size: .65rem; }
.hj-access-card > .hj-btn { align-self: flex-start; margin-top: auto; }
.hj-access-code { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 9px; margin-top: 10px; padding: 11px 12px; border: 1px solid var(--md-outline); border-radius: 13px; background: rgba(7,15,12,.65); }
.hj-access-code > span { color: var(--md-primary); font-family: var(--hj-mono); font-size: .64rem; }
.hj-access-code code { color: var(--md-text); font-size: .76rem; }
.hj-access-code small { color: var(--md-muted); font-size: .62rem; }
.hj-access-devices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.hj-access-devices span { padding: 7px 9px; border: 1px solid var(--md-outline); border-radius: 10px; color: var(--md-muted); font-size: .7rem; }
.hj-access__note { display: flex; align-items: center; gap: 14px; margin-top: 15px; padding: 15px 18px; border-radius: 16px; background: rgba(121,220,167,.055); color: var(--md-muted); font-size: .76rem; }
.hj-access__note strong { flex: 0 0 auto; color: var(--md-primary); }


@media (min-width: 801px) and (max-width: 960px) {
  .hj-nav__links { display: flex !important; position: static !important; background: transparent !important; border: 0 !important; }
  .hj-nav__menu { display: none !important; }
  .hj-nav__in { padding-inline: 20px !important; }
  .hj-nav__links a { padding-inline: 10px !important; }
}
@media (min-width: 801px) {
  .hj-home-hero {
    grid-template-columns: minmax(360px,.88fr) minmax(440px,1.12fr) !important;
    gap: clamp(36px,5vw,72px) !important;
    align-items: center !important;
    min-height: calc(100vh - 116px) !important;
    padding: 34px 0 48px !important;
  }
  .hj-home-hero__copy { order: 0 !important; align-self: center !important; }
  .hj-home-hero__visual {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 620px !important;
    margin: 0 !important;
    align-self: center !important;
    --hj-visual-y: 50% !important;
  }
}
@media (max-width: 900px) {
  .hj-chat-layout { grid-template-columns: 1fr !important; }
  .hj-chat-side { grid-template-columns: repeat(2,minmax(0,1fr)); display: grid; }
}
@media (max-width: 800px) {
  .hj-nav { height: 68px !important; padding-inline: 16px !important; }
  .hj-nav__in { padding-inline: 16px !important; }
  .hj-nav__links { background: #0f1c18 !important; border-bottom: 1px solid var(--md-outline) !important; box-shadow: var(--md-shadow-2); }
  .hj-main { padding: 24px 16px 48px !important; }
  .hj-page-hd { align-items: flex-start; }
  .hj-chat-main { min-height: 620px; border-radius: 22px !important; }
  .hj-chat-side { grid-template-columns: 1fr; }
  .hj-chat-hd { padding: 20px !important; }
  .hj-chat-msgs { padding: 20px 16px !important; }
  .hj-upload { min-height: 260px !important; }
  .hj-home-hero { display: flex !important; flex-direction: column !important; gap: 18px !important; }
  .hj-home-hero__copy { order: 0 !important; }
  .hj-home-hero__visual { order: 1 !important; min-height: 430px !important; margin-top: 10px !important; }
  .hj-home-hero__title { font-size: clamp(2.55rem,13vw,3.6rem) !important; line-height: 1.02 !important; }
  .hj-main.hj-home { padding-top: 84px !important; }
  .hj-home-flow { display: flex !important; flex-direction: column !important; gap: 12px !important; margin-bottom: 48px !important; }
  .hj-home-flow__item { width: 100%; min-height: 96px; padding: 18px !important; }
  .hj-home-flow__arrow { display: none !important; }
  .hj-footer { margin-top: 24px; }
  .hj-footer__in, .hj-footer__bottom { padding-inline: 16px; }
  .hj-footer__in { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; padding-bottom: 30px; }
  .hj-footer__bottom { flex-direction: column; gap: 8px; }
  .hj-access__grid { grid-template-columns: 1fr; }
  .hj-access-card { min-height: auto; }
  .hj-access-card > p { min-height: 0; }
  .hj-access-card > .hj-btn { margin-top: 24px; }
  .hj-access__note { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hj-particles, .hj-three-canvas { display: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Responsive system: wide tablet navigation */
@media (max-width: 1100px) {
  .hj-nav__toggle { display: flex !important; }
  .hj-nav__cta { display: none !important; }
  .hj-nav__links {
    display: none !important;
    position: absolute !important;
    top: 76px !important;
    left: 0 !important;
    right: 0 !important;
    padding: 14px max(24px, calc((100vw - 960px) / 2 + 24px)) 18px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    border-bottom: 1px solid var(--md-outline) !important;
    background: rgba(11,20,17,.98) !important;
    box-shadow: var(--md-shadow-2) !important;
    backdrop-filter: blur(20px) !important;
  }
  .hj-nav.is-open .hj-nav__links { display: flex !important; }
  .hj-nav__links a { width: 100%; min-height: 42px; justify-content: flex-start; padding: 10px 14px !important; }
}

/* Tablet: stack the hero before columns become cramped. */
@media (min-width: 801px) and (max-width: 1024px) {
  .hj-main { padding-inline: 24px !important; }
  .hj-main.hj-home { padding-top: 48px !important; }
  .hj-home-hero {
    display: flex !important;
    min-height: auto !important;
    flex-direction: column !important;
    gap: 28px !important;
    padding: 38px 0 46px !important;
  }
  .hj-home-hero__copy { order: 0 !important; width: 100%; max-width: 680px; align-self: flex-start !important; }
  .hj-home-hero__visual { order: 1 !important; width: 100% !important; max-width: 680px !important; min-height: 560px !important; align-self: center !important; }
  .hj-home-hero__title { font-size: clamp(3.5rem,8vw,4.8rem) !important; }
  .hj-access__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hj-access-card:last-child { grid-column: 1 / -1; min-height: 320px; }
  .hj-footer__in { grid-template-columns: minmax(260px,1fr) minmax(280px,1fr); }
  .hj-footer__service { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .hj-nav__links { top: 68px !important; padding-inline: 16px !important; }
  .hj-page-hd { gap: 18px; flex-direction: column; }
  .hj-page-hd > * { max-width: 100%; }
  .hj-home-section__hd { align-items: flex-start; gap: 14px; }
  .hj-feature-grid--home { grid-template-columns: 1fr !important; }
  .hj-history-toolbar { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .hj-history-layout { gap: 14px !important; }
  .hj-history-list { max-height: 42svh; }
  .hj-history-detail { padding: 18px; }
  .hj-history-detail__img { max-height: 300px; }
  .hj-auth__panel { width: min(94vw, 480px); max-height: 92svh; overflow-y: auto; }
}

@media (max-width: 600px) {
  .hj-nav__brand { gap: 8px !important; font-size: 1.02rem !important; }
  .hj-nav__mark { width: 36px !important; height: 36px !important; border-radius: 11px !important; }
  .hj-main { padding: 20px 14px 42px !important; }
  .hj-main.hj-home { padding-top: 70px !important; }
  .hj-home-hero { gap: 14px !important; padding-bottom: 28px !important; }
  .hj-home-hero__copy { gap: 15px !important; }
  .hj-home-hero__title { max-width: 100%; font-size: clamp(2.35rem,12.5vw,3.15rem) !important; }
  .hj-home-hero__lead { font-size: .92rem !important; line-height: 1.65 !important; }
  .hj-hero-badge { max-width: 100%; white-space: normal; }
  .hj-home-hero__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .hj-home-hero__actions .hj-btn { width: 100%; padding-inline: 10px !important; }
  .hj-home-upload { width: 100%; padding: 15px !important; }
  .hj-home-stats { width: 100%; gap: 10px !important; }
  .hj-stat--glass { min-width: 0; padding: 15px 12px !important; }
  .hj-home-hero__visual { min-height: 390px !important; margin-top: 0 !important; }
  .hj-home-preview { width: calc(100% - 28px) !important; max-width: 350px; }
  .hj-home-preview__body { padding: 12px !important; }
  .hj-home-preview__img { height: 178px !important; }
  .hj-home-orbit { width: 270px !important; height: 270px !important; }
  .hj-home-float { transform: scale(.86); transform-origin: center; }
  .hj-home-float--5, .hj-home-float--6, .hj-home-float--7, .hj-home-float--8 { display: none !important; }
  .hj-home-flow { padding: 10px !important; }
  .hj-home-flow__item { min-height: 88px; padding: 14px !important; }
  .hj-home-flow__num { width: 40px; height: 40px; }
  .hj-home-section { margin-top: 46px; }
  .hj-home-section__title { font-size: clamp(1.55rem,8vw,2rem) !important; }
  .hj-access { margin-top: 46px; }
  .hj-access-card { padding: 20px; border-radius: 20px; }
  .hj-access-code { grid-template-columns: 38px minmax(0,1fr); }
  .hj-access-code small { display: none; }
  .hj-chat-main { min-height: calc(100svh - 96px); }
  .hj-chat-hd { padding: 18px 16px !important; }
  .hj-chat-hd h1 { font-size: 23px !important; }
  .hj-chat-chips { padding-inline: 14px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .hj-chat-chips::-webkit-scrollbar { display: none; }
  .hj-msgs { min-height: 320px; max-height: 52svh; padding: 16px 14px !important; }
  .hj-msg-a, .hj-msg-u { max-width: 92%; }
  .hj-chat-input-wrap { padding: 12px !important; }
  .hj-chat-input { min-width: 0; }
  .hj-recog-idle { padding-inline: 0; }
  .hj-upload { min-height: 220px !important; padding: 24px 16px !important; }
  .hj-history-item { padding: 9px !important; }
  .hj-history-item__thumb { width: 52px; height: 52px; }
  .hj-result-table { font-size: .78rem; }
  .hj-footer__nav { gap: 20px; }
  .hj-footer__service { padding: 16px; }
}

@media (max-width: 380px) {
  .hj-nav { padding-inline: 12px !important; }
  .hj-nav__brand em { display: none; }
  .hj-home-hero__title { font-size: 2.3rem !important; }
  .hj-home-hero__actions { grid-template-columns: 1fr; }
  .hj-home-hero__visual { min-height: 360px !important; }
  .hj-home-preview__meta { gap: 6px !important; }
  .hj-home-preview__meta div { padding: 9px 5px !important; }
  .hj-footer__nav { grid-template-columns: 1fr; }
  .hj-auth__panel { width: calc(100vw - 20px); padding: 22px 16px; }
}
