:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --border: #d7e0e4;
  --border-strong: #b8c6cc;
  --ink: #18232b;
  --muted: #5b6870;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #dbeafe;
  --warn: #b45309;
  --warn-soft: #fdf0d7;
  --danger: #c53030;
  --danger-soft: #fdeaea;
  --ok: #15803d;
  --ok-soft: #e3f4e8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(15, 30, 40, 0.06), 0 8px 24px rgba(15, 30, 40, 0.05);
  --shadow-strong: 0 2px 4px rgba(15, 30, 40, 0.08), 0 16px 36px rgba(15, 30, 40, 0.1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code, pre, .mono { font-family: var(--mono); }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 2px rgba(15, 30, 40, 0.04);
}
.site-header .inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--ink); font-size: 15px; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-size: 13.5px; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.button { color: #fff; }

/* ---------------- 按钮 ---------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 550;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
}
.button:hover { background: var(--surface-2); color: var(--ink); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.button.ghost { background: transparent; border-color: var(--border-strong); }
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button.danger:hover { background: #a82727; border-color: #a82727; color: #fff; }
.button.warn { background: var(--warn-soft); border-color: #eccf9a; color: var(--warn); }
.button.small { padding: 5px 10px; font-size: 12.5px; }
.button.tiny { padding: 3px 8px; font-size: 12px; border-radius: 6px; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button.block { width: 100%; }

/* ---------------- 卡片 / 表单 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card.tight { padding: 14px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; }
.card-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

label.field { display: block; margin-bottom: 12px; }
label.field > span.lbl { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 90px; }
input[type="file"] { width: 100%; font-size: 13px; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); margin-bottom: 10px; }
.checkline input { width: auto; }

/* ---------------- 徽标 / 提示 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 2px 9px;
  font-size: 12px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe3ca; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #eccf9a; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: #f2baba; }
.badge.info { background: var(--accent-soft); color: var(--accent-strong); border-color: #bcd4fb; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.alert { border-radius: var(--radius); padding: 10px 12px; font-size: 13px; border: 1px solid transparent; }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: #f2baba; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe3ca; }
.alert.info { background: var(--accent-soft); color: var(--accent-strong); border-color: #bcd4fb; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: #eccf9a; }
.alert:empty { display: none; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcfc; }
td.actions { white-space: nowrap; }
td.actions .button { margin-right: 5px; }
.empty-row td { color: var(--muted); text-align: center; padding: 26px; }

/* ---------------- 首页 ---------------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; padding: 46px 0 34px; }
.hero-kicker { display: inline-block; font-size: 12.5px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 3px 11px; }
.hero h1 { font-size: 34px; line-height: 1.25; margin: 14px 0 10px; letter-spacing: -0.5px; }
.hero p.lead { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.hero-meta code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; font-size: 12.5px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-stats > div {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow);
}
.hero-stats span { display: block; font-size: 22px; font-weight: 650; }
.hero-stats label { color: var(--muted); font-size: 12.5px; }

.accent-text { color: var(--accent); }
.copyable { cursor: pointer; }
.copyable:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------------- 实时状态板 ---------------- */
.pulse-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: relative;
}
.pulse-panel::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #6d28d9, transparent);
  background-size: 200% 100%;
  animation: sweep 3.2s linear infinite;
}
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.pulse-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.pulse-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.pulse-title .dot { color: var(--ok); animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5); }
  50% { opacity: 0.65; box-shadow: 0 0 0 4px rgba(21, 128, 61, 0); }
}
.pulse-clock { color: var(--muted); font-size: 12.5px; letter-spacing: 0.5px; }

.pulse-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pulse-cell { padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pulse-cell:nth-child(2n) { border-right: none; }
.pulse-cell:nth-last-child(-n + 2) { border-bottom: none; }
.pulse-label { color: var(--muted); font-size: 12.5px; }
.pulse-value { display: flex; align-items: baseline; gap: 4px; margin: 3px 0 6px; }
.pulse-value b { font-size: 24px; font-weight: 660; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.pulse-value .unit { color: var(--muted); font-size: 12.5px; }

.spark { height: 22px; }
.spark svg { width: 100%; height: 22px; display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--accent-soft); opacity: 0.55; }
.spark-dot { fill: var(--accent); animation: live-pulse 1.8s ease-in-out infinite; }

.pulse-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  flex-wrap: wrap;
}
.badge.live { background: var(--ok-soft); color: var(--ok); border-color: #bfe3ca; }

/* ---------------- 部署演示 ---------------- */
.demo-band { margin-top: 42px; }
.demo-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }

