/* token（Eval 工作台 legacy 别名） */
:root {
  --hx-brand-primary: #0033ff;
  --hx-brand-primary-hover: #0029cc;
  --hx-brand-accent: #00e5ff;
  --hx-brand-accent-muted: #87ceeb;
  --hx-ink: #0a0a0a;
  --hx-ink-muted: #4b5563;
  --hx-surface: #ffffff;
  --hx-surface-muted: #f9fafb;
  --hx-border: #e5e7eb;
  --hx-header-bg: rgba(0, 0, 0, 0.8);
  --hx-header-height: 65px;
  --nav-ink: var(--hx-ink);
  --nav-mist: var(--hx-surface-muted);
  --nav-line: var(--hx-border);
  --nav-brand-start: var(--hx-brand-primary);
  --nav-brand-end: var(--hx-brand-primary-hover);
  --vi-ocean: var(--hx-brand-primary);
  --vi-teal: var(--hx-brand-accent);
  --brand: var(--hx-brand-primary);
  --brand-dark: #17326b;
  --brand-soft: rgba(0, 51, 255, 0.08);
}

/* 访客壳：对齐 HaxiTAG-AI-CMS docs/vi.md §7.1 / §7.2 — token 见 hx-vi-tokens.css */

.hx-guest-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--hx-header-height);
  padding: env(safe-area-inset-top) 0 0;
  background: var(--hx-header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.hx-guest-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1200px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.hx-guest-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.hx-guest-header__brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.hx-guest-header__titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hx-guest-header__titles strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hx-guest-header__titles span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
  margin-top: 2px;
}

.hx-guest-header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hx-guest-header__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.hx-guest-header__nav a:hover {
  color: var(--hx-brand-accent-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hx-guest-header__nav a.is-emphasis {
  font-weight: 700;
}

.hx-guest-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 5px;
  background: var(--hx-brand-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.hx-guest-header__cta:hover {
  background: var(--hx-brand-primary-hover);
  color: #fff !important;
  text-decoration: none !important;
}

.hx-guest-main {
  background: var(--hx-surface-muted);
  min-height: calc(100vh - var(--hx-header-height));
}

@media (max-width: 768px) {
  .hx-guest-header__titles span {
    display: none;
  }

  .hx-guest-header__nav {
    gap: 10px;
  }

  .hx-guest-header__cta {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .hx-guest-header__inner {
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  .hx-guest-header__nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
}
