:root {
  --blue: #0071e3; --blue-h: #0077ed; --ink: #1d1d1f; --ink2: #3a3a3c; --gray: #6e6e73; --gray2: #86868b;
  --bg: #f5f5f7; --line: #f0f0f2; --card: #fff;
  --shadow: 0 1px 3px rgba(0,0,0,.03), 0 20px 50px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }

/* 侧边栏 */
.side { flex: 1 1 280px; max-width: 310px; height: 100vh; position: sticky; top: 0; overflow-y: auto; padding: 36px 20px 28px; background: rgba(250,250,252,.82);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border-right: 1px solid rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 14px; padding: 0 12px; }
.mark { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; }
.brand b { display: block; font-size: 21px; letter-spacing: .02em; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--gray2); margin-top: 2px; }
.grp { font-size: 15px; font-weight: 600; color: var(--gray2); padding: 30px 18px 10px; }
.nav { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; min-height: 54px; padding: 0 18px; border: 0; border-radius: 16px;
  background: transparent; color: var(--ink2); font-size: 18px; font-weight: 500; cursor: pointer; transition: background .15s; }
.nav:hover { background: rgba(0,0,0,.04); }
.nav svg { flex: none; width: 22px; height: 22px; color: #8e8e93; }
.nav.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.07); }
.nav.on svg { color: var(--blue); }
.nav .lab { flex: 1; }
.badge { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; background: rgba(0,0,0,.07); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.nav.on .badge { background: var(--blue); color: #fff; }
.side-foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.quota { padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.03), 0 10px 30px rgba(0,0,0,.05); }
.quota-top { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; }
.quota-top span:last-child { color: var(--blue); }
.bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.quota p { font-size: 15px; color: var(--gray2); margin: 12px 0 0; }
.me-wrap { position: relative; }
.me { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; color: var(--ink); transition: background .15s; }
.me:hover { background: rgba(0,0,0,.05); }
.me span { display: block; }
.me-more { color: var(--gray2); } .me-more svg { width: 20px; height: 20px; }
.me-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-radius: 16px; padding: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.04); z-index: 30; }
.me-pop[hidden] { display: none; }
.me-pop button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; font-size: 16px; color: var(--ink); cursor: pointer; }
.me-pop button:hover { background: rgba(0,0,0,.05); }
.me-pop button.danger { color: #d70015; }
.me-pop svg { width: 18px; height: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: linear-gradient(135deg,#d2d2d7,#a1a1a6); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; }
.me b { display: block; font-size: 18px; } .me span { font-size: 15px; color: var(--gray2); }

/* 主区域 */
.main { flex: 999 1 560px; min-width: 0; padding: 64px 72px 96px; display: flex; flex-direction: column; gap: 40px; max-width: 1320px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 10px; }
h1 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.sub { margin: 14px 0 0; font-size: 19px; color: var(--gray); line-height: 1.5; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); }
.card.flush { padding: 32px 8px 8px; }
h2 { margin: 0 0 24px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--gray); font-size: 15px; line-height: 1.75; }
.row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.row > .grow { flex: 3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.row > .side-col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); gap: 24px; }
.scroll { overflow-x: auto; }

