/* 澎启云 SaaS —— 控制台与官网共用样式 */
:root {
  --brand: #ff5a00;
  --brand-2: #ff8a3d;
  --brand-soft: #fff3ec;
  --ink: #14161a;
  --ink-2: #3d4148;
  --ink-3: #6b717b;
  --muted: #9aa0a8;
  --line: #e9ebef;
  --bg: #f4f5f7;
  --card: #fff;
  --ok: #12a150;
  --warn: #d97706;
  --bad: #e0393e;
  --info: #2563eb;
  --nav: #141821;
  --nav-2: #1c2230;
  --r: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13px; cursor: pointer;
  transition: .16s ease; white-space: nowrap;
}
.btn:hover { border-color: #d8dbe0; background: #fafbfc; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #ea5200; border-color: #ea5200; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn.ghost:hover { background: #f2f3f5; }
.btn.sm { height: 30px; padding: 0 2px; font-size: 12.5px; }
.btn.sm:not(.ghost) { padding: 0 11px; }
.btn.lg { height: 44px; font-size: 14.5px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.danger { color: var(--bad); border-color: #f6d5d6; background: #fff7f7; }
.btn.danger:hover { background: #ffecec; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-size: 12.5px; cursor: pointer; }
.link-btn.gray { color: var(--ink-3); }
.link-btn:hover { text-decoration: underline; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.field > label em { color: var(--bad); font-style: normal; margin-left: 2px; }
.input, .select, textarea.input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 13.5px; color: var(--ink); outline: none; transition: .16s;
  font-family: inherit;
}
textarea.input { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 0, .1); }
.input::placeholder { color: #b6bac1; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0a8' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.form-error { display: none; margin-bottom: 12px; padding: 9px 12px; border-radius: 8px; background: #fff2f2; color: #b42318; font-size: 12.5px; }
.form-error.show { display: block; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.7; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }

/* ---------------- 卡片 / 表格 ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; }
.card-head .sp { margin-left: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3);
  padding: 11px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid #f1f2f4; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fcfcfd; }
table.data .r { text-align: right; }
.ops { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty h3 { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.empty p { font-size: 12.5px; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; background: #f2f3f5; color: var(--ink-3); white-space: nowrap; }
.badge.ok { background: #eaf8f0; color: #0f8a45; }
.badge.warn { background: #fff6e8; color: #b45309; }
.badge.bad { background: #fdeeee; color: #c22c30; }
.badge.info { background: #eef4ff; color: #2358c5; }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink, #c24400); }
.tag { font-size: 11.5px; color: var(--ink-3); background: #f4f5f7; border-radius: 5px; padding: 1px 6px; }

/* ---------------- 控制台框架 ---------------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: 226px; flex: none; background: var(--nav); color: #cdd3dd;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side .logo { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; }
.side .logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none;
}
.side .logo > span:last-child { min-width: 0; }
.side .logo b {
  color: #fff; font-size: 15px; letter-spacing: -.2px; display: block; line-height: 1.3;
  max-width: 152px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side .logo span span { display: block; max-width: 152px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .logo span { font-size: 10px; letter-spacing: 1.4px; color: #6f7787; text-transform: uppercase; }
.side .role {
  margin: 0 14px 12px; padding: 8px 11px; border-radius: 9px; background: var(--nav-2);
  font-size: 11.5px; color: #98a1b0; display: flex; align-items: center; gap: 7px;
}
.side .role b { color: #fff; font-weight: 500; font-size: 12.5px; }
.side .role .dot { width: 6px; height: 6px; border-radius: 50%; background: #38d39f; }
.side nav { padding: 4px 10px; flex: 1; overflow-y: auto; }
.side nav a {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 11px; border-radius: 9px;
  font-size: 13.2px; color: #aeb6c2; margin-bottom: 2px; transition: .15s;
}
.side nav a svg { width: 16px; height: 16px; opacity: .8; flex: none; }
.side nav a:hover { background: var(--nav-2); color: #fff; }
.side nav a.on { background: linear-gradient(90deg, var(--brand-soft-strong, rgba(255, 90, 0, .18)), rgba(255, 90, 0, .06)); color: #fff; box-shadow: inset 2px 0 0 var(--brand); }
.side nav .grp { font-size: 10.5px; letter-spacing: 1px; color: #5c6473; padding: 14px 12px 6px; text-transform: uppercase; }
.side .foot { padding: 12px 14px 16px; border-top: 1px solid #222937; font-size: 11.5px; color: #6f7787; }
.side .foot a { color: #9aa3b2; }
.side .foot a:hover { color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 15.5px; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.topbar .sp { margin-left: auto; }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.content { padding: 22px 24px 40px; flex: 1; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; }
.stat .k { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 23px; font-weight: 600; letter-spacing: -.6px; line-height: 1.2; }
.stat .v small { font-size: 11.5px; font-weight: 400; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat .d { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.stat.hl { background: linear-gradient(135deg, #fff, #fff7f2); border-color: #ffe0cd; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button {
  height: 32px; padding: 0 13px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  font-size: 13px; color: var(--ink-3); cursor: pointer;
}
.tabs button:hover { background: #eceef1; }
.tabs button.on { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 500; box-shadow: var(--shadow); }
.tabs button em { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 11.5px; }

.row-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.row-2b { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .row-2, .row-2b { grid-template-columns: 1fr; } }

/* 迷你柱状图 */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 132px; padding: 8px 2px 0; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars .b i { display: block; width: 100%; max-width: 42px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #ffb082, var(--brand)); min-height: 3px; }
.bars .b span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bars .b em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(16, 20, 28, .45); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 520px; max-width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px -18px rgba(16, 24, 40, .35);
}
.modal.wide { width: 720px; }
.modal-head { display: flex; align-items: center; padding: 18px 22px 12px; }
.modal-head h3 { font-size: 16px; }
.modal-head .x { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }
.modal-body { padding: 4px 22px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toast div {
  background: rgba(20, 22, 26, .92); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 9px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); animation: pop .18s ease;
}
#toast div.error { background: #c0292f; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- 登录页 ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-left { background: var(--nav); color: #fff; padding: 54px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-left::after {
  content: ''; position: absolute; width: 460px; height: 460px; right: -160px; bottom: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, .38), transparent 68%);
}
.auth-left .brand { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 600; }
.auth-left .brand .logo-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 17px; }
.auth-left h2 { font-size: 30px; line-height: 1.35; margin: 54px 0 16px; letter-spacing: -.8px; }
.auth-left p.lead { color: #9aa3b2; font-size: 14px; line-height: 1.9; max-width: 430px; }
.auth-left ul { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.auth-left li { display: flex; gap: 10px; font-size: 13px; color: #c3cad5; }
.auth-left li svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.auth-box { width: 100%; max-width: 372px; }
.auth-box h1 { font-size: 22px; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 24px; }
.auth-box .demo { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 16px; font-size: 12px; color: var(--ink-3); }
.auth-box .demo b { color: var(--ink-2); font-weight: 500; }
.auth-box .demo code { background: #f5f6f8; border-radius: 5px; padding: 1px 5px; font-size: 11.5px; }

/* ---------------- 官网 ---------------- */
.site-nav { height: 66px; display: flex; align-items: center; gap: 26px; }
.site-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; }
.site-nav .brand .logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: 15px; }
.site-nav nav { display: flex; gap: 22px; font-size: 13.5px; color: var(--ink-2); }
.site-nav nav a:hover { color: var(--brand); }
.site-nav .sp { margin-left: auto; }
.hero { padding: 62px 0 54px; background: linear-gradient(180deg, #fff, #f7f8fa); border-bottom: 1px solid var(--line); }
.hero .inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.28; letter-spacing: -1.2px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 15px; color: var(--ink-3); line-height: 1.95; margin: 18px 0 26px; max-width: 520px; }
.hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.hero .preview { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .28); overflow: hidden; }
.hero .preview .bar { height: 34px; background: #f7f8fa; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.hero .preview .bar i { width: 8px; height: 8px; border-radius: 50%; background: #dfe2e7; }
.hero .preview .body { padding: 16px; display: grid; gap: 10px; }
.hero .preview .kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero .preview .kpi div { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; }
.hero .preview .kpi b { display: block; font-size: 17px; letter-spacing: -.5px; }
.hero .preview .kpi span { font-size: 10.5px; color: var(--muted); }
.hero .preview .line { height: 9px; border-radius: 5px; background: linear-gradient(90deg, #eceef1, #f6f7f9); }
.hero .preview .line.w60 { width: 60%; }
.hero .preview .chart { display: flex; align-items: flex-end; gap: 7px; height: 74px; padding-top: 6px; }
.hero .preview .chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #ffc8a8, var(--brand)); }

.section { padding: 62px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head h2 { font-size: 27px; letter-spacing: -.6px; }
.section-head p { color: var(--ink-3); font-size: 13.5px; margin: 10px 0 0; line-height: 1.9; }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mod { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; transition: .18s; }
.mod:hover { border-color: #ffd3b8; box-shadow: var(--shadow); transform: translateY(-2px); }
.mod .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 13px; }
.mod .ic svg { width: 19px; height: 19px; }
.mod h3 { font-size: 14.5px; margin-bottom: 6px; }
.mod p { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; margin: 0; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; position: relative; }
.price-card.pop { border-color: var(--brand); box-shadow: 0 18px 40px -22px rgba(255, 90, 0, .45); }
.price-card .pt { font-size: 12px; color: var(--muted); }
.price-card h3 { font-size: 17px; margin: 4px 0 10px; }
.price-card .amt { font-size: 30px; font-weight: 600; letter-spacing: -1px; }
.price-card .amt small { font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 9px; }
.price-card li { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 7px; line-height: 1.65; }
.price-card li svg { width: 14px; height: 14px; color: var(--ok); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }
.pop-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 20px; }

.calc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-top: 18px; }
.calc .row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.calc label { font-size: 12.5px; color: var(--ink-3); display: block; margin-bottom: 7px; }
.calc .sum { margin-left: auto; text-align: right; }
.calc .sum b { font-size: 26px; letter-spacing: -1px; }
.calc .sum span { display: block; font-size: 11.5px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.info-card h3 { font-size: 15px; margin-bottom: 8px; }
.info-card p { font-size: 12.8px; color: var(--ink-3); line-height: 1.9; margin: 0 0 14px; }
.info-card ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 2; }

.site-foot { background: var(--nav); color: #98a1b0; padding: 44px 0 26px; font-size: 12.5px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-foot h4 { color: #fff; font-size: 13px; margin-bottom: 12px; }
.site-foot a { display: block; padding: 4px 0; }
.site-foot a:hover { color: #fff; }
.site-foot .bottom { border-top: 1px solid #222937; margin-top: 30px; padding-top: 18px; display: flex; gap: 14px; color: #6f7787; }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .hero .inner, .two-col { grid-template-columns: 1fr; }
  .mod-grid, .price-grid { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .side { position: fixed; left: -240px; z-index: 100; transition: .2s; }
  .side.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .content { padding: 16px 14px 32px; }
  .topbar { padding: 0 14px; }
  .burger { display: inline-flex !important; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.burger { display: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }

.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-pick .p { border: 1px solid var(--line); border-radius: 11px; padding: 12px; cursor: pointer; transition: .15s; background: #fff; }
.plan-pick .p:hover { border-color: #ffc7a6; }
.plan-pick .p.on { border-color: var(--brand); background: var(--brand-soft); }
.plan-pick .p b { font-size: 13.5px; display: block; }
.plan-pick .p span { font-size: 11.5px; color: var(--ink-3); }
.plan-pick .p em { font-style: normal; font-size: 15px; font-weight: 600; display: block; margin-top: 6px; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; color: var(--ink-2); }
.progress { height: 7px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
