/* StorePilot 商家工作台 v3 —— 全宽布局 / 顶部横幅 / 横向导航 */
:root {
  --ink: #0b1b33; --blue: #2e75ff; --blue-soft: #eef4ff;
  --paper: #f4f7fc; --line: rgba(11, 27, 51, 0.09);
  --muted: #5f6d85; --dim: #98a3b6;
  --ok: #1f9d63; --warn: #c98a1b; --danger: #d9534f;
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

/* ---------- 登录 ---------- */
.lg { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(155deg, #071733 0%, #0b2352 55%, #0a1b3c 100%); }
.lg-card { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 32px 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.brand .mk { width: 44px; height: 44px; border-radius: 13px; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.brand .mk img { width: 25px; height: 25px; }
.brand .wm { font-size: 17px; font-weight: 700; }
.brand .wm em { font-style: normal; font-weight: 600; color: var(--muted); }
.lg h1 { font-size: 23px; margin: 0 0 8px; letter-spacing: -0.02em; }
.lg .hint { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.75; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; height: 46px; border: 1px solid #e3e8f0; border-radius: 11px; padding: 0 13px; font-size: 14.5px; outline: 0; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,117,255,.12); }
.btn-primary { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; }
.btn-primary:disabled { opacity: .6; }
.lg .err { display: none; margin-top: 12px; padding: 9px 12px; border-radius: 9px; background: #fdf2f2; color: var(--danger); font-size: 13px; }
.lg .foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--dim); line-height: 1.9; }

/* ---------- 顶部横幅 ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.banner { background: linear-gradient(120deg, #0b2352 0%, #2e75ff 100%); color: #fff; padding: 18px 0; }
.banner-inner { display: flex; align-items: center; gap: 28px; padding: 0 28px; flex-wrap: wrap; }
.b-left { display: flex; align-items: center; gap: 12px; }
.b-left .mk { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.b-left .mk img { width: 24px; height: 24px; }
.b-nm { font-size: 17px; font-weight: 700; }
.b-id { font-size: 11.5px; color: rgba(255,255,255,.65); margin-top: 3px; }
.tag-lite { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.18); }
.b-metrics { display: flex; gap: 40px; margin-left: auto; flex-wrap: wrap; }
.bm-l { font-size: 11.5px; color: rgba(255,255,255,.6); }
.bm-n { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 3px; }
.bm-n.green { color: #7dffb0; }
.b-actions { display: flex; gap: 10px; }
.b-btn { height: 38px; padding: 0 18px; border-radius: 10px; border: 0; background: #fff; color: var(--blue); font-size: 13px; font-weight: 600; }
.b-btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 500; }

/* ---------- 横向 Tab ---------- */
.tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.tabs-inner { display: flex; gap: 6px; padding: 0 22px; overflow-x: auto; }
.tabs a { padding: 14px 16px; font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

/* ---------- 主区域：全宽 ---------- */
.main { flex: 1; width: 100%; padding: 20px 28px 60px; }

/* ---------- 标题 ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-h h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.page-h .sub { font-size: 13px; color: var(--dim); }

/* ---------- 两条路（新手） ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.path { background: #fff; border-radius: var(--r); padding: 20px 22px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.path.main { border: 2px solid var(--blue); box-shadow: 0 8px 26px rgba(46,117,255,.12); }
.path .badge { font-size: 10.5px; color: var(--blue); background: var(--blue-soft); padding: 3px 9px; border-radius: 999px; display: inline-block; align-self: flex-start; letter-spacing: .06em; }
.path h3 { margin: 12px 0 6px; font-size: 18px; }
.path p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.path ul { margin: 10px 0 14px; padding-left: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.path .act { margin-top: auto; }

/* ---------- 闭环 ---------- */
.flow { background: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; }
.flow-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.flow-h h3 { margin: 0; font-size: 15px; }
.flow-h span { font-size: 12px; color: var(--dim); }
.flow-steps { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); }
.fs { padding: 6px 14px 6px 0; border-right: 1px solid var(--line); cursor: pointer; }
.fs:last-child { border-right: 0; }
.fs .no { font-size: 10.5px; letter-spacing: .14em; color: var(--dim); }
.fs .t { font-size: 14px; font-weight: 700; margin-top: 4px; }
.fs .v { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.fs .a { font-size: 12px; color: var(--blue); font-weight: 600; margin-top: 6px; display: inline-block; }
.fs:hover .t { color: var(--blue); }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.stat .l { font-size: 11.5px; color: var(--dim); }
.stat .n { font-size: 21px; font-weight: 700; margin-top: 5px; letter-spacing: -0.02em; }
.stat .n.b { color: var(--blue); }
.stat .n.g { color: var(--ok); }
.stat .n.r { color: var(--danger); }

/* ---------- 面板 ---------- */
.panel { background: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-h h3 { margin: 0; font-size: 15px; }
.panel-h .more { font-size: 12.5px; color: var(--blue); }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }

/* ---------- 表格 ---------- */
.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb th { text-align: left; font-size: 11.5px; color: var(--dim); font-weight: 600; padding: 10px 12px; background: #fafbfe; white-space: nowrap; }
.tb td { padding: 12px; border-bottom: 1px solid #f2f5fa; vertical-align: top; }
.tb tr:last-child td { border-bottom: 0; }
.tb .num { text-align: right; font-variant-numeric: tabular-nums; }
.tb .pos { color: var(--ok); font-weight: 600; }
.tb .detail-row td { background: #fafbfe; padding: 0; }
.detail-box { padding: 14px 16px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px 20px; font-size: 12.5px; }
.detail-box .k { color: var(--dim); font-size: 11px; }
.detail-box .v { margin-top: 3px; }
.row-btn { font-size: 12px; color: var(--blue); cursor: pointer; }

.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: #eefaf3; color: var(--ok); }
.tag.fail { background: #fdf2f2; color: var(--danger); }
.tag.refund { background: #f4f6fa; color: #7c8ba8; }
.tag.warn { background: #fdf6ec; color: var(--warn); }
.muted { color: var(--dim); font-size: 12px; }
.empty { text-align: center; color: var(--dim); font-size: 13px; padding: 28px 0; }

/* ---------- 商品（全宽网格 + 就地展开） ---------- */
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.good { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.good-head { display: flex; gap: 12px; padding: 12px; cursor: pointer; }
.good-head:hover { background: #fafbfe; }
.good-head img { width: 60px; height: 60px; border-radius: 9px; object-fit: cover; background: #f2f5fa; flex: 0 0 auto; }
.good-body-detail { display: none; padding: 0 14px 14px 86px; }
.good.open .good-body-detail { display: block; }
.good .t { font-size: 13px; line-height: 1.5; }
.good .m { font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.good .p { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 4px; }
.kv-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed #eef2f8; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--dim); }

/* ---------- 客服 ---------- */
.chat { display: grid; grid-template-columns: 340px 1fr; gap: 14px; }
.sess { max-height: 620px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.sess-i { padding: 12px 14px; border-bottom: 1px solid #f2f5fa; cursor: pointer; }
.sess-i:hover { background: #fafbfe; }
.sess-i.on { background: var(--blue-soft); }
.sess-i .r1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.sess-i .r2 { font-size: 11.5px; color: var(--dim); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-i .r3 { font-size: 11px; color: var(--dim); margin-top: 4px; }
.msgbox { border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; height: 620px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; background: #fafbfe; }
.m { display: flex; margin-bottom: 12px; }
.m.buyer { justify-content: flex-start; }
.m.agent, .m.human { justify-content: flex-end; }
.m .b { max-width: 70%; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.65; }
.m.buyer .b { background: #fff; border: 1px solid var(--line); }
.m.agent .b { background: #d9ecff; }
.m.human .b { background: #e6f7e6; }
.m .meta { font-size: 10.5px; color: var(--dim); margin-top: 4px; }
.reply-bar { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.reply-bar input { flex: 1; height: 40px; border: 1px solid #e3e8f0; border-radius: 10px; padding: 0 12px; font-size: 13px; outline: 0; }

/* ---------- 财务 ---------- */
.fin-head { display: flex; gap: 28px; flex-wrap: wrap; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.fin-head .fh .l { font-size: 11.5px; color: var(--dim); }
.fin-head .fh .n { font-size: 24px; font-weight: 700; margin-top: 3px; }
.fin-head .fh .n.big { font-size: 32px; color: var(--blue); }
.amounts { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.amt { min-width: 92px; height: 42px; border-radius: 10px; border: 1px solid #e3e8f0; background: #fff; font-size: 15px; font-weight: 600; }
.amt.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.qr { width: 170px; border-radius: 12px; border: 1px solid var(--line); }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 按钮 ---------- */
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink); }
.btn-sm:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.btn-sm.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.link-btn { background: none; border: 0; color: var(--blue); font-size: 12.5px; padding: 0; }

/* ---------- 指南 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.gcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.gcard h4 { margin: 0 0 6px; font-size: 14px; }
.gcard p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.gcard ol { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }

/* ---------- 进度 ---------- */
.progress { height: 6px; background: #eef2f8; border-radius: 99px; overflow: hidden; margin: 8px 0 12px; }
.progress i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .4s; }
.step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eef2f8; align-items: flex-start; }
.step:last-child { border-bottom: 0; }
.step .i { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.step.done .i { background: #eefaf3; color: var(--ok); }
.step .tt b { font-size: 13px; }
.step .tt .h { font-size: 12px; color: var(--dim); margin-top: 3px; }
.step .go { margin-left: auto; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); background: rgba(11,27,51,.95); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 99; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }
.modal { position: fixed; inset: 0; background: rgba(11,27,51,.45); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal.show { display: flex; }
.modal-box { width: 100%; max-width: 520px; background: #fff; border-radius: 16px; padding: 22px; }
.modal-box h3 { margin: 0 0 6px; font-size: 17px; }
.modal-box .note { margin-bottom: 14px; }
.modal-box label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 5px; }
.modal-box input, .modal-box select, .modal-box textarea { width: 100%; border: 1px solid #e3e8f0; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; outline: 0; }
.modal-box textarea { height: 70px; resize: vertical; }
.modal-foot { display: flex; gap: 10px; margin-top: 16px; }
.modal-foot button { flex: 1; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; }
.modal-foot button.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .flow-steps { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 12px; }
  .fs:nth-child(3n) { border-right: 0; }
  .paths, .split { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .detail-box { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .banner-inner { padding: 0 16px; gap: 14px; }
  .b-metrics { gap: 20px; }
  .bm-n { font-size: 18px; }
  .main { padding: 14px 14px 70px; }
  .tabs-inner { padding: 0 10px; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .fs:nth-child(3n) { border-right: 1px solid var(--line); }
  .fs:nth-child(2n) { border-right: 0; }
  .chat { grid-template-columns: 1fr; }
  .msgbox { height: 460px; }
  .guide-grid { grid-template-columns: 1fr; }
  .goods { grid-template-columns: 1fr; }
}

/* ========== v4：重点放大 / 引导式 ========== */
.hero-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 22px; align-items: end;
  background: #fff; border-radius: 16px; padding: 22px 26px; margin-bottom: 18px; border: 1px solid var(--line); }
.hero-strip .hs-l { font-size: 12.5px; color: var(--dim); }
.hero-strip .hs-n { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; }
.hero-strip .hs-n.g { color: var(--ok); }
.hero-strip .hs-n.b { color: var(--blue); }
.hero-strip .hs-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

.wizard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.wcard { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 250px; position: relative; }
.wcard.main { border: 2px solid var(--blue); box-shadow: 0 14px 36px rgba(46,117,255,.14); }
.wcard .wn { position: absolute; top: 20px; right: 22px; font-size: 44px; font-weight: 800; color: rgba(46,117,255,.08); letter-spacing: -0.04em; }
.wcard .badge { font-size: 11px; letter-spacing: .08em; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.wcard h3 { margin: 14px 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.wcard p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.wcard .dims { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.wcard .dims span { font-size: 11.5px; color: var(--muted); background: #f4f7fc; padding: 4px 9px; border-radius: 999px; }
.wcard .act { margin-top: auto; padding-top: 14px; }
.bigbtn { height: 52px; padding: 0 26px; border-radius: 12px; border: 0; background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.bigbtn:hover { background: #245fd6; }
.bigbtn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.bigbtn.wide { width: 100%; }

/* 智能选品 */
.smart-hero { background: linear-gradient(120deg, #0b2352, #2e75ff); color: #fff; border-radius: 18px; padding: 26px 28px; margin-bottom: 18px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.smart-hero .sh-l { flex: 1; min-width: 300px; }
.smart-hero h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.02em; }
.smart-hero p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.8; }
.smart-hero .sh-dims { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.smart-hero .sh-dims span { font-size: 12px; background: rgba(255,255,255,.16); padding: 5px 11px; border-radius: 999px; }
.smart-hero .sh-act { flex: 0 0 auto; }

.sel-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.sel-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: relative; }
.sel-card.sel-on { border-color: var(--blue); box-shadow: 0 8px 26px rgba(46,117,255,.14); }
.sel-top { display: flex; gap: 12px; align-items: flex-start; }
.sel-top img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #f2f5fa; }
.sel-score { margin-left: auto; text-align: center; flex: 0 0 auto; }
.sel-score .n { font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.sel-score .l { font-size: 10px; color: var(--dim); margin-top: 2px; }
.sel-title { font-size: 13.5px; line-height: 1.55; margin-top: 10px; min-height: 42px; }
.sel-money { display: flex; gap: 16px; margin: 10px 0; }
.sel-money .mm .l { font-size: 10.5px; color: var(--dim); }
.sel-money .mm .n { font-size: 16px; font-weight: 700; margin-top: 2px; }
.sel-money .mm .n.g { color: var(--ok); }
.sel-pf { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sel-pf span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #f4f7fc; color: var(--muted); }
.sel-pf span b { color: var(--blue); font-weight: 700; }
.sel-why { font-size: 11.5px; color: var(--muted); background: #fafbfe; border-radius: 8px; padding: 8px 10px; line-height: 1.7; }
.sel-dims { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sel-dims span { font-size: 10.5px; color: var(--dim); background: #fff; border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px; }
.sel-check { position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; accent-color: var(--blue); cursor: pointer; }
.sel-card .sel-top { padding-left: 24px; }

.selbar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,27,51,.06);
  border-radius: 14px 14px 0 0; padding: 14px 18px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 16px; z-index: 15; }
.selbar .sb-info { font-size: 14px; font-weight: 600; }
.selbar .sb-info b { color: var(--blue); font-size: 18px; }
.pchip-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.pchip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.pchip.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.modal-big .modal-box { max-width: 560px; }
.guide-3 { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.guide-3 .g3 { display: flex; gap: 12px; align-items: flex-start; background: #fafbfe; border-radius: 10px; padding: 12px 14px; }
.guide-3 .g3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.guide-3 .g3 b { font-size: 13.5px; }
.guide-3 .g3 div { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 财务排行 */
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .rank-grid { grid-template-columns: 1fr; } .sel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .wizard { grid-template-columns: 1fr; } .hero-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .sel-grid { grid-template-columns: 1fr; } .hero-strip { grid-template-columns: 1fr 1fr; } .smart-hero { padding: 20px; } .smart-hero h2 { font-size: 21px; } }
/* ========== v5：AI 选品（可选维度 / 横向卡片 / 动画） ========== */
.chipbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chipbar .cl { font-size: 12px; color: var(--dim); margin-right: 2px; }
.dchip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); }
.dchip.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.dchip.risk.on { background: var(--ok); border-color: var(--ok); }
.pchip.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }

.ai-overlay { position: fixed; inset: 0; background: rgba(7, 23, 51, .82); backdrop-filter: blur(6px); z-index: 90; display: flex; align-items: center; justify-content: center; }
.ai-box { width: 420px; max-width: 92vw; background: #fff; border-radius: 18px; padding: 26px; text-align: center; }
.ai-orb { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 14px; position: relative;
  background: conic-gradient(from 0deg, #2e75ff, #7dffb0, #5c9bff, #2e75ff); animation: spin 1.2s linear infinite; }
.ai-orb::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ai-orb .core { position: absolute; inset: 22px; border-radius: 50%; background: #2e75ff; z-index: 2; animation: pulse 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.8); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
.ai-box h3 { margin: 0 0 6px; font-size: 18px; }
.ai-box .ai-sub { font-size: 12.5px; color: var(--dim); margin-bottom: 16px; }
.ai-log { text-align: left; background: #fafbfe; border-radius: 10px; padding: 12px 14px; min-height: 96px; }
.ai-log div { font-size: 12.5px; color: var(--muted); padding: 3px 0; opacity: 0; transform: translateY(4px); animation: fin 0.28s forwards; }
.ai-log div b { color: var(--blue); }
@keyframes fin { to { opacity: 1; transform: none; } }
.ai-bar { height: 5px; border-radius: 99px; background: #eef2f8; margin-top: 14px; overflow: hidden; }
.ai-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2e75ff, #7dffb0); transition: width .5s; }

.sel-wrap3 { display: flex; flex-direction: column; gap: 10px; }
.sel-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: grid; grid-template-columns: 26px 56px minmax(180px, 1.6fr) minmax(190px, 1.1fr) minmax(200px, 1.2fr) 110px; gap: 14px; align-items: center;
  animation: pop 0.35s both; }
.sel-row.on { border-color: var(--blue); box-shadow: 0 6px 20px rgba(46, 117, 255, .12); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.sel-row input { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; }
.sel-row img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: #f2f5fa; }
.sel-row .rt { font-size: 13.5px; line-height: 1.5; }
.sel-row .rm { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sel-row .rm span { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: #f4f7fc; color: var(--muted); }
.sel-row .rm .risk1 { background: #eefaf3; color: var(--ok); }
.sel-row .rm .risk2 { background: #fdf6ec; color: var(--warn); }
.sel-row .rm .risk3 { background: #fdf2f2; color: var(--danger); }
.sel-money3 { display: flex; gap: 18px; }
.sel-money3 .mm .l { font-size: 10.5px; color: var(--dim); }
.sel-money3 .mm .n { font-size: 17px; font-weight: 700; margin-top: 2px; }
.sel-money3 .mm .n.g { color: var(--ok); }
.pf-list { display: flex; flex-wrap: wrap; gap: 5px; }
.pf-list span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #f4f7fc; color: var(--muted); }
.pf-list span b { color: var(--blue); }
.pf-list span.hi { background: var(--blue-soft); color: var(--blue); }
.mini-bars { display: flex; flex-direction: column; gap: 3px; }
.mini-bars .mb { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--dim); }
.mini-bars .mb i { flex: 1; height: 5px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.mini-bars .mb i b { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.sel-score3 { text-align: center; }
.sel-score3 .n { font-size: 24px; font-weight: 800; color: var(--blue); line-height: 1; }
.sel-score3 .l { font-size: 10px; color: var(--dim); margin-top: 3px; }
.selbar3 { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 24px rgba(11,27,51,.08); padding: 14px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; z-index: 15; margin-top: 14px; }
.selbar3 .info { font-size: 14px; font-weight: 600; }
.selbar3 .info b { color: var(--blue); font-size: 18px; }
@media (max-width: 1100px) {
  .sel-row { grid-template-columns: 26px 48px 1fr; row-gap: 10px; }
  .sel-row .cell-extra { grid-column: 2 / -1; }
}
/* ========== v6：选品页紧凑横排 + 定价弹窗 ========== */
.sel-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sel-head .cnt { font-size: 15px; font-weight: 700; }
.sel-head .cnt b { color: var(--blue); font-size: 20px; }
.sel-head .arrow { font-size: 20px; color: var(--dim); }
.filter-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.filter-line .lab { font-size: 12px; color: var(--dim); width: 34px; flex: 0 0 auto; }
.filter-line .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.dchip.tiny { height: 30px; padding: 0 11px; font-size: 12px; }

.sel-row2 { display: grid; grid-template-columns: 44px minmax(200px, 1.8fr) minmax(250px, 1.4fr) minmax(210px, 1.2fr) 62px 26px;
  gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  animation: pop .3s both; }
.sel-row2:hover { border-color: rgba(46,117,255,.4); }
.sel-row2.on { border-color: var(--blue); box-shadow: 0 4px 14px rgba(46,117,255,.12); }
.sel-row2 img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f2f5fa; }
.sel-row2 .t2 { font-size: 13px; line-height: 1.45; }
.sel-row2 .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.sel-row2 .tags span { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #f4f7fc; color: var(--muted); }
.sel-row2 .tags .r1 { background: #eefaf3; color: var(--ok); }
.sel-row2 .tags .r2 { background: #fdf6ec; color: var(--warn); }
.sel-row2 .tags .r3 { background: #fdf2f2; color: var(--danger); }
.m3 { display: flex; gap: 16px; }
.m3 .mm .l { font-size: 10px; color: var(--dim); }
.m3 .mm .n { font-size: 14.5px; font-weight: 700; margin-top: 2px; }
.m3 .mm .n.g { color: var(--ok); }
.m3 .mm .n.s { color: var(--dim); font-size: 12px; font-weight: 500; }
.pf3 { display: flex; gap: 4px; flex-wrap: wrap; }
.pf3 span { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: #f4f7fc; color: var(--muted); }
.pf3 span b { color: var(--blue); }
.pf3 span.hi { background: var(--blue-soft); color: var(--blue); }
.sc3 { text-align: center; }
.sc3 .n { font-size: 20px; font-weight: 800; color: var(--blue); line-height: 1; }
.sc3 .l { font-size: 9px; color: var(--dim); }
.cbx2 { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; }

.price-modal table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.price-modal th { text-align: left; font-size: 11px; color: var(--dim); padding: 7px 8px; background: #fafbfe; }
.price-modal td { padding: 7px 8px; border-bottom: 1px solid #f2f5fa; }
.price-modal input { width: 82px; height: 32px; border: 1px solid #e3e8f0; border-radius: 8px; padding: 0 8px; font-size: 13px; text-align: right; }
.price-modal .pr { color: var(--ok); font-weight: 600; }
@media (max-width: 1100px) {
  .sel-row2 { grid-template-columns: 40px 1fr 26px; row-gap: 8px; }
  .sel-row2 .col-extra { grid-column: 2 / 3; }
}
/* ========== v7：选品页 大气版头部 ========== */
.sel-hero { border-radius: 20px; padding: 38px 40px; margin-bottom: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #071733 0%, #0d2a5c 55%, #2e75ff 100%); }
.sel-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125,255,176,.28), transparent 68%); pointer-events: none; }
.sel-hero .sh2 { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.sel-hero .lft h2 { margin: 0; font-size: 38px; letter-spacing: -0.035em; font-weight: 800; }
.sel-hero .lft .sub2 { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.68); letter-spacing: .01em; }
.sel-hero .rgt { display: flex; align-items: center; gap: 18px; }
.sel-hero .rgt .hint2 { font-size: 12.5px; color: rgba(255,255,255,.55); max-width: 130px; line-height: 1.6; }
.btn-ai { height: 64px; padding: 0 44px; border-radius: 16px; border: 0; background: #fff; color: var(--blue);
  font-size: 19px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 14px 36px rgba(0,0,0,.22); display: inline-flex; align-items: center; gap: 12px; }
.btn-ai:hover { transform: translateY(-1px); }
.btn-ai:disabled { opacity: .75; }
.btn-ai .ar { font-weight: 400; font-size: 22px; }

.filter-panel { background: #fff; border-radius: 20px; padding: 12px 34px 22px; margin-bottom: 20px; }
.frow { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.frow:last-child { border-bottom: 0; }
.frow .flab { font-size: 14px; font-weight: 700; color: var(--ink); width: 62px; flex: 0 0 auto; }
.frow .fhelp { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); color: var(--dim);
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; position: relative; }
.frow .fhelp:hover { border-color: var(--blue); color: var(--blue); }
.frow .fhelp .tip { display: none; position: absolute; left: 50%; top: 30px; transform: translateX(-50%); width: 320px;
  background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 12px; font-size: 12px; line-height: 1.9; z-index: 40; text-align: left; }
.frow .fhelp:hover .tip { display: block; }
.frow .fhelp .tip b { color: #9ec4ff; }
.dchip.lg { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 999px; }
.pchip.lg { height: 40px; padding: 0 18px; font-size: 14px; }
.frow .fgrow { flex: 1; }
.frow .note2 { font-size: 12.5px; color: var(--dim); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 40px; }
.stepper button { width: 42px; height: 40px; border: 0; background: #fff; font-size: 18px; color: var(--ink); }
.stepper button:hover { background: var(--blue-soft); color: var(--blue); }
.stepper input { width: 66px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font-size: 15px; font-weight: 700; outline: 0; }
.selbar4 { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 30px rgba(11,27,51,.1); padding: 16px 22px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; z-index: 15; margin-top: 16px; }
.selbar4 .info { font-size: 15px; }
.selbar4 .info b { color: var(--blue); font-size: 22px; }
.selbar4 .bigbtn { height: 50px; padding: 0 26px; font-size: 15px; }
@media (max-width: 1100px) {
  .sel-hero { padding: 26px 24px; }
  .sel-hero .lft h2 { font-size: 28px; }
  .btn-ai { height: 54px; padding: 0 28px; font-size: 16px; }
  .filter-panel { padding: 8px 18px 16px; }
  .frow { gap: 10px; padding: 14px 0; }
  .frow .flab { width: 52px; font-size: 13px; }
  .dchip.lg, .pchip.lg { height: 36px; padding: 0 13px; font-size: 13px; }
}
/* ========== v8 修复：筛选区强制稳定布局 ========== */
.filter-panel { padding: 6px 34px 16px !important; }
.filter-panel .frow { display: flex !important; align-items: center !important; gap: 14px !important;
  flex-wrap: wrap !important; padding: 16px 0 !important; border-bottom: 1px solid var(--line);
  height: auto !important; min-height: 0 !important; }
.filter-panel .frow:last-child { border-bottom: 0; }
.filter-panel .flab { font-size: 14px !important; font-weight: 700 !important; width: 56px !important;
  flex: 0 0 56px !important; color: var(--ink); }
.filter-panel .fopts { display: flex !important; flex-wrap: wrap !important; gap: 8px !important;
  align-items: center !important; flex: 1 1 auto !important; min-width: 0; }
.filter-panel .fhint { font-size: 12px !important; color: var(--dim) !important; flex: 1 1 100% !important;
  padding-left: 70px; margin-top: -2px; line-height: 1.7; }
.filter-panel .dchip, .filter-panel .pchip { height: 40px !important; min-height: 40px !important; max-height: 40px !important;
  line-height: 40px !important; padding: 0 18px !important; font-size: 14px !important; border-radius: 999px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; }
.filter-panel .stepper { height: 40px !important; display: inline-flex !important; align-items: center !important;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.filter-panel .stepper button { width: 44px !important; height: 38px !important; border: 0; background: #fff; font-size: 20px; color: var(--ink); }
.filter-panel .stepper input { width: 64px !important; height: 38px !important; border: 0; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); text-align: center; font-size: 15px; font-weight: 700; outline: 0; }
@media (max-width: 1100px) {
  .filter-panel { padding: 4px 18px 14px !important; }
  .filter-panel .flab { flex: 0 0 44px !important; width: 44px !important; font-size: 13px !important; }
  .filter-panel .dchip, .filter-panel .pchip { height: 36px !important; min-height: 36px !important; max-height: 36px !important;
    line-height: 36px !important; padding: 0 13px !important; font-size: 13px !important; }
  .filter-panel .fhint { padding-left: 58px; }
}
/* ========== v9：今日推荐卡片 + 详情弹层 + 选品车 ========== */
.rec-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.rec-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.rec-card:hover { border-color: rgba(46,117,255,.4); box-shadow: 0 8px 22px rgba(46,117,255,.1); }
.rec-img { height: 118px; background: #f2f5fa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; }
.rec-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rec-t { font-size: 13.5px; font-weight: 600; line-height: 1.45; min-height: 40px; }
.rec-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.rec-tags span { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: #f4f7fc; color: var(--muted); }
.rec-tags .ok { background: #eefaf3; color: var(--ok); }
.rec-tags .warn { background: #fdf6ec; color: var(--warn); }
.rec-tags .danger { background: #fdf2f2; color: var(--danger); }
.rec-metric { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px dashed #eef2f8; }
.rec-metric .k { color: var(--dim); }
.rec-metric .v { font-weight: 700; }
.rec-metric .v.g { color: var(--ok); }
.rec-acts { display: flex; gap: 8px; margin-top: auto; }
.rec-acts button { flex: 1; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; }
.rec-acts button.pri { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.cart-bar { position: sticky; bottom: 0; z-index: 16; margin-top: 14px; background: #0b1b33; color: #fff;
  border-radius: 14px; padding: 14px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cart-bar .n { font-size: 14px; }
.cart-bar .n b { font-size: 20px; color: #7dffb0; }
.cart-bar .sp { flex: 1; }
.cart-bar .bigbtn { height: 44px; padding: 0 24px; font-size: 14px; background: #fff; color: var(--blue); }
.cart-bar .ghost2 { height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; font-size: 13px; }

.detail-grid2 { display: grid; grid-template-columns: 168px 1fr; gap: 18px; }
.detail-grid2 .pic { width: 168px; height: 168px; border-radius: 14px; object-fit: cover; background: #f2f5fa; }
.ring { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--blue) 0deg 300deg, #eef2f8 300deg 360deg); }
.ring i { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-style: normal; }
.ring i b { font-size: 24px; color: var(--blue); line-height: 1; }
.ring i span { font-size: 9.5px; color: var(--dim); margin-top: 2px; }
.mm-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.mm-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mm-card .l { font-size: 11px; color: var(--dim); }
.mm-card .v { font-size: 19px; font-weight: 700; margin-top: 4px; }
.mm-card .v.g { color: var(--ok); }
.mm-card .v.b { color: var(--blue); }
.detail-sec { margin-top: 18px; }
.detail-sec h4 { margin: 0 0 10px; font-size: 14px; }
.spark { width: 100%; height: 74px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed #eef2f8; }
.chk .ic { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex: 0 0 auto; }
.chk .ic.ok { background: #eefaf3; color: var(--ok); }
.chk .ic.warn { background: #fdf6ec; color: var(--warn); }
.chk .ic.bad { background: #fdf2f2; color: var(--danger); }
.reason-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); line-height: 2; }
@media (max-width: 1100px) {
  .rec-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-grid2 { grid-template-columns: 1fr; }
  .mm-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) { .rec-grid { grid-template-columns: 1fr; } }
/* ========== v10：按参考稿复刻 —— 选品工作台 ========== */
.xp { display: flex; background: #f4f7fc; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.xp-side { width: 200px; flex: 0 0 200px; background: #fff; padding: 16px 12px; border-right: 1px solid var(--line); }
.xp-side a { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 11px; color: #4a5b78; font-size: 14.5px; margin-bottom: 4px; }
.xp-side a i { font-style: normal; font-size: 16px; width: 20px; text-align: center; }
.xp-side a:hover { background: #f4f8ff; color: var(--ink); }
.xp-side a.on { background: var(--blue); color: #fff; font-weight: 600; }
.xp-main { flex: 1; min-width: 0; padding: 22px 24px 26px; }

.xp-hero { border-radius: 20px; padding: 34px 38px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, #eef5ff 0%, #dce9ff 55%, #cfe2ff 100%); margin-bottom: 22px; }
.xp-hero .ai-badge { width: 84px; height: 84px; border-radius: 18px; background: linear-gradient(135deg, #2e75ff, #7db4ff);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 12px 26px rgba(46,117,255,.35); flex: 0 0 auto; }
.xp-hero .hmid { flex: 1; min-width: 300px; }
.xp-hero h2 { margin: 0; font-size: 34px; letter-spacing: -0.03em; color: var(--ink); font-weight: 800; }
.xp-hero h2 em { font-style: normal; color: var(--blue); }
.xp-hero .sub { margin-top: 10px; font-size: 15px; color: #4a5b78; }
.xp-hero .hbtn { flex: 0 0 auto; }
.xp-hero .hbtn button { height: 56px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 700; box-shadow: 0 14px 30px rgba(46,117,255,.35); }

.xp-sec-h { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 14px; }
.xp-sec-h h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.xp-sec-h .s { font-size: 13px; color: var(--dim); }

.xp-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.xp-card { display: flex; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(11,27,51,.06);
  box-shadow: 0 10px 26px rgba(11,27,51,.05); transition: transform .15s; }
.xp-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(46,117,255,.14); }
.xp-card .pic { width: 128px; flex: 0 0 128px; background: #f2f5fa; }
.xp-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-card .info { padding: 14px 16px 16px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.xp-card .ttl { font-size: 15px; font-weight: 700; line-height: 1.45; min-height: 44px; }
.xp-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; align-self: flex-start; font-weight: 600; }
.xp-badge.g { background: #e9f9ef; color: #1f9d63; }
.xp-badge.y { background: #fff7e6; color: #c98a1b; }
.xp-badge.r { background: #fdecec; color: #d9534f; }
.xp-metric { display: flex; justify-content: space-between; font-size: 12.5px; color: #4a5b78; padding: 5px 0; border-bottom: 1px dashed #eef2f8; }
.xp-metric b { color: var(--ink); font-weight: 700; }
.xp-metric b.g { color: var(--ok); }
.xp-btn { margin-top: auto; height: 40px; border-radius: 10px; border: 1px solid #cfe0ff; background: #f3f8ff; color: var(--blue);
  font-weight: 700; font-size: 13.5px; }
.xp-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.xp-info { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; background: #fff; border-radius: 16px;
  padding: 20px 24px; margin-top: 22px; border: 1px solid rgba(11,27,51,.05); }
.xp-info .it { display: flex; gap: 12px; align-items: flex-start; }
.xp-info .ic { width: 34px; height: 34px; border-radius: 10px; background: #eef4ff; color: var(--blue); display: flex;
  align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.xp-info .l { font-size: 11.5px; color: var(--dim); }
.xp-info .v { font-size: 14px; font-weight: 700; margin-top: 3px; }
.xp-info .n { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.xp-tip { margin-top: 14px; background: #eef4ff; border-radius: 12px; padding: 14px 18px; font-size: 12.5px; color: #3f5b86; line-height: 1.8; }
.xp-empty { text-align: center; color: var(--dim); font-size: 13px; padding: 40px 0; }
@media (max-width: 1200px) { .xp-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } .xp-info { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .xp-side { display: none; } .xp-cards { grid-template-columns: 1fr; } .xp-hero { padding: 22px; } .xp-hero h2 { font-size: 24px; } .xp-info { grid-template-columns: 1fr; } }