/* ============================================================
   嘉燊互联 - 主样式表
   ============================================================ */
:root {
  --brand: #2563eb;
  --brand-2: #4f46e5;
  --brand-grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #f7f9fc;
  --white: #fff;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .13);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- 顶部公告 ---------------- */
.topbar {
  background: #0b1220;
  color: #cbd5e1;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.topbar a:hover { color: #fff; }
.topbar .tb-r { display: flex; gap: 18px; align-items: center; }

/* ---------------- 头部导航 ---------------- */
.site-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; height: 68px; gap: 30px; }

.logo { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 19px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-3); letter-spacing: 2.2px; line-height: 1; margin-top: 1px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.main-nav > a, .main-nav .drop > a {
  padding: 9px 15px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: .18s; display: inline-flex; align-items: center; gap: 5px;
}
.main-nav > a:hover, .main-nav .drop > a:hover { background: #eef2ff; color: var(--brand); }
.main-nav > a.active { color: var(--brand); background: #eff4ff; font-weight: 600; }

.drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.drop:hover .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 9px; font-size: 14.5px; color: var(--ink-2); transition: .15s;
}
.drop-menu a:hover { background: #f1f5f9; color: var(--brand); }
.drop-menu .ic {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: 15px; color: #fff; flex: none;
}

.header-cta { display: flex; align-items: center; gap: 10px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, .4); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 34px; font-size: 16.5px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-danger { background: #fef2f2; color: var(--red); border-color: #fecaca; }
.btn-danger:hover { background: var(--red); color: #fff; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 78% -8%, #4f46e5 0%, transparent 55%),
              radial-gradient(900px 520px at 12% 108%, #0ea5e9 0%, transparent 52%),
              linear-gradient(150deg, #0b1220 0%, #131c33 55%, #1c2350 100%);
  color: #fff; padding: 88px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 15px; border-radius: 100px; font-size: 13.5px; color: #dbeafe; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.hero h1 { font-size: 50px; line-height: 1.18; font-weight: 800; letter-spacing: -.5px; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg,#60a5fa,#a78bfa,#f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17.5px; color: #b6c2d6; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 44px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.13); }
.hero-stats b { display: block; font-size: 30px; font-weight: 800; }
.hero-stats span { font-size: 13.5px; color: #94a3b8; }

/* 终端卡片 */
.term {
  background: #0d1526; border: 1px solid rgba(255,255,255,.1); border-radius: 15px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45); overflow: hidden; font-family: "JetBrains Mono", Consolas, monospace;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; background: #131d33; border-bottom: 1px solid rgba(255,255,255,.07); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; font-size: 12px; color: #64748b; }
.term-body { padding: 20px; font-size: 13.2px; line-height: 2; color: #94a3b8; }
.term-body .c1 { color: #4ade80; } .term-body .c2 { color: #60a5fa; } .term-body .c3 { color: #f0abfc; } .term-body .c4 { color: #fbbf24; }
.term-body .mut { color: #475569; }
.cursor { display: inline-block; width: 8px; height: 15px; background: #4ade80; vertical-align: -2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- 区块 ---------------- */
section.blk { padding: 86px 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.sec-head .kicker { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.sec-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 14px; }
.sec-head p { color: var(--ink-3); font-size: 16.5px; }

/* ---------------- 产品卡 ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .25s; position: relative; overflow: hidden;
}
.pcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--pc, var(--brand)); transform: scaleX(0); transform-origin: left; transition: .3s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard:hover::before { transform: scaleX(1); }
.pcard .pic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 24px; color: #fff; margin-bottom: 18px; background: var(--pc, var(--brand));
  box-shadow: 0 8px 18px -4px var(--pc, var(--brand));
}
.pcard h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.pcard p { color: var(--ink-3); font-size: 14.5px; min-height: 44px; margin-bottom: 16px; }
.pcard .pfoot { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px dashed var(--line); }
.pcard .price { font-size: 22px; font-weight: 800; color: var(--pc, var(--brand)); }
.pcard .price small { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.pcard .more { font-size: 13.5px; color: var(--ink-3); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pcard:hover .more { color: var(--pc, var(--brand)); }

/* ---------------- 特性 ---------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 26px 22px; transition: .22s; }
.feat:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feat .fi { width: 42px; height: 42px; border-radius: 11px; background: #eff4ff; color: var(--brand); display: grid; place-items: center; font-size: 20px; margin-bottom: 15px; }
.feat h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 7px; }
.feat p { font-size: 14px; color: var(--ink-3); }

/* ---------------- 场景 ---------------- */
.bg-white { background: #fff; }
.scene-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.scene-row.rev .scene-txt { order: 2; }
.scene-txt h3 { font-size: 30px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.3px; }
.scene-txt p { color: var(--ink-3); font-size: 16px; margin-bottom: 22px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); }
.check-list li::before {
  content: "✓"; flex: none; width: 21px; height: 21px; border-radius: 50%;
  background: #dcfce7; color: #16a34a; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 3px;
}
.scene-art {
  background: linear-gradient(145deg, #eef4ff, #f7f9ff); border: 1px solid #dbe7ff;
  border-radius: 20px; padding: 34px; box-shadow: var(--shadow);
}
.mini-node { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.mini-node .md { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.mini-node b { font-size: 14.5px; font-weight: 600; }
.mini-node small { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-family: Consolas, monospace; }

/* ---------------- CTA 条 ---------------- */
.cta-band {
  background: var(--brand-grad); color: #fff; border-radius: 22px;
  padding: 52px 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  box-shadow: 0 24px 60px rgba(37,99,235,.32); flex-wrap: wrap;
}
.cta-band h3 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: #dbeafe; font-size: 16px; }
.cta-band .btn-ghost { background: #fff; color: var(--brand); border-color: transparent; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0b1220; color: #94a3b8; padding: 62px 0 28px; margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo small { color: #64748b; }
.site-footer .fb { font-size: 14px; line-height: 1.9; max-width: 320px; }
.site-footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { font-size: 14px; transition: .15s; }
.site-footer ul a:hover { color: #fff; }
.foot-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap; }
.foot-bottom .icp { color: #64748b; }

/* ---------------- 通用页面头 ---------------- */
.page-hero {
  background: linear-gradient(135deg, #0b1220, #172145 70%, #232a5e);
  color: #fff; padding: 62px 0 58px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 20% 0%, #000, transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .crumb { font-size: 13.5px; color: #94a3b8; margin-bottom: 12px; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.4px; }
.page-hero p { color: #b6c2d6; font-size: 16.5px; max-width: 700px; }
.page-hero .tag { display: inline-block; background: rgba(96,165,250,.16); color: #93c5fd; border: 1px solid rgba(96,165,250,.3); padding: 5px 13px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }

/* ---------------- 文章排版 ---------------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; }
.doc h2 { font-size: 24px; font-weight: 800; margin: 34px 0 16px; padding-left: 14px; border-left: 4px solid var(--brand); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18.5px; font-weight: 700; margin: 24px 0 11px; }
.doc p { color: var(--ink-2); margin-bottom: 14px; font-size: 15.5px; }
.doc ol, .doc ul { margin: 0 0 16px 22px; color: var(--ink-2); font-size: 15.5px; }
.doc li { margin-bottom: 9px; }
.doc code { background: #f1f5f9; padding: 2px 7px; border-radius: 5px; font-family: Consolas, monospace; font-size: 13.8px; color: #b91c1c; }
.doc pre {
  background: #0d1526; color: #cbd5e1; padding: 18px 20px; border-radius: 11px;
  overflow-x: auto; font-family: Consolas, monospace; font-size: 13.5px; line-height: 1.85; margin-bottom: 18px;
}
.doc pre .c1 { color: #4ade80; } .doc pre .c2 { color: #60a5fa; } .doc pre .c3 { color: #64748b; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.doc th { background: #f8fafc; font-weight: 700; }
.doc .note { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid var(--brand); padding: 15px 18px; border-radius: 10px; color: #1e40af; font-size: 14.5px; margin-bottom: 18px; }

/* 侧边目录 */
.doc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 30px; align-items: start; }
.doc-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.doc-side h4 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 13px; }
.doc-side a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); transition: .15s; }
.doc-side a:hover, .doc-side a.on { background: #eff4ff; color: var(--brand); font-weight: 600; }

/* ---------------- 软件下载 ---------------- */
.soft-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 24px; display: flex; gap: 18px; align-items: center; transition: .22s; }
.soft-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.soft-card .si { width: 52px; height: 52px; border-radius: 13px; background: #eff4ff; color: var(--brand); display: grid; place-items: center; font-size: 24px; flex: none; }
.soft-card h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.soft-card p { font-size: 13.5px; color: var(--ink-3); margin-bottom: 9px; }
.soft-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #f1f5f9; color: var(--ink-3); font-size: 12px; padding: 3px 9px; border-radius: 6px; font-family: Consolas, monospace; }

/* ---------------- 表单 ---------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14.5px; color: var(--ink); background: #fff; transition: .18s; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.textarea { resize: vertical; min-height: 108px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 提示条 */
.alert { padding: 13px 17px; border-radius: 10px; font-size: 14.5px; margin-bottom: 20px; display: flex; gap: 9px; align-items: center; }
.alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ---------------- 登录页 ---------------- */
.auth-bg {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(900px 500px at 82% 8%, #4f46e5 0%, transparent 52%),
              radial-gradient(760px 460px at 10% 96%, #0ea5e9 0%, transparent 50%),
              linear-gradient(145deg, #0b1220, #16203c);
}
.auth-card { width: 100%; max-width: 430px; background: #fff; border-radius: 20px; padding: 40px 38px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.auth-card .auth-logo { display: flex; align-items: center; gap: 11px; justify-content: center; margin-bottom: 26px; }
.auth-card h1 { font-size: 23px; font-weight: 800; text-align: center; margin-bottom: 7px; }
.auth-card .sub { text-align: center; color: var(--ink-3); font-size: 14.5px; margin-bottom: 28px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-demo { margin-top: 18px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 15px; font-size: 13px; color: var(--ink-3); line-height: 1.85; }
.auth-demo code { color: var(--brand); font-weight: 600; }

/* 认证页：单页三段式切换 */
.auth-tabs { display: flex; background: #f1f5f9; border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth-tabs a {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-3); transition: .18s;
}
.auth-tabs a.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(15,23,42,.09); }
.auth-captcha { display: flex; gap: 10px; align-items: stretch; }
.auth-captcha .input { flex: 1; }
.auth-captcha img {
  width: 118px; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  cursor: pointer; background: #f1f5f9; flex: none; object-fit: cover;
}
.auth-divider { text-align: center; color: var(--ink-3); font-size: 13px; margin: 20px 0 16px; position: relative; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 42px); height: 1px; background: var(--line);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 22px; }
.auth-steps span {
  font-size: 12px; color: var(--ink-3); background: #f1f5f9; padding: 5px 12px; border-radius: 20px;
}
.auth-steps span.on { background: var(--brand); color: #fff; font-weight: 600; }
.auth-card .pwd-meter { height: 5px; border-radius: 3px; background: #e2e8f0; overflow: hidden; margin-top: 8px; }
.auth-card .pwd-meter i { display: block; height: 100%; width: 0; transition: .25s; }

/* ============================================================
   控制台布局
   ============================================================ */
.console { display: grid; grid-template-columns: 246px 1fr; min-height: 100vh; }

.side {
  background: #0d1526; color: #94a3b8; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .side-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; padding: 6px 10px 20px; }
.side .side-logo small { display: block; font-size: 10px; color: #64748b; letter-spacing: 1.8px; font-weight: 600; }
.side .grp { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #475569; padding: 16px 12px 8px; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 9px; font-size: 14.5px; transition: .16s; }
.side a.nav:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.side a.nav.on { background: linear-gradient(90deg, #2563eb, #4f46e5); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -4px rgba(37,99,235,.6); }
.side a.nav .ni { width: 18px; text-align: center; font-size: 15px; }
.side .side-foot { margin-top: auto; padding-top: 20px; }

.console-main { background: var(--bg); min-height: 100vh; }
.console-top {
  background: #fff; border-bottom: 1px solid var(--line); padding: 0 30px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.console-top h1 { font-size: 18.5px; font-weight: 700; }
.console-top .ct-r { display: flex; align-items: center; gap: 16px; }
.console-top .who { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.console-body { padding: 28px 30px 50px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 22px;
  position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 76px; height: 76px; border-radius: 50%; background: var(--sc, #eff4ff); opacity: .5; }
.stat .st-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--sc, #eff4ff); color: var(--scf, var(--brand)); display: grid; place-items: center; font-size: 19px; margin-bottom: 14px; position: relative; z-index: 2; }
.stat b { font-size: 28px; font-weight: 800; display: block; position: relative; z-index: 2; }
.stat span { font-size: 13.5px; color: var(--ink-3); position: relative; z-index: 2; }

/* 面板 */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; margin-bottom: 22px; }
.panel-head { padding: 17px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel-head h3 { font-size: 16.5px; font-weight: 700; }
.panel-head .ph-sub { font-size: 13.5px; color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.panel-body { padding: 22px; }
.panel-body.p0 { padding: 0; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { background: #f8fafc; text-align: left; padding: 13px 18px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 15px 18px; border-bottom: 1px solid #f1f5f9; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fafbfe; }
.tbl .mono { font-family: Consolas, monospace; font-size: 13.5px; }
.tbl .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 徽标 */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 12.5px; font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-on { background: #dcfce7; color: #15803d; }
.badge-off { background: #f1f5f9; color: #64748b; }
.badge-warn { background: #fef3c7; color: #b45309; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-role { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #92400e; border: 1px solid #fcd34d; }
.badge-role::before { background: linear-gradient(135deg,#f59e0b,#d97706); }

/* 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty .ei { font-size: 46px; opacity: .35; margin-bottom: 14px; }
.empty h4 { font-size: 16.5px; color: var(--ink-2); margin-bottom: 6px; }
.empty p { font-size: 14px; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px);
  display: none; place-items: center; z-index: 999; padding: 24px; overflow-y: auto;
}
.modal-mask.on { display: grid; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .22s ease; max-height: 92vh; overflow-y: auto; }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-head .x { background: none; border: none; font-size: 22px; color: var(--ink-3); line-height: 1; padding: 0 4px; }
.modal-head .x:hover { color: var(--red); }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fafbfe; border-radius: 0 0 16px 16px; }

/* Toast */
.toast-box { position: fixed; top: 22px; right: 22px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 11px; padding: 14px 18px; min-width: 262px; box-shadow: var(--shadow-lg);
  font-size: 14.5px; animation: slidein .26s ease; display: flex; gap: 10px; align-items: center;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
@keyframes slidein { from { transform: translateX(60px); opacity: 0; } }

/* 详情行 */
.kv { display: grid; grid-template-columns: 122px 1fr; gap: 12px 16px; font-size: 14.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { color: var(--ink-2); font-weight: 500; word-break: break-all; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding: 11px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }

/* 平台图标 */
.plat { display: inline-flex; align-items: center; gap: 6px; }
.plat-win::before { content: "⊞"; } .plat-linux::before { content: "🐧"; } .plat-mac::before { content: ""; } .plat-android::before { content: "🤖"; }

/* 响应式 */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .grid-3, .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-row { grid-template-columns: 1fr; gap: 34px; }
  .scene-row.rev .scene-txt { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .console { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .side .grp { display: none; }
  .side .side-foot { margin: 0; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 31px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .grid-3, .grid-4, .stat-grid, .form-row { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 27px; }
  section.blk { padding: 56px 0; }
  .doc { padding: 26px 20px; }
  .cta-band { padding: 34px 26px; }
  .console-body { padding: 18px 16px 40px; }
  .console-top { padding: 0 16px; }
  .topbar .tb-r { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ================= 补充工具类（控制台新功能页） ================= */
.select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; color: var(--ink); background: #fff; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px;
}
.select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.6; }
.req { color: #ef4444; margin-left: 2px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.p0 { padding: 0 !important; }
.ph-sub { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.code-block {
  background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px;
  line-height: 1.7; word-break: break-all; user-select: all;
}
.ip-hero {
  text-align: center; padding: 34px 20px; border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe); border: 1px solid #bfdbfe;
}
.ip-hero .ip-label { font-size: 13.5px; color: #1d4ed8; font-weight: 600; letter-spacing: .5px; }
.ip-hero .ip-value {
  font-size: 40px; font-weight: 800; color: #0f172a; margin: 12px 0 8px;
  font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; word-break: break-all;
}
.ip-hero .ip-sub { font-size: 13.5px; color: var(--ink-3); }

.steps { display: grid; gap: 22px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
}
.step h4 { font-size: 15.5px; margin-bottom: 5px; }
.step p { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; margin-bottom: 10px; }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card {
  display: block; padding: 24px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; text-align: center; transition: .2s cubic-bezier(.4,0,.2,1);
}
.dl-card:hover { border-color: var(--brand); box-shadow: 0 10px 28px rgba(37,99,235,.14); transform: translateY(-3px); }
.dl-ico {
  width: 58px; height: 58px; border-radius: 15px; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 27px; box-shadow: 0 6px 16px rgba(15,23,42,.13);
}
.dl-card h4 { font-size: 16px; margin-bottom: 7px; }
.dl-card p { font-size: 13px; color: var(--ink-3); line-height: 1.65; margin-bottom: 12px; }
.chip {
  display: inline-block; font-size: 12px; color: var(--ink-3);
  background: #f1f5f9; padding: 4px 11px; border-radius: 20px;
}

/* 认证页：找回密码结果区 */
.auth-steps.done span.on { background: #16a34a; }
@media (max-width: 980px) {
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .dl-grid { grid-template-columns: 1fr; }
  .ip-hero .ip-value { font-size: 28px; }
  .kv { grid-template-columns: 1fr; gap: 4px 0; }
  .kv dt { margin-top: 10px; }
}


/* ================= 动态弹窗（promptModal / confirmModal） ================= */
.dyn-modal .dyn-modal-card { width: 100%; }
.dyn-desc { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin: 0 0 18px; }
.dyn-field + .dyn-field { margin-top: 16px; }
.dyn-err {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  font-size: 13.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
}
.dyn-input-wrap { position: relative; display: flex; align-items: center; }
.dyn-input-wrap.has-prefix .input { padding-left: 34px; }
.dyn-prefix {
  position: absolute; left: 13px; font-size: 14.5px; color: var(--ink-3);
  pointer-events: none; line-height: 1;
}
.dyn-modal .modal-foot { gap: 10px; }
.dyn-modal .modal-body { max-height: 62vh; overflow-y: auto; }


/* ===== 订购公网IP / 付款时长选择 ===== */
.grid-2 { display: grid; gap: 20px; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.dur-opt {
  flex: 1 1 calc(50% - 5px);
  min-width: 96px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: center;
  transition: all .16s ease;
  background: var(--white);
  user-select: none;
}
.dur-opt b { display: block; font-size: 13.5px; color: var(--ink); }
.dur-opt small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.dur-opt:hover { border-color: #bfd2fb; }
.dur-opt.on {
  border-color: var(--brand);
  background: #f0f5ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.dur-opt.on b { color: var(--brand); }
.dur-opt.on small { color: var(--brand); font-weight: 600; }
