/* ============================================================
   JK云 · 设计系统
   深色底 + 电光蓝，克制的渐变与光影，强调数据与操作效率
   ============================================================ */

:root {
  --bg: #05070c;
  --bg-2: #080b12;
  --surface: #0e121a;
  --surface-2: #131824;
  --surface-3: #1a2130;
  --line: #1e2534;
  --line-2: #2a3346;
  --text: #edf1f9;
  --muted: #97a1b6;
  --dim: #66708a;
  --brand: #2f6bff;
  --brand-2: #6d9bff;
  --brand-3: #9dbcff;
  --ok: #2bd67b;
  --warn: #ffb020;
  --danger: #ff5f6d;
  --info: #4bb3ff;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .85);
  --shadow-brand: 0 14px 34px -14px rgba(47, 107, 255, .65);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html { background: var(--bg); }

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(47, 107, 255, .16), transparent 60%),
    radial-gradient(700px 420px at 92% 4%, rgba(107, 155, 255, .10), transparent 62%),
    linear-gradient(180deg, #05070c 0%, #05070c 40%, #05070c 100%);
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--brand-2); }
a.link:hover { color: var(--brand-3); }

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

::selection { background: rgba(47, 107, 255, .35); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #232c3d; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #31405a; }

/* ---------------- 基础排版 ---------------- */
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.grad-text {
  background: linear-gradient(100deg, #fff 10%, var(--brand-2) 55%, #8fbcff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.section { padding: 84px 0; position: relative; z-index: 1; }
.section-sm { padding: 48px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: linear-gradient(90deg, var(--brand), transparent); }
.section-title { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  --btn-bg: var(--surface-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--btn-bg); color: var(--text);
  font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; user-select: none;
}
.btn:hover { border-color: #3b4964; background: #1e2634; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #2f6bff, #4a83ff 55%, #5f93ff);
  border-color: transparent; color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: linear-gradient(135deg, #3b76ff, #5a8fff); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); }
.btn-danger { background: rgba(255, 95, 109, .12); border-color: rgba(255, 95, 109, .35); color: #ff8b95; }
.btn-danger:hover { background: rgba(255, 95, 109, .2); }
.btn-ok { background: rgba(43, 214, 123, .12); border-color: rgba(43, 214, 123, .32); color: #62e6a4; }
.btn-ok:hover { background: rgba(43, 214, 123, .2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- 卡片 / 面板 ---------------- */
.card {
  background: linear-gradient(180deg, rgba(19, 24, 36, .92), rgba(14, 18, 26, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.card-tight { padding: 18px; }
.card-flat { background: var(--surface); }
.card-hover { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: #2e3b52; box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h3 { margin: 0; font-size: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 20px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 14px; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  background: #0b0f17; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 14.5px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .18); background: #0c1119;
}
.input::placeholder, .textarea::placeholder { color: #4d566b; }
.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group .input { flex: 1; }
.help { font-size: 12px; color: var(--dim); margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 单选卡片（配置选项） */
.choice { display: grid; gap: 10px; }
.choice label {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.choice label:hover { border-color: #35425c; background: rgba(255, 255, 255, .02); }
.choice input { accent-color: var(--brand); }
.choice input:checked + span { color: var(--text); }
.choice label:has(input:checked) { border-color: var(--brand); background: rgba(47, 107, 255, .08); }

/* ---------------- 徽标 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: rgba(255, 255, 255, .06); color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .06);
}
.badge.ok { background: rgba(43, 214, 123, .12); color: #58e2a0; border-color: rgba(43, 214, 123, .22); }
.badge.warn { background: rgba(255, 176, 32, .12); color: #ffc45c; border-color: rgba(255, 176, 32, .22); }
.badge.danger { background: rgba(255, 95, 109, .12); color: #ff8992; border-color: rgba(255, 95, 109, .22); }
.badge.info { background: rgba(75, 179, 255, .12); color: #7cc7ff; border-color: rgba(75, 179, 255, .22); }
.badge.dim { background: rgba(255, 255, 255, .04); color: var(--dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .05); }
.dot.pulse { animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(5, 7, 12, .78);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(30, 37, 52, .7);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.brand .brand-text small { display: block; font-size: 10px; letter-spacing: .22em; color: var(--dim); font-weight: 600; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 9px; color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.active { color: var(--text); background: rgba(47, 107, 255, .12); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
  background: rgba(8, 11, 18, .98); border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px; backdrop-filter: blur(20px);
}
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 12px 8px; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.nav-mobile a.active { color: var(--brand-2); }

/* 用户下拉 */
.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03);
  cursor: pointer; font-size: 13.5px; color: var(--text);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #2f6bff, #7aa6ff);
}
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; z-index: 60;
  background: #0d1119; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow); display: none;
}
.dropdown.open { display: block; animation: dropIn .16s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border-radius: 8px; color: var(--muted); font-size: 14px; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit;
}
.dropdown a:hover, .dropdown button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------------- 首页 Hero ---------------- */
.hero { position: relative; padding: 76px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  border-radius: 999px; border: 1px solid rgba(47, 107, 255, .3); background: rgba(47, 107, 255, .1);
  font-size: 13px; color: #b9cdff; margin-bottom: 22px;
}
.hero-badge b { background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; }
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.hero-stats .stat span { font-size: 12.5px; color: var(--dim); letter-spacing: .04em; }

/* 右侧实例概览面板 + 轨道装饰 */
.hero-visual { position: relative; height: 420px; display: grid; place-items: center; overflow: hidden; }
.dash-card {
  position: relative; z-index: 3; width: min(430px, 100%);
  padding: 20px 20px 14px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(22, 29, 44, .96), rgba(10, 14, 22, .98));
  border: 1px solid #2a3448;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform: rotate(-1.4deg);
  animation: floaty 8s ease-in-out infinite;
}
.dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dc-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #cfd9ec; letter-spacing: .02em; }
.ok-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(43, 214, 123, .12); }
.dc-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 62px auto; gap: 10px; align-items: center; padding: 11px 10px; border-radius: 11px; transition: background .2s ease; }
.dc-row:hover { background: rgba(255, 255, 255, .03); }
.dc-flag { width: 32px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: rgba(47, 107, 255, .16); color: #a9c4ff; }
.dc-name { font-size: 13px; font-weight: 600; color: #e6ecf8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-sub { font-size: 11px; color: #6d7893; font-family: var(--mono); margin-top: 2px; }
.dc-bar { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.dc-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2f6bff, #7aa6ff); }
.dc-state { font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.dc-state.ok { background: rgba(43, 214, 123, .12); color: #5fe3a4; }
.dc-state.info { background: rgba(75, 179, 255, .12); color: #8ccdff; }
.dc-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 10.5px; color: #5d6780; letter-spacing: .03em; }
.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px; font-size: 12px; color: #dbe5f7;
  background: rgba(16, 22, 34, .95); border: 1px solid #2c3648; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .9);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip.c1 { top: 14px; left: 4%; animation-delay: -1.2s; }
.float-chip.c2 { bottom: 22px; right: 2%; animation-delay: -3.4s; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(43, 214, 123, .14); }
.chip-dot.blue { background: var(--info); box-shadow: 0 0 0 4px rgba(75, 179, 255, .14); }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.orbit { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.orbit-ring {
  position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border: 1px dashed rgba(90, 130, 200, .18); border-radius: 50%;
  transform: rotateX(62deg);
  animation: spin 46s linear infinite;
}
.orbit-ring.r2 { width: 560px; height: 560px; margin: -280px 0 0 -280px; animation-duration: 70s; animation-direction: reverse; border-color: rgba(90, 130, 200, .1); }
@keyframes spin { to { transform: rotateX(62deg) rotate(360deg); } }

/* ---------------- 产品卡 ---------------- */
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p-card {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 26, 38, .9), rgba(12, 16, 24, .92));
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.p-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 155, 255, .55), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.p-card:hover { transform: translateY(-4px); border-color: #2c3950; box-shadow: var(--shadow); }
.p-card:hover::after { opacity: 1; }
.p-card .p-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.p-card .p-region { font-size: 12px; color: var(--brand-2); font-weight: 600; letter-spacing: .06em; }
.p-card .p-name { font-size: 16.5px; font-weight: 700; margin: 0 0 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 46px; }
.p-card .p-group { font-size: 12.5px; color: var(--dim); }
.p-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.p-spec { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .025); border-radius: 9px; padding: 8px 10px; }
.p-spec svg { color: #6f8ec4; flex: none; }
.p-price { display: flex; align-items: flex-end; gap: 6px; margin-top: auto; padding-top: 8px; }
.p-price .cur { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.p-price .num { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.p-price .per { font-size: 12.5px; color: var(--dim); margin-bottom: 4px; }
.p-card .p-action { margin-top: 16px; display: flex; gap: 8px; }
.p-card .p-action .btn { flex: 1; }
.stock-tag { font-size: 11.5px; color: var(--ok); white-space: nowrap; flex: none; }
.stock-tag.low { color: var(--warn); }
.stock-tag.out { color: var(--danger); }

/* ---------------- 特性 ---------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(14, 19, 28, .7); transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: #2c3950; transform: translateY(-2px); }
.feature .fi {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(47, 107, 255, .22), rgba(47, 107, 255, .05)); color: var(--brand-2);
  border: 1px solid rgba(47, 107, 255, .22);
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------------- 流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px; border-radius: var(--radius); background: rgba(14, 19, 28, .6); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 12px; color: var(--brand-2); letter-spacing: .1em;
}
.step h3 { font-size: 15px; margin: 8px 0 6px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------------- 节点表 ---------------- */
.node-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(14, 19, 28, .7); border: 1px solid var(--line); }
.node .n-flag { width: 34px; height: 24px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(47, 107, 255, .14); color: var(--brand-2); }
.node .n-name { font-size: 14px; }
.node .n-desc { font-size: 12px; color: var(--dim); }

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, .012);
}
.table td { padding: 14px 16px; border-bottom: 1px solid rgba(30, 37, 52, .7); vertical-align: middle; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .t-main { font-weight: 600; }
.table .t-sub { font-size: 12px; color: var(--dim); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.table-empty { padding: 56px 20px; text-align: center; color: var(--dim); }

/* ---------------- 侧边栏应用布局 ---------------- */
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; padding: 28px 0 64px; align-items: start; }
.side {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 16, 24, .8);
  padding: 14px; backdrop-filter: blur(12px);
}
.side-user { display: flex; align-items: center; gap: 12px; padding: 10px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side-user .avatar { width: 38px; height: 38px; font-size: 15px; }
.side-user .su-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.side-user .su-mail { font-size: 12px; color: var(--dim); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 500; transition: background .16s ease, color .16s ease;
}
.side-link:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.side-link.active { background: linear-gradient(90deg, rgba(47, 107, 255, .18), rgba(47, 107, 255, .04)); color: #cfe0ff; }
.side-link .badge { margin-left: auto; }
.side-link svg { flex: none; opacity: .85; }
.side-foot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.main-col { min-width: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0; }
.page-head .sub { font-size: 13.5px; color: var(--dim); margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20, 26, 38, .85), rgba(12, 16, 24, .85)); }
.stat-card .sc-label { font-size: 12.5px; color: var(--dim); letter-spacing: .04em; }
.stat-card .sc-value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.stat-card .sc-foot { font-size: 12px; color: var(--muted); margin-top: 8px; }
.stat-card.accent { border-color: rgba(47, 107, 255, .35); background: linear-gradient(160deg, rgba(47, 107, 255, .16), rgba(12, 16, 24, .9)); }

/* 服务器卡（控制台） */
.srv-list { display: grid; gap: 14px; }
.srv {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 25, 37, .92), rgba(11, 15, 23, .92));
  transition: border-color .2s ease, transform .2s ease;
}
.srv:hover { border-color: #2e3b52; transform: translateY(-2px); }
.srv-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.srv-meta { font-size: 12.5px; color: var(--dim); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.srv-ip { font-family: var(--mono); color: #b9cdf0; }
.srv-meters { display: grid; gap: 8px; }
.srv-meter .m-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-bottom: 4px; }
.srv-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 服务器详情 */
.srv-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(140deg, rgba(30, 44, 72, .7), rgba(12, 16, 24, .9)); margin-bottom: 22px; }
.srv-hero h1 { font-size: 24px; margin: 0 0 6px; }
.srv-hero .ip { font-family: var(--mono); color: #b9cdf0; font-size: 13.5px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.kv .k { font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.kv .v { font-size: 15px; font-weight: 600; margin-top: 3px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 12px 16px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 进度环 / 大数字 */
.gauge { display: flex; align-items: center; gap: 14px; }
.gauge .g-num { font-size: 22px; font-weight: 800; font-family: var(--mono); }

/* ---------------- 登录注册 ---------------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(700px 400px at 20% 20%, rgba(47, 107, 255, .18), transparent 60%), linear-gradient(160deg, #0a0e17, #05070c);
  border-right: 1px solid var(--line);
}
.auth-side h2 { font-size: clamp(26px, 3vw, 38px); }
.auth-side p { color: var(--muted); max-width: 420px; }
.auth-points { margin-top: 32px; display: grid; gap: 14px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.auth-point .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(43, 214, 123, .14); color: var(--ok); flex: none; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 28px; margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); margin-bottom: 28px; font-size: 14px; }
.captcha-img { height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); cursor: pointer; background: #fff; }

/* ---------------- 提示 / 弹窗 ---------------- */
.flash-wrap { position: fixed; top: calc(var(--nav-h) + 16px); right: 20px; z-index: 90; display: grid; gap: 10px; max-width: 360px; }
.flash {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: #0f1420; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 14px; animation: slideIn .25s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.flash.success { border-color: rgba(43, 214, 123, .35); }
.flash.error { border-color: rgba(255, 95, 109, .35); }
.flash.warn { border-color: rgba(255, 176, 32, .35); }

dialog.modal {
  border: 1px solid var(--line-2); border-radius: 16px; background: #0d1119; color: var(--text);
  padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
dialog.modal::backdrop { background: rgba(3, 5, 9, .72); backdrop-filter: blur(3px); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { background: none; border: 0; color: var(--dim); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 22px 0 4px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 13.5px; color: var(--muted);
}
.pagination a:hover { border-color: #3b4964; color: var(--text); }
.pagination .active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 64px 24px; color: var(--dim); }
.empty .e-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.empty h3 { font-size: 16px; color: var(--muted); margin-bottom: 6px; }
.empty p { font-size: 13.5px; margin-bottom: 18px; }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 40px; background: rgba(6, 8, 13, .6); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }

/* ---------------- 管理后台 ---------------- */
.adm-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.adm-side { border-right: 1px solid var(--line); background: #080b12; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; font-weight: 800; }
.adm-brand img { width: 26px; }
.adm-nav { display: grid; gap: 2px; }
.adm-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; }
.adm-link:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.adm-link.active { background: rgba(47, 107, 255, .14); color: #cfe0ff; }
.adm-group { font-size: 11px; letter-spacing: .12em; color: var(--dim); padding: 16px 12px 6px; text-transform: uppercase; }
.adm-main { padding: 24px 28px 60px; min-width: 0; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.adm-top h1 { font-size: 21px; margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { height: 38px; width: auto; min-width: 180px; }

/* 通用工具类 */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.text-ok { color: var(--ok); } .text-warn { color: var(--warn); } .text-danger { color: var(--danger); } .text-brand { color: var(--brand-2); }

.divider { height: 1px; background: var(--line); margin: 20px 0; }
.notice-item { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(14, 19, 28, .6); }
.notice-item.unread { border-color: rgba(47, 107, 255, .35); background: rgba(47, 107, 255, .06); }

.ticket-thread { display: grid; gap: 14px; }
.msg { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(14, 19, 28, .7); }
.msg.admin { border-color: rgba(47, 107, 255, .3); background: rgba(47, 107, 255, .07); }
.msg .m-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin-bottom: 8px; }
.msg .m-body { white-space: pre-wrap; font-size: 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { height: 380px; }
  .p-grid, .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .side { position: static; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side-link { white-space: nowrap; padding: 9px 12px; font-size: 13px; }
  .side-user, .side-foot { display: none; }
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .adm-nav { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .adm-group { display: none; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .hero-visual { height: 400px; }
  .server-card { width: 232px; }
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .section { padding: 54px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 44px 0 30px; }
  .hero-stats { gap: 26px; }
  .hero-visual { height: 320px; transform: scale(.86); transform-origin: center top; }
  .server-card { width: 250px; padding: 14px 16px; }
  .server-card:nth-child(1) { transform: translate3d(-16px, -92px, 20px) rotate(-5deg); }
  .server-card:nth-child(2) { transform: translate3d(14px, 4px, 0) rotate(3deg); }
  .server-card:nth-child(3) { transform: translate3d(-2px, 96px, -20px) rotate(-2deg); }
  .p-grid, .features, .steps, .node-list, .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .srv { grid-template-columns: 1fr; gap: 14px; }
  .srv-actions { justify-content: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .sc-value { font-size: 22px; }
  .table { min-width: 620px; }
  .card { padding: 18px; }
  .adm-main { padding: 18px 14px 48px; }
  .flash-wrap { left: 12px; right: 12px; max-width: none; }
  h1 { font-size: 28px; }
}

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