/* ==========================================================================
   Anx-MiniTool · Phase 1
   设计基调：深色工作台 / 冷色渐变 / 玻璃拟态 / 克制的动效
   ========================================================================== */

:root {
  --bg: #060a14;
  --bg-elev: #0a1020;
  --panel: rgba(16, 25, 44, 0.72);
  --panel-solid: #0f1829;
  --line: rgba(130, 168, 226, 0.14);
  --line-strong: rgba(130, 168, 226, 0.26);
  --text: #e9effb;
  --text-soft: #c3cfe5;
  --muted: #8fa1c0;
  --faint: #65789a;
  --cyan: #38bdf8;
  --cyan-deep: #0ea5e9;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow: 0 24px 60px -20px rgba(2, 8, 23, 0.9);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 10% -12%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(900px 520px at 92% -4%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(800px 700px at 50% 120%, rgba(14, 165, 233, 0.1), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 175, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 175, 230, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

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

.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.34;
}

.bg-aurora::before {
  background: #1d4ed8;
  top: -180px;
  left: -120px;
  animation: drift 22s ease-in-out infinite alternate;
}

.bg-aurora::after {
  background: #0e7490;
  bottom: -220px;
  right: -120px;
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

img { max-width: 100%; }

a { color: var(--cyan); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: #7dd3fc; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.24; }

p { margin: 0; }

::selection { background: rgba(56, 189, 248, 0.28); color: #fff; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: -3px;
}

.mono { font-family: var(--mono); font-size: 0.94em; }
.text-strong { color: var(--text); }

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand:hover { color: #fff; }

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #9fe4ff;
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 6px 18px -6px rgba(56, 189, 248, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-mark svg { width: 24px; height: 24px; }
.brand-mark-sm { width: 30px; height: 30px; border-radius: 9px; }
.brand-mark-sm svg { width: 21px; height: 21px; }

.brand-text span { color: var(--muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  font-size: 14px;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-form { display: inline-flex; margin: 0; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 13px;
}

.user-chip:hover { border-color: var(--line-strong); color: var(--text); }
.user-chip-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  color: #06121f;
  background: linear-gradient(140deg, #7dd3fc, #38bdf8 45%, #a78bfa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.avatar-sm { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.avatar-lg { width: 62px; height: 62px; border-radius: 18px; font-size: 26px; }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.04);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid rgba(56, 189, 248, 0.7); outline-offset: 2px; }
.btn:disabled, .btn.is-loading { opacity: 0.72; cursor: not-allowed; transform: none; }

.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 52%, #8b5cf6 100%);
  color: #041322;
  box-shadow: 0 14px 34px -14px rgba(56, 189, 248, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  color: #041322;
  box-shadow: 0 18px 40px -14px rgba(99, 179, 237, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   通用元素
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(56, 189, 248, 0.08);
  color: #a5e4ff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.02); }
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
}

.eyebrow {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
}

.grad {
  background: linear-gradient(100deg, #7dd3fc 5%, #38bdf8 40%, #a78bfa 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
  display: inline-block;
}

/* 闪信 */
.flash-stack {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 28, 48, 0.9);
  font-size: 13.5px;
  color: var(--text-soft);
  animation: flash-in 0.28s ease both;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.flash-success { border-color: rgba(52, 211, 153, 0.32); background: rgba(16, 60, 48, 0.55); color: #a7f3d0; }
.flash-error { border-color: rgba(251, 113, 133, 0.32); background: rgba(66, 18, 32, 0.55); color: #fecdd3; }
.flash-info { border-color: rgba(56, 189, 248, 0.3); background: rgba(12, 45, 70, 0.55); color: #bae6fd; }

.flash-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 0 2px;
  line-height: 0;
}

.flash-close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(48px, 7vw, 92px);
}

.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(34px, 3.6vw, 50px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 13px;
}

.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { width: 15px; height: 15px; color: var(--ok); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.glow-a { width: 260px; height: 260px; background: rgba(56, 189, 248, 0.35); top: -30px; right: 10px; }
.glow-b { width: 220px; height: 220px; background: rgba(139, 92, 246, 0.3); bottom: -20px; left: 0; }

.mock-window {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(140, 180, 235, 0.22);
  background: linear-gradient(165deg, rgba(19, 30, 52, 0.94), rgba(9, 15, 28, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transform: perspective(1200px) rotateX(2deg) rotateY(-3deg);
  animation: float-in 0.9s ease both;
}

@keyframes float-in {
  from { opacity: 0; transform: perspective(1200px) rotateX(6deg) rotateY(-8deg) translateY(18px); }
  to { opacity: 1; transform: perspective(1200px) rotateX(2deg) rotateY(-3deg) translateY(0); }
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.dot { display: inline-block; }
.dot-r, .dot-y, .dot-g { width: 8px; height: 8px; border-radius: 50%; }
.dot-r { background: #fb7185; }
.dot-y { background: #fbbf24; }
.dot-g { background: #34d399; }

.mock-url {
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.mock-body { padding: 18px; }

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mock-title { font-size: 15px; font-weight: 650; }

.mock-pill {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #a5e4ff;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.mock-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  margin-bottom: 9px;
}

.mock-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #041322;
}

.tile-cyan { background: linear-gradient(145deg, #a5f3fc, #38bdf8); }
.tile-violet { background: linear-gradient(145deg, #ddd6fe, #a78bfa); }
.tile-blue { background: linear-gradient(145deg, #bfdbfe, #60a5fa); }

.mock-lines { display: flex; flex-direction: column; gap: 6px; }
.line { height: 7px; border-radius: 4px; background: rgba(160, 190, 230, 0.18); display: block; }
.line-1 { width: 62%; }
.line-2 { width: 38%; background: rgba(160, 190, 230, 0.1); }
.line-3 { width: 46%; background: rgba(160, 190, 230, 0.1); }

.mock-tag {
  font-size: 10.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.mock-verify {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(52, 211, 153, 0.32);
  background: rgba(16, 185, 129, 0.07);
}

.mock-captcha {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: #c7f9e9;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(2, 12, 20, 0.6);
  text-decoration: line-through;
  text-decoration-color: rgba(52, 211, 153, 0.4);
}

.mock-verify-text { font-size: 12.5px; color: #a7f3d0; }
.mock-check { margin-left: auto; color: var(--ok); }

.float-card {
  position: absolute;
  left: -18px;
  bottom: -16px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(11, 20, 36, 0.92);
  border: 1px solid rgba(130, 170, 230, 0.22);
  box-shadow: 0 20px 40px -18px rgba(2, 8, 23, 0.95);
  backdrop-filter: blur(14px);
}

.float-card .icon { width: 22px; height: 22px; color: var(--cyan); }
.float-card div { display: flex; flex-direction: column; line-height: 1.3; }
.float-card strong { font-size: 12.5px; }
.float-card span { font-size: 10.5px; color: var(--faint); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.stat {
  background: rgba(9, 15, 28, 0.86);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #e0f2fe, #7dd3fc 55%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { font-size: 12.5px; color: var(--faint); }

.section { padding-bottom: clamp(56px, 8vw, 96px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 { font-size: clamp(24px, 2.8vw, 32px); }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 56ch; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 31, 52, 0.72), rgba(10, 16, 30, 0.72));
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 160px at var(--mx, 30%) -10%, rgba(56, 189, 248, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.3);
  box-shadow: 0 26px 50px -30px rgba(2, 8, 23, 1);
}

.tool-card:hover::after { opacity: 1; }

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tool-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #a5e4ff;
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.tool-icon .icon { width: 21px; height: 21px; }

.tool-tag {
  font-size: 11px;
  color: var(--faint);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.tool-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.tool-card p { color: var(--muted); font-size: 13.2px; line-height: 1.7; min-height: 44px; }

.tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.tool-mark {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.tool-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--faint);
}

.tool-lock .icon { width: 13px; height: 13px; }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.security-card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(12, 20, 36, 0.6);
  position: relative;
  overflow: hidden;
}

.security-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.5), transparent);
}

.security-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #9fe4ff;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 16px;
}

.security-card h3 { font-size: 17px; margin-bottom: 8px; }
.security-card p { color: var(--muted); font-size: 13.4px; line-height: 1.75; }

.security-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.security-card li {
  font-size: 12.4px;
  color: var(--faint);
  padding-left: 16px;
  position: relative;
}

.security-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}

.cta { padding-bottom: clamp(64px, 9vw, 110px); }

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(125, 211, 252, 0.2);
  background:
    radial-gradient(600px 240px at 8% 0%, rgba(56, 189, 248, 0.16), transparent 65%),
    radial-gradient(500px 240px at 95% 100%, rgba(139, 92, 246, 0.16), transparent 65%),
    rgba(10, 17, 32, 0.8);
  box-shadow: var(--shadow);
}

.cta-card h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta-card p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 18, 0.6);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 13.5px; }
.footer-brand p { color: var(--faint); font-size: 12px; margin-top: 1px; }
.footer-meta { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; flex-wrap: wrap; }
.footer-meta a { color: var(--faint); }
.footer-meta a:hover { color: var(--text-soft); }

/* --------------------------------------------------------------------------
   认证页
   -------------------------------------------------------------------------- */
.page-auth .site-footer { display: none; }

.auth-shell {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: calc(100vh - 68px);
  position: relative;
  z-index: 1;
}

.auth-side {
  position: relative;
  padding: clamp(36px, 5vw, 64px) clamp(26px, 4.5vw, 68px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(500px 400px at 100% 90%, rgba(139, 92, 246, 0.12), transparent 60%),
    rgba(7, 12, 23, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 180, 225, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000, transparent 75%);
  pointer-events: none;
  opacity: 0.5;
}

.auth-side-inner { position: relative; z-index: 1; max-width: 460px; }

.auth-side h1 {
  margin: 22px 0 18px;
  font-size: clamp(32px, 3.4vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.auth-side-lead { color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 42ch; }

.auth-features {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-features li { display: flex; align-items: center; gap: 13px; }

.feature-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #9fe4ff;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.auth-features div { display: flex; flex-direction: column; line-height: 1.5; }
.auth-features strong { font-size: 13.8px; font-weight: 600; }
.auth-features span { font-size: 12.4px; color: var(--faint); }

.auth-quote {
  margin: 40px 0 0;
  padding: 16px 18px;
  border-left: 2px solid rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.04);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 44ch;
}

.auth-quote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--faint);
}

.auth-side-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.auth-steps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-steps li {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 24px;
  color: var(--faint);
}

.auth-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.35), rgba(125, 211, 252, 0.05));
}

.step-dot {
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--faint);
  position: relative;
  z-index: 1;
}

.step-dot .icon { width: 14px; height: 14px; }

.auth-steps li.is-done .step-dot {
  color: #062e22;
  background: linear-gradient(140deg, #6ee7b7, #34d399);
  border-color: transparent;
}

.auth-steps li.is-current .step-dot {
  color: #041322;
  background: linear-gradient(140deg, #7dd3fc, #38bdf8);
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12);
}

.auth-steps li.is-current, .auth-steps li.is-done { color: var(--text-soft); }
.auth-steps div { display: flex; flex-direction: column; line-height: 1.5; }
.auth-steps strong { font-size: 13.6px; font-weight: 600; }
.auth-steps span { font-size: 12.2px; color: var(--faint); margin-top: 2px; }

.auth-tip {
  display: flex;
  gap: 11px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--faint);
  font-size: 12.2px;
  line-height: 1.7;
}

.auth-tip .icon { color: var(--ok); margin-top: 2px; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 24px;
}

.auth-card {
  width: 100%;
  max-width: 442px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(140, 180, 235, 0.18);
  background: linear-gradient(170deg, rgba(19, 30, 52, 0.9), rgba(10, 16, 30, 0.94));
  box-shadow: 0 30px 70px -30px rgba(2, 8, 23, 1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.auth-card-wide { max-width: 520px; }

.auth-card-head { margin-bottom: 22px; }
.auth-kicker { font-size: 10.5px; letter-spacing: 0.24em; color: var(--cyan); font-weight: 700; }
.auth-card-head h2 { font-size: 26px; margin: 8px 0 6px; letter-spacing: -0.03em; }
.auth-card-head p { color: var(--muted); font-size: 13px; }

/* 标签页 */
.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 9, 18, 0.5);
}

.tab {
  flex: 1;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.2px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tab:hover { color: var(--text); }

.tab.is-active {
  color: #041322;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 55%, #93c5fd);
  box-shadow: 0 8px 20px -12px rgba(56, 189, 248, 0.9);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel-in 0.26s ease both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 表单 */
.field { display: block; margin-bottom: 15px; }

.field-label {
  display: block;
  font-size: 12.4px;
  color: var(--text-soft);
  margin-bottom: 7px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap > .icon {
  position: absolute;
  left: 13px;
  color: var(--faint);
  width: 17px;
  height: 17px;
  pointer-events: none;
  transition: color 0.18s ease;
}

.input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 9, 18, 0.55);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-wrap input::placeholder { color: #5c6f90; }

.input-wrap input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(6, 14, 26, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.input-wrap:focus-within > .icon { color: var(--cyan); }

.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0b1424 inset;
  caret-color: var(--text);
}

.input-action {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.input-action:hover { color: var(--text-soft); background: rgba(255, 255, 255, 0.05); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field-hint { display: block; margin-top: 6px; font-size: 11.8px; color: var(--faint); }

.input-with-button { display: flex; gap: 9px; align-items: stretch; }
.input-with-button .input-wrap { flex: 1; min-width: 0; }

.btn-send {
  padding: 0 14px;
  height: 46px;
  font-size: 12.8px;
  border-radius: 11px;
  flex: none;
  min-width: 104px;
}

.btn-send.is-cooling { color: var(--faint); }

/* 验证码 */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.captcha-row .input-wrap { flex: 1; min-width: 0; }

.captcha-img {
  width: 148px;
  height: 47px;
  border-radius: 10px;
  border: 1px solid rgba(140, 180, 235, 0.28);
  background: #eef4ff;
  cursor: pointer;
  object-fit: fill;
  flex: none;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.captcha-img:hover { border-color: rgba(56, 189, 248, 0.55); }
.captcha-img.is-loading { opacity: 0.45; }

.captcha-refresh {
  width: 34px;
  height: 46px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.3s ease;
}

.captcha-refresh:hover { color: var(--cyan); border-color: rgba(56, 189, 248, 0.4); }
.captcha-refresh.is-spinning .icon { animation: spin 0.6s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* 提示条 */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 12.8px;
  line-height: 1.65;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.alert .icon { margin-top: 1px; flex: none; }
.alert-error { color: #fecdd3; background: rgba(74, 18, 32, 0.55); border-color: rgba(251, 113, 133, 0.32); }
.alert-error .icon { color: var(--danger); }
.alert-info { color: #bae6fd; background: rgba(10, 44, 68, 0.5); border-color: rgba(56, 189, 248, 0.28); }
.alert-info .icon { color: var(--cyan); }

/* 勾选与链接 */
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 18px;
  font-size: 12.2px;
  color: var(--faint);
  line-height: 1.6;
  cursor: pointer;
}

.checkline input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: none;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 9, 18, 0.6);
  cursor: pointer;
  position: relative;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.checkline input:checked {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border-color: transparent;
}

.checkline input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #041322;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.checkline input:focus-visible { outline: 2px solid rgba(56, 189, 248, 0.55); outline-offset: 2px; }

.otp-input {
  font-family: var(--mono);
  font-size: 20px !important;
  letter-spacing: 0.42em;
  text-align: center;
  padding-left: 40px !important;
}

.auth-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-alt a { font-weight: 600; margin-left: 4px; }

.auth-alt-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--cyan);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.link-button:hover { color: #7dd3fc; }
.link-button:disabled { color: var(--faint); cursor: not-allowed; }

.auth-foot-note {
  margin-top: 12px;
  font-size: 11.6px;
  color: var(--faint);
  text-align: center;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   控制台
   -------------------------------------------------------------------------- */
.dash { padding-top: clamp(32px, 5vw, 56px); }

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.dash-head h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.dash-head p { color: var(--muted); font-size: 14px; margin-top: 8px; }

.dash-head-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.4px;
  font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.09);
  color: #a7f3d0;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.dash-uid {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(18, 28, 48, 0.72), rgba(9, 15, 28, 0.8));
  padding: 24px;
  box-shadow: 0 20px 50px -40px rgba(2, 8, 23, 1);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-id { min-width: 0; }
.profile-id h2 { font-size: 20px; }
.profile-id p { color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-all; }

.badge-soft {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.6px;
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(16, 185, 129, 0.08);
  white-space: nowrap;
}

.badge-soft .icon { width: 13px; height: 13px; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 20px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.meta-grid > div { background: rgba(9, 15, 28, 0.7); padding: 14px 16px; }
.meta-grid dt { font-size: 11.5px; color: var(--faint); margin-bottom: 3px; }
.meta-grid dd { margin: 0; font-size: 13.4px; color: var(--text-soft); }

.sec-list { display: flex; flex-direction: column; }

.sec-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}

.sec-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  color: #9fe4ff;
}

.sec-icon .icon { width: 16px; height: 16px; }

.sec-text { display: flex; flex-direction: column; min-width: 0; }
.sec-text strong { font-size: 13.2px; font-weight: 600; }
.sec-text span { font-size: 11.8px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }

.sec-state {
  margin-left: auto;
  font-size: 11.4px;
  color: var(--faint);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.sec-state.is-ok { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.25); background: rgba(16, 185, 129, 0.07); }

.side-panel h3 { font-size: 16px; margin-bottom: 6px; }
.side-lead { color: var(--muted); font-size: 12.8px; margin-bottom: 18px; }

.timeline { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.timeline li {
  display: flex;
  gap: 11px;
  font-size: 12.8px;
  color: var(--faint);
  position: relative;
}

.timeline li > span {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.timeline li.is-done > span {
  background: linear-gradient(140deg, #6ee7b7, #34d399);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.timeline div { display: flex; flex-direction: column; line-height: 1.5; }
.timeline strong { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.timeline em { font-style: normal; font-size: 11.6px; color: var(--faint); }

.side-note {
  display: flex;
  gap: 9px;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--faint);
  font-size: 11.9px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.side-note .icon { color: var(--cyan); flex: none; margin-top: 2px; }

.dash-tools { margin-top: clamp(40px, 6vw, 64px); }

.tool-grid-sm { grid-template-columns: repeat(3, 1fr); }
.tool-grid-sm .tool-card { padding: 19px; }
.tool-grid-sm .tool-card p { min-height: 40px; font-size: 12.6px; }
.tool-card-locked { opacity: 0.92; }
.tool-card-locked:hover { transform: translateY(-2px); }
.tool-soon { font-size: 11.4px; color: var(--faint); }

/* --------------------------------------------------------------------------
   错误页
   -------------------------------------------------------------------------- */
.error-shell {
  min-height: calc(100vh - 68px - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.error-card {
  text-align: center;
  max-width: 460px;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(12, 20, 36, 0.7);
  box-shadow: var(--shadow);
}

.error-code {
  display: block;
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #7dd3fc, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.error-card h1 { font-size: 22px; margin-bottom: 8px; }
.error-card p { color: var(--muted); font-size: 13.5px; }
.error-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: flex-start; }
  .mock-window { max-width: 460px; }
  .security-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .auth-side-inner { max-width: none; }
  .auth-side h1 { font-size: 32px; }
  .auth-features, .auth-quote, .auth-steps { display: none; }
  .auth-side-foot { margin-top: 22px; }
  .auth-main { padding-top: 32px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav { gap: 12px; }
  .user-chip-name { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 33px; }
  .lead { font-size: 14.5px; }
  .tool-grid, .security-grid, .tool-grid-sm { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .meta-grid { grid-template-columns: 1fr; }
  .profile-top { flex-wrap: wrap; }
  .badge-soft { margin-left: 0; }
  .auth-side { padding: 26px 20px 22px; }
  .auth-side h1 { font-size: 26px; margin: 14px 0 8px; }
  .auth-side-lead, .auth-side-foot { display: none; }
  .auth-main { padding: 22px 16px 40px; }
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .auth-card-head h2 { font-size: 23px; }
  .captcha-img { width: 122px; height: 42px; }
  .captcha-refresh { display: none; }
  .float-card { left: 8px; bottom: -14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .error-code { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   SPA 外壳
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; }

.nav-guest, .nav-user { display: flex; align-items: center; gap: 10px; }

.spa-outlet { position: relative; z-index: 1; min-height: 62vh; }

.spa-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
}

.spa-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.spa-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.18);
  border-top-color: #38bdf8;
  animation: spin 0.9s linear infinite;
}

.route-view { animation: route-in 0.32s ease both; }

@keyframes route-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-grid .tool-card:nth-child(2) { animation-delay: 0.05s; }
.tool-grid .tool-card:nth-child(3) { animation-delay: 0.1s; }
.tool-grid .tool-card:nth-child(4) { animation-delay: 0.15s; }
.tool-grid .tool-card:nth-child(5) { animation-delay: 0.2s; }
.tool-grid .tool-card:nth-child(6) { animation-delay: 0.25s; }

@media (max-width: 640px) {
  .nav-guest .btn { padding: 6px 10px; }
  .nav-user .btn { padding: 6px 9px; }
  .spa-loading { min-height: 50vh; }
}

/* --------------------------------------------------------------------------
   站点公告
   -------------------------------------------------------------------------- */
.notice-wrap { margin-top: 20px; }

.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.05));
  color: var(--text);
  font-size: 13.5px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.notice-bar:hover {
  border-color: rgba(125, 211, 252, 0.42);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.08));
}

.notice-tag {
  flex: none;
  padding: 3px 9px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.09);
  color: #7dd3fc;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.notice-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.notice-more .icon { width: 14px; height: 14px; }
.notice-bar:hover .notice-more { color: #7dd3fc; }

.notice-bar-sm { margin-top: 18px; padding: 10px 14px; }

.page-static { max-width: 920px; padding: 54px 24px 84px; }

.page-head .eyebrow { display: block; margin-bottom: 10px; }

.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.03em;
}

.page-head p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.notice-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 20, 36, 0.72);
}

.notice-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notice-card-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.notice-pin {
  flex: none;
  padding: 2px 8px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--warn);
  font-size: 11px;
}

.notice-time {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
}

.notice-body {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--faint);
}

.empty-state h3 { margin: 0; color: var(--text); font-size: 16px; }
.empty-state p { margin: 8px 0 0; font-size: 13px; }

@media (max-width: 640px) {
  .notice-wrap { margin-top: 14px; }
  .notice-bar { padding: 10px 12px; gap: 8px; font-size: 12.5px; }
  .notice-more span { display: none; }
  .page-static { padding: 38px 16px 64px; }
  .notice-card { padding: 18px 16px; }
  .notice-card-head h2 { font-size: 16px; }
}

/* ==========================================================================
   迷你号 / 查询 / 地图搬运
   ========================================================================== */
.page-dash .site-footer { margin-top: 40px; }

.mw-card { margin-bottom: 18px; }
.mw-card > h2 { font-size: 18px; margin-bottom: 14px; }

.mw-lead { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

.mw-loading { color: var(--faint); font-size: 13px; padding: 18px 0; }
.muted { color: var(--muted); }
.mw-guest { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.mw-status { margin-bottom: 18px; }

.mw-selfbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(120deg, rgba(56, 189, 248, 0.12), rgba(139, 92, 246, 0.1)),
    var(--panel);
  box-shadow: var(--shadow);
}
.mw-self-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mw-self-id { display: flex; flex-direction: column; min-width: 0; }
.mw-self-id strong { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-self-id span { color: var(--muted); font-size: 12.5px; }
.mw-self-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; color: var(--text-soft); font-size: 12.5px; }
.mw-self-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mw-self-meta .icon { width: 14px; height: 14px; color: var(--cyan); }
.mw-selfbar > .btn { margin-left: auto; }
@media (max-width: 720px) {
  .mw-self-meta { margin-left: 0; width: 100%; }
  .mw-selfbar > .btn { margin-left: 0; }
}

.mw-avatar {
  width: 54px; height: 54px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--line-strong); background: rgba(15, 24, 41, 0.9); flex: none;
}
.mw-avatar-text {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #dff4ff;
  background: linear-gradient(135deg, rgba(56,189,248,0.35), rgba(139,92,246,0.32));
}

.mw-tip {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 11px 14px; border-radius: 12px; font-size: 12.5px;
  color: #ffe6a8; border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}
.mw-tip .icon { width: 15px; height: 15px; }

.mw-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 16px;
  padding: 6px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(8, 14, 27, 0.55);
}
.mw-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-soft); font: inherit; font-size: 13px;
  cursor: pointer; transition: all 0.18s ease;
}
.mw-tab .icon { width: 15px; height: 15px; opacity: 0.8; }
.mw-tab:hover { color: #fff; background: rgba(56, 189, 248, 0.08); }
.mw-tab.is-active {
  color: #fff; border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(139,92,246,0.16));
  box-shadow: 0 8px 22px -12px rgba(56, 189, 248, 0.7);
}

.mw-tab-body { min-height: 120px; }

.mw-login-card { max-width: 520px; margin: 0 auto; }

.mw-profile-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.mw-profile-head h2 { font-size: 20px; }
.mw-profile-head p { color: var(--muted); font-size: 12.5px; }
.mw-profile-head .badge-soft { margin-left: auto; }

.kv-table { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.kv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px; background: rgba(9, 15, 29, 0.6); font-size: 13px;
}
.kv-row > span { color: var(--muted); }
.kv-row > strong { color: var(--text); font-weight: 550; text-align: right; word-break: break-all; }

.mw-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.mw-form-grid.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mw-form-grid > form { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(9, 15, 29, 0.45); }
.mw-form-grid > form h3 { font-size: 14px; margin-bottom: 12px; }

.mw-card .input-wrap textarea,
.mw-card .input-wrap select {
  width: 100%; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 14px; padding: 12px 14px 12px 0; resize: vertical;
}
.mw-card .input-wrap select option { background: #0f1829; color: var(--text); }
.mw-card .input-wrap:has(textarea) { align-items: flex-start; }
.mw-card .input-wrap:has(textarea) > .icon { margin-top: 13px; }

.mw-cap { margin: 12px 0 14px; }
.mw-cap .captcha-row { margin: 0; }

.mw-actionbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mw-inline { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.mw-inline-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mw-inline-form .mw-cap { margin: 0; }

.mw-list { display: grid; gap: 10px; }
.mw-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(9, 15, 29, 0.5);
}
.mw-row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mw-row-main strong { font-size: 14px; }
.mw-row-main span { font-size: 12px; color: var(--muted); }
.mw-note { font-size: 12px; color: var(--warn); font-style: normal; }
.mw-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mw-row-actions .btn { padding: 5px 9px; font-size: 12px; }
.mw-post-text { font-size: 13.5px; color: var(--text-soft); white-space: pre-wrap; }

.mw-result { margin-top: 16px; }
.mw-result h2, .mw-result h3 { font-size: 14px; margin: 16px 0 8px; color: var(--text-soft); }
.mw-query-result { margin-top: 18px; }

.json-tree, .json-node { display: grid; gap: 3px; font-size: 12.5px; }
.json-row { display: grid; grid-template-columns: minmax(90px, 180px) 1fr; gap: 10px; padding: 4px 8px; border-radius: 7px; }
.json-row:nth-child(odd) { background: rgba(130, 168, 226, 0.05); }
.json-key { color: #8fb8ea; word-break: break-all; }
.json-num { color: #a5f3c8; }
.json-bool { color: #fcd34d; }
.json-node > summary { cursor: pointer; color: var(--cyan); margin: 4px 0; }

.mw-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }

.mw-queue {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(9, 15, 29, 0.5); flex: 1;
}
.mw-queue-pill {
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  color: #c8f6ff; border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}
.mw-map-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }

.mw-backup {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(9, 15, 29, 0.5); transition: border-color 0.18s ease, background 0.18s ease;
}
.mw-backup:hover { border-color: var(--line-strong); background: rgba(56, 189, 248, 0.06); }
.mw-backup input { accent-color: var(--cyan); }
.mw-backup div { display: flex; flex-direction: column; min-width: 0; }
.mw-backup strong { font-size: 13.5px; }
.mw-backup span { font-size: 11.5px; color: var(--muted); }

.mw-ws-item {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(9, 15, 29, 0.45); margin-bottom: 8px;
}
.mw-ws-item div { display: flex; flex-direction: column; min-width: 0; }
.mw-ws-item strong { font-size: 13.5px; }
.mw-ws-item span { font-size: 11.5px; color: var(--muted); }

.mw-job {
  padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(9, 15, 29, 0.55);
}
.mw-job-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mw-job-head strong { font-size: 14px; }
.mw-job-state {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-soft);
}
.mw-job-state.is-running { color: #c8f6ff; border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.12); }
.mw-job-state.is-queued { color: #ffe6a8; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.mw-job-state.is-done { color: #b7f7d8; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.1); }
.mw-job-state.is-failed, .mw-job-state.is-cancelled { color: #ffc2cb; border-color: rgba(251,113,133,.4); background: rgba(251,113,133,.1); }
.mw-job-meta { font-size: 12px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.mw-job-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.mw-progress { height: 6px; border-radius: 999px; background: rgba(130,168,226,.12); overflow: hidden; margin-top: 10px; }
.mw-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .3s ease; }
.mw-logs { margin-top: 10px; font-size: 12px; }
.mw-logs summary { cursor: pointer; color: var(--cyan); }
.mw-logs pre {
  margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; max-height: 220px; overflow: auto;
  background: rgba(4, 8, 16, 0.8); border: 1px solid var(--line); color: var(--text-soft);
  font-family: var(--mono); font-size: 11.5px; white-space: pre-wrap;
}
.mw-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.mw-security-summary { margin-bottom: 18px; }
.is-danger { color: var(--danger) !important; border-color: rgba(251,113,133,.35) !important; }
.is-error { color: var(--danger) !important; }

@media (max-width: 640px) {
  .mw-tab { padding: 8px 10px; font-size: 12.5px; }
  .mw-row { flex-direction: column; align-items: stretch; }
  .mw-row-actions { justify-content: flex-start; }
  .json-row { grid-template-columns: 1fr; gap: 2px; }
  .mw-two-col { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   功能入口卡片（首页 / 控制台）
   -------------------------------------------------------------------------- */
.tool-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tool-card-link .tool-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 600;
}

.tool-card-link .tool-go .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.tool-card-link:hover .tool-go .icon { transform: translateX(2px); }

.tool-card-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   移动端导航
   -------------------------------------------------------------------------- */
.nav { position: relative; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: #09101e;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--soft);
  }

  .nav-links a:hover { background: rgba(56, 189, 248, 0.08); color: #fff; }
}

@media (max-width: 640px) {
  .tool-card { padding: 18px; }
  .tool-card p { min-height: 0; }
  .tool-card-link .tool-go { font-size: 12px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
}