.terminal {
  background: #0f1720; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-strong); display: flex; flex-direction: column; min-height: 340px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 13px;
  background: #1a2431; border-bottom: 1px solid #24303f;
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.terminal-title { margin-left: 8px; color: #7d8fa3; font-size: 12px; }
.terminal-body {
  flex: 1; margin: 0; padding: 14px 16px; color: #cbd8e4; font-size: 12.6px; line-height: 1.75;
  overflow-y: auto; max-height: 340px; white-space: pre-wrap; word-break: break-all;
}
.t-line { animation: line-in 0.18s ease; }
.t-line.cmd { color: #7dd3fc; }
.t-line.ok { color: #6ee7a8; font-weight: 600; }
@keyframes line-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.terminal-body::after {
  content: '▊'; color: #6ee7a8; animation: caret 1.1s step-end infinite;
}
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.demo-side { display: flex; flex-direction: column; gap: 14px; }
.site-preview {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; flex: 1; display: flex; flex-direction: column;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.url-bar {
  flex: 1; margin-left: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 11px; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-body { flex: 1; padding: 16px; background: #fff; min-height: 190px; }

.skeleton { display: grid; gap: 10px; }
.sk-line { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #eef3f4 25%, #e2eaee 37%, #eef3f4 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.sk-block { height: 62px; border-radius: 8px; background: linear-gradient(90deg, #eef3f4 25%, #e2eaee 37%, #eef3f4 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.rendered { animation: fade-up 0.4s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rp-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rp-logo { width: 34px; height: 12px; border-radius: 3px; background: var(--accent); display: block; }
.rp-links { display: flex; gap: 8px; }
.rp-links i { width: 26px; height: 7px; border-radius: 3px; background: #dbe3e8; display: block; }
.rp-hero { display: grid; gap: 9px; margin-bottom: 18px; }
.rp-h1 { height: 16px; width: 72%; border-radius: 4px; background: #2b3946; }
.rp-h2 { height: 16px; width: 50%; border-radius: 4px; background: #2b3946; }
.rp-btn { height: 24px; width: 92px; border-radius: 6px; background: var(--accent); margin-top: 4px; }
.rp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rp-cards div { height: 52px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }

.demo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dstep {
  display: flex; align-items: center; gap: 6px; font-size: 12.3px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 9px; transition: all 0.2s ease;
}
.dstep-idx {
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); color: var(--muted);
  display: grid; place-items: center; font-size: 11px; flex-shrink: 0; transition: all 0.2s ease;
}
.dstep.active { border-color: var(--accent); color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.dstep.active .dstep-idx { background: var(--accent); color: #fff; }
.dstep.done { color: var(--ok); border-color: #bfe3ca; background: var(--ok-soft); }
.dstep.done .dstep-idx { background: var(--ok); color: #fff; }

/* 卡片入场 */
.feature-card, .plan-card, .step, .card { animation: fade-up 0.4s ease both; }
.feature-card:nth-child(2) { animation-delay: 0.04s; }
.feature-card:nth-child(3) { animation-delay: 0.08s; }
.feature-card:nth-child(4) { animation-delay: 0.12s; }
.feature-card:nth-child(5) { animation-delay: 0.16s; }
.feature-card:nth-child(6) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 34px 0 14px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.feature-card .idx { font-family: var(--mono); color: var(--accent); font-size: 12.5px; }
.feature-card strong { display: block; margin: 6px 0 6px; font-size: 14.5px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.plan-card.hot { border-color: var(--accent); box-shadow: var(--shadow-strong); }
.plan-card h3 { margin: 0; font-size: 16px; }
.plan-price { font-size: 26px; font-weight: 680; }
.plan-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.plan-card .button { margin-top: auto; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; font-size: 13px; margin-bottom: 10px;
}
.step strong { display: block; margin-bottom: 5px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 44px; padding: 20px 0 30px; color: var(--muted); font-size: 12.5px; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap { min-height: calc(100vh - 58px); display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-strong); padding: 26px; }
.auth-card h1 { margin: 0 0 4px; font-size: 20px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* 注册步骤条 */
.steps-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sbar-item {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted);
  transition: color 0.2s ease;
}
.sbar-item span {
  width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); color: var(--muted);
  display: grid; place-items: center; font-size: 11px; transition: all 0.2s ease;
}
.sbar-item.active { color: var(--accent-strong); font-weight: 600; }
.sbar-item.active span { background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.sbar-item.done { color: var(--ok); }
.sbar-item.done span { background: var(--ok); color: #fff; }
.sbar-line { flex: 1; height: 1px; background: var(--border); }

/* 验证码输入 */
.code-input {
  font-family: var(--mono); font-size: 24px; letter-spacing: 12px; text-align: center;
  padding: 12px 10px 12px 22px; font-weight: 600;
}
.code-input::placeholder { letter-spacing: 6px; color: var(--border-strong); }

.mail-hint {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--accent-soft); border: 1px solid #bcd4fb; border-radius: var(--radius);
  padding: 13px 15px; margin-bottom: 16px; font-size: 13px;
}
.mail-icon {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 15px; flex-shrink: 0;
}
.mail-hint strong { color: var(--accent-strong); word-break: break-all; }

/* ---------------- 控制台 ---------------- */
.console-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 22px 0 40px; align-items: start; }
.side-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow); position: sticky; top: 74px; }
.side-nav button {
  display: flex; width: 100%; align-items: center; gap: 9px;
  border: none; background: transparent; color: var(--muted);
  padding: 9px 11px; border-radius: var(--radius); font-size: 13.5px; text-align: left;
}
.side-nav button:hover { background: var(--surface-2); color: var(--ink); }
.side-nav button.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.side-nav .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.main-col { display: grid; gap: 16px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 19px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.stat .k { color: var(--muted); font-size: 12.5px; }
.stat .v { font-size: 20px; font-weight: 660; margin-top: 2px; word-break: break-all; }
.stat .v.small-v { font-size: 15px; font-weight: 600; }

.site-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; }
.site-card .head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.site-card h3 { margin: 0; font-size: 15.5px; font-family: var(--mono); }
.site-card .meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; color: var(--muted); font-size: 12.5px; }
.site-card .meta b { color: var(--ink); font-weight: 600; }
.site-card .ops { display: flex; flex-wrap: wrap; gap: 7px; }

.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 22px; text-align: center; color: var(--muted); background: var(--surface-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.dropzone strong { color: var(--ink); }

.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width 0.15s ease; }

pre.log {
  background: #0f1720; color: #d6e2ea; border-radius: var(--radius); padding: 14px;
  font-size: 12.2px; line-height: 1.6; max-height: 380px; overflow: auto; margin: 0;
  white-space: pre-wrap; word-break: break-all;
}
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button {
  border: none; background: transparent; color: var(--muted); padding: 8px 12px;
  border-bottom: 2px solid transparent; font-size: 13.5px; margin-bottom: -1px;
}
.tabs button.active { color: var(--accent-strong); border-bottom-color: var(--accent); font-weight: 600; }

.toast-host { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 100; }
.toast {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 10px 14px;
  font-size: 13px; box-shadow: var(--shadow-strong); max-width: 380px; animation: toast-in 0.16s ease;
}
.toast.ok { background: #14652f; }
.toast.error { background: #a82727; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.modal-host {
  position: fixed; inset: 0; background: rgba(15, 25, 35, 0.45);
  display: grid; place-items: center; padding: 20px; z-index: 90;
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-strong);
  width: min(620px, 100%); max-height: 88vh; overflow: auto; padding: 22px;
}
.modal h2 { margin: 0 0 4px; font-size: 17px; }
.modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.key-box {
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.3px;
  background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.key-list { display: grid; gap: 7px; max-height: 320px; overflow: auto; }

.copy-target { cursor: pointer; }
.copy-target:hover { color: var(--accent); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .console-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .side-nav button { white-space: nowrap; }
  .side-nav .sep { display: none; }
  .hero h1 { font-size: 27px; }
}
