:root {
  --ink: #172129;
  --muted: #66757f;
  --line: #dde4e7;
  --paper: #f4f6f5;
  --surface: #ffffff;
  --yellow: #ffe600;
  --navy: #243f4a;
  --coral: #ef6a5b;
  --blue: #4f80d8;
  --green: #3e9c74;
  --shadow: 0 10px 35px rgba(25, 45, 55, .07);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
h1, h2, h3, p { margin-top: 0; }
.admin-token { width: 220px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.14); border-radius: 9px; background: rgba(255,255,255,.75); color: var(--ink); font: inherit; font-size: 12px; }
.button { appearance: none; border: 0; border-radius: 9px; padding: 11px 16px; background: var(--navy); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button.secondary { background: rgba(255,255,255,.75); color: var(--ink); border: 1px solid rgba(0,0,0,.12); }
main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; }
.notice { padding: 14px 17px; margin-bottom: 18px; border: 1px solid #d6dfe2; background: white; border-radius: 10px; font-size: 13px; }
.notice.warning { background: #fff9d7; border-color: #e7d77c; }
.notice.error { background: #fff0ee; border-color: #e9aaa3; color: #8b2d22; }
.hidden { display: none !important; }
.site-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.site-tabs::-webkit-scrollbar { display: none; }
.site-tab { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.site-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px; background: var(--navy); color: white; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: ""; width: 260px; height: 260px; position: absolute; right: 15%; top: -150px; border: 42px solid rgba(255,230,0,.14); border-radius: 50%; }
.hero h2 { margin: 4px 0 8px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.hero p { margin: 0; color: #becbd0; font-size: 13px; }
.eyebrow { color: #8899a1; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: var(--yellow); }
.hero-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.hero-side .radar-actions { margin: 0; }
.source-badge { z-index: 1; display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 13px 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.source-badge .dot { width: 9px; height: 9px; background: #62d49c; border-radius: 50%; box-shadow: 0 0 0 5px rgba(98,212,156,.12); }
.source-badge strong, .source-badge small { display: block; }
.source-badge strong { font-size: 12px; }.source-badge small { color: #aebfc5; margin-top: 2px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.metric span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.metric strong { font-size: 22px; letter-spacing: -.03em; }
.panel { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.panel-heading { padding: 22px 24px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 4px 0 0; font-size: 20px; }.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 12px 16px; text-align: left; color: var(--muted); font-size: 11px; background: #fafbfb; }
td { padding: 15px 16px; border-top: 1px solid #edf0f1; vertical-align: middle; }
.rank { color: #98a4aa; font-variant-numeric: tabular-nums; }
.score { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.bar { width: 74px; height: 6px; background: #e7ecee; border-radius: 9px; overflow: hidden; }.bar i { display: block; height: 100%; background: var(--coral); border-radius: inherit; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; max-width: 280px; }.tag { padding: 4px 7px; background: #f1f4f4; border-radius: 5px; color: #4e6069; font-size: 11px; }
.confidence { padding: 5px 8px; border-radius: 999px; background: #edf7f2; color: #2e7f5c; font-size: 11px; }
.translation { display: block; margin-top: 4px; color: #315f9e; font-size: 11px; font-weight: 700; }
.tag .translation { padding-top: 3px; color: #66757f; font-weight: 600; }
.follow, .capability { display: inline-block; padding: 5px 8px; border-radius: 999px; background: #fff5d4; color: #81600a; font-size: 11px; font-weight: 800; white-space: nowrap; }
.follow.no, .capability.forbidden, .capability.unauthorized, .capability.error { background: #ffebe8; color: #a53529; }
.capability.supported { background: #e8f6ef; color: #287052; }
.capability.unavailable, .capability.rate_limited { background: #eef2f3; color: #52636b; }
.decision-reason { display: block; min-width: 180px; max-width: 240px; margin-top: 7px; color: var(--muted); line-height: 1.5; }
.note-cell { max-width: 360px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
code { color: #40545d; font-size: 11px; }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.keyword-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.keyword-grid article { padding: 22px 24px 26px; border-right: 1px solid var(--line); }.keyword-grid article:last-child { border-right: 0; }
.keyword-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }.keyword-title small { color: var(--muted); }
.pill { display: inline-block; padding: 6px 9px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 800; }.pill.coral { background: var(--coral); }.pill.blue { background: var(--blue); }.pill.green { background: var(--green); }
ol { margin: 0; padding-left: 26px; }li { padding: 8px 0; border-bottom: 1px solid #eef1f2; font-size: 13px; }li:last-child { border-bottom: 0; }li::marker { color: #9aa6ac; font-size: 11px; }
.methodology { margin-top: 18px; padding: 24px; border: 1px dashed #b7c2c6; border-radius: 14px; }.methodology h3 { margin-bottom: 18px; }.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }.method-grid strong { font-size: 13px; }.method-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
footer { padding: 22px; text-align: center; color: #839198; font-size: 11px; border-top: 1px solid var(--line); }

.view-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: #e7ebeb; border-radius: 12px; }
.view-tab { padding: 9px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.view-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(25,45,55,.08); }
.radar-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.operations-hero { background: linear-gradient(115deg, #243f4a 0%, #315764 100%); }
.metrics-six { grid-template-columns: repeat(6, 1fr); }
.metric.alert { border-color: #efb0a8; background: #fff7f5; }.metric.alert strong { color: #b83d30; }
.metric.attention { border-color: #ead99d; background: #fffdf4; }.metric.attention strong { color: #8c6b0d; }
.empty-state { margin-top: 18px; padding: 64px 24px; text-align: center; background: var(--surface); border: 1px dashed #aebbc0; border-radius: 16px; }
.empty-state .empty-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: #edf2f3; color: var(--navy); font-size: 24px; }
.empty-state h3 { margin-bottom: 10px; }.empty-state p { max-width: 680px; margin: 0 auto 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }.empty-state div { display: flex; justify-content: center; gap: 10px; }
.readiness-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.readiness-card { padding: 20px; border-right: 1px solid var(--line); }.readiness-card:last-child { border-right: 0; }
.readiness-card > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }.readiness-card > div:first-child span { color: var(--muted); font-weight: 800; }
.readiness-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.coverage { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 6px; background: #e8edee; }.coverage i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.readiness-card.partial .coverage i { background: #d7a72e; }.readiness-card.missing .coverage i { background: var(--coral); }
.task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.task-card { position: relative; padding: 18px 18px 16px 21px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.task-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #a9b4b8; }.task-card.priority-p0::before { background: var(--coral); }.task-card.priority-p1::before { background: #d7a72e; }.task-card.priority-p2::before { background: var(--blue); }
.task-top { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }.task-top strong { margin-left: auto; color: var(--ink); font-size: 12px; }
.priority, .area, .basis { padding: 4px 7px; border-radius: 999px; background: #eef2f3; font-weight: 800; }.priority-p0 .priority { color: #a53529; background: #ffebe8; }.priority-p1 .priority { color: #81600a; background: #fff5d4; }.priority-p2 .priority { color: #315f9e; background: #eaf1ff; }
.task-card h4 { margin: 13px 0 9px; font-size: 15px; }.evidence { display: flex; flex-wrap: wrap; gap: 6px; }.evidence span { padding: 5px 7px; border-radius: 6px; background: #f3f5f5; color: #53636b; font-size: 11px; }
.task-card dl { margin: 14px 0 0; }.task-card dl div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; margin-top: 8px; }.task-card dt { color: var(--muted); font-size: 11px; font-weight: 800; }.task-card dd { margin: 0; font-size: 12px; line-height: 1.55; }
.good-empty { grid-column: 1 / -1; }.good-empty strong { color: var(--green); }.good-empty p { margin: 8px 0 0; }
.sku-table td:first-child { min-width: 210px; }.sku-table td:first-child small { display: inline-block; max-width: 230px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.stage, .health { display: inline-block; padding: 5px 8px; border-radius: 999px; background: #f0f3f4; color: #52636b; font-size: 11px; white-space: nowrap; }.health.critical { color: #a53529; background: #ffebe8; }.health.attention { color: #81600a; background: #fff5d4; }.health.healthy { color: #287052; background: #e8f6ef; }
.candidate-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.candidate-card { padding: 20px; border-right: 1px solid var(--line); }.candidate-card:last-child { border-right: 0; }.candidate-card > div { display: flex; justify-content: space-between; align-items: center; }.candidate-card small { color: var(--muted); }.score-badge { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--navy); color: white; font-size: 12px; font-weight: 900; }.candidate-card h4 { min-height: 38px; margin: 12px 0 7px; font-size: 14px; }.candidate-card p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }.candidate-card ul { margin: 0; padding-left: 17px; }.candidate-card li { padding: 5px 0; font-size: 11px; }
.storage-copy { padding: 22px 24px; }.storage-copy strong { font-size: 13px; }.storage-copy p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.site-metrics { margin: 16px 0 0; padding: 0 16px; }.site-metrics .metric strong { font-size: 15px; word-break: break-all; }
.site-note { margin: 0; padding: 14px 16px 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 1100px) { .metrics-six { grid-template-columns: repeat(3, 1fr); }.readiness-grid, .candidate-grid { grid-template-columns: repeat(2, 1fr); }.readiness-card, .candidate-card { border-bottom: 1px solid var(--line); } }
@media (max-width: 800px) { .hero { align-items: flex-start; flex-direction: column; }.metrics { grid-template-columns: repeat(2, 1fr); }.keyword-grid, .method-grid { grid-template-columns: 1fr; }.keyword-grid article { border-right: 0; border-bottom: 1px solid var(--line); }.panel-heading { align-items: flex-start; flex-direction: column; }.task-list { grid-template-columns: 1fr; }.readiness-grid, .candidate-grid { grid-template-columns: 1fr; }.readiness-card, .candidate-card { border-right: 0; }.task-card dl div { grid-template-columns: 1fr; }.empty-state div { flex-direction: column; align-items: center; } }
@media (max-width: 480px) { .button { padding: 9px 10px; }.source-badge { width: 100%; }.metrics { grid-template-columns: 1fr 1fr; }.metric { padding: 14px; }.metric strong { font-size: 17px; } main { padding: 18px 12px 40px; } }

.coverage-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.coverage-actions .site-note { margin: 0; }
.critical-text { color: #d64545; }

/* --- 产品管理（简易 ERP 一期）--- */
.erp-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 16px; }
.erp-form-row input, .erp-form-row select { flex: 1 1 180px; min-width: 0; }
.erp-form-row input, .erp-form-row select, .erp-form-grid input, .erp-form-grid select, .erp-form-grid textarea,
.erp-category-tree input { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 12px; background: #fff; color: var(--ink); }
.erp-category-tree { width: 100%; border-collapse: collapse; margin-top: 6px; }
.erp-category-tree td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.erp-category-tree .erp-indent { color: var(--muted); margin-right: 6px; }
.erp-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 14px; margin: 14px 16px; }
.erp-form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); }
.erp-form-grid .erp-wide { grid-column: 1 / -1; }
.erp-section-title { margin: 22px 16px 8px; font-size: 13px; color: var(--ink); }
#erpSiteTabs { margin: 10px 16px 0; }
/* 分类管理弹窗 */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 26, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 16px; z-index: 60; overflow-y: auto; }
.modal-card { background: #fff; border-radius: 16px; max-width: 660px; width: 100%; padding: 18px 20px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.modal-head h3 { margin: 0; }

/* 分类弹窗表单与内联状态 */
.erp-form-row-tight { margin: 12px 0 0; }
.erp-inline-label { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto !important; font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.erp-inline-label input[type="radio"] { width: auto; flex: none; accent-color: var(--navy); }
.erp-narrow { max-width: 90px; flex: 0 0 90px !important; }
.erp-modal-note { padding: 0; margin-top: 10px; }
.erp-modal-status { padding: 0; margin-top: 8px; min-height: 18px; font-weight: 600; }
.erp-status-error { color: #d64545; }

/* 分类弹窗：左右两栏联动 */
.erp-cat-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.erp-cat-pane { border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-height: 240px; overflow: hidden; }
.erp-cat-pane-head { padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 12px; }
.erp-cat-pane-head small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.erp-cat-list { flex: 1; overflow-y: auto; max-height: 300px; padding: 6px; }
.erp-cat-item { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.erp-cat-item:hover { background: #f3f5f5; }
.erp-cat-item.active { background: #eaf1ff; }
.erp-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.erp-cat-btn { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 11px; padding: 3px 9px; cursor: pointer; color: var(--muted); }
.erp-cat-btn-danger { color: #d64545; }
.erp-cat-edit-input { flex: 1; min-width: 0; border: 1px solid var(--navy); border-radius: 7px; padding: 4px 8px; font: inherit; font-size: 13px; }
.erp-cat-add { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.erp-cat-add input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 12px; background: #fff; color: var(--ink); }
.erp-cat-empty { padding: 26px 12px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; }

/* --- 智赢 ERP 复刻风格（产品列表 + 产品编辑页）---
   视觉基准：zying.net 帮助中心截图（2026-09-06 实拉）——
   浅灰底、白卡片 4px 圆角、#c5ced4 细边框、12px 密排小字、蓝色操作文字、红价签、
   必填红框 / 选填绿框、图片五行方格（悬停删除、角标主图）。 */
.zy-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.zy-toolbar .erp-cascader { flex: 1 1 200px; min-width: 180px; max-width: 300px; }
.zy-toolbar input[type="search"], .zy-toolbar input[type="text"] { flex: 1 1 200px; min-width: 0; max-width: 320px; }
.zy-toolbar-right { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.zy-btn { appearance: none; border: 1px solid #c5ced4; background: #fff; color: #315f9e; font: inherit; font-size: 12px; padding: 6px 12px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.zy-btn:hover { background: #f0f6ff; border-color: #9db3c2; }
.zy-btn:disabled { opacity: .5; cursor: wait; }
.zy-btn-primary { background: #2f6fd6; border-color: #2f6fd6; color: #fff; font-weight: 700; }
.zy-btn-primary:hover { background: #2861bd; }
.zy-caret { font-size: 9px; margin-left: 3px; }
.zy-dropdown { position: relative; }
.zy-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 45; min-width: 180px; background: #fff; border: 1px solid #c5ced4; border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); padding: 4px 0; }
.zy-menu-item { padding: 7px 14px; font-size: 12px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.zy-menu-item:hover { background: #f0f6ff; }
.zy-menu-item.active { background: #e8f1ff; color: #315f9e; font-weight: 700; }
.zy-import-row { margin: 12px 14px 0; }
.zy-note { padding: 8px 14px 12px; margin: 0; }

/* 卡片网格列表 */
.zy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; padding: 12px; }
.zy-card { border: 1px solid #dde4e7; border-radius: 4px; background: #fff; cursor: pointer; overflow: hidden; transition: border-color .12s, box-shadow .12s; display: flex; flex-direction: column; }
.zy-card:hover { border-color: #2f6fd6; box-shadow: 0 6px 18px rgba(31, 79, 141, .13); }
.zy-card-img { aspect-ratio: 1 / 1; background: #f6f8f9; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #eef1f2; }
.zy-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zy-card-noimg { color: #9aa6ac; font-size: 11px; }
.zy-card-body { padding: 7px 9px 8px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.zy-card-title { font-size: 11px; line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.zy-card-code { font-size: 13px; font-weight: 800; color: #1f4f9d; letter-spacing: .3px; }
.zy-card-meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.zy-tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; background: #eef2f3; color: #52636b; white-space: nowrap; }
.zy-tag-active { background: #e8f6ef; color: #287052; }
.zy-tag-watching { background: #fff5d4; color: #81600a; }
.zy-tag-discontinued { background: #ffebe8; color: #a53529; }
.zy-card-foot { margin-top: auto; color: #98a4aa; font-size: 10px; }
.zy-cards-empty { grid-column: 1 / -1; padding: 42px 16px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.9; }

.zy-detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zy-detail-actions select { border: 1px solid #c5ced4; border-radius: 4px; padding: 6px 8px; font: inherit; font-size: 12px; background: #fff; color: var(--ink); }
/* 编辑内容装进弹窗：详情弹窗（z-index 60 同既有弹窗）+ CBT 修改弹窗叠在其上（70） */
.erp-modal-tall { padding: 3vh 16px 16px; }
.erp-modal-over { z-index: 70; }
.erp-product-modal-card { max-width: 1120px; }
.erp-cbt-modal-card { max-width: 940px; }
/* 保存提醒弹窗：窄卡只报缺项，不拦截任何保存（店主指令 2026-09-19） */
.erp-advisory-card { max-width: 460px; }
.erp-advisory-card .site-note { white-space: pre-line; }
.zy-modal-body { max-height: 76vh; overflow-y: auto; }
.modal-head h3 small.zy-detail-name { display: inline-block; max-width: 560px; vertical-align: middle; font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.zy-section { padding: 16px; border-bottom: 1px solid var(--line); }
.zy-section:last-child { border-bottom: 0; }
.zy-section-title { font-size: 13px; font-weight: 800; margin: 0 0 12px; color: var(--ink); }
.zy-section-title small { font-weight: 400; color: #98a4aa; margin-left: 8px; font-size: 11px; }
.zy-foot-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px 18px; }

/* 图集：5 列方格 + 悬停删除 + 主图角标（对齐智赢「图片上传」截图） */
.zy-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 880px; }
@media (max-width: 720px) { .zy-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zy-gallery-cell { position: relative; aspect-ratio: 1 / 1; border: 1px solid #dde4e7; border-radius: 4px; overflow: hidden; background: #f6f8f9; }
.zy-gallery-cell:hover { border-color: #2f6fd6; }
.zy-gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zy-gallery-cell img.zy-img-broken { visibility: hidden; }
.zy-gallery-x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; line-height: 15px; text-align: center; border: 0; border-radius: 3px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .1s; padding: 0; }
.zy-gallery-cell:hover .zy-gallery-x { opacity: 1; }
.zy-gallery-main { position: absolute; top: 3px; left: 3px; font-size: 10px; padding: 2px 6px; border-radius: 3px; background: #e4393c; color: #fff; }
.zy-gallery-setmain { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10px; padding: 3px 0; background: rgba(47, 111, 214, .88); color: #fff; cursor: pointer; opacity: 0; transition: opacity .1s; }
.zy-gallery-cell:hover .zy-gallery-setmain { opacity: 1; }
.zy-gallery-add { aspect-ratio: 1 / 1; border: 1px dashed #b9c6cd; border-radius: 4px; background: #f2f6f8; color: #2f6fd6; font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
.zy-gallery-add:hover { background: #e8f1ff; }

/* 多语言页签（三语各自标题+描述可编辑，店主指令 2026-09-06） */
.zy-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.zy-tab { padding: 8px 16px; font-size: 12px; border: 1px solid #c5ced4; border-bottom: 0; background: #f2f4f5; color: #52636b; cursor: pointer; border-radius: 4px 4px 0 0; }
.zy-tab.active { background: #fff; color: #315f9e; font-weight: 700; box-shadow: 0 1px 0 #fff; border-bottom: 2px solid #2f6fd6; }
.zy-lang-edit { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 12px; background: #fff; }
.zy-lang-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: start; }
.zy-lang-row > label { font-size: 12px; font-weight: 700; color: #52636b; padding-top: 8px; }
.zy-lang-row input, .zy-lang-row textarea { padding: 7px 9px; border: 1px solid #c5ced4; border-radius: 4px; font: inherit; font-size: 12px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.zy-lang-row .zy-btn { margin-top: 3px; white-space: nowrap; }
.zy-lang-row textarea { resize: vertical; min-height: 64px; }
.zy-lang-edit .site-note { margin: 0; }
.zy-req { color: #e4393c; margin-left: 2px; }

/* CBT 中文层级行与选择器中文小字（店主要求 2026-09-07：中文更直观） */
.zy-cbt-zh { color: var(--ink); font-size: 12px; }
.erp-cbt-item .cbt-name small { font-size: 11px; color: #2e7f5c; margin-left: 3px; }

/* CBT 分类属性表单：条件必填标记、属性码、数值+单位组合、校验红框 */
.zy-attr-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.zy-attr-title h3 { display: inline; margin: 0; font-size: inherit; }
.zy-attr-clipboard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
#erpAttrClipboardStatus, [data-category-clipboard-status] { margin: 0; }
#erpAttrClipboardStatus:empty, [data-category-clipboard-status]:empty { display: none; }
#erpAttrClipboardStatus.erp-status-error, #erpProductModal [data-category-clipboard-status].erp-status-error { color: #b83d30; }
.zy-cond { color: #b06a00; font-size: 10px; margin-left: 3px; border: 1px solid #e2b26a; border-radius: 3px; padding: 0 3px; }
.zy-attr-code { display: block; font-size: 10px; color: #93a5ad; font-weight: 400; }
.zy-fields.zy-attr-fields { display: block; }
.zy-attr-group { min-width: 0; margin: 12px 0 0; padding: 12px 14px 14px; border: 1px solid #d7dee3; border-radius: 8px; background: #fbfcfd; }
.zy-attr-group:first-child { margin-top: 10px; }
.zy-attr-group legend { padding: 0 7px; color: #445a64; font-size: 12px; font-weight: 800; }
.zy-attr-group legend small { margin-left: 8px; color: #93a5ad; font-size: 10px; font-weight: 400; }
.zy-attr-group-required { border-color: #e6b0ac; background: #fffafa; }
.zy-attr-group-required legend { color: #b83d30; }
.zy-attr-group-conditional { border-color: #e8c996; background: #fffdf8; }
.zy-attr-group-conditional legend { color: #9a6208; }
.zy-attr-group-optional { border-color: #b9d5c5; background: #f9fcfa; }
.zy-attr-group-optional legend { color: #2e7f5c; }
.zy-attr-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px 22px; }
.zy-attr-group-grid .zy-field { grid-template-columns: minmax(132px, 168px) minmax(0, 1fr); }
.zy-attr-group-grid .zy-field > label { line-height: 1.35; }
.zy-attr-quantity { display: flex; gap: 6px; }
.zy-attr-quantity select { max-width: 74px; flex: none; }
.zy-package-line { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px 22px; min-width: 0; }
.zy-package-field { display: grid; grid-template-columns: minmax(132px, 168px) minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.zy-package-field > label { font-size: 12px; color: #52636b; text-align: right; line-height: 1.35; white-space: nowrap; }
.zy-package-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zy-package-measure { flex: 0 0 92px; width: 92px; min-width: 92px; display: block; }
.zy-package-weight-control .zy-package-measure { flex-basis: 120px; width: 120px; min-width: 120px; }
.zy-package-measure input { display: block; width: 100%; min-width: 0; height: 32px; padding: 6px 8px; border: 1px solid #c5ced4; border-radius: 4px; font: inherit; font-size: 12px; background: #fff; color: var(--ink); box-sizing: border-box; text-align: left; font-variant-numeric: tabular-nums; }
.zy-package-unit, .zy-package-times { flex: 0 0 auto; color: #52636b; font-size: 12px; white-space: nowrap; line-height: 32px; text-align: center; }
.zy-package-times { width: 14px; color: #7a8990; font-size: 14px; }
.zy-attr-missing { outline: 1px solid #e4393c; outline-offset: 2px; border-radius: 4px; }
.zy-attr-stale label { color: #93a5ad; }
@media (max-width: 900px) {
  .zy-package-line { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .zy-attr-group-grid { grid-template-columns: 1fr; }
  .zy-attr-group-grid .zy-field,
  .zy-package-field { grid-template-columns: 120px minmax(0, 1fr); }
  .zy-package-measure { flex: 1 1 64px; width: auto; min-width: 54px; }
  .zy-package-weight-control .zy-package-measure { flex: 1 1 120px; width: auto; min-width: 90px; }
}

/* 变体轴区（店主定稿 2026-09-19 第二轮，按图中的淘宝式销售属性逻辑）：
   每条轴一行 = 轴名 + 逗号分隔值清单 + 可选值下拉 + 移除；变体表按轴值组合生成。 */
.zy-axis-list { display: grid; gap: 6px; margin: 8px 0 10px; }
.zy-axis-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.zy-axis-name { min-width: 92px; font-weight: 600; }
.zy-axis-name small { display: block; font-weight: 400; color: #93a5ad; font-size: 10px; }
.zy-axis-name-edit { min-width: 120px; max-width: 200px; font-weight: 600; }
.zy-axis-values { flex: 1; min-width: 240px; }
.zy-axis-pick { max-width: 190px; }
.zy-axis-empty { color: #93a5ad; font-size: 12px; }
.zy-variant-spec { font-size: 12px; color: var(--ink); white-space: nowrap; }

/* 变体图集：全部缩略图，点击放大（同步管理，只读展示） */
.zy-variant-gallery { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; align-items: center; min-width: 230px; max-width: 300px; padding-bottom: 2px; }
.zy-variant-gallery img { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; border: 1px solid #c5ced4; cursor: zoom-in; flex: none; }
.zy-variant-gallery img.zy-img-broken { visibility: hidden; }
.zy-variant-count { font-size: 10px; color: #93a5ad; }
.zy-variant-nopic { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed #c5ced4; border-radius: 4px; color: #93a5ad; font-size: 11px; }

/* 图片尺寸角标：缩略图右下角（产品图集常驻，变体小图悬停显示，灯箱常驻） */
.zy-img-size { position: absolute; right: 2px; bottom: 2px; padding: 0 4px; border-radius: 3px; background: rgba(13,27,42,.68); color: #fff; font-size: 10px; line-height: 15px; pointer-events: none; white-space: nowrap; }
.zy-variant-thumb { position: relative; display: inline-flex; flex: none; }
.zy-variant-thumb .zy-img-size { font-size: 9px; line-height: 13px; padding: 0 3px; opacity: 0; transition: opacity .12s; }
.zy-variant-thumb:hover .zy-img-size { opacity: 1; }
.zy-lightbox-size { position: fixed; right: 20px; bottom: 16px; padding: 3px 10px; border-radius: 5px; background: rgba(13,27,42,.72); color: #fff; font-size: 13px; line-height: 18px; }

/* 变体表数字输入：紧凑框，避免整表过宽把后面列挤出可视区 */
.zy-var-num { width: 78px; max-width: 78px; padding: 4px 6px; box-sizing: border-box; }
.zy-var-num-sm { width: 64px; max-width: 64px; }

/* 详情头部：P 编号下方的基础 SKU（不带变体尾段） */
.zy-detail-sku { margin: 3px 0 0; font-size: 12px; color: #52636b; }
.zy-detail-sku code { font-size: 12px; font-weight: 700; color: #1f4f9d; }

/* 1688 链接行：输入框 + 跳转按钮 */
.zy-source-row { display: flex; gap: 6px; align-items: center; min-width: 0; }
.zy-source-row input { flex: 1; min-width: 0; }
.zy-source-row .zy-btn { flex: none; }

/* 图片放大层 */
.zy-lightbox { z-index: 90; cursor: zoom-out; }
.zy-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.4); }


/* 必填红框 / 选填绿框字段组（对齐智赢编辑页语义） */
.zy-fieldset { border: 1px dashed #dd9f99; border-radius: 4px; padding: 12px 14px 14px; margin-bottom: 12px; }
.zy-fieldset:last-child { margin-bottom: 0; }
.zy-fieldset legend { font-size: 11px; font-weight: 800; padding: 0 6px; color: #b83d30; }
.zy-fieldset.zy-optional { border-color: #9dc3ae; }
.zy-fieldset.zy-optional legend { color: #2e7f5c; }
.zy-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 18px; }
.zy-field { display: grid; grid-template-columns: 108px 1fr; align-items: center; gap: 8px; }
.zy-field.wide { grid-column: 1 / -1; grid-template-columns: 108px 1fr; }
.zy-field > label { font-size: 12px; color: #52636b; text-align: right; }
.zy-field input, .zy-field select, .zy-field textarea { padding: 7px 9px; border: 1px solid #c5ced4; border-radius: 4px; font: inherit; font-size: 12px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.zy-field .zy-req { float: right; }

/* CBT 分类区（迁入编辑页）：分类信息与「修改分类」同行，压缩纵向空间 */
.zy-cbt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zy-cbt-current { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; min-width: 0; }
.zy-cbt-current .site-note { margin: 0; padding: 0; }
.zy-inline-note { padding: 0; margin: 6px 0 0; min-height: 0; }
.erp-cbt-cols { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-top: 8px; }
.erp-cbt-col { flex: 0 0 200px; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-height: 300px; overflow-y: auto; }
.erp-cbt-col-head { position: sticky; top: 0; font-size: 11px; font-weight: 700; color: var(--muted); padding: 7px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.erp-cbt-item { display: flex; align-items: center; gap: 4px; padding: 6px 8px; font-size: 12px; cursor: pointer; border-bottom: 1px solid rgba(0,0,0,0.04); }
.erp-cbt-item:hover { background: rgba(0,0,0,0.035); }
.erp-cbt-item.active { background: rgba(28, 60, 110, 0.09); font-weight: 700; }
.erp-cbt-item code { font-size: 10px; color: var(--muted); flex: none; }
.erp-cbt-item .cbt-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erp-cbt-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* 省市区式级联筛选控件 */
.erp-cascader { position: relative; flex: 1 1 230px; min-width: 200px; }
.erp-cascader-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.erp-cascader-field:hover { border-color: #9db3c2; }
.erp-cascader-arrow { color: var(--muted); font-size: 10px; flex: none; }
.erp-cascader-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16); overflow: hidden; min-width: 420px; }
.erp-cascader-col { width: 210px; max-height: 300px; overflow-y: auto; padding: 6px; }
.erp-cascader-col-right { border-left: 1px solid var(--line); }
.erp-cascader-item { padding: 8px 11px; border-radius: 8px; font-size: 12px; cursor: pointer; color: var(--ink); }
.erp-cascader-item:hover { background: #f3f5f5; }
.erp-cascader-item.nav { background: #eef3f6; font-weight: 700; }
.erp-cascader-item.active { background: #eaf1ff; color: #315f9e; font-weight: 800; }
.erp-cascader-hint { padding: 30px 14px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.9; }

/* ── 已上传明细（只读）：国家/状态页签、状态色、分页、关联徽标 ── */
.uploaded-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 24px 0; }
.uploaded-tabs:empty { display: none; }
.uploaded-tab { padding: 6px 12px; font-size: 12px; }
.uploaded-toolbar { margin-top: 12px; }
.uploaded-pager { display: flex; align-items: center; gap: 14px; padding: 14px 24px 0; }
.uploaded-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.uploaded-status-active { color: #1d7a4f; border-color: #bfe3d0; background: #effaf3; }
.uploaded-status-under_review { color: #9a6b0a; border-color: #eed9a8; background: #fdf6e6; }
.uploaded-status-paused { color: #7a4a1d; border-color: #ecd4bb; background: #fbf3ea; }
.uploaded-status-closed { color: #84313a; border-color: #eac3c9; background: #fdf0f2; }
.uploaded-link-badge { color: #315f9e; font-weight: 700; }
.uploaded-title-cell { max-width: 460px; }

/* 变体名称列（只读，悬停显示完整规格） */
.zy-variant-name { font-size: 12px; color: var(--ink); }

/* ---- 上传通道：产品页多选 + 上传确认框（2026-09-08） ---- */
.erp-select-all { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2, #444); }
.erp-selected-count { font-size: 13px; color: var(--accent, #3483fa); font-weight: 600; }
.zy-card { position: relative; }
.zy-card-select { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(255,255,255,.92); border-radius: 6px; padding: 4px 7px; box-shadow: 0 1px 4px rgba(0,0,0,.14); cursor: pointer; }
.zy-card-select input { cursor: pointer; }
.zy-card-disabled { opacity: .68; }
.zy-tag-upload-uploading { background: #fff4d6; color: #8a6100; }
.zy-tag-upload-active { background: #e3f6e8; color: #1c7c33; }
.zy-tag-upload-failed { background: #ffe3e3; color: #b3261e; }
.erp-upload-dialog { position: fixed; inset: 0; z-index: 60; background: rgba(18,22,28,.45); display: flex; align-items: center; justify-content: center; }
.erp-upload-dialog.hidden { display: none; }
.erp-upload-panel { background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); max-width: 640px; width: min(92vw, 640px); max-height: 86vh; overflow: auto; padding: 18px 22px; }
.erp-upload-panel h3 { margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.erp-upload-close { border: 0; background: none; font-size: 20px; cursor: pointer; color: #666; }
.erp-upload-quota { font-size: 13px; color: #555; margin: 4px 0 8px; }
.erp-upload-sites { border: 1px solid #e2e6ee; border-radius: 8px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 10px; }
.erp-upload-site { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; }
.erp-upload-stock { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #444; margin-bottom: 8px; }
.erp-upload-stock input[type="number"] { width: 110px; padding: 5px 8px; }
.erp-upload-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.erp-upload-status { font-size: 13px; color: #333; }
.erp-upload-outcomes { margin-top: 12px; border-top: 1px dashed #d8dee9; padding-top: 10px; max-height: 260px; overflow: auto; }
.erp-upload-outcome { font-size: 13px; padding: 4px 0; border-bottom: 1px solid #f0f2f6; }
.erp-upload-outcome.ok b { color: #1c7c33; }
.erp-upload-outcome.no b { color: #b3261e; }
.erp-upload-outcome small { display: block; color: #666; margin-left: 8px; }
.zy-btn-primary { background: #3483fa; border-color: #3483fa; color: #fff; }
.zy-btn-primary:disabled { background: #9cc3fd; border-color: #9cc3fd; }

/* ---- 已上传页：上传任务行 ---- */
.uploaded-job-row { background: #fbfcfe; }
.uploaded-job-row td { border-top: 1px solid #e6eaf2; }
.uploaded-variants { margin-top: 6px; display: grid; gap: 4px; }
.uploaded-variant { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.uploaded-variant-sku { font-family: ui-monospace, Consolas, monospace; color: #333; }
.uploaded-variant-error { color: #b3261e; }
.uploaded-variant pre { width: 100%; margin: 4px 0 0; background: #f6f7fa; border: 1px solid #e2e6ee; border-radius: 6px; padding: 6px 8px; font-size: 11.5px; max-height: 160px; overflow: auto; white-space: pre-wrap; }
.uploaded-variant pre.hidden { display: none; }
.uploaded-raw-toggle { color: #3483fa; }
.uploaded-site-dot { display: inline-block; padding: 1px 6px; border-radius: 10px; background: #eceff5; color: #555; font-size: 11.5px; }
.uploaded-site-dot.ok { background: #e3f6e8; color: #1c7c33; }
.uploaded-site-dot.bad { background: #ffe3e3; color: #b3261e; }
.uploaded-status-pending, .uploaded-status-running { background: #fff4d6; color: #8a6100; }
.uploaded-status-uploading { background: #fff4d6; color: #8a6100; }
.uploaded-status-failed { background: #ffe3e3; color: #b3261e; }
.uploaded-status-success { background: #e3f6e8; color: #1c7c33; }
.uploaded-retry { padding: 4px 10px; font-size: 12.5px; }
.uploaded-quota { color: #1c7c33; font-weight: 600; }
.uploaded-quota.full { color: #b3261e; }
.uploaded-category-select { max-width: 260px; padding: 5px 8px; border: 1px solid #d8dee9; border-radius: 6px; background: #fff; font-size: 13px; }

/* 目录竞争（buybox）徽标（店主 2026-09-11 目录筛选）：胜出绿、竞争橙、
   普通链接灰、无读数虚线灰（与状态徽标同尺寸，可并存）。 */
.catalog-chip { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; cursor: help; }
.catalog-chip-winner { background: #e3f6e8; color: #1c7c33; border: 1px solid #bfe5c8; }
.catalog-chip-competing { background: #fff4d6; color: #8a6100; border: 1px solid #f0dfa8; }
.catalog-chip-regular { background: #f1f3f6; color: #5a6472; border: 1px solid #d8dee9; }
.catalog-chip-unread { background: #fff; color: #9aa3af; border: 1px dashed #c3cad4; }

/* 包邮徽标 / x/N 单元格 / 免邮线提示（店主 2026-09-11）：平台实测 +
   参考线运营推算两层口径——绿=包邮、灰=不包、虚线灰=未同步。 */
.fs-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; cursor: help; }
.fs-badge.fs-free { background: #e3f6e8; color: #1c7c33; border: 1px solid #bfe5c8; }
.fs-badge.fs-none { background: #f1f3f6; color: #5a6472; border: 1px solid #d8dee9; }
.fs-badge.fs-unknown { background: #fff; color: #9aa3af; border: 1px dashed #c3cad4; }
.fs-estimate { color: #8a6100; }
.fs-estimate-tip { margin-left: 3px; color: #9aa3af; cursor: help; border: 1px solid #d8dee9; border-radius: 999px; padding: 0 4px; font-size: 10px; }
.fs-cell { font-weight: 600; cursor: help; white-space: nowrap; }
.fs-cell.fs-all { color: #1c7c33; }
.fs-cell.fs-partial { color: #8a6100; }
.fs-cell.fs-none { color: #5a6472; }
.fs-cell.fs-unknown { color: #9aa3af; font-weight: 400; }
.uploaded-site-dot.fs-free { background: #e3f6e8; color: #1c7c33; border: 1px solid #bfe5c8; }
.fs-hint { font-size: 11.5px; color: #6b7482; cursor: help; white-space: nowrap; }

.zy-toolbar .uploaded-erp-cascader { flex: 0 1 240px; min-width: 200px; }

/* ---- 已上传页产品行 + 明细弹窗 ---- */
.uploaded-product-row { cursor: pointer; }
.uploaded-product-row:hover td { background: #f4f8ff; }
.uploaded-product-cell { display: flex; gap: 10px; align-items: center; }
.uploaded-product-cell img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e6ee; flex: none; }
.uploaded-product-cell .zy-card-noimg { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: #f3f5f7; border-radius: 6px; font-size: 10px; color: #99a; flex: none; }
.uploaded-product-modal { max-width: 860px; width: min(94vw, 860px); }
.uploaded-modal-body { padding: 14px 18px; max-height: 74vh; overflow: auto; display: grid; gap: 12px; }
.uploaded-modal-body h4 { margin: 6px 0 2px; }
.uploaded-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uploaded-edit-grid label { display: grid; gap: 4px; font-size: 12px; color: #445; }
.uploaded-edit-grid input, .uploaded-edit-grid textarea { padding: 6px 8px; border: 1px solid #d8dee9; border-radius: 6px; font: inherit; font-size: 12px; width: 100%; box-sizing: border-box; }
.uploaded-variant-block { border: 1px solid #e6eaf2; border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; }
.uploaded-variant-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.uploaded-variant-title { font-weight: 600; font-size: 13px; }
.uploaded-variant-meta { color: #8892a6; font-size: 11.5px; }
.uploaded-variant-summary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.uploaded-status-created { background: #e8f0fe; color: #1a4f8b; border-color: #c9daf8; }
.uploaded-status-unverified { background: #fff1e0; color: #8a4b00; border-color: #f2ddb9; }
.uploaded-edit-details { border: 1px solid #e6eaf2; border-radius: 8px; padding: 8px 10px; }
.uploaded-edit-details summary { cursor: pointer; font-weight: 600; font-size: 12.5px; color: #445; }
.uploaded-edit-details .uploaded-edit-grid { margin-top: 10px; }
.uploaded-edit-net { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: #445; }
.uploaded-edit-net input { width: 90px; padding: 4px 6px; border: 1px solid #d8dee9; border-radius: 6px; }
.uploaded-site-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.uploaded-site-table th, .uploaded-site-table td { padding: 4px 8px; border-bottom: 1px solid #eef1f6; text-align: left; }
.uploaded-variant-gallery { display: flex; gap: 6px; flex-wrap: wrap; }
.uploaded-variant-gallery img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid #e6eaf2; }
.uploaded-review-evidence { background: #fff8f2; border: 1px solid #f3ddb9; border-radius: 6px; padding: 8px 10px; display: grid; gap: 6px; font-size: 12px; }
.uploaded-evidence-title { font-weight: 600; color: #8a5a00; }
.uploaded-evidence-code code { background: #fdeed7; padding: 1px 4px; border-radius: 3px; }
.uploaded-evidence-pics { display: flex; gap: 8px; flex-wrap: wrap; }
.uploaded-evidence-pic { display: grid; gap: 2px; justify-items: center; text-decoration: none; color: #556; }
.uploaded-evidence-pic img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid #e6eaf2; }
.uploaded-evidence-warn { color: #c0392b; }
.uploaded-evidence-fix { color: #8a5a00; background: #fdeed7; border-radius: 4px; padding: 4px 6px; }
.uploaded-modal-actions { display: flex; gap: 10px; align-items: center; border-top: 1px dashed #d8dee9; padding-top: 10px; }

/* 已上传页批量删除：选择列 + 删除条 + 强确认区 */
.uploaded-check-col { width: 34px; text-align: center; }
.uploaded-check-col input { width: 15px; height: 15px; cursor: pointer; }
.uploaded-delete-bar { display: flex; gap: 12px; align-items: center; margin: 6px 0 2px; padding: 6px 10px; background: #f4f7fb; border: 1px solid #c9d8ea; border-radius: 8px; font-size: 12.5px; }
.uploaded-sync-btn { background: #1a5fb4; border-color: #1a5fb4; color: #fff; }
.uploaded-sync-btn:hover { background: #17497f; }
.uploaded-delete-btn { background: #b3261e; border-color: #b3261e; color: #fff; }
.uploaded-delete-btn:hover { background: #97120c; }
.uploaded-delete-confirm { display: grid; gap: 8px; padding: 8px 10px; border: 1px solid #f0c9c9; border-radius: 8px; background: #fffafa; font-size: 12.5px; }
.uploaded-delete-confirm label { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.uploaded-delete-typed input { border: 1px solid #b3261e; border-radius: 6px; padding: 4px 8px; width: 120px; }

/* ---- 运营首页（2026-09-09 改版：账户诊断 → 首页 + 诊断明细）----
   状态色统一：绿=正常 / 黄=注意 / 橙=异常 / 红=风险 / 灰=未知；红只给规则触发的风险。 */
.home-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #d5e0e4; font-size: 11.5px; white-space: nowrap; }
.chip-ok { background: rgba(98,212,156,.16); border-color: rgba(98,212,156,.35); color: #9fe3c0; }
.chip-risk { background: rgba(239,106,91,.2); border-color: rgba(239,106,91,.45); color: #ffb3a8; }
.chip-unknown { color: #aebfc5; }
.home-actions { margin-top: 0; }
.metric-sub { display: block; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.metric small.metric-scope { display: inline; margin: 0 0 0 4px; font-weight: 400; color: #98a4aa; }
.home-metric { cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.home-metric:hover { border-color: #9db3c2; box-shadow: 0 6px 18px rgba(25,45,55,.1); }
.metric.warn { border-color: #efc39a; background: #fff9f2; }.metric.warn strong { color: #b05f10; }
.health.abnormal { color: #b05f10; background: #fff1e2; }
.health.unknown { color: #52636b; background: #eef2f3; }
.warn-text { color: #b05f10; }
.home-summary { padding: 18px 24px; display: grid; gap: 8px; }
.home-summary-ok { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.home-summary-focus { margin: 0; color: #53636b; font-size: 13px; line-height: 1.7; }
.task-actions { margin-top: 12px; }
.home-matrix-actions { justify-content: flex-start; margin-top: 12px; padding: 0 16px; }
.home-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.home-matrix th, .home-matrix td { white-space: nowrap; font-size: 12.5px; padding: 11px 12px; }
.cell-link { cursor: pointer; font-weight: 700; text-decoration: underline dotted rgba(23,33,41,.3); text-underline-offset: 3px; }
.cell-link:hover { color: #315f9e; }
.home-freshness th, .home-freshness td { white-space: nowrap; }
.home-storage { margin-top: 16px; padding: 0 6px; }
.home-skeleton { padding: 22px; }

/* 诊断明细：折叠面板（首次展开才加载；summary 复用 panel-heading 版式 + 展开箭头） */
details.diag-panel { overflow: hidden; }
details.diag-panel > summary { list-style: none; cursor: pointer; }
details.diag-panel > summary::-webkit-details-marker { display: none; }
details.diag-panel > summary::after { content: "▾"; flex: none; align-self: flex-end; margin: 0 0 18px 4px; color: var(--muted); font-size: 13px; }
details.diag-panel[open] > summary::after { content: "▴"; }
details.diag-panel > summary.panel-heading { border-bottom-color: transparent; }
details.diag-panel[open] > summary.panel-heading { border-bottom-color: var(--line); }
details.diag-panel[open] > summary:hover h3 { color: #315f9e; }

/* ── 站点时间·季节对比卡片：中国居中置顶，五国一排 ── */
.time-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.time-card-hero { max-width: 470px; margin: 0 auto 16px; border-color: var(--coral); border-width: 2px; padding: 20px 24px 18px; text-align: center; }
.time-card-hero .time-card-head { justify-content: center; }
.time-card-hero .time-flag { font-size: 26px; }
.time-card-hero .time-clock { font-size: 46px; margin: 10px 0 4px; }
.time-card-hero .time-date { font-size: 13.5px; }
.time-card-hero .time-meta { justify-content: center; }
.time-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .time-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .time-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.time-card-head { display: flex; align-items: center; gap: 8px; }
.time-flag { font-size: 20px; line-height: 1; }
.time-tz { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.time-clock { font-size: 30px; font-weight: 800; letter-spacing: .02em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.time-date { color: var(--muted); font-size: 12.5px; }
.time-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.time-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 11.5px; white-space: nowrap; }
.time-diff { border-color: #cfdbe3; color: var(--navy); font-weight: 600; }
.time-note { margin-top: 8px; color: var(--muted); font-size: 11px; }
.time-holidays { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.time-holiday { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11.5px; }
.time-holiday-days { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.time-holiday.soon .time-holiday-days { color: var(--coral); font-weight: 700; }
.time-card-hero .time-holidays { display: none; }
.uploaded-quota-refresh { border-style: dashed; color: var(--blue); font-weight: 600; }
.uploaded-quota-refresh:disabled { opacity: .55; cursor: wait; }

/* 编辑推送通道（设计文档 11）：双按钮 + 任务面板 */
.uploaded-push-btn { background: #0b57d0; border-color: #0b57d0; color: #fff; }
.uploaded-push-btn:hover { background: #0842a0; }

/* 库存：本地到货台账（店主 2026-09-14；产品分组 + 变体行 + 记录条） */
.inventory-modal-card { max-width: 760px; }
.inv-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 34px 20px; text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0; }
.inv-group { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; background: var(--surface); overflow: hidden; }
.inv-group-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(36, 63, 74, .03); }
.inv-group-code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--blue); font-weight: 700; }
.inv-group-name { font-weight: 700; font-size: 13.5px; }
.inv-group-meta { color: var(--muted); font-size: 12px; margin-left: auto; }
.inv-group-meta strong { color: var(--ink); }
.inv-table { width: 100%; }
.inv-table th { font-size: 11px; color: var(--muted); text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.inv-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; }
.inv-table tr:last-child td { border-bottom: 0; }
.inv-variant-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.inv-variant-thumb { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; cursor: zoom-in; flex: none; background: var(--paper); }
.inv-variant-thumb:hover { border-color: var(--blue); }
.inv-nopic { width: 46px; height: 46px; border: 1px dashed var(--line); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; flex: none; }
.inv-variant-name { font-weight: 600; }
.inv-variant-sku { display: block; color: var(--muted); font-size: 11px; font-family: ui-monospace, Consolas, monospace; margin-top: 2px; word-break: break-all; }
.inv-total-cell { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-records { display: flex; flex-direction: column; gap: 6px; }
.inv-record { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-record-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-record-qty { font-size: 12.5px; white-space: nowrap; }
.inv-tracking { border: 1px solid var(--line); background: rgba(79, 128, 216, .08); color: var(--blue); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; font-family: ui-monospace, Consolas, monospace; cursor: copy; word-break: break-all; }
.inv-tracking:hover { background: rgba(79, 128, 216, .16); }
.inv-record-note { color: var(--muted); font-size: 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.inv-mini-btn { padding: 2px 10px; font-size: 12px; margin-left: 4px; }
.inv-del-btn { color: var(--coral); }
.inv-picker-results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 200px; overflow-y: auto; }
.inv-picker-item { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 13px; }
.inv-picker-item:hover { border-color: var(--blue); }
.inv-picker-item.active { border-color: var(--blue); background: rgba(79, 128, 216, .1); }
.inv-picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-variant-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.inv-variant-item { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.inv-variant-item:hover { border-color: var(--blue); }
.inv-variant-item.active { border-color: var(--blue); background: rgba(79, 128, 216, .12); font-weight: 600; }
.inv-variant-item small { color: var(--muted); margin-left: 4px; font-family: ui-monospace, Consolas, monospace; }

/* CBT 规则库：行首状态标记（店主配色定稿 2026-09-19：黑=正常可变体、黄=不支持
   变体、红=禁刊登；替代文字徽章，行宽收窄到单行省略）+ 搜索工具栏 */
.cbt-mark { flex: none; display: inline-block; width: 16px; text-align: center; font-style: normal; cursor: help; }
.cbt-mark-branch { font-weight: 700; color: var(--muted); font-size: 12px; line-height: 1; }
.cbt-dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 4px; }
.cbt-dot-ok { background: #26343e; }
.cbt-dot-single { background: #e0a800; }
.cbt-dot-ban { background: #d43a3a; }
.erp-cbt-search-name .cbt-dot { vertical-align: 1px; }
#erpCbtPickerHint .cbt-dot { display: inline-block; margin: 0 3px 0 5px; vertical-align: -1px; }
/* 禁用叶子整行标红（对应智赢红字行）。 */
.erp-cbt-item.cbt-item-blocked .cbt-name { color: #b02a2a; }
.erp-cbt-item.cbt-item-blocked .cbt-name small { color: #9c4a4a; }
.erp-cbt-search-row.cbt-item-blocked .erp-cbt-search-name { color: #b02a2a; }
.erp-cbt-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.erp-cbt-toolbar input { flex: 1 1 260px; min-width: 220px; }
#erpCbtRulesAge { white-space: nowrap; }
.erp-cbt-search-results { margin-top: 6px; max-height: 210px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.erp-cbt-search-row { padding: 7px 12px; border-bottom: 1px solid rgba(0,0,0,0.05); cursor: pointer; }
.erp-cbt-search-row:hover { background: rgba(28, 60, 110, 0.06); }
.erp-cbt-search-name { font-size: 12px; font-weight: 600; }
.erp-cbt-search-name small { color: #2e7f5c; font-size: 11px; }
.erp-cbt-search-row .site-note { margin: 2px 0 0; font-size: 11px; }

/* ===== 产品页双库切换 + 采集库待办标签（店主定稿 2026-09-17）===== */
.zy-lib-switch { display: inline-flex; border: 1px solid #c5ced4; border-radius: 4px; overflow: hidden; }
.zy-lib-btn { appearance: none; border: 0; background: #fff; color: #315f9e; font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.zy-lib-btn + .zy-lib-btn { border-left: 1px solid #c5ced4; }
.zy-lib-btn.active { background: #2f6fd6; color: #fff; font-weight: 700; }
.zy-lib-btn span { opacity: .8; font-weight: 400; }
.zy-tag-todo { background: #fff4d6; color: #8a6100; }
.zy-tag-ready { background: #e3f6e8; color: #1c7c33; font-weight: 700; }
.zy-tag-archived { background: #e7ebf0; color: #4c5f70; }
.zy-promotion-ready { color: #1c7c33; }
.zy-promotion-ready::before { content: "✓ "; }
.erp-promote-skip { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12px; color: #52636b; }
.erp-promote-skip:last-child { border-bottom: 0; }

/* ===== 采集品 AI 加工结果面板 ===== */
.erp-ai-result { margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.erp-ai-section { font-size: 12px; padding: 6px 10px; border-radius: 4px; background: #f6f8fa; color: #52636b; }
.erp-ai-section b { display: block; margin-bottom: 2px; }
.erp-ai-section.ok { background: #e3f6e8; color: #1c7c33; }
.erp-ai-section.kept { background: #eef2f3; color: #52636b; }
.erp-ai-section.note { background: #fff4d6; color: #8a6100; }

/* Uploaded workspace: product-level overview, explicit listing-level readings. */
#uploadedView .panel { overflow: hidden; }
#uploadedView .panel-heading { align-items: center; padding-bottom: 18px; }
#uploadedView .panel-heading h3 { font-size: 23px; margin: 4px 0 8px; }
#uploadedView .panel-heading p { margin: 0; padding: 0; }
.uploaded-filter-label { padding: 14px 24px 6px; font-size: 12px; font-weight: 650; }
.uploaded-filter-label small { margin-left: 12px; font-weight: 400; color: var(--muted); }
#uploadedView .uploaded-tabs { padding: 4px 24px 8px; gap: 7px; }
#uploadedView .uploaded-tab { border-radius: 7px; padding: 7px 10px; }
#uploadedView .uploaded-toolbar { border-top: 1px solid var(--line); margin-top: 12px; padding: 16px 24px; gap: 10px; }
#uploadedView #uploadedSearch { flex: 1 1 290px; min-width: 200px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; }
#uploadedView .uploaded-category-select { max-width: 220px; }
#uploadedView .fs-hint { display: none; }
#uploadedView .table-wrap { overflow-x: auto; }
#uploadedView table { min-width: 1120px; }
#uploadedView th { font-size: 11px; white-space: nowrap; padding: 13px 12px; background: #f5f7f8; }
#uploadedView td { padding: 14px 12px; vertical-align: middle; font-variant-numeric: tabular-nums; }
#uploadedView .uploaded-product-cell { min-width: 250px; max-width: 340px; gap: 12px; }
#uploadedView .uploaded-product-cell b { font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#uploadedView .uploaded-product-cell img { width: 52px; height: 52px; object-fit: contain; background: white; }
#uploadedView .uploaded-status { margin: 2px 2px 2px 0; }
.uploaded-cell-note { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
#uploadedView .uploaded-delete-bar { margin: 0 24px 12px; padding: 12px; border-radius: 8px; background: #f1f6fa; gap: 8px; }
#uploadedActionScope { flex-basis: 100%; color: #526475; }
.uploaded-metric-note { margin: 16px 24px; font-size: 12px; color: var(--muted); }
.uploaded-metric-note summary, .uploaded-receipt summary { cursor: pointer; }
.uploaded-product-modal { max-width: 1180px; width: min(96vw, 1180px); }
.uploaded-modal-body > h4 { margin: 20px 0 8px; }
.uploaded-modal-body > p.site-note { padding: 0; margin: 0 0 12px; }
.uploaded-modal-body .uploaded-site-table { display: block; overflow-x: auto; }
.uploaded-matrix { margin: 14px 0 24px; border: 1px solid var(--line); border-radius: 8px; }
.uploaded-matrix table { min-width: 700px; width: 100%; }
.uploaded-matrix th, .uploaded-matrix td { padding: 12px; border-bottom: 1px solid var(--line); }
.uploaded-matrix th { background: #f5f7f8; }
.uploaded-matrix td:first-child { max-width: 250px; }
.uploaded-receipt { margin: 12px 0; font-size: 12px; color: var(--muted); }
.uploaded-modal-actions { position: sticky; bottom: 0; background: white; border-top: 1px solid var(--line); padding: 14px 0; z-index: 2; }
@media (max-width: 720px) {
  #uploadedView .panel-heading, #uploadedView .uploaded-toolbar { padding: 16px; }
  #uploadedView .uploaded-tabs { padding-left: 16px; padding-right: 16px; }
  .uploaded-filter-label { padding-left: 16px; }
  #uploadedView .uploaded-category-select { max-width: none; flex: 1 1 180px; }
  #uploadedView .uploaded-delete-bar { margin-left: 16px; margin-right: 16px; }
}