/* 控件 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  background: rgba(0,0,0,.05); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: rgba(0,0,0,.08); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.pri { background: var(--blue); color: #fff; } .btn.pri:hover { background: var(--blue-h); }
.btn.big { min-height: 52px; padding: 0 36px; font-size: 17px; }
.btn.danger { color: #d70015; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-cta { width: 100%; min-height: 54px; margin: 32px 0 4px; font-size: 18px; }
.chip { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(0,113,227,.08); color: #0066cc; white-space: nowrap; }
.chip.warn { background: rgba(255,149,0,.12); color: #a34a00; }
.chip.ok { background: rgba(52,199,89,.12); color: #1a7f37; }
.chip.gray { background: rgba(0,0,0,.06); color: var(--gray); }
.chip.red { background: rgba(255,59,48,.1); color: #c4001a; }
.lbl { display: block; font-size: 13px; font-weight: 500; color: var(--gray2); margin-bottom: 10px; }
.inp { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid transparent; border-radius: 16px; font-size: 16px; background: var(--bg); color: var(--ink); outline: none; transition: all .15s; }
.inp:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
textarea.inp { min-height: 260px; line-height: 1.75; resize: vertical; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; background: rgba(0,0,0,.05); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.pill.on { background: var(--blue); color: #fff; }
.note { padding: 24px 28px; border-radius: 20px; background: rgba(255,149,0,.08); font-size: 15px; line-height: 1.75; color: #6b3300; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }

/* 表格 */
.tbl { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 500; color: var(--gray2); padding: 0 20px 16px; font-size: 13px; white-space: nowrap; }
.tbl td { padding: 22px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl .name { font-size: 17px; font-weight: 600; min-width: 200px; }
.tbl .nowrap { white-space: nowrap; }
.tbl .meta { font-size: 14px; color: var(--gray2); margin-top: 6px; }
.tbl .why { min-width: 200px; max-width: 300px; color: var(--gray); line-height: 1.6; }
.score { display: flex; align-items: center; gap: 12px; }
.score .bar { width: 80px; margin: 0; }
.score b { font-size: 17px; }
.acts { display: flex; gap: 10px; white-space: nowrap; }
.empty { text-align: center; padding: 72px 36px; }
.empty b { display: block; font-size: 22px; font-weight: 600; }

/* 工作台 */
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.fbox { text-align: left; padding: 28px; border-radius: 22px; border: 0; background: var(--bg); cursor: pointer; transition: background .15s; }
.fbox:hover { background: #ececf0; }
.fbox span { font-size: 15px; color: var(--gray); }
.fbox b { display: block; font-size: 52px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-top: 18px; }
.todo { padding: 20px 0; border-top: 1px solid var(--line); font-size: 17px; }
.steps { display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.5; }
.steps div { display: flex; gap: 16px; } .steps .chip { min-width: 32px; text-align: center; }
.integr { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.integr div { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--bg); font-size: 15px; }

/* 开发信 */
.mail-body { white-space: pre-line; font-size: 16px; line-height: 1.8; padding: 28px 32px; border-radius: 20px; background: var(--bg); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.kv span:first-child { color: var(--gray2); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; }

/* 客户 */
.cust-btn { text-align: left; padding: 20px 24px; border-radius: 20px; border: 0; background: transparent; cursor: pointer; width: 100%; transition: background .15s; }
.cust-btn:hover { background: rgba(255,255,255,.6); }
.cust-btn.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 14px 36px rgba(0,0,0,.08); }
.cust-btn .t { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 17px; font-weight: 600; }
.cust-btn p { font-size: 14px; color: var(--gray2); margin: 8px 0 0; }
.big-name { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }

/* 报价 */
.total-box { text-align: right; padding: 8px 0; }
.total-box span { font-size: 15px; color: var(--gray2); }
.total-box b { display: block; font-size: 64px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; margin-top: 8px; }
.sep { height: 1px; background: var(--line); margin: 40px 0 32px; }
.hint { margin-top: 10px; font-size: 13px; color: var(--blue); cursor: pointer; background: none; border: 0; padding: 0; }
.quote-row { cursor: pointer; } .quote-row:hover td { background: #fafafa; }

/* 弹层与提示 */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(29,29,31,.92); color: #fff; padding: 14px 24px; border-radius: 999px; font-size: 15px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0,0,0,.2); z-index: 50; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 24px; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 28px; padding: 36px; box-shadow: 0 30px 80px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 20px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0,113,227,.25); border-top-color: var(--blue); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 1500px) { .main { padding: 56px 48px 88px; } .tbl td { padding: 20px 16px; } .tbl th { padding: 0 16px 14px; } }
@media (max-width: 760px) {
  .main { padding: 32px 20px 64px; } h1 { font-size: 34px; } .side { max-width: none; height: auto; position: static; }
}

/* 登录 */
body.auth .side { display: none; }
body.auth .main { max-width: none; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 20px; }
.login { width: min(440px, 100%); display: flex; flex-direction: column; gap: 22px; padding: 48px 40px; }
.icon-btn { width: 36px; height: 36px; border-radius: 18px; border: 0; background: transparent; color: var(--gray); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn svg { width: 20px; height: 20px; }

/* 版本 */
.ver { font-size: 12px; color: var(--gray2); padding: 0 14px; text-align: center; }
.upd-banner { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,113,227,.35); }
.upd-banner svg { width: 18px; height: 18px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; background: rgba(0,0,0,.05); padding: 2px 6px; border-radius: 6px; }
