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

:root {
  --bg: #05060a;
  --bg-soft: #0a0e17;
  --panel: rgba(14, 19, 29, 0.66);
  --panel-solid: #0d121c;
  --panel-2: rgba(22, 28, 42, 0.5);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e8edf9;
  --muted: #8d9ab2;
  --muted-2: #66728a;
  --accent: #5eead4;
  --accent-2: #7c8cff;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.12);
  --warn: #fbbf24;
  --ok: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% -14%, rgba(124, 140, 255, 0.14), transparent 62%),
    radial-gradient(900px 540px at 92% 2%, rgba(94, 234, 212, 0.09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
::selection { background: rgba(94, 234, 212, 0.28); }

.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.hide { display: none !important; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-logo {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(94, 234, 212, 0.08); border: 1px solid var(--line);
}
.brand-logo svg, .brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148, 163, 184, 0.4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #5eead4, #7c8cff);
  border-color: transparent; color: #05121a;
}
.btn-primary:hover { background: linear-gradient(135deg, #74f2de, #8f9dff); }
.btn-ghost { background: transparent; }
.btn-danger { color: #ffd7dd; border-color: rgba(251, 113, 133, 0.4); background: var(--danger-soft); }
.btn-danger:hover { background: rgba(251, 113, 133, 0.2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-link { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 13px; padding: 0; }
.btn-link:hover { text-decoration: underline; }

/* ---------- form ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  background: rgba(9, 14, 25, 0.72);
  border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--text); outline: none; transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(94, 234, 212, 0.7);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
  background: rgba(9, 14, 25, 0.95);
}
.input:disabled { opacity: 0.6; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field-hint { font-size: 12px; color: var(--muted-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.form-error {
  display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--danger-soft); border: 1px solid rgba(251, 113, 133, 0.32);
  color: #ffd7dd; font-size: 13px;
}
.form-error.show { display: block; }
.form-ok {
  display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px;
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3);
  color: #bbf7e0; font-size: 13px;
}
.form-ok.show { display: block; }

/* ---------- landing ---------- */
.hero { padding: 74px 0 40px; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(94, 234, 212, 0.32);
  background: rgba(94, 234, 212, 0.08); color: #a7f3e7; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.14); }
.hero h1 { margin: 20px 0 16px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin: 28px 0 22px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.tick { width: 16px; height: 16px; border-radius: 50%; background: rgba(52, 211, 153, 0.16); color: var(--ok); display: grid; place-items: center; font-size: 10px; }

.hero-visual { position: relative; }
.glow { position: absolute; inset: -40px -20px; background: radial-gradient(closest-side, rgba(124, 140, 255, 0.22), transparent 72%); filter: blur(12px); pointer-events: none; }
.phone {
  position: relative; width: min(320px, 100%); margin: 0 auto; padding: 12px;
  background: linear-gradient(165deg, rgba(32, 43, 68, 0.95), rgba(11, 17, 30, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 34px;
  box-shadow: var(--shadow);
}
.phone-screen {
  border-radius: 24px; overflow: hidden; background: #070d18;
  border: 1px solid rgba(148, 163, 184, 0.12); min-height: 430px;
  display: flex; flex-direction: column;
}
.phone-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 11px; color: var(--muted-2); border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.phone-bar .traffic { display: flex; gap: 4px; }
.phone-bar .traffic i { width: 7px; height: 7px; border-radius: 50%; background: #2b3648; }
.phone-body { padding: 16px; display: grid; gap: 14px; flex: 1; }
.mini-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(20, 29, 47, 0.8); }
.mini-card .row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.mini-app { display: flex; align-items: center; gap: 11px; }
.mini-icon { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, rgba(94, 234, 212, 0.28), rgba(124, 140, 255, 0.36)); border: 1px solid rgba(94, 234, 212, 0.28); display: grid; place-items: center; font-size: 16px; }
.mini-app b { font-size: 13px; display: block; }
.mini-app span { font-size: 11px; color: var(--muted-2); }

.phone-fab {
  position: absolute; right: -18px; bottom: 40px;
  background: rgba(13, 20, 34, 0.96); border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 14px; padding: 12px 14px; font-size: 12px; color: #b6f5ea;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px;
}
.phone-fab .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(94, 234, 212, 0); } }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 26px 0 10px; padding: 20px 6px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-strip div { text-align: center; }
.stat-strip b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.stat-strip span { font-size: 12px; color: var(--muted-2); }

.section { padding: 66px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  backdrop-filter: blur(8px); transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: rgba(94, 234, 212, 0.36); transform: translateY(-2px); }
.feature .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.16), rgba(124, 140, 255, 0.18));
  border: 1px solid rgba(94, 234, 212, 0.22); margin-bottom: 14px; font-size: 19px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.flow li { position: relative; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(15, 22, 37, 0.6); }
.flow li::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  display: block; margin-bottom: 10px; letter-spacing: 0.1em;
}
.flow b { display: block; margin-bottom: 4px; font-size: 14px; }
.flow span { color: var(--muted); font-size: 13px; }

.cta-band {
  margin: 20px 0 70px; padding: 40px;
  border-radius: 22px; border: 1px solid rgba(94, 234, 212, 0.24);
  background:
    radial-gradient(600px 220px at 15% 0%, rgba(94, 234, 212, 0.16), transparent 70%),
    radial-gradient(600px 240px at 85% 100%, rgba(124, 140, 255, 0.2), transparent 70%),
    rgba(13, 20, 34, 0.9);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta-band p { color: var(--muted); margin-top: 6px; }
.cta-band .btn { margin-left: auto; }

.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted-2); font-size: 13px; }
.footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 18px; margin-left: auto; }
.footer-inner a:hover { color: var(--text); }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.auth-aside {
  position: relative; padding: 56px 56px 44px; display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 10% 0%, rgba(124, 140, 255, 0.22), transparent 68%),
    radial-gradient(600px 340px at 90% 100%, rgba(94, 234, 212, 0.12), transparent 66%),
    rgba(7, 11, 20, 0.6);
}
.auth-aside .brand { margin-bottom: 54px; }
.auth-aside h2 { font-size: clamp(26px, 2.4vw, 34px); max-width: 460px; }
.auth-aside p { color: var(--muted); margin-top: 14px; max-width: 440px; }
.auth-points { margin-top: 34px; display: grid; gap: 14px; max-width: 430px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #c7d2e5; }
.auth-points .tick { margin-top: 3px; flex: 0 0 auto; }
.auth-aside-foot { margin-top: auto; padding-top: 30px; font-size: 12px; color: var(--muted-2); }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(432px, 100%); }
.auth-card > h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-card .panel { padding: 24px; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 20px;
  background: rgba(9, 14, 25, 0.7); border: 1px solid var(--line); border-radius: 12px;
}
.seg button {
  height: 36px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
}
.seg button.active { background: rgba(94, 234, 212, 0.14); color: #ccfbf1; box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.28); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--accent); }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.note {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(124, 140, 255, 0.08); border: 1px solid rgba(124, 140, 255, 0.22);
  color: #cdd6ff; font-size: 13px; margin-bottom: 18px;
}
.note.warn { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.24); color: #fde9b8; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px;
  border-right: 1px solid var(--line); background: rgba(8, 13, 23, 0.82);
  display: flex; flex-direction: column; gap: 22px; backdrop-filter: blur(10px);
}
.side .brand { padding: 0 6px; }
.side-nav { display: grid; gap: 4px; }
.side-nav button, .side-nav a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 40px; padding: 0 12px; border-radius: 10px; border: 0;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 550;
  cursor: pointer; text-align: left; transition: background 0.16s, color 0.16s;
}
.side-nav button:hover, .side-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.side-nav button.active { background: rgba(94, 234, 212, 0.12); color: #ccfbf1; }
.side-nav .ico { width: 18px; text-align: center; opacity: 0.9; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.user-box {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(124, 140, 255, 0.42));
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #06121b;
}
.user-box .u { min-width: 0; }
.user-box .u b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-box .u span { display: block; font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; padding: 26px 30px 60px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); backdrop-filter: blur(8px);
}
.panel-pad { padding: 22px; }
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 { font-size: 15px; }
.panel-head .actions { margin-left: auto; display: flex; gap: 8px; }
.panel-body { padding: 18px 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.stat-card .k { font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 7px; }
.stat-card .v { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; }
.stat-card .d { font-size: 11.5px; color: var(--muted-2); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { height: 38px; width: auto; min-width: 180px; }

/* ---------- app cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.app-card { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: grid; gap: 14px; transition: border-color 0.2s; }
.app-card:hover { border-color: rgba(148, 163, 184, 0.3); }
.app-top { display: flex; align-items: center; gap: 12px; }
.app-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(124, 140, 255, 0.3));
  border: 1px solid rgba(94, 234, 212, 0.24); display: grid; place-items: center;
  font-weight: 700; color: #d7fdf6;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-top .meta { min-width: 0; }
.app-top .meta b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-top .meta span { display: block; font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-url { font-family: var(--mono); font-size: 12px; color: var(--muted); background: rgba(9, 14, 25, 0.6); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-foot .btn { flex: 1 1 auto; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; }
.tag-apk { background: rgba(52, 211, 153, 0.1); color: #9df5cd; border-color: rgba(52, 211, 153, 0.24); }
.tag-exe { background: rgba(124, 140, 255, 0.12); color: #c3cbff; border-color: rgba(124, 140, 255, 0.26); }
.tag-ok { background: rgba(52, 211, 153, 0.1); color: #9df5cd; border-color: rgba(52, 211, 153, 0.24); }
.tag-run { background: rgba(94, 234, 212, 0.1); color: #a7f3e7; border-color: rgba(94, 234, 212, 0.24); }
.tag-fail { background: var(--danger-soft); color: #ffc6cf; border-color: rgba(251, 113, 133, 0.3); }
.tag-mute { background: rgba(148, 163, 184, 0.1); color: var(--muted); border-color: var(--line); }
.tag-warn { background: rgba(251, 191, 36, 0.1); color: #fde9b8; border-color: rgba(251, 191, 36, 0.24); }

.empty {
  padding: 54px 20px; text-align: center; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); color: var(--muted); background: rgba(255, 255, 255, 0.015);
}
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: 0.8; }
.empty b { display: block; color: var(--text); margin-bottom: 6px; font-size: 15px; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-2); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: rgba(9, 14, 25, 0.4);
}
table.tbl td { padding: 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.08); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; }
.tbl-empty { padding: 32px; text-align: center; color: var(--muted-2); font-size: 13px; }

/* ---------- progress / job ---------- */
.progress { height: 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.progress > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #5eead4, #7c8cff);
  border-radius: 999px; transition: width 0.45s ease;
  position: relative;
}
.progress > i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress.done > i::after, .progress.fail > i::after { display: none; }
.progress.fail > i { background: linear-gradient(90deg, #fb7185, #f43f5e); }

.steps { display: grid; gap: 2px; margin: 2px 0; }
.steps li { display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: 13px; color: var(--muted-2); }
.steps .bullet {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 10px;
  background: rgba(9, 14, 25, 0.6); color: var(--muted-2); transition: all 0.2s;
}
.steps li.done { color: #c6f7ec; }
.steps li.done .bullet { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.5); color: var(--ok); }
.steps li.active { color: var(--text); }
.steps li.active .bullet { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12); animation: pulse 1.8s infinite; }
.steps li.failed { color: #ffc6cf; }
.steps li.failed .bullet { background: var(--danger-soft); border-color: rgba(251, 113, 133, 0.5); color: var(--danger); }
.steps .bullet .svg-ico { width: 11px; height: 11px; stroke-width: 2.6; }
.steps li .stage-pct { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }

.logbox {
  margin-top: 14px; max-height: 190px; overflow: auto;
  background: #060a12; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.75;
  color: #93a3bb; white-space: pre-wrap; word-break: break-all;
}
.logbox .l-err { color: #ff9aab; }
.logbox .l-ok { color: #7ff0cf; }

.job-summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.job-summary .big { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.job-summary .meta { color: var(--muted); font-size: 12.5px; }
.job-artifact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(52, 211, 153, 0.26); background: rgba(52, 211, 153, 0.08); margin-top: 14px; flex-wrap: wrap; }
.job-artifact b { font-size: 13px; }
.job-artifact .actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.72); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 64px);
  margin: 32px auto; overflow: auto;
  background: linear-gradient(180deg, #101a2c, #0b1220);
  border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  animation: modal-in 0.22s ease;
}
.modal-card.wide { width: min(800px, calc(100% - 32px)); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-head .x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.modal-head .x:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }

/* ---------- toast ---------- */
.toast-box { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast {
  min-width: 200px; max-width: 340px; padding: 11px 15px; border-radius: 10px;
  background: #131d30; border: 1px solid var(--line-strong); color: var(--text);
  font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); transition: all 0.22s ease;
}
.toast.in { opacity: 1; transform: none; }
.toast-success { border-color: rgba(52, 211, 153, 0.4); }
.toast-error { border-color: rgba(251, 113, 133, 0.45); }
.toast-info { border-color: rgba(124, 140, 255, 0.4); }

/* ---------- misc ---------- */
.kv { display: grid; gap: 12px; }
.kv div { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.kv dt, .kv .k { color: var(--muted); min-width: 96px; }
.kv .v { overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.toast-note { font-size: 12.5px; color: var(--muted); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--ok); margin-right: 6px; }
.badge-dot.off { background: var(--muted-2); }
.badge-dot.warn { background: var(--warn); }
.upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.preview {
  width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
  border: 1px solid var(--line-strong); background: rgba(9, 14, 25, 0.7);
  display: grid; place-items: center;
}
.preview img { width: 100%; height: 100%; object-fit: contain; }
.preview.small { width: 34px; height: 34px; border-radius: 8px; }
.share-link { display: flex; gap: 8px; align-items: center; }
.share-link .input { font-family: var(--mono); font-size: 12px; }
.qr-box { width: 148px; height: 148px; border-radius: 12px; background: #fff; padding: 8px; flex: 0 0 auto; }
.qr-box img { width: 100%; height: 100%; }

.share-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.share-card { width: min(460px, 100%); }
.share-card .head { text-align: center; margin-bottom: 22px; }
.share-card .head .brand { justify-content: center; margin-bottom: 22px; }
.share-file { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(9, 14, 25, 0.5); margin-bottom: 16px; }
.share-file .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(124, 140, 255, 0.22)); border: 1px solid rgba(94, 234, 212, 0.24); }
.share-file b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.share-file span { font-size: 12px; color: var(--muted-2); }

.skeleton { background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.08)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28); border-top-color: #fff; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- icons (iconfont-style inline svg) ---------- */
.svg-ico {
  width: 1.1em; height: 1.1em; flex: 0 0 auto; display: inline-block;
  vertical-align: -0.16em; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ico .svg-ico, .mini-icon .svg-ico { width: 20px; height: 20px; }
.tick .svg-ico { width: 11px; height: 11px; stroke-width: 2.6; }
.side-nav .svg-ico { width: 18px; height: 18px; opacity: 0.95; }
.feature .ico .svg-ico { width: 21px; height: 21px; }
.harden-head .ic .svg-ico { width: 19px; height: 19px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; }
.back-link .svg-ico { width: 14px; height: 14px; transition: transform 0.18s ease; }
.back-link:hover .svg-ico { transform: translateX(-3px); }

/* ---------- aurora backdrop ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(80px); will-change: transform;
}
.aurora .a1 {
  width: 52vw; height: 52vw; top: -18vw; left: -10vw; opacity: 0.5;
  background: radial-gradient(closest-side, rgba(94, 234, 212, 0.4), transparent 72%);
  animation: aurora-a 26s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 46vw; height: 46vw; top: -12vw; right: -12vw; opacity: 0.55;
  background: radial-gradient(closest-side, rgba(124, 140, 255, 0.42), transparent 72%);
  animation: aurora-b 32s ease-in-out infinite alternate;
}
.aurora .a3 {
  width: 40vw; height: 40vw; bottom: -22vw; left: 28vw; opacity: 0.32;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.34), transparent 72%);
  animation: aurora-a 38s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 5vw, 0) scale(1.16); }
}
@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to { transform: translate3d(-7vw, 7vw, 0) scale(1); }
}

/* ---------- motion / reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.72s cubic-bezier(0.22, 0.7, 0.2, 1), transform 0.72s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.grad-text {
  background: linear-gradient(100deg, #5eead4, #7c8cff, #a78bfa, #5eead4);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 9s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .grad-text, .aurora i, .hero-chip, .phone-fab .pulse { animation: none !important; }
}

/* ---------- hero polish ---------- */
.hero { position: relative; }
.hero h1 { text-wrap: balance; }
.hero-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #d8fdf4; background: rgba(8, 12, 20, 0.82);
  border: 1px solid rgba(94, 234, 212, 0.3);
  backdrop-filter: blur(12px); box-shadow: 0 18px 44px -24px #000;
  animation: float-y 6.5s ease-in-out infinite;
}
.hero-chip.c1 { top: 26px; left: -14px; color: #d3d9ff; border-color: rgba(124, 140, 255, 0.32); }
.hero-chip.c2 { right: -10px; bottom: 104px; animation-delay: -3.2s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-visual { perspective: 1200px; }
.phone { transform-style: preserve-3d; transition: transform 0.35s ease, box-shadow 0.35s ease; will-change: transform; }
.phone:hover { box-shadow: 0 40px 90px -34px rgba(94, 234, 212, 0.3), var(--shadow); }
.mini-tag {
  margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 6px; color: #a7f3e7;
  background: rgba(94, 234, 212, 0.12); border: 1px solid rgba(94, 234, 212, 0.26);
}
.mini-card .ok { color: var(--ok); font-family: var(--mono); font-size: 11px; }
.mini-card .run { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.mini-card .run::after { content: "…"; }

.feature { position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; inset: -1px;
  background: radial-gradient(340px 160px at 20% 0%, rgba(94, 234, 212, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.feature:hover::before { opacity: 1; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -34px rgba(94, 234, 212, 0.4); }
.feature .ico { transition: transform 0.25s ease, border-color 0.25s ease; }
.feature:hover .ico { transform: translateY(-2px) scale(1.04); border-color: rgba(94, 234, 212, 0.45); }

.stat-strip b { font-variant-numeric: tabular-nums; }
.stat-strip > div { position: relative; }
.stat-strip > div + div::before {
  content: ""; position: absolute; left: -7px; top: 10%; height: 80%;
  width: 1px; background: var(--line);
}

/* ---------- hardening ---------- */
.harden-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.harden-card {
  position: relative; padding: 22px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.82), rgba(7, 10, 17, 0.9));
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.harden-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px 180px at 85% 0%, rgba(124, 140, 255, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.harden-card:hover { transform: translateY(-4px); border-color: rgba(124, 140, 255, 0.38); box-shadow: 0 30px 70px -40px rgba(124, 140, 255, 0.5); }
.harden-card:hover::after { opacity: 1; }
.harden-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.harden-head .ic {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center; color: #d6d9ff;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.14), rgba(124, 140, 255, 0.22));
  border: 1px solid rgba(124, 140, 255, 0.26);
}
.harden-head h3 { font-size: 15px; }
.harden-head span { display: block; }
.harden-card p { color: var(--muted); font-size: 13.5px; }
.code-strip {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.5; color: #9fb2cc; letter-spacing: 0.01em;
  background: rgba(4, 7, 12, 0.72); border: 1px dashed var(--line-strong);
  overflow-x: auto; white-space: nowrap;
}
.harden-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: 12px; font-size: 12.5px; color: var(--muted);
  background: rgba(251, 191, 36, 0.05); border: 1px solid rgba(251, 191, 36, 0.18);
}
.harden-note .svg-ico { color: var(--warn); width: 16px; height: 16px; margin-top: 2px; }

.cta-band { position: relative; overflow: hidden; transition: border-color 0.25s ease; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 70% 120%, rgba(94, 234, 212, 0.16), transparent 70%);
}
.cta-band:hover { border-color: rgba(94, 234, 212, 0.4); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero-visual { order: 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .harden-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side {
    position: sticky; top: 0; height: auto; flex-direction: row; align-items: center;
    padding: 10px 14px; gap: 12px; overflow-x: auto; z-index: 50;
  }
  .side .brand-name { display: none; }
  .side-nav { display: flex; gap: 6px; }
  .side-nav button { width: auto; white-space: nowrap; height: 36px; }
  .side-nav .ico { display: none; }
  .side-foot { margin: 0 0 0 auto; }
  .user-box { border: 0; background: none; padding: 0; }
  .user-box .u { display: none; }
  .main { padding: 20px 16px 50px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .nav-inner { height: 60px; gap: 12px; }
  .hero { padding: 38px 0 24px; }
  .hero p.lead { font-size: 15px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .stat-strip > div + div::before { display: none; }
  .feature-grid, .flow, .harden-grid { grid-template-columns: 1fr; }
  .hero-chip { display: none; }
  .phone-fab { right: 0; bottom: 16px; }
  .section { padding: 44px 0; }
  .cta-band { padding: 26px; }
  .cta-band .btn { margin-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .modal-card { margin: 16px auto; max-height: calc(100vh - 32px); }
  .toast-box { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
  .auth-main { padding: 26px 16px; }
  .side-nav button span.lbl { display: none; }
  .side-nav button { padding: 0 10px; }
}

/* 运行环境：状态行 + 启停开关 */
.health-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.health-row + .health-row { border-top: 1px solid var(--line); }
.health-row .k { color: var(--muted); font-size: 13px; min-width: 108px; }
.health-row .v { display: inline-flex; align-items: center; flex: 1; min-width: 0; }
.health-row .sw { margin-left: auto; flex: none; }
.sw { position: relative; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw .track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: rgba(148, 163, 184, 0.18); border: 1px solid var(--line-strong); transition: background 0.2s, border-color 0.2s; }
.sw .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s; }
.sw input:checked + .track { background: var(--accent-soft); border-color: rgba(94, 234, 212, 0.5); }
.sw input:checked + .track::after { transform: translateX(16px); background: var(--accent); }
.sw input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw input:disabled + .track { opacity: 0.55; }
.sw .sw-text { font-size: 12px; color: var(--muted); }
.sw input:checked ~ .sw-text { color: var(--accent); }

/* 发件人预览 */
.sender-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.sender-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
}
.sender-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sender-meta { flex: 1 1 auto; min-width: 0; }
.sender-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sender-email {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
