/* 合作方资料站。10-13 改版：主色取盛健严选 logo 的绿（#00843c），字号整体放大一档，卡片和弹窗统一圆角与阴影 */
:root {
  --bg: #f5f4ef;
  --card: #ffffff;
  --ink: #18211c;
  --ink-2: #3b4640;
  --muted: #737d76;
  --faint: #a7ada8;
  --line: #ebe8df;
  --line-2: #f3f1eb;
  --brand: #087a3a;
  --brand-logo: #00843c;
  --brand-deep: #065c2c;
  --brand-soft: #e7f3ea;
  --warn: #a8640a;
  --warn-soft: #fbf1df;
  --bad: #b8392b;
  --bad-soft: #fbe7e3;
  --good: #087a3a;
  --good-soft: #e6f2e9;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(24, 33, 28, .04), 0 6px 20px rgba(24, 33, 28, .05);
  --shadow-up: 0 2px 4px rgba(24, 33, 28, .05), 0 12px 32px rgba(24, 33, 28, .09);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
body.dlg-open { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { letter-spacing: .2px; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 28px; background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-img { height: 26px; width: auto; flex: none; }
.brand-sub { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.brand-sub small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ver { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.demo-tag {
  font-size: 11px; color: var(--warn); background: var(--warn-soft); border-radius: 5px;
  padding: 1px 6px; white-space: nowrap; font-weight: 500;
}
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a {
  position: relative; padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px;
}
.nav a:hover { color: var(--ink); background: var(--line-2); }
.nav a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.me { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.me b { color: var(--ink); font-weight: 500; }
.btn {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 14px;
  font-size: 14px; line-height: 1.3; white-space: nowrap; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: #cdc7b8; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.btn.primary:hover { background: var(--brand-deep); }
.btn.small { padding: 4px 11px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 28px 28px 48px; }
.page-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.page-title h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: .5px; }
.page-title .sub { color: var(--muted); font-size: 14px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 10px 14px; color: var(--muted);
  font-size: 13.5px; margin-bottom: 18px;
}
.notice b { color: var(--ink); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 9px;
  font-size: 12px; line-height: 20px; white-space: nowrap; background: #f0eee7; color: var(--muted); font-weight: 500;
}
.pill.type { color: #fff; background: var(--c, #888); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.off { background: #ebebe7; color: #666a66; }
.pill.today-pill { background: var(--brand); color: #fff; }

/* ---------- 排期 ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav b { font-size: 20px; font-weight: 700; min-width: 120px; text-align: center; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--brand); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.legend button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 11px 3px 9px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.legend button i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); display: inline-block; }
.legend button.off { opacity: .4; }

.cal { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 10px 12px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); background: #fbfaf6; }
.cal-head div:nth-child(n+6) { color: var(--brand); }
.day {
  position: relative; min-height: 132px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-width: 0;
  background: #fff; text-align: left;
}
.day:nth-child(7n) { border-right: 0; }
.day:hover { background: #fbfbf8; }
.day.out { background: #fafaf7; cursor: default; }
.day.past { background: #fcfcfa; }
.day.past .ses { opacity: .55; }
.day.past .dnum b { color: var(--faint); }
.dnum { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-height: 28px; }
.dnum b { font-size: 16px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dnum .tag { margin-left: auto; font-size: 12px; font-weight: 600; }
/* 今天：整格描主色边、浅绿底，日期做成实心圆，右上角「今天」 */
.day.today { background: #f1f8f3; box-shadow: inset 0 0 0 2px var(--brand); z-index: 1; }
.day.today:hover { background: #ebf5ee; }
.day.today .dnum b {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 15px; box-shadow: 0 2px 6px rgba(8, 122, 58, .35);
}
.day.today .dnum .tag { color: #fff; background: var(--brand); border-radius: 6px; padding: 1px 8px; }
.ses {
  display: block; border-radius: 8px; padding: 5px 8px 6px; background: color-mix(in srgb, var(--c) 9%, #fff);
  border-left: 3px solid var(--c); font-size: 13px; line-height: 1.4; min-width: 0; transition: background .15s, transform .15s;
}
.ses:hover { background: color-mix(in srgb, var(--c) 16%, #fff); transform: translateY(-1px); }
.ses .t { display: block; color: var(--c); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.ses .th { color: var(--ink); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ses .buy { display: block; margin-top: 3px; font-size: 12px; color: var(--bad); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unplanned { margin-top: auto; font-size: 12px; color: #b4ae9f; border: 1px dashed #dcd6c8; border-radius: 8px; text-align: center; padding: 3px 0; }
.day.unplanned-day { background: repeating-linear-gradient(135deg, #fff, #fff 7px, #faf9f4 7px, #faf9f4 14px); }
.none { margin-top: auto; font-size: 12px; color: #c4bfb3; }
/* 列表视图（10-13 加回来） */
.agenda { display: flex; flex-direction: column; gap: 12px; }
.ag-day { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 92px 1fr; overflow: hidden; border: 1px solid var(--line); }
.ag-day.past { opacity: .62; }
.ag-day.today { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.ag-date { background: #fbfaf6; padding: 14px 10px; text-align: center; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ag-date b { font-size: 26px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-date small { color: var(--muted); font-size: 13px; }
.ag-day.today .ag-date { background: var(--brand-soft); }
.ag-day.today .ag-date b { color: var(--brand); }
.ag-date .tag { margin-top: 4px; font-size: 12px; color: #fff; background: var(--brand); border-radius: 6px; padding: 0 8px; font-weight: 600; }
.ag-list { padding: 4px 18px; }
.ag-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.ag-item:last-child { border-bottom: 0; }
.ag-item:hover .th { color: var(--brand); }
.ag-item .t { color: var(--c); font-size: 13px; font-weight: 600; display: flex; flex-direction: column; }
.ag-item .t b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ag-item .th { font-weight: 600; font-size: 16px; }
.ag-item .sub { color: var(--ink-2); font-size: 14px; margin-top: 1px; }
.ag-item .meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.ag-item .meta .buy { color: var(--bad); font-weight: 600; }
.ag-item .go { color: var(--faint); font-size: 20px; }
.ag-end { text-align: center; color: var(--muted); padding: 16px; border: 1px dashed #d8d2c4; border-radius: var(--radius-s); }

/* ---------- 弹窗（10-13 从右侧滑出改成居中） ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 60; background: rgba(18, 24, 20, .42);
  display: grid; place-items: center; padding: 24px; animation: fadeIn .15s ease-out;
}
.sheet-panel {
  background: var(--bg); width: min(760px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column;
  border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); overflow: hidden; animation: popIn .18s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet-body { overflow-y: auto; padding: 18px 20px 22px; }
.x { border: 0; background: var(--line-2); border-radius: 50%; width: 34px; height: 34px; font-size: 20px; line-height: 1; color: var(--muted); }
.x:hover { background: var(--line); color: var(--ink); }
.ses-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 20px; margin-bottom: 14px; border-top: 4px solid var(--c); }
.ses-card:last-child { margin-bottom: 0; }
.ses-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ses-meta .when { color: var(--muted); font-size: 14px; font-weight: 500; margin-right: 4px; font-variant-numeric: tabular-nums; }
.ses-title { font-size: 21px; font-weight: 700; line-height: 1.4; margin: 10px 0 4px; }
.ses-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; font-size: 14px; margin: 12px 0 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
h4.blk { font-size: 14px; font-weight: 600; color: var(--ink); margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
h4.blk::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--c, var(--brand)); }
ol.outline { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.outline > li { position: relative; counter-increment: step; padding: 0 0 12px 34px; }
ol.outline > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--c, var(--brand)) 14%, #fff); color: var(--c, var(--brand)); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
ol.outline > li::after { content: ''; position: absolute; left: 10.5px; top: 26px; bottom: 2px; width: 1px; background: var(--line); }
ol.outline > li:last-child { padding-bottom: 0; }
ol.outline > li:last-child::after { display: none; }
ol.outline > li > b { font-weight: 600; }
ol.outline ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
ol.outline ul li { margin: 2px 0; }
.ol-sum { margin: 0 0 12px; font-size: 15px; color: var(--ink); background: color-mix(in srgb, var(--c, var(--brand)) 7%, #fff); border-radius: 10px; padding: 10px 14px; line-height: 1.7; }
.empty-outline { color: var(--muted); font-size: 14px; background: var(--line-2); border-radius: var(--radius-s); padding: 12px 14px; }
.prod-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.prod-link { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbf8; color: var(--ink); transition: border-color .15s; }
.prod-link:hover { border-color: var(--brand); }
.prod-link img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.prod-link .nm { font-weight: 600; font-size: 14.5px; }
.prod-link .pr { color: var(--bad); font-size: 13px; }
.prod-link .go { margin-left: auto; color: var(--faint); font-size: 18px; }

/* ---------- 产品列表 ---------- */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search input { border: 0; outline: 0; padding: 11px 0; flex: 1; font: inherit; background: transparent; min-width: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 15px; font-size: 14px; color: var(--muted); }
.tabs button.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, #fff); color: var(--brand); font-weight: 600; }
.tabs button small { opacity: .7; margin-left: 3px; }
.group-h { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.group-h h2 { font-size: 19px; font-weight: 700; margin: 0; }
.group-h span { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; border: 1px solid rgba(0, 0, 0, .03); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card .ph { position: relative; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line-2); }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card .cnt { position: absolute; right: 8px; bottom: 8px; background: rgba(24, 33, 28, .6); color: #fff; font-size: 11.5px; border-radius: 6px; padding: 0 6px; }
.card .off-badge { position: absolute; right: 8px; top: 8px; background: #5f635f; color: #fff; font-size: 12px; border-radius: 6px; padding: 1px 7px; }
.card.off .ph img { opacity: .55; filter: grayscale(.4); }
.card .live-badge { position: absolute; left: 8px; top: 8px; background: var(--bad); color: #fff; font-size: 12px; border-radius: 6px; padding: 1px 7px; font-weight: 500; }
.card .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .nm { font-weight: 600; font-size: 15px; line-height: 1.4; }
.card .meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .pr { margin-top: auto; display: flex; align-items: baseline; gap: 6px; padding-top: 6px; }
.price { color: var(--bad); font-weight: 700; font-variant-numeric: tabular-nums; }
.price.text { font-weight: 600; font-size: 13.5px; }
s.orig { color: #aaa394; font-size: 12.5px; }
.card .pr small { color: var(--muted); font-size: 12px; margin-left: auto; }

table.dense { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
table.dense th, table.dense td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.dense th { background: #fbfaf6; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
table.dense tr:last-child td { border-bottom: 0; }
table.dense tr:hover td { background: #fcfcf9; }
table.dense td.nm { font-weight: 600; }
table.dense td.nm a { color: var(--ink); display: flex; gap: 10px; align-items: center; }
table.dense td.nm img { width: 42px; height: 42px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); flex: none; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- 产品详情 ---------- */
.crumb { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.detail-top { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; position: sticky; top: 84px; }
.g-main { position: relative; aspect-ratio: 1 / 1; cursor: zoom-in; background: #fff; overflow: hidden; border-radius: 10px; }
.g-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.g-main .idx { position: absolute; right: 8px; bottom: 8px; background: rgba(24, 33, 28, .6); color: #fff; font-size: 12px; border-radius: 6px; padding: 1px 8px; }
.g-main .cap { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); font-size: 12px; border-radius: 6px; padding: 1px 8px; color: var(--muted); }
.g-main .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); font-size: 18px; }
.g-main .arrow.l { left: 6px; } .g-main .arrow.r { right: 6px; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; }
.g-thumbs button { flex: 0 0 60px; height: 60px; border: 2px solid transparent; border-radius: 8px; padding: 0; background: #fff; overflow: hidden; position: relative; }
.g-thumbs button.on { border-color: var(--brand); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs .p { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(168, 100, 10, .88); color: #fff; font-size: 10px; line-height: 14px; }

.info h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.info .alias { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.box h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.box h3::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--brand); }
.box h3 small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.sku-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sku-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); }
.sku-table td { padding: 10px 8px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.sku-table tr:last-child td { border-bottom: 0; }
.sku-table .price { white-space: pre-line; }
.sku-table .same { color: #b4ae9f; font-size: 13px; }
.sku-table .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sku-table td.pc { white-space: nowrap; }
.sku-table td.lk { white-space: nowrap; text-align: right; }
.sku-table .open { margin-left: 8px; font-size: 13px; }
.coupon { color: var(--warn); font-size: 12.5px; margin-top: 2px; }
.pill.mem { background: var(--bad-soft); color: var(--bad); font-size: 11px; line-height: 18px; padding: 0 7px; }
.qi { color: var(--bad); font-size: 12px; margin-left: 2px; }
.sku-hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 24px; }
.fact { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.fact dt { color: var(--muted); }
.fact dd { margin: 0; white-space: pre-line; word-break: break-word; }

.sec-nav { position: sticky; top: 64px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 12px 0 6px; background: var(--bg); }
.sec-nav a { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13.5px; color: var(--ink-2); }
.sec-nav a:hover { border-color: var(--brand); color: var(--brand); }
/* 卖点和长图横跨两栏；中间的卡片由 app.js 的 balanceCols() 按高度分到两栏，短卡片旁边不留大片空 */
.sections .box { margin: 0 0 16px; scroll-margin-top: 130px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col .box { margin: 0; }
.quote { background: var(--brand-soft); border-radius: 10px; padding: 12px 16px; color: var(--brand-deep); font-weight: 600; margin-bottom: 4px; white-space: pre-line; line-height: 1.7; }
/* 卖点（10-13 改版）：商品亮点排成卡片，产品手册要点每条标题、正文分两行 */
h4.sub-h { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 1px; margin: 18px 0 10px; }
.hl-sec { font-size: 15px; font-weight: 700; color: var(--brand); margin: 14px 0 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hl-sec:first-child { margin-top: 0; }
.hl-sec small { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 4px; }
.hl-card { background: #fbfaf6; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; }
.hl-t { font-weight: 700; font-size: 15px; margin-bottom: 6px; line-height: 1.45; }
.hl-card p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.hl-card p:last-child { margin-bottom: 0; }
ul.hl-list { margin: 0 0 4px; padding-left: 20px; columns: 2; column-gap: 32px; }
ul.hl-list li { margin: 0 0 6px; break-inside: avoid; color: var(--ink-2); font-size: 14.5px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px 28px; }
.pg { margin-bottom: 4px; }
.pg h4 { margin: 0 0 8px; font-size: 14px; color: var(--brand); padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.pt { margin-bottom: 10px; }
.pt-t { font-weight: 600; font-size: 14.5px; }
.pt-b { color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.pg ul, .box ul { margin: 0; padding-left: 20px; }
.pg li, .box li { margin: 4px 0; }
.pg li b { font-weight: 600; }
details.raw { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
details.raw summary { color: var(--muted); font-size: 13px; cursor: pointer; }
details.raw .txt { white-space: pre-line; font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.crowd { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 8px; }
.crowd div { border-radius: 9px; padding: 8px 10px; font-size: 13px; background: #f4f2ec; }
.crowd div b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.crowd .ok { background: var(--good-soft); } .crowd .ok b { color: var(--good); }
.crowd .mid { background: var(--warn-soft); } .crowd .mid b { color: var(--warn); }
.crowd .no { background: var(--bad-soft); } .crowd .no b { color: var(--bad); }
.para { white-space: pre-line; }
.lbl { color: var(--muted); font-size: 13px; margin: 12px 0 3px; }
.lbl:first-child { margin-top: 0; }
.long-imgs { display: flex; flex-direction: column; gap: 0; max-width: 750px; margin: 0 auto; }
.long-imgs img { width: 100%; cursor: zoom-in; }
.more { display: block; margin: 12px auto 0; }
.empty { color: var(--muted); font-size: 13.5px; }
.live-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; cursor: pointer; }
.live-row:hover { color: var(--brand); }
.live-row:last-child { border-bottom: 0; }
.live-row .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.live-row.future .d { color: var(--bad); font-weight: 600; }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 11, .92); display: flex; align-items: center; justify-content: center; }
.lightbox .stage { max-width: 96vw; max-height: 90vh; overflow: auto; }
.lightbox img { max-width: 96vw; max-height: 90vh; object-fit: contain; margin: auto; }
.lightbox img.long { max-height: none; width: min(750px, 96vw); }
.lightbox .x { position: fixed; right: 16px; top: 16px; background: rgba(255, 255, 255, .9); }
.lightbox .nav-l, .lightbox .nav-r { position: fixed; top: 50%; border: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .88); font-size: 20px; }
.lightbox .nav-l { left: 14px; } .lightbox .nav-r { right: 14px; }
.lightbox .count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 13px; }

/* ---------- 登录 ---------- */
.login-bg { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 18% 8%, #e3f0e6, transparent 52%), radial-gradient(circle at 90% 90%, #efeadc, transparent 45%), var(--bg); }
.login { width: min(400px, 100%); background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(24, 33, 28, .1); padding: 32px 30px 24px; }
.login .brand { margin-bottom: 22px; flex-wrap: wrap; }
.login .logo-img { height: 30px; }
.login label { display: block; font-size: 13.5px; color: var(--muted); margin: 12px 0 5px; }
.login input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; outline: 0; }
.login input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.login .btn.primary { width: 100%; padding: 11px; margin-top: 18px; font-size: 16px; }
.login .hint { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }
.login .demo { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.err { color: var(--bad); font-size: 13.5px; margin-top: 8px; }

/* ---------- 账号管理 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat small { color: var(--muted); font-size: 13px; }
.stat b { display: block; font-size: 28px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.status { font-size: 12.5px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.status.on { background: var(--good-soft); color: var(--good); }
.status.off { background: #eeeae0; color: var(--muted); }
.ops { display: flex; gap: 6px; flex-wrap: wrap; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(18, 24, 20, .42); display: grid; place-items: center; padding: 16px; }
.modal-panel { background: #fff; border-radius: 16px; width: min(460px, 100%); padding: 22px 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, .22); max-height: 90vh; overflow-y: auto; }
.modal-panel h2 { font-size: 18px; margin: 0 0 12px; }
.modal-panel label { display: block; font-size: 13.5px; color: var(--muted); margin: 12px 0 5px; }
.modal-panel input, .modal-panel select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; }
.modal-panel .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pw { font-family: ui-monospace, Menlo, monospace; font-size: 20px; background: var(--brand-soft); color: var(--brand); padding: 10px 12px; border-radius: 10px; text-align: center; letter-spacing: 1px; margin: 10px 0; }

/* ---------- 杂项 ---------- */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 90; background: rgba(24, 33, 28, .92); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; max-width: 86vw; text-align: center; }
.watermark { position: fixed; inset: 0; z-index: 50; pointer-events: none; background-repeat: repeat; opacity: .5; }
.foot { color: #a8a294; font-size: 12.5px; text-align: center; padding: 32px 0 10px; }
.bottom-nav { display: none; }

@media (max-width: 960px) {
  .detail-top { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col:empty { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-sub { display: none; }
}
@media (max-width: 760px) {
  :root { font-size: 14px; }
  .top { height: 54px; padding: 0 12px; gap: 8px; }
  .logo-img { height: 22px; }
  .nav { display: none; }
  .me .who { display: none; }
  .wrap { padding: 14px 12px 90px; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a { text-align: center; padding: 9px 0 8px; color: var(--muted); font-size: 12px; }
  .bottom-nav a i { display: block; font-style: normal; font-size: 18px; line-height: 1.1; }
  .bottom-nav a.on { color: var(--brand); font-weight: 600; }
  .legend { margin-left: 0; width: 100%; }
  .day { min-height: 78px; padding: 4px 3px 5px; gap: 3px; }
  .dnum { font-size: 11px; gap: 2px; min-height: 22px; }
  .dnum b { font-size: 13px; }
  .day.today .dnum b { min-width: 22px; height: 22px; font-size: 12.5px; }
  .dnum .tag { display: none; }
  .ses { padding: 2px 4px; border-left-width: 2px; font-size: 11px; border-radius: 5px; }
  .ses .t { font-size: 10px; }
  .ses .buy { font-size: 10px; }
  .unplanned { font-size: 10px; }
  .none { display: none; }
  .cal-head div { padding: 6px 4px; text-align: center; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sheet { padding: 10px; }
  .sheet-panel { max-height: 92vh; border-radius: 14px; }
  .info h1 { font-size: 21px; }
  .sec-nav { top: 54px; }
  .facts { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 20px; }
}
.table-scroll table.dense { min-width: 820px; }

/* ---------- 问一问 ---------- */
.chat { max-width: 920px; display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 500px; }
.chat-log { flex: 1; overflow-y: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.welcome b { display: block; margin-bottom: 12px; color: var(--muted); font-weight: 500; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #faf9f5; border-radius: 999px; padding: 2px 11px; font-size: 12.5px; color: var(--muted); }
.chip.ask { font-size: 14px; padding: 7px 14px; background: #fff; color: var(--ink); cursor: pointer; }
.chip.ask:hover { border-color: var(--brand); color: var(--brand); }
.chip.prod { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.chip.prod img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; background: #fff; }
.turn { margin-bottom: 20px; }
.turn .q { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.turn .q span { background: var(--brand); color: #fff; padding: 9px 14px; border-radius: 14px 14px 3px 14px; max-width: 75%; white-space: pre-wrap; }
.turn .a { background: #faf9f5; border: 1px solid #efece3; border-radius: 14px 14px 14px 3px; padding: 12px 16px; max-width: 92%; }
.refs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.lbl2 { font-size: 12.5px; color: var(--muted); }
.thinking { color: var(--muted); font-size: 14px; }
.thinking::after { content: '…'; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.txt { line-height: 1.8; }
.txt .li { display: inline-block; padding-left: 4px; }
.caret { display: inline-block; width: 7px; height: 16px; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: blink .8s infinite; }
.tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.timing { color: #a8a294; font-size: 12px; margin-right: auto; }
.chat-input { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.chat-input textarea { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; resize: none; outline: 0; background: #fff; }
.chat-input textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chat-input .btn { padding: 11px 22px; }
.chat-foot { display: flex; align-items: center; gap: 10px; color: #a8a294; font-size: 12.5px; margin-top: 8px; }

/* 10-15 新品占位：排期主推排到了、资料站还没有的 */
.card.new .ph { background: var(--brand-soft); }
.card .ph-new { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--brand); }
.card .ph-new b { font-size: 22px; letter-spacing: 2px; }
.card .ph-new span { font-size: 13px; color: var(--muted); }
.card .pr .tbd { color: var(--muted); font-size: 13px; font-weight: 400; }
.pill.new { background: var(--brand-soft); color: var(--brand); }
.ph-mini { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; }
table.dense .ph-mini { width: 42px; height: 42px; font-size: 12px; }
.new-detail { margin-top: 12px; }
.new-detail h1 { margin: 0 0 10px; font-size: 24px; }
.new-detail .para { color: var(--ink-2, #444); margin: 14px 0 18px; line-height: 1.8; }
.new-detail h3 { font-size: 16px; margin: 0 0 8px; }

/* 10-15 页面权限勾选 */
.page-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.page-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: 14.5px; }
.modal-panel .page-checks input { width: auto; }
