:root {
  --top: #1f2a37;
  --top-ink: #ffffff;
  --bg: #f2f3f3;
  --surface: #ffffff;
  --line: #d5d9d9;
  --line-soft: #e7e9ec;
  --ink: #0f1111;
  --ink-2: #4a5050;
  --ink-3: #6f7373;
  --link: #007185;
  --link-h: #c7511f;
  --yel: #ffd814;
  --yel-b: #fcd200;
  --blue: #2162a1;
  --s1: #2a78d6;
  --s2: #eb6834;
  --ok: #067d62;
  --ok-bg: #e6f4ef;
  --bad: #b12704;
  --bad-bg: #fdecea;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --info: #0b5394;
  --info-bg: #e8f1fb;
  --r: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-h); text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.sm { font-size: 13px; }
.xs { font-size: 12px; }
.neg { color: var(--bad); }
.r { text-align: right; }
.grow { flex: 1; min-width: 0; }
.nowrap { flex-wrap: nowrap !important; }
.off { color: #a6a9a9; cursor: not-allowed; }

/* ───────── 按钮与表单 ───────── */
.btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #adb1b8; background: linear-gradient(#f7f8fa, #e7e9ec); border-radius: 8px; padding: 5px 12px; cursor: pointer; white-space: nowrap; color: var(--ink); font-size: 13px; line-height: 1.5; }
.btn:hover { text-decoration: none; color: var(--ink); background: linear-gradient(#e7eaf0, #d9dce1); }
.btn.primary { background: var(--yel); border-color: var(--yel-b); box-shadow: 0 2px 5px rgba(213,217,217,.5); }
.btn.primary:hover { background: #f7ca00; }
.btn.ads-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ads-primary:hover { background: #1a4f84; color: #fff; }
.btn.sm { padding: 2px 9px; font-size: 12px; }
.btn.lg { padding: 9px 22px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.in { border: 1px solid #888c8c; border-radius: 4px; padding: 5px 8px; background: #fff; min-width: 0; box-shadow: 0 1px 2px rgba(15,17,17,.12) inset; }
.in:focus { outline: none; border-color: #007185; box-shadow: 0 0 0 3px #c8f3fa, 0 1px 2px rgba(15,17,17,.15) inset; }
textarea.in { width: 100%; resize: vertical; }
.in.lg { padding: 8px 10px; font-size: 15px; }
.w60 { width: 64px; } .w70 { width: 76px; } .w80 { width: 90px; } .w100 { width: 110px; } .w120 { width: 130px; } .w200 { width: 200px; display: inline-block; }
.mb { margin-bottom: 6px; }
.pre { color: var(--ink-3); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 14px; }
.radio-row { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; cursor: pointer; }
.radio-row input { margin-top: 3px; }
.radio-row.dis { color: #a6a9a9; cursor: not-allowed; }
.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #eaeded; color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.tgl { position: relative; display: inline-block; width: 32px; height: 18px; vertical-align: middle; }
.tgl input { opacity: 0; width: 0; height: 0; }
.tgl span { position: absolute; inset: 0; border-radius: 18px; background: #bbbfbf; cursor: pointer; transition: .15s; }
.tgl span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .15s; }
.tgl input:checked + span { background: var(--ok); }
.tgl input:checked + span::after { left: 16px; }

/* ───────── 开始页 ───────── */
#start { padding: 56px 16px 80px; }
.st-wrap { max-width: 780px; margin: 0 auto; }
#start h1 { font-size: 28px; }
.lead { color: var(--ink-2); margin: 10px 0 6px; font-size: 15px; }
.disclaimer { color: var(--ink-3); font-size: 12px; margin: 0 0 28px; }
.st-row { display: flex; gap: 12px; align-items: center; margin: 0 0 32px; flex-wrap: wrap; }
h2.sec { font-size: 18px; margin-top: 8px; }
.sec-sub { color: var(--ink-3); font-size: 13px; margin: 4px 0 14px; }
.levels, .modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 36px; }
.lv, .mode { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; }
.lv:hover, .mode:hover { border-color: #888c8c; }
.mode.on { border-color: var(--link); box-shadow: 0 0 0 2px #c8f3fa; }
.lv-h { display: flex; justify-content: space-between; gap: 8px; }
.lv .no { font-size: 12px; color: var(--ink-3); }
.lv p, .mode p { margin: 0; font-size: 13px; color: var(--ink-2); }
.stars { color: #de7921; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.stars .off, .result-stars .off { color: #d5d9d9; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: -16px 0 12px; }
.opts .radio { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.opts .radio b { display: block; color: var(--ink); font-size: 14px; }
details.adv { margin: 8px 0 24px; color: var(--ink-2); font-size: 13px; }
.fld-inline { display: grid; gap: 4px; margin-top: 8px; }

/* ───────── 顶栏 / 书签栏 / 菜单 ───────── */
.sc-top { position: sticky; top: 0; z-index: 20; height: 52px; background: var(--top); color: var(--top-ink); display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.hb { background: none; border: 0; padding: 8px 6px; cursor: pointer; display: grid; gap: 4px; }
.hb span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; }
.logo { color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; }
.logo:hover { color: #fff; text-decoration: none; }
.logo em { font-style: normal; font-size: 11px; font-weight: 600; background: #ff9900; color: #111; border-radius: 3px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
.mkt { font-size: 13px; color: #d5dbdb; white-space: nowrap; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; border: 0; border-radius: 4px; padding: 7px 10px; font-size: 13px; }
.sr { position: absolute; top: 38px; left: 0; right: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.15); padding: 6px; display: grid; }
.sr a { padding: 6px 8px; border-radius: 4px; color: var(--ink); }
.sr a:hover { background: #f0f2f2; text-decoration: none; }
.sr small { color: var(--ink-3); margin-right: 8px; }
.top-r { margin-left: auto; display: flex; gap: 14px; font-size: 13px; color: #d5dbdb; white-space: nowrap; }
.top-r a { color: #d5dbdb; }
.sc-bm { position: sticky; top: 52px; z-index: 19; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; min-height: 40px; flex-wrap: wrap; }
.bm-links { display: flex; gap: 18px; font-size: 13px; overflow-x: auto; white-space: nowrap; }
.bm-links a { color: var(--ink); padding: 9px 0; }
.sim-ctl { display: flex; gap: 6px; align-items: center; font-size: 12px; flex-wrap: wrap; padding: 4px 0; }
.sim-tag, .simtag { font-size: 11px; font-weight: 600; background: #ff9900; color: #111; border-radius: 3px; padding: 0 5px; }
.sim-date { color: var(--ink-2); margin-right: 4px; }
.drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 300px; max-width: 86vw; background: #fff; z-index: 41; transform: translateX(-102%); transition: transform .18s ease, visibility .18s; overflow-y: auto; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; box-shadow: 4px 0 16px rgba(0,0,0,.18); }
.dr-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--top); color: #fff; }
.dr-h .x { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.dr-home { display: block; padding: 12px 18px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.dr-g { border-bottom: 1px solid var(--line-soft); }
.dr-g.sim { background: #fffaf0; }
.dr-t { width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 11px 18px; cursor: pointer; font-weight: 600; }
.dr-t small { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.dr-t span { margin-left: auto; color: var(--ink-3); }
.dr-items { display: grid; padding: 0 0 8px; }
.dr-items a, .dr-items .off { padding: 6px 18px 6px 32px; color: var(--ink); font-size: 13px; }
.dr-items .off { color: #a6a9a9; }
.dr-items a:hover { background: #f0f2f2; text-decoration: none; }

/* ───────── 页面 ───────── */
.pg { max-width: 1180px; margin: 0 auto; padding: 18px 16px 90px; display: grid; gap: 16px; min-width: 0; }
.pg.wide { max-width: 1440px; }
.pg > * { min-width: 0; }
.ph { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ph h1 { font-size: 24px; font-weight: 700; }
.ph-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; max-width: 760px; }
.ph-r { display: flex; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.card h2 { font-size: 16px; }
.sec-t { font-size: 16px; margin-bottom: 12px; }
h3.sub { font-size: 14px; margin: 14px 0 8px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.col-main, .col-side { display: grid; gap: 16px; min-width: 0; }
.help { font-size: 12px; color: var(--ink-3); margin: 6px 0; }
.alert { border-radius: var(--r); padding: 10px 14px; font-size: 13px; border: 1px solid; }
.alert.bad { background: var(--bad-bg); border-color: #f2b8b0; color: #7a1c03; }
.alert.warn { background: var(--warn-bg); border-color: #f3d27a; color: #5c3d00; }
.note { background: #f7fafa; border: 1px solid var(--line-soft); border-radius: 6px; padding: 8px 12px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 13px; }
.kv span { color: var(--ink-3); }
.empty-state { text-align: center; padding: 40px 16px; display: grid; gap: 10px; justify-items: center; }
.thumb { width: 72px; height: 72px; border-radius: 6px; background: linear-gradient(135deg, #e3f1f2, #f4f7f7); border: 1px solid var(--line-soft); flex: none; position: relative; }
.thumb::after { content: ''; position: absolute; left: 28px; top: 14px; width: 16px; height: 42px; border-radius: 6px 6px 4px 4px; background: #9ccfd5; }
.thumb.sm { width: 44px; height: 44px; }
.thumb.sm::after { left: 17px; top: 8px; width: 10px; height: 26px; }
.prod { display: flex; gap: 12px; }
.prod p { margin: 4px 0; }
.links { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.res { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.res p { margin: 2px 0 0; }

/* 首页 */
.snap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.snap-h { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.snap-h h2 { font-size: 16px; }
.snap-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; }
.snap-c { display: grid; padding: 6px 12px; border-left: 1px solid var(--line-soft); color: var(--ink); min-width: 0; }
.snap-c:first-child { border-left: 0; padding-left: 0; }
a.snap-c:hover { text-decoration: none; background: #f7fafa; }
.snap-c span { font-size: 12px; color: var(--ink-2); }
.snap-c b { font-size: 18px; font-variant-numeric: tabular-nums; }
.snap-c small { font-size: 11px; color: var(--ink-3); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 10px; }
.steps .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #adb1b8; display: grid; place-items: center; font-size: 11px; margin-top: 1px; }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done a { color: var(--ink-3); text-decoration: line-through; }
.steps p { margin: 0; font-size: 12px; color: var(--ink-3); }
.brief h3 { font-size: 12px; color: var(--ink-3); font-weight: 600; margin: 10px 0 6px; }
.items { display: grid; gap: 6px; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: #f7fafa; font-size: 13px; }
.item .tag { flex: none; font-size: 11px; padding: 0 6px; border-radius: 4px; margin-top: 2px; background: var(--info-bg); color: var(--info); }
.item.good .tag { background: var(--ok-bg); color: var(--ok); }
.item.bad .tag { background: var(--bad-bg); color: var(--bad); }
.item .txt { flex: 1; }
.item .btn { flex: none; }

/* 表格 */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-2); background: #f7f8f8; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.empty { text-align: center; color: var(--ink-3); padding: 24px; }
.pname { max-width: 420px; min-width: 200px; }
.tabs-bar { display: flex; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; overflow-x: auto; white-space: nowrap; }
.tabs-bar .tab { padding: 10px 0; color: var(--ink-2); }
.tabs-bar .tab.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 #e77600; }
.dd { position: relative; }
.dd-m { position: absolute; right: 0; top: 30px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.12); display: grid; min-width: 140px; padding: 4px; }
.dd-m a { padding: 6px 10px; color: var(--ink); font-size: 13px; white-space: nowrap; }
.dd-m a:hover { background: #f0f2f2; text-decoration: none; }

/* 添加商品表单 */
.form-wrap { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.sec-nav { position: sticky; top: 108px; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.sec-nav a { padding: 7px 10px; border-radius: 4px; color: var(--ink); font-size: 13px; }
.sec-nav a:hover { background: #f0f2f2; text-decoration: none; }
.sec-nav a.err { color: var(--bad); }
.sec-nav a i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 11px; }
.sec-body { display: grid; gap: 16px; min-width: 0; }
.sec-body .card { scroll-margin-top: 110px; }
.fld { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.sec-t + .fld, .card > .fld:first-child { border-top: 0; }
.fld-l { font-size: 13px; font-weight: 600; padding-top: 5px; }
.fld-l .req { color: var(--bad); font-style: normal; margin-left: 2px; }
.fld-c { min-width: 0; display: grid; gap: 4px; }
.fld-c > .in:not(.w60):not(.w70):not(.w80):not(.w100):not(.w120) { width: 100%; max-width: 560px; }
.fld-h { font-size: 12px; color: var(--ink-3); }
.fld-e { font-size: 12px; color: var(--bad); }
.fld-e::before { content: '⚠ '; }
.fld-w { font-size: 12px; color: var(--warn); }
.has-err .in { border-color: var(--bad); }
.cnt { font-size: 12px; color: var(--ink-3); text-align: right; max-width: 560px; }
.cnt.over { color: var(--bad); font-weight: 700; }
.cats { display: grid; margin: 12px 0; }
.sticky-bar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.sticky-bar .muted { margin-right: auto; }

/* 发货到亚马逊 */
.stepper { list-style: none; display: flex; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stepper li { flex: 1; padding: 10px 12px; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; border-left: 1px solid var(--line-soft); }
.stepper li:first-child { border-left: 0; }
.stepper li span { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #adb1b8; display: grid; place-items: center; font-size: 12px; }
.stepper li.cur { color: var(--ink); font-weight: 700; background: #f7fafa; box-shadow: inset 0 -3px 0 #e77600; }
.stepper li.cur span { border-color: #e77600; }
.stepper li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.card .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.opt { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; font-size: 13px; position: relative; }
.opt input { position: absolute; top: 14px; right: 14px; }
.opt.on { border-color: #e77600; box-shadow: 0 0 0 2px #fde9c9; }
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.lbl { border: 1px dashed #888c8c; border-radius: 4px; padding: 10px; display: grid; gap: 2px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.lbl b { font-size: 18px; }
.lbl.more { place-items: center; color: var(--ink-3); }

/* 广告控制台 */
.ads-hd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ads-hd h1 { font-size: 24px; }
.crumb { font-size: 13px; color: var(--ink-3); }
.metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.metric-strip > div { padding: 10px 14px; border-left: 1px solid var(--line-soft); display: grid; }
.metric-strip > div:first-child { border-left: 0; }
.metric-strip span { font-size: 12px; color: var(--ink-2); }
.metric-strip span small { color: var(--ink-3); }
.metric-strip b { font-size: 18px; font-variant-numeric: tabular-nums; }
.metric-strip b small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cname { font-weight: 600; }
.camp-wrap { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
.camp-nav { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.camp-nav a { padding: 8px 10px; border-radius: 4px; color: var(--ink); font-size: 13px; }
.camp-nav a.on { background: #e8f1fb; color: var(--blue); font-weight: 700; }
.camp-nav a:hover { text-decoration: none; background: #f0f2f2; }
.camp-body { overflow: hidden; }
.add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.adtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.adtype { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start; }
.adtype p { margin: 0; font-size: 13px; }
.adtype.dis { opacity: .75; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.seg a { padding: 6px 14px; font-size: 13px; color: var(--ink); }
.seg a.on { background: var(--blue); color: #fff; }
.seg a:hover { text-decoration: none; }
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.sugg { border: 1px solid var(--line-soft); border-radius: 6px; max-height: 340px; overflow-y: auto; }
.sg-row { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: #f0f2f2; border-radius: 12px; padding: 2px 10px; font-size: 12px; }
.checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.checks li.ok { color: var(--ok); }

/* 绩效 */
.ahr { display: flex; gap: 14px; align-items: center; padding: 6px 0; flex-wrap: wrap; }
.ahr b { font-size: 20px; padding: 6px 14px; border-radius: 6px; }
.ahr.ok b { background: var(--ok-bg); color: var(--ok); }
.ahr.bad b { background: var(--bad-bg); color: var(--bad); }

/* 模拟器 */
.lvstrip { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #fffaf0; border: 1px solid #f3d27a; border-radius: var(--r); padding: 8px 14px; font-size: 13px; }
.lv-goals { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.lv-goals .ok { color: var(--ok); }
.mistakes { display: grid; gap: 10px; }
.mistake { border: 1px solid var(--line-soft); border-radius: 6px; padding: 12px 14px; display: grid; gap: 4px; }
.mistake .mh { display: flex; justify-content: space-between; gap: 12px; }
.mistake .cost { color: var(--bad); font-weight: 700; white-space: nowrap; }
.mistake p { margin: 0; font-size: 13px; color: var(--ink-2); }
.mistake .lesson { color: var(--ink); background: #f7fafa; border-radius: 4px; padding: 6px 10px; }
.know { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.tl { display: grid; gap: 10px; }
.tl-day { display: grid; grid-template-columns: 54px 1fr; gap: 10px; font-size: 13px; }
.tl-day .d { color: var(--ink-3); }
.tl-day ul { margin: 0; padding-left: 16px; }

/* 弹窗 / 提示 */
.over { position: fixed; inset: 0; background: rgba(15,17,17,.4); display: grid; place-items: center; z-index: 60; padding: 16px; }
.over .card { max-width: 460px; width: 100%; }
.over .card.wide { max-width: 580px; max-height: calc(100vh - 32px); overflow-y: auto; }
.result-stars { font-size: 30px; color: #de7921; letter-spacing: 4px; margin: 6px 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #232f3e; color: #fff; padding: 9px 16px; border-radius: 6px; font-size: 13px; z-index: 80; max-width: calc(100vw - 32px); }
.toast.err { background: var(--bad); }

/* 图表 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .axis text { font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; display: none; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.08); min-width: 130px; z-index: 2; }
.chart-tip .t { color: var(--ink-3); margin-bottom: 4px; }
.chart-tip div { display: flex; align-items: center; gap: 6px; }
.chart-tip b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.chart-tip i, .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.chart-tip .sum { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ───────── 窄屏 ───────── */
@media (max-width: 1100px) {
  .snap-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
  .snap-c:nth-child(5) { border-left: 0; padding-left: 0; }
  .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .mkt, .top-r { display: none; }
  .form-wrap, .camp-wrap, .picker { grid-template-columns: minmax(0, 1fr); }
  .sec-nav, .camp-nav { position: static; display: flex; overflow-x: auto; }
  .sec-nav a, .camp-nav a { white-space: nowrap; }
  .fld { grid-template-columns: minmax(0, 1fr); }
  .adtypes { grid-template-columns: minmax(0, 1fr); }
  .stepper { flex-direction: column; }
  .stepper li { border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 600px) {
  .levels, .modes, .opts, .card .opts { grid-template-columns: minmax(0, 1fr); }
  .opts { margin-top: 0; }
  .snap-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-c:nth-child(odd) { border-left: 0; padding-left: 0; }
  .snap-c:nth-child(even) { border-left: 1px solid var(--line-soft); padding-left: 12px; }
  .sc-top { gap: 8px; padding: 0 10px; }
  .sc-bm { padding: 0 10px; }
  .bm-links { width: 100%; }
  .pg { padding: 12px 10px 90px; }
  .ph h1, .ads-hd h1 { font-size: 20px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .w200 { width: auto; }
  .pname { min-width: 160px; }
}

/* ═════════ M3：新版后台外壳（参照"我的业务"首页） ═════════ */
.sc-top { height: 60px; background: #1b2531; gap: 18px; padding: 0 20px; }
.logo { font-size: 18px; }
.store { color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.store i { width: 1px; height: 18px; background: #6b7785; display: inline-block; }
.ah-pill { color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid #44505e; }
.ah-pill:hover { color: #fff; text-decoration: none; }
.ah-pill b { background: #1e8e3e; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 14px; }
.ah-pill b.warn { background: #c67c00; }
.ah-pill b.bad { background: #c40000; }
.search { max-width: 430px; margin: 0 auto; }
.search input { background: #1b2531; border: 1.5px solid #8d99a6; color: #fff; border-radius: 6px; padding: 7px 12px 7px 34px; font-size: 14px; font-style: italic; }
.search input::placeholder { color: #aab4be; }
.search .mag { position: absolute; left: 11px; top: 9px; width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; }
.search .mag::after { content: ''; position: absolute; width: 2px; height: 7px; background: #fff; right: -4px; bottom: -6px; transform: rotate(-45deg); }
.top-r { gap: 0; align-items: center; }
.top-r .ti { color: #fff; padding: 0 14px; border-left: 1px solid #44505e; font-size: 13px; position: relative; }
.top-r .ti sup { background: #ff9900; color: #111; border-radius: 8px; padding: 0 5px; font-size: 10px; margin-left: 2px; }
.assist { background: none; border: 0; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0 16px; }
.sc-bm { top: 60px; background: #1b2531; border-top: 1px solid #2c3846; border-bottom: 0; min-height: 44px; padding: 0 12px 0 16px; flex-wrap: nowrap; gap: 6px; }
.bm-ic { filter: grayscale(1) brightness(1.6); font-size: 13px; flex: none; }
.bm-links { gap: 0; flex: 1; scrollbar-width: none; }
.bm-links::-webkit-scrollbar { display: none; }
.bm-links a { color: #fff; padding: 11px 12px; font-size: 14px; }
.bm-links a:hover { color: #fff; background: #2c3846; text-decoration: none; }
.bm-edit { background: none; border: 0; color: #fff; cursor: pointer; font-size: 15px; flex: none; padding: 6px 8px; }
.sim-bar { position: sticky; top: 104px; z-index: 18; display: flex; align-items: center; gap: 8px; padding: 5px 16px; background: #fff8e8; border-bottom: 1px solid #f3d27a; font-size: 12px; flex-wrap: wrap; }
.sim-bar .grow { flex: 1; }
.sec-nav { top: 150px; }

/* 菜单抽屉（新版：白底、图标、搜索、书签标记） */
.drawer { width: 400px; display: flex; flex-direction: column; overflow: hidden; }
.dr-h { background: #fff; color: var(--ink); padding: 26px 30px 18px; font-size: 16px; border-bottom: 1px solid var(--line); margin: 0 30px; padding-left: 0; padding-right: 0; }
.dr-h .x { color: var(--ink); font-size: 26px; }
.dr-q { padding: 18px 30px 8px; }
.dr-q input { width: 100%; border: 1.5px solid #8d99a6; border-radius: 6px; padding: 8px 12px; font-style: italic; }
.dr-body { flex: 1; overflow-y: auto; padding: 4px 0 12px; }
.dr-body hr { border: 0; border-top: 1px solid var(--line); margin: 14px 30px; }
.dr-home, .dr-t { display: flex; align-items: center; gap: 10px; padding: 14px 30px; font-size: 16px; font-weight: 400; color: var(--ink); border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.dr-home:hover, .dr-t:hover { background: #f5f7f8; text-decoration: none; color: var(--ink); }
.dr-t.open { color: #0b6bcb; }
.dr-t .nm { flex: 1; display: grid; }
.dr-t .nm small { font-size: 11px; color: var(--ink-3); }
.dr-t .car { font-size: 11px; color: var(--ink); }
.dr-t.open .car { color: #0b6bcb; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.dr-g { border-bottom: 0; }
.dr-g.sim { background: #fffaf0; }
.dr-items { padding: 0 0 6px; }
.dr-it { display: flex; align-items: center; padding: 0 30px 0 60px; }
.dr-it a, .dr-items .off { flex: 1; padding: 7px 0; color: var(--ink); font-size: 15px; }
.dr-items .off { display: block; padding: 7px 30px 7px 60px; color: #a6a9a9; }
.dr-it a:hover { color: #0b6bcb; text-decoration: none; background: none; }
.bmk { width: 12px; height: 15px; border: 0; cursor: pointer; background: transparent; position: relative; flex: none; opacity: .25; }
.bmk::before { content: ''; position: absolute; inset: 0; background: #0b6bcb; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.bmk.on { opacity: 1; }
.dr-it:hover .bmk { opacity: .7; }
.dr-it:hover .bmk.on { opacity: 1; }
.dr-f { display: flex; justify-content: space-between; padding: 18px 30px; border-top: 1px solid var(--line); margin: 0 0; font-size: 15px; }
.dr-f .off { color: #6b9fd1; }

/* 卖家助手面板 */
.assist-panel { position: fixed; top: 0; bottom: 0; right: 0; width: 420px; max-width: 92vw; background: #fff; z-index: 41; transform: translateX(102%); transition: transform .18s ease, visibility .18s; visibility: hidden; display: flex; flex-direction: column; }
.assist-panel.open { transform: none; visibility: visible; box-shadow: -4px 0 16px rgba(0,0,0,.18); }
.assist-panel .dr-h { display: flex; justify-content: space-between; }
.as-body { padding: 12px 24px 24px; overflow-y: auto; }
.bh { font-size: 13px; color: var(--ink-3); margin: 14px 0 6px; font-weight: 600; }

/* 我的业务首页 */
.pg.nopad { padding: 0; max-width: none; gap: 0; }
.pg.nopad > .lvstrip { margin: 12px 16px 0; }
.home { display: grid; grid-template-columns: 400px minmax(0, 1fr); min-height: calc(100vh - 135px); }
.home.ops-closed { grid-template-columns: minmax(0, 1fr); }
.ops { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 135px; height: calc(100vh - 135px); }
.ops.collapsed { display: none; }
.ops-h { display: flex; align-items: center; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.ops-h h2, .sugg-h h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cnt-badge { background: #d13212; color: #fff; font-size: 13px; padding: 1px 7px; border-radius: 4px; }
.cnt-badge.dark { background: #545b64; }
.flt { margin-left: auto; color: #0b6bcb; font-weight: 600; font-size: 15px; }
.ops-x, .ops-open { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }
.ops-open { font-size: 14px; color: #0b6bcb; padding: 8px 0; justify-self: start; }
.ops-list { flex: 1; overflow-y: auto; padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.op-card { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.op-card:hover { text-decoration: none; color: var(--ink); border-color: #aab4be; }
.op-h { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.op-h b { font-size: 16px; flex: 1; }
.pri { color: #e47911; font-size: 13px; font-weight: 700; }
.kebab { color: var(--ink-2); font-weight: 700; }
.op-card p { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.sugg-h { display: flex; align-items: center; gap: 10px; padding: 18px 4px 4px; border-top: 1px solid var(--line); margin-top: 8px; cursor: pointer; }
.ops-f { padding: 16px 24px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; justify-items: center; background: #fff; }
.ask { width: 100%; border: 0; background: #f2f4f6; border-radius: 24px; padding: 14px; font-size: 16px; color: #6941c6; font-weight: 600; cursor: pointer; }
.home-main { padding: 0 20px 60px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.ktabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 0 -20px; padding: 8px 8px 0; background: #e9eef3; }
.ktab { text-align: left; border: 0; background: #e9eef3; padding: 10px 12px 10px; cursor: pointer; display: grid; gap: 2px; border-top: 4px solid transparent; border-radius: 6px 6px 0 0; color: var(--ink); min-width: 0; }
.ktab.on { background: #fff; border-top-color: #0b6bcb; }
.ktab .kt { font-size: 16px; font-weight: 700; }
.ktab.on .kt { color: #0b6bcb; }
.ktab .kl { font-size: 13px; color: var(--ink-2); }
.ktab b { font-size: 19px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ktab.on b { color: var(--ink); }
.qbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; position: relative; }
.pill { border: 2px solid #d5dbe1; background: #fff; border-radius: 22px; padding: 7px 16px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: #8d99a6; text-decoration: none; color: var(--ink); }
.pill.off { color: var(--ink); opacity: .85; cursor: default; }
.split { display: inline-flex; position: relative; }
.split .pill:first-child { border-radius: 22px 0 0 22px; border-right-width: 1px; }
.split .pill.dd-b { border-radius: 0 22px 22px 0; border-left-width: 1px; padding: 7px 10px; font-size: 11px; }
.qbar .grow { flex: 1; }
.ql { background: none; border: 0; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; padding: 6px 4px; }
.ql.off { cursor: default; }
.qdd { position: absolute; top: 44px; left: 0; z-index: 6; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); display: grid; padding: 6px; min-width: 170px; }
.qdd.right { left: auto; right: 0; }
.qdd a { padding: 8px 12px; color: var(--ink); border-radius: 4px; }
.qdd a:hover { background: #f0f2f2; text-decoration: none; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.05); display: grid; gap: 12px; }
.w-h { display: flex; align-items: center; gap: 14px; }
.w-h h2 { font-size: 22px; }
.w-h .grip { color: var(--ink-3); }
.w-h a { color: #0b6bcb; }
.w-ctl { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.w-ctl select { min-width: 200px; }
.w-ctl input[disabled] { background: #eef1f4; border-color: #eef1f4; box-shadow: none; max-width: 300px; }
.mk-chip { border: 1px solid #8d99a6; border-radius: 6px; padding: 4px 10px; font-size: 14px; }
.mk-chip i { font-style: normal; border: 1px solid #0b6bcb; color: #0b6bcb; border-radius: 3px; padding: 0 4px; }
.w-m { display: flex; gap: 0; flex-wrap: wrap; font-size: 15px; }
.w-m > span { padding: 4px 18px; border-left: 1px solid var(--line); }
.w-m > span:first-child { padding-left: 0; border-left: 0; }
.w-m b { margin-left: 6px; text-decoration: underline dashed; text-underline-offset: 4px; font-variant-numeric: tabular-nums; }
.w-m .up { color: var(--ok); font-size: 12px; }
.w-m .down { color: var(--bad); font-size: 12px; }
.w-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.w-ch h3 { font-size: 15px; margin-bottom: 6px; }

/* 添加商品：页签式表单 */
.cat-path { margin: -6px 0 0; font-size: 13px; color: var(--ink-2); }
.form-card { padding: 0; }
.ftabs { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.ftab { border: 0; background: none; padding: 12px 14px; font-size: 14px; cursor: pointer; color: var(--ink); white-space: nowrap; border-bottom: 3px solid transparent; }
.ftab.on { border-bottom-color: #e77600; font-weight: 700; }
.ftab.err { color: var(--bad); }
.ftab i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 11px; }
.ftabs .grow { flex: 1; }
.adv-tg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; padding-left: 12px; }
.ftab-body { padding: 8px 20px 4px; }
.form-card .row.end { padding: 0 20px 16px; }
.adv-h { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.req { color: var(--bad); font-style: normal; }

/* 账户状况 */
.ah-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; }
.ah-card h2 { font-size: 16px; }
.ah-score { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 10px; }
.ah-score b { font-size: 44px; line-height: 1; }
.ah-score span { font-weight: 700; padding: 3px 10px; border-radius: 4px; color: #fff; background: #1e8e3e; }
.ah-score.warn span { background: #c67c00; }
.ah-score.bad span { background: #c40000; }
.ah-scale { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #c40000 0 10%, #c67c00 10% 20%, #1e8e3e 20% 100%); }
.ah-scale i { position: absolute; top: -4px; width: 4px; height: 16px; background: var(--ink); border-radius: 2px; transform: translateX(-2px); }
.ah-ticks { display: grid; grid-template-columns: 10% 10% 1fr auto; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.card-h.pad { padding: 14px 18px 0; }
.steps2 { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 14px; }
.cols3 { columns: 3; }

@media (max-width: 1200px) {
  .home { grid-template-columns: 330px minmax(0, 1fr); }
  .ktabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w-ch { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .store, .ah-pill .lbl, .assist, .top-r .ti { display: none; }
  .home { grid-template-columns: minmax(0, 1fr); }
  .ops { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .ops-list { max-height: 360px; }
  .ah-grid { grid-template-columns: minmax(0, 1fr); }
  .sim-bar { top: 104px; }
}
@media (max-width: 600px) {
  .sc-top { gap: 10px; padding: 0 10px; height: 56px; }
  .sc-bm { top: 56px; }
  .sim-bar { top: 100px; }
  .ah-pill { padding-left: 0; border-left: 0; font-size: 0; }
  .ah-pill b { font-size: 12px; }
  .logo em { display: none; }
  .ktabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-main { padding: 0 10px 60px; }
  .ktabs { margin: 0 -10px; }
  .drawer { width: 86vw; }
  .dr-h, .dr-q, .dr-home, .dr-t, .dr-f { padding-left: 18px; padding-right: 18px; }
  .dr-h { margin: 0 18px; padding-left: 0; padding-right: 0; }
  .dr-it { padding-left: 46px; padding-right: 18px; }
  .w-m > span { padding: 4px 10px 4px 0; border-left: 0; }
  .cols3 { columns: 1; }
}
.notrans * { transition: none !important; }
.bmk { opacity: 0; } .dr-it:hover .bmk { opacity: .45; } .bmk.on, .dr-it:hover .bmk.on { opacity: 1; }
