:root {
  --bg: #0f1420;
  --bg2: #151c2c;
  --card: #1a2338;
  --card2: #212d47;
  --border: #2a3a5c;
  --text: #e6ecff;
  --muted: #8b9ac2;
  --accent: #4f7cff;
  --accent2: #6c5ce7;
  --ok: #2ecc71;
  --warn: #f39c12;
  --bad: #e74c3c;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, #0c1220 100%);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[v-cloak] { display: none; }

.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: var(--bg2); border-right: 1px solid var(--border);
  padding: 20px 12px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.logo { font-size: 18px; font-weight: 700; padding: 6px 12px 18px; letter-spacing: .5px; }
.logo .dot { color: var(--accent); }
.nav-section { margin-top: 14px; }
.nav-label { font-size: 11px; color: var(--muted); padding: 0 12px 4px; text-transform: uppercase; letter-spacing: 1px; }
.nav-item {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); margin-bottom: 2px;
}
.nav-item:hover { background: var(--card); color: var(--text); text-decoration: none; }
.nav-item.active { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.main { flex: 1; padding: 28px 32px; max-width: 1200px; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar h1 { font-size: 22px; }
.userchip { display: flex; align-items: center; gap: 10px; color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.card h3 { font-size: 15px; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; }
.grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat .num { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat .label { color: var(--muted); font-size: 12px; }

.btn {
  display: inline-block; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 14px; transition: filter .15s;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.danger { background: var(--bad); }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }

input, select, textarea {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 12px; font-size: 14px; width: 100%; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
tr:hover td { background: rgba(79, 124, 255, 0.04); }
.table-wrap { overflow-x: auto; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; }
.tag.ok { background: rgba(46, 204, 113, .15); color: var(--ok); }
.tag.bad { background: rgba(231, 76, 60, .15); color: var(--bad); }
.tag.warn { background: rgba(243, 156, 18, .15); color: var(--warn); }
.tag.info { background: rgba(79, 124, 255, .15); color: var(--accent); }

.progress { background: var(--bg2); border-radius: 6px; height: 10px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.auth-card h2 { text-align: center; margin-bottom: 22px; }

.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 99;
  padding: 10px 22px; border-radius: 10px; background: var(--card2); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.toast.ok { border-color: var(--ok); }
.toast.bad { border-color: var(--bad); }

.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; width: 560px; max-height: 86vh; overflow-y: auto; }
.modal h3 { margin-bottom: 16px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.plan-card .price { font-size: 26px; font-weight: 700; margin: 8px 0; }
.plan-card .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-card ul { list-style: none; margin: 10px 0 16px; color: var(--muted); }
.plan-card ul li::before { content: "✓ "; color: var(--ok); }

.muted { color: var(--muted); }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }

.footer { text-align: center; color: var(--muted); padding: 30px 0 40px; font-size: 12px; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bar-chart .bar { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bar-chart .bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.dl-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.dl-card .icon { font-size: 34px; }
.dl-card .icon.svg { display: flex; justify-content: center; color: var(--text); }
.dl-card .icon.svg svg { width: 46px; height: 46px; }
.dl-card p { min-height: 42px; font-size: 12.5px; line-height: 1.7; }
.steps li { margin: 8px 0; color: var(--muted); }

/* 落地首页 */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 40px; }
.landing-nav .row a { margin-left: 22px; color: var(--muted); }
.landing-nav .row a:hover { color: var(--text); }
.landing-hero { text-align: center; padding: 70px 20px 40px; }
.hero-icon { font-size: 64px; }
.landing-hero h1 { font-size: 40px; margin: 14px 0 10px; }
.landing-hero p { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.landing-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; width: 90%; }
.feat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; }
.feat-icon { font-size: 30px; }
.feat h3 { margin: 8px 0 4px; }
.feat p { color: var(--muted); font-size: 13px; }

/* ---- Landing v4（玻璃拟态 · 桌面/移动双端适配）---- */
.lnav { position: sticky; top: 0; z-index: 20; background: rgba(15, 20, 32, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42,58,92,.45); }
.lnav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; }
.lnav-brand { font-size: 19px; font-weight: 800; cursor: pointer; letter-spacing: .3px; }
.lnav-brand span { background: linear-gradient(90deg, #4f7cff, #9b59ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lnav-links { display: flex; align-items: center; }
.lnav-links a { margin-left: 28px; color: var(--muted); cursor: pointer; font-size: 14px; }
.lnav-links a:hover, .lnav-links a.on { color: var(--text); text-decoration: none; }
.lnav-links a.on { color: var(--accent); }
.lnav-cta { padding: 8px 18px; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff !important; font-weight: 600; box-shadow: 0 4px 18px rgba(79,124,255,.35); }
.lnav-cta:hover { filter: brightness(1.12); }
.auth-page { min-height: 100vh; }
.auth-page .auth-wrap { min-height: calc(100vh - 60px); }

.hero4 {
  position: relative; text-align: center; padding: 104px 24px 88px; overflow: hidden;
  background:
    radial-gradient(920px 440px at 50% -120px, rgba(79, 124, 255, .24), transparent 70%),
    radial-gradient(640px 400px at 10% 42%, rgba(108, 92, 231, .11), transparent 72%),
    radial-gradient(640px 400px at 90% 42%, rgba(14, 165, 180, .10), transparent 72%);
}
.hero-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(79,124,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(79,124,255,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); }
.hero-core { position: relative; max-width: 980px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(79,124,255,.4);
  background: rgba(79,124,255,.1); color: #aebfff; padding: 7px 18px; border-radius: 999px; font-size: 13px; margin-bottom: 28px; }
.hero4 h1 { font-size: clamp(38px, 4.4vw, 72px); line-height: 1.2; margin: 0 0 20px; font-weight: 800; letter-spacing: 1px; }
.grad { background: linear-gradient(92deg, #4f7cff 0%, #9b59ff 55%, #4fe0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub4 { color: var(--muted); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.9; margin-bottom: 34px; }
.hero-btns { justify-content: center; gap: 18px; }
.btn.hero-cta4 { background: linear-gradient(90deg, var(--accent), var(--accent2)); padding: 15px 36px;
  font-size: clamp(14px, 1vw, 16px); font-weight: 600; border-radius: 12px; box-shadow: 0 8px 30px rgba(79,124,255,.4); }
.btn.hero-cta4:hover { filter: brightness(1.12); box-shadow: 0 10px 36px rgba(79,124,255,.55); }
.btn.ghost.lg { padding: 15px 32px; font-size: clamp(14px, 1vw, 16px); border-radius: 12px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(30px, 4vw, 76px); margin-top: 60px; flex-wrap: wrap; }
.hs b { display: block; font-size: clamp(24px, 1.8vw, 32px); font-weight: 800;
  background: linear-gradient(90deg, #4f7cff, #9b59ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs span { color: var(--muted); font-size: 13px; }

/* width:100% 必须显式声明：flex column 子项的交叉轴 auto margin 会禁用 stretch，
   使区块收缩到内容宽（曾导致定价/特性区在桌面缩成窄条） */
.sec4 { width: 100%; max-width: 1200px; margin: 0 auto; padding: 72px 32px 16px; }
.sec4#pricing { scroll-margin-top: 84px; }
.sec-title { text-align: center; margin-bottom: 8px; }
.sec-title h2 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 800; }
.sec-title p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); justify-content: center;
  gap: 24px; margin-top: 40px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(33,45,71,.55), rgba(26,35,56,.9));
  border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px; transition: .2s; }
.price-card:hover { transform: translateY(-6px); border-color: rgba(79,124,255,.6); }
.price-card.hot { border-color: rgba(79,124,255,.75); box-shadow: 0 12px 44px rgba(79,124,255,.22);
  background: linear-gradient(180deg, rgba(79,124,255,.1), rgba(26,35,56,.92)); }
.pc-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; font-size: 12px;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 17px; margin: 6px 0 4px; }
.price-num { font-size: clamp(34px, 2.6vw, 44px); font-weight: 800; margin: 10px 0 2px; }
.price-num small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pc-per { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.price-card ul { list-style: none; margin: 0 0 20px; color: var(--muted); font-size: 13.5px; flex: 1; }
.price-card ul li { margin: 9px 0; }
.price-card ul li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.pay-strip { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.pay-chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 7px 18px; font-size: 13px; color: var(--muted); }
.pay-chip.crypto { border-color: rgba(243,156,18,.5); color: #f5b45d; }

.feat4-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.feat4 { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; transition: .2s; }
.feat4:hover { border-color: rgba(79,124,255,.55); transform: translateY(-4px); }
.f4-ic { width: 54px; height: 54px; border-radius: 14px; font-size: 25px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.f4-ic.c1 { background: rgba(79,124,255,.16); } .f4-ic.c2 { background: rgba(46,204,113,.16); }
.f4-ic.c3 { background: rgba(231,76,60,.14); } .f4-ic.c4 { background: rgba(243,156,18,.16); }
.f4-ic.c5 { background: rgba(108,92,231,.18); } .f4-ic.c6 { background: rgba(79,200,255,.14); }
.feat4 h3 { margin-bottom: 6px; } .feat4 p { color: var(--muted); font-size: 13px; }

.steps4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; text-align: center; }
.step4 .num { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 6px 20px rgba(79,124,255,.35); }
.step4 h3 { margin-bottom: 4px; } .step4 p { color: var(--muted); font-size: 13px; }

.cta-band { width: 100%; max-width: 1200px; margin: 56px auto 0; padding: 0 32px; }
.cta-inner { position: relative; overflow: hidden; text-align: center; border-radius: 22px; padding: clamp(52px, 5vw, 76px) 40px;
  background: linear-gradient(120deg, rgba(79,124,255,.16), rgba(108,92,231,.16)); border: 1px solid rgba(79,124,255,.35); }
.cta-inner h2 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; }

.footer4 { border-top: 1px solid var(--border); margin-top: 64px; padding: 40px 24px 48px; text-align: center; }
.f4-brand { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.f4-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 14px; flex-wrap: wrap; }
.f4-links a { color: var(--muted); font-size: 13px; }
.f4-links a:hover { color: var(--text); }

@media (min-width: 1600px) {
  .lnav-inner, .sec4, .cta-band { max-width: 1320px; }
  .hero-core { max-width: 1080px; }
}

@media (max-width: 720px) {
  .lnav-inner { padding: 12px 18px; }
  .lnav-links a { margin-left: 15px; font-size: 13px; }
  .hero4 { padding: 64px 16px 56px; }
  .hero4 h1 { font-size: 36px; }
  .hero-stats { gap: 26px; }
  .price-card:hover { transform: none; }
}

/* 看板分布条形 */
.dist-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; }
.dist-label { width: 76px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-bar { flex: 1; background: var(--bg2); border-radius: 6px; height: 12px; overflow: hidden; }
.dist-bar > div { height: 100%; background: linear-gradient(90deg, #4f7cff, #6c5ce7); border-radius: 6px; }
.dist-num { width: 34px; text-align: right; color: var(--accent); font-weight: 600; }
