/* ============================================================
   小鱼啵啵 · 直播间好价作业
   风格：低饱和奶白 + 浅燕麦，护眼、留白充足、手机优先
   ============================================================ */

:root {
  --bg:      #FFF7F4;   /* 奶白偏粉，页面底 */
  --bg2:     #FFEFEA;
  --card:    #FFFFFF;
  --card2:   #FFFCFB;
  --ink:     #2E2A26;   /* 主文字 */
  --ink2:    #7A6E64;
  --ink3:    #B0A49A;
  --line:    #F3E3DD;
  --line2:   #E9D5CC;

  --brand:      #FF7CA8;   /* 莓粉主色（淡一档）：编号 / 按钮 / 选中态 */
  --brand-deep: #E8547F;   /* 按下态 / 强调 */
  --brand-soft: #FFF0F6;   /* 浅底 chip */

  --gold:      #FFB423;    /* 金币黄：返红包 */
  --gold-soft: #FFF3D6;
  --gold-deep: #E58A00;    /* 金币深：保证文字对比度 */

  --good: #17A67A;
  --warn: #FF7A45;

  --radius: 18px;
  --radius-s: 12px;
  --shadow-s: 0 1px 2px rgba(120, 70, 80, .05), 0 2px 8px rgba(120, 70, 80, .05);
  --shadow-m: 0 6px 18px rgba(120, 70, 80, .08);
  --shadow-l: 0 18px 42px rgba(120, 70, 80, .14);

  /* 老变量名兼容，统一指向新配色 */
  --price: var(--brand);
  --oat: var(--gold-soft);
  --oat-deep: var(--gold-deep);
}
[data-theme="dark"] {
  --bg: #211C1A;
  --bg2: #2A2321;
  --card: #2B2423;
  --card2: #312928;
  --ink: #F5EDE9;
  --ink2: #C3B2AC;
  --ink3: #948179;
  --line: #3A302E;
  --line2: #4A3C39;
  --brand: #FF9CC2;
  --brand-deep: #FF7AA8;
  --brand-soft: #523242;
  --gold: #FFC64F;
  --gold-soft: #4A3A1E;
  --gold-deep: #FFC64F;
  --price: var(--brand);
  --oat: #4A3B26;
  --oat-deep: var(--gold-soft);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-m: 0 6px 18px rgba(0, 0, 0, .42);
  --shadow-l: 0 20px 44px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
/* 关键修复：[hidden] 必须强制隐藏，否则会被下面的 display 规则覆盖 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  line-height: 1.55;
  transition: background .3s, color .3s;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

/* ---------- 小羊水印（只出现在 hero 和空状态） ---------- */
.wool-watermark {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='160' height='160'%3E%3Cg fill='%23B09872'%3E%3Ccircle cx='20' cy='37' r='12'/%3E%3Ccircle cx='31' cy='31' r='13'/%3E%3Ccircle cx='43' cy='33' r='12'/%3E%3Ccircle cx='37' cy='42' r='11'/%3E%3Ccircle cx='25' cy='44' r='10'/%3E%3Crect x='22' y='47' width='5' height='11' rx='2.5'/%3E%3Crect x='38' y='47' width='5' height='11' rx='2.5'/%3E%3Cellipse cx='52' cy='31' rx='9' ry='10'/%3E%3Cellipse cx='46' cy='23' rx='4.6' ry='2.8' transform='rotate(-28 46 23)'/%3E%3Ccircle cx='55.4' cy='30' r='1.5' fill='%23FAF7F1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
  opacity: .04;
}

/* ---------- 顶部 hero（全站唯一引流位） ---------- */
.hero {
  position: relative; overflow: hidden; padding: 18px 0;
  background: linear-gradient(120deg, #FF5C8A 0%, #FF6E9C 50%, #FF86AC 100%);
  color: #fff;
  transition: max-height .42s ease, opacity .3s ease, padding .34s ease;
}
/* 玻璃高光：一道较亮的柔光从左至右扫过 hero 背景（不遮挡文字） */
.hero::after {
  content: ""; position: absolute; top: 0; left: 0; width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  animation: heroGlass 5.5s ease-in-out infinite; pointer-events: none; z-index: 0;
}
@keyframes heroGlass {
  0%   { transform: translateX(-160%) skewX(-18deg); }
  45%  { transform: translateX(330%) skewX(-18deg); }
  100% { transform: translateX(330%) skewX(-18deg); }
}
/* 进入页面默认收起；下拉或点工具条按钮才展开，上滑不会自动收起 */
body.hero-off .hero { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; pointer-events: none; }
#heroToggle svg { transition: transform .28s; }
body.hero-off #heroToggle svg { transform: rotate(180deg); }
.hero-inner { position: relative; z-index: 1; display: flex; gap: 16px; align-items: flex-start; }
.hero-avatar {
  width: 78px; height: 78px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid #fff; overflow: hidden;
  box-shadow: 0 6px 16px rgba(150, 30, 70, .18);
}
.hero-avatar span { width: 100%; height: 100%; display: block; padding: 7px; }
.hero-avatar svg { width: 100%; height: 100%; }
.hero-avatar span.has-img { padding: 0; }
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-main { flex: 1; min-width: 0; }
.hero-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: .2px; color: #fff; }
.hero-slogan { margin: 0 0 8px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .95); }
.hero-desc { margin: 0 0 13px; font-size: 12.5px; line-height: 1.65; color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wechat-btn {
  height: 40px; padding: 0 14px; border: 0; border-radius: var(--radius-s); background: #fff;
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  color: var(--brand-deep); box-shadow: 0 4px 12px rgba(150, 30, 70, .16); transition: transform .2s;
}
.wechat-btn:active { transform: scale(.97); }
.wechat-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wechat-btn b { font-weight: 700; }
.wechat-btn em { font-style: normal; font-size: 11px; color: var(--ink2); background: var(--bg2); padding: 2px 8px; border-radius: 20px; }
.hero-qr { flex: none; width: 94px; }
.hero-qr img { width: 100%; display: block; border-radius: 10px; background: #fff; }
.qr-ph {
  display: block; padding: 20px 6px; text-align: center; font-size: 11.5px; line-height: 1.6;
  color: rgba(255, 255, 255, .92); border: 1px dashed rgba(255, 255, 255, .65); border-radius: 10px;
}
.qr-ph small { display: block; font-size: 10.5px; opacity: .85; }

/* ---------- 三行常驻提示 ---------- */
.notice-stack { display: flex; flex-direction: column; gap: 5px; padding: 13px 18px 0; }
.notice-line {
  margin: 0; padding: 0 0 0 10px; font-size: 12px; line-height: 1.6; color: var(--ink2);
  border-left: 3px solid var(--line2);
}

/* ---------- 小羊 SVG 配色 ---------- */
.sheep .wool { fill: var(--oat); }
.sheep .leg  { fill: var(--oat-deep); }
.sheep .face { fill: #F2EADC; }
.sheep .hair { fill: var(--oat-deep); }
.sheep .eye  { fill: #5B5044; }
[data-theme="dark"] .sheep .face { fill: #DCCFB6; }
[data-theme="dark"] .sheep .eye { fill: #332C23; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .topbar { background: var(--bg); }
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-sheep { width: 40px; height: 40px; flex: none; }
.logo-sheep svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-text b { font-size: 17px; font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.logo-text em { font-style: normal; font-size: 11.5px; color: var(--ink3); letter-spacing: .3px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.to-top-btn { opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .28s, visibility .28s, transform .28s, background .25s, color .25s, box-shadow .25s; }
.to-top-btn.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.to-top-btn.scrolled { background: var(--brand-deep); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); }

.cart-btn, .icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink2);
  display: grid; place-items: center; box-shadow: var(--shadow-s); transition: all .22s;
}
.cart-btn svg, .icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:hover, .icon-btn:hover { color: var(--ink); border-color: var(--line2); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 10px; background: var(--price); color: #fff; font-size: 11px; font-weight: 700;
  font-style: normal; display: grid; place-items: center; line-height: 1;
}

.stat-strip {
  display: flex; align-items: stretch; gap: 0; padding: 5px;
  margin-top: 14px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.stat {
  flex: 1 1 0; min-width: 0; position: relative;
  text-align: center; padding: 13px 6px;
}
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--line);
}
.stat b {
  display: block; font-size: 21px; font-weight: 800; line-height: 1.1;
  color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: .3px;
}
.stat span {
  display: block; margin-top: 5px; font-size: 11px; font-weight: 600;
  color: var(--ink3); letter-spacing: .4px;
}

/* ---------- 区块标题 ---------- */
.section-title { margin: 22px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.section-title::before {
  content: ""; display: inline-block; width: 4px; height: 14px; border-radius: 3px;
  background: var(--brand); margin-right: 8px; vertical-align: -2px;
}

/* ---------- 价格说明条 ---------- */
.notice {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 14px 0 4px; padding: 10px 13px; border-radius: var(--radius-s);
  background: var(--bg2); border: 1px dashed var(--line2); color: var(--ink2);
  font-size: 12px; line-height: 1.6;
}
.notice svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: var(--oat-deep); stroke-width: 1.8; stroke-linecap: round; }

/* ---------- 主播标签 ---------- */
.modules { display: flex; gap: 8px; padding: 12px 0 2px; overflow-x: auto; scrollbar-width: none; }
.modules::-webkit-scrollbar { display: none; }
.mod-tab {
  flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 15px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink2); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-s); transition: all .24s;
}
.mod-tab:hover { color: var(--ink); border-color: var(--line2); }
.mod-tab.active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; box-shadow: 0 4px 10px rgba(232, 84, 127, .22); }
[data-theme="dark"] .mod-tab.active { color: #fff; }
.mod-tab .cnt { font-size: 11px; padding: 1px 7px; border-radius: 20px; background: var(--bg2); color: var(--ink3); }
.mod-tab.active .cnt { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------- 面板通用 ---------- */
.panel {
  margin-top: 12px; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.range-row { display: block; margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line); }
.range-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 0;
  border: 0; background: none; text-align: left; color: var(--ink);
}
.range-toggle .chev {
  width: 18px; height: 18px; flex: none; margin-left: auto;
  fill: none; stroke: var(--ink3); stroke-width: 2; stroke-linecap: round;
  transition: transform .26s;
}
.range-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.range-body { margin-top: 12px; }

.search-box {
  position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--bg2); transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 92, 138, .13); }
.search-box svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink3); stroke-width: 2; stroke-linecap: round; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink2); font-size: 13px; font-family: inherit; -webkit-appearance: none; appearance: none; }
.search-box input::placeholder { color: var(--ink3); }
.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-decoration,
.search-box input::-webkit-search-results-button,
.search-box input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; flex-wrap: nowrap; }
.cat-filter { flex: 0 0 auto; height: 42px; padding: 0 10px 0 30px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--bg2); color: var(--ink2); font-size: 13px; font-family: inherit;
  -webkit-appearance: none; appearance: none; cursor: pointer; }
.cat-filter:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 92, 138, .13); }
.cat-box { position: relative; flex: 0 0 auto; margin-left: auto; }
.cat-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; fill: none; stroke: var(--ink3); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.clear-btn { border: 0; background: none; color: var(--ink3); font-size: 20px; line-height: 1; padding: 0 2px; }
.clear-btn:hover { color: var(--ink); }

.select-box select, .field input, .field select {
  height: 42px; padding: 0 32px 0 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--bg2); color: var(--ink2); font-size: 12.5px; font-family: inherit; outline: none;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A79C8A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 15px;
}
.select-box select:focus, .field input:focus { border-color: var(--oat-deep); }
.field input { cursor: text; background-image: none; padding-right: 12px; }

.ghost-btn, .solid-btn {
  height: 42px; padding: 0 16px; border-radius: var(--radius-s); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: all .22s;
}
.ghost-btn { border: 1px solid var(--line); background: var(--bg2); color: var(--ink2); }
.ghost-btn:hover { color: var(--ink); border-color: var(--line2); }
.ghost-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.solid-btn { border: 0; background: var(--brand); color: #fff; font-weight: 600; }
.solid-btn:hover { background: var(--brand-deep); color: #fff; }

/* ---------- 价格滑块 ---------- */
.range-title { font-size: 13px; font-weight: 700; color: var(--ink2); }
.price-label { font-size: 12.5px; font-weight: 600; color: var(--brand-deep); background: var(--brand-soft); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.inputs { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.inputs em { color: var(--ink3); font-style: normal; }
.inputs .cur { color: var(--ink3); font-size: 13px; }
.inputs input {
  width: 88px; height: 36px; text-align: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 13.5px; outline: none;
  min-width: 0;
}
.inputs input:focus { border-color: var(--oat-deep); }
.inputs input::-webkit-outer-spin-button, .inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.slider { position: relative; height: 26px; }
.slider-track { position: absolute; top: 11px; left: 0; right: 0; height: 5px; border-radius: 5px; background: var(--line); }
.slider-fill { position: absolute; height: 100%; border-radius: 5px; background: var(--oat-deep); }
.slider input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 26px; margin: 0; -webkit-appearance: none; appearance: none; background: none; pointer-events: none; }
.slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--oat-deep); cursor: grab; box-shadow: var(--shadow-s);
}
.slider input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); }
.slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 15px; height: 15px; border-radius: 50%; background: var(--card); border: 3px solid var(--oat-deep); cursor: grab; }
.slider input[type=range]::-moz-range-track { background: transparent; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  padding: 6px 13px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--ink2); font-size: 12.5px; font-weight: 600; transition: all .22s; white-space: nowrap;
}
.chip:hover { border-color: var(--line2); color: var(--ink); }
.chip.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }

/* ---------- 工具区（红包 / 搭配） ---------- */
.tool { padding: 0; overflow: hidden; }
.tool-head {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  border: 0; background: none; text-align: left; color: var(--ink);
}
.tool-ico {
  width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg2); border: 1px solid var(--line);
}
.tool-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--oat-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-txt { flex: 1; min-width: 0; }
.tool-txt b { display: block; font-size: 14.5px; font-weight: 700; }
.tool-txt i { display: block; font-style: normal; font-size: 12px; color: var(--ink3); line-height: 1.5; }
.tool-head .chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink3); stroke-width: 2; stroke-linecap: round; transition: transform .26s; }
.tool-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tool-body { padding: 0 16px 0; border-top: 0 dashed var(--line);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .34s ease, opacity .26s ease,
              padding-bottom .3s ease, border-top-width .2s ease; }
.tool-body.open { padding-bottom: 16px; border-top-width: 1px; opacity: 1; }
.tool-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding-top: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; color: var(--ink3); padding-left: 2px; }
.field input, .field select { width: 130px; }
.field.chk { flex-direction: row; align-items: center; gap: 7px; height: 42px; }
.field.chk input { width: 18px; height: 18px; accent-color: var(--oat-deep); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-s); background: var(--bg2); border: 1px solid var(--line); height: 42px; }
.seg-btn {
  padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ink2);
  font-size: 13px; font-weight: 600; transition: all .22s;
}
.seg-btn.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }

.tool-result { margin-top: 14px; }
.tr-note { display: none; font-size: 12.5px; color: var(--ink3); padding: 2px; }
.tr-round { margin-bottom: 14px; }
.tr-round > h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.tr-round > h4 i { font-style: normal; font-size: 11px; color: var(--ink3); }
.tr-combo {
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg2);
  padding: 11px 12px; margin-bottom: 9px;
}
.tr-combo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tr-combo-head b { font-size: 13px; color: var(--ink); }
.tr-combo-head span { font-size: 12px; color: var(--ink3); }
.tr-combo-head .money { font-size: 15px; font-weight: 800; color: var(--price); }
.tr-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px dashed var(--line2); }
.tr-item:first-child { border-top: 0; }
.tr-item .ti-code { font-weight: 700; font-size: 12.5px; color: var(--oat-deep); flex: none; min-width: 34px; }
.tr-item .ti-name { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-item .ti-price { font-size: 13px; font-weight: 700; color: var(--price); flex: none; }
.tr-actions { display: flex; gap: 6px; margin-top: 9px; }
.mini-btn {
  height: 32px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink2); font-size: 12px; font-weight: 600;
}
.mini-btn:hover { color: var(--ink); border-color: var(--line2); }
.mini-btn.solid { border: 0; background: var(--brand); color: #fff; }
.mini-btn.solid:hover { background: var(--brand-deep); color: #fff; }

/* ---------- 指定主播红包搭配：单件结果卡 ---------- */
.ask-list { display: flex; flex-direction: column; gap: 9px; }
.ask-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px 11px;
  padding: 11px 12px; border: 1px solid var(--line2); border-radius: 14px;
  background: var(--card); box-shadow: 0 2px 10px rgba(140, 50, 80, .06); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.ask-item:hover {
  border-color: var(--brand); box-shadow: 0 6px 18px rgba(140, 50, 80, .12);
}
.ask-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ask-item:active { transform: scale(.994); }
.ai-pic {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(140deg, #FFF6EE, #F1E3C9);
  display: grid; place-items: center;
}
.ai-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ai-title {
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ai-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink2); }
.ai-code { font-weight: 700; font-size: 12px; color: var(--oat-deep); }
.ai-copy {
  height: 23px; padding: 0 9px; border-radius: 8px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--line2); background: var(--bg2); color: var(--ink2);
}
.ai-copy:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-soft); }
.ai-date { color: var(--ink3); }
.ai-price { font-size: 16px; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; }
.ai-origin { color: var(--ink3); text-decoration: line-through; }
.ai-left { color: var(--ink3); }
.ai-go {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 31px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .2px;
  box-shadow: 0 2px 8px rgba(232, 84, 127, .26);
  -webkit-tap-highlight-color: transparent;
  transition: background .18s, box-shadow .18s, transform .12s;
}
.ai-go svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.ai-go:hover { background: var(--brand-deep); box-shadow: 0 4px 12px rgba(232, 84, 127, .34); }
.ai-go:active { transform: scale(.96); }
.ai-note { font-size: 11.5px; color: var(--ink3); line-height: 1.4; }

/* ---------- 组合方案卡（多件） ---------- */
.ask-plan {
  padding: 11px 12px; border: 1px solid var(--line2); border-radius: 14px;
  background: var(--card); box-shadow: 0 2px 10px rgba(140, 50, 80, .06); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.ask-plan:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(140, 50, 80, .12); }
.ask-plan:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ask-plan:active { transform: scale(.994); }
/* 按钮组靠右 */
.ap-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ap-head > b { font-size: 13px; color: var(--ink); }
.ap-tag {
  flex: none; font-size: 11px; font-weight: 600; padding: 2.5px 9px; border-radius: 999px;
  background: var(--bg2); color: var(--ink2); border: 1px solid var(--line);
}
.ap-tag.good { background: rgba(23, 166, 122, .12); color: var(--good); border-color: rgba(23, 166, 122, .3); }
.ap-tag.gold { background: var(--gold-soft); color: var(--gold-deep); border-color: rgba(255, 180, 35, .35); }
.ap-tag.info { background: var(--brand-soft); color: var(--brand-deep); border-color: rgba(255, 124, 168, .32); }
.ap-sum { margin-left: auto; font-size: 12px; color: var(--ink2); }
.ap-sum b { font-size: 15px; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; }
.ap-items { margin-top: 9px; display: flex; flex-direction: column; gap: 7px; }
.ap-row { display: flex; align-items: center; gap: 8px; }
.ap-name {
  flex: 1; min-width: 0; font-size: 13px; color: var(--ink); line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ap-price { flex: none; font-size: 13px; font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }
.ap-date {
  flex: none; font-size: 11px; color: var(--ink2); background: var(--bg2);
  border-left: 3px solid var(--line2); padding: 1px 6px; border-radius: 5px; white-space: nowrap;
}
/* 同一天的商品 + 它自己的进直播间按钮，放在同一个分区里 */
.ap-group { margin-top: 10px; }
.ap-group:first-of-type { margin-top: 9px; }
.ap-group + .ap-group { padding-top: 10px; border-top: 1px dashed var(--line2); }
.ap-ghead { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.ap-gsum { font-size: 11.5px; color: var(--ink3); }
/* 汇总行与「进直播间」按钮等高（31px），同一行内垂直居中对齐 */
.ap-gfoot { display: flex; align-items: center; justify-content: flex-end; min-height: 31px; margin-top: 8px; }
.ap-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 31px; margin-top: 9px;
}
.ap-foot .ai-go { margin-left: auto; }
.ap-left { font-size: 11.5px; color: var(--ink3); line-height: 1.3; }
@media (max-width: 400px) {
  .ap-gfoot .ai-go { width: 100%; }
  .ap-foot .ai-go { width: 100%; margin-left: 0; }
}

/* ---------- 生成作业：loading / 骨架屏 / 失败态 ---------- */
.solid-btn.is-loading, .solid-btn[disabled] { opacity: .72; cursor: default; }
.spinner {
  display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
  animation: skSpin .7s linear infinite;
}
@keyframes skSpin { to { transform: rotate(360deg); } }
.ask-loading { display: flex; flex-direction: column; gap: 9px; }
.sk-card {
  height: 78px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2);
  animation: skPulse 1.15s ease-in-out infinite;
}
@keyframes skPulse { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
.ask-error {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line2);
  background: var(--card); box-shadow: 0 2px 10px rgba(140, 50, 80, .06);
}
.ask-error b { flex: none; font-size: 13px; color: var(--warn); }
.ask-error span { flex: 1 1 170px; min-width: 0; font-size: 12px; color: var(--ink2); line-height: 1.45; }
[data-theme="dark"] .ai-pic { background: linear-gradient(140deg, #2E281E, #3A3225); }
[data-theme="dark"] .ai-go { box-shadow: 0 2px 10px rgba(0, 0, 0, .38); }
@media (max-width: 400px) {
  .ai-go { margin-left: 0; width: 100%; }
  .ask-item { grid-template-columns: 56px 1fr; }
  .ai-pic { width: 56px; height: 56px; }
}

/* ---------- 结果行 ---------- */
.result-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 2px 12px; font-size: 12.5px; color: var(--ink3); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oat-deep); display: inline-block; }

/* ---------- 商品卡片 ---------- */
/* 瀑布流：JS 按「最短的一列」依次投放，左右两列不强制等高 */
.grid { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 26px; }
.mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mcard { position: relative; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(140, 50, 80, .05), 0 6px 18px rgba(140, 50, 80, .07); transition: box-shadow .2s, border-color .2s;
  animation: fadeIn .2s ease backwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.card:hover { box-shadow: 0 2px 6px rgba(140, 50, 80, .08), 0 12px 28px rgba(140, 50, 80, .12); border-color: var(--line2); }

.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg2); cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
/* 无图占位：整格铺满的占位图（object-fit: cover 保证不留白） */
.ph-img { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-theme="dark"] .ph-img { filter: brightness(.78) saturate(.9); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; }
.ph svg { width: 54%; height: 54%; opacity: .85; }
.ph-bg1 { background: linear-gradient(140deg, #F6F1E7, #EDE4D3); }
.ph-bg2 { background: linear-gradient(140deg, #F4EDE2, #E6DCC8); }
.ph-bg3 { background: linear-gradient(140deg, #F7F2EA, #E9E0CE); }
[data-theme="dark"] .ph-bg1 { background: linear-gradient(140deg, #2E281E, #3A3225); }
[data-theme="dark"] .ph-bg2 { background: linear-gradient(140deg, #2C261C, #383024); }
[data-theme="dark"] .ph-bg3 { background: linear-gradient(140deg, #302A20, #3C3427); }

/* 左上角编号 —— 莓粉实底白字胶囊 */
/* 图片左上角：主播 + 编号 */
.m-tags {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: flex; align-items: center; gap: 5px; max-width: calc(100% - 16px);
  opacity: .82;
}
.tag-host {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0;
  max-width: 100%; padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 2px 7px rgba(255, 92, 138, .3);
  white-space: normal; line-height: 1.35;
}
.tag-host svg {
  width: 11px; height: 11px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tag-code {
  position: absolute; left: 8px; top: 8px; z-index: 2; opacity: .82;
  flex: none; padding: 3px 7px; border-radius: 8px;
  font-size: 11px; font-weight: 600; color: var(--ink2);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(4px);
}
/* 右上角直播日期 */
.badge-date {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, .82); color: #9A907F; backdrop-filter: blur(4px);
}
/* 右下角主播 / 标签 */
[data-theme="dark"] .badge-date { background: rgba(0, 0, 0, .45); color: #9C927C; }
.card-body { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
/* 标题按实际行数走：一行就一行高，两行就两行高 */
.card-title { margin: 0; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price { font-size: 18px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.price small { font-size: 12.5px; font-weight: 600; }
.price-old { font-size: 12px; color: var(--ink3); text-decoration: line-through; }
.off { font-size: 10.5px; font-weight: 600; color: var(--good); background: rgba(23, 166, 122, .12); padding: 2px 6px; border-radius: 6px; }
.note { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 参考价说明：整块清单只留一个，放在「直播间好价清单」标题旁 */
.section-head { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; margin-top: 22px; }
.section-head .section-title { margin: 0; white-space: nowrap; }
.why-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; white-space: nowrap;
  border: 0; border-radius: 20px; background: var(--bg2); cursor: pointer;
  font-size: 11px; color: var(--ink3); font-weight: 500;
}
.why-btn:hover { color: var(--brand); }
.why-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.card-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 2px; }
.tag { font-size: 11px; color: var(--ink3); background: var(--bg2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-actions { display: flex; align-items: center; gap: 6px; }
.card { position: relative; }
.card-more { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--card); color: var(--ink3); font-size: 18px; line-height: 1; cursor: pointer; }
.card-more:hover { color: var(--ink); border-color: var(--brand); }
.card-menu { position: absolute; right: 10px; bottom: 50px; z-index: 20; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 8px 24px rgba(0,0,0,.16); overflow: hidden; min-width: 110px; }
.card-menu button { display: block; width: 100%; text-align: left; padding: 9px 14px; border: 0; background: none;
  color: var(--ink); font-size: 14px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.card-menu button:hover { background: var(--bg2); color: var(--brand); }
.pf-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pf-input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 0 10px; font-size: 14px; font-family: inherit; background: var(--card); }
.pf-submit { flex: 0 0 auto; height: 34px; padding: 0 14px; border: 0; border-radius: var(--radius-s);
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
/* 进直播间：靠右摆放，长度由内容决定，不撑满也不压缩 */
.act-live {
  flex: 0 0 auto; margin-left: auto; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 36px; border: 0; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background: var(--brand); color: #fff; transition: background .2s;
}
.act-live svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.act-live:hover { background: var(--brand-deep); color: #fff; }
.act-item, .act-add {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--bg2); color: var(--ink2); transition: all .22s;
}
.act-item svg, .act-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act-item:hover, .act-add:hover { color: var(--ink); border-color: var(--line2); }
.act-add.in-cart { background: var(--gold-soft); border-color: var(--gold-deep); color: var(--gold-deep); }
.act-item { display: none; }

/* ---------- 空态 / 加载更多 ---------- */
.empty { position: relative; overflow: hidden; text-align: center; padding: 56px 16px; color: var(--ink2); }
.empty > *:not(.wool-watermark) { position: relative; z-index: 1; }
.empty-sheep { width: 78px; margin: 0 auto 8px; opacity: .55; }
.empty-sheep svg { width: 100%; height: 100%; }
.empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.empty p { margin: 0 0 16px; font-size: 13px; color: var(--ink3); }
.load-more-wrap { display: grid; place-items: center; padding: 0 0 40px; }
.load-more {
  padding: 12px 34px; border-radius: 30px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 700;
  background: var(--card); color: var(--ink2); box-shadow: var(--shadow-s); transition: all .22s;
}
.load-more:hover { color: var(--ink); border-color: var(--line2); box-shadow: var(--shadow-m); }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 10px; background: var(--bg2); }
.foot-inner { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.foot-brand { display: flex; gap: 11px; flex: 1 1 240px; }
.foot-sheep { width: 44px; height: 44px; flex: none; }
.foot-sheep svg { width: 100%; height: 100%; }
.foot-brand b { font-size: 15px; }
.foot-brand ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink2); }
.foot-brand li { margin-bottom: 2px; }
.qr-box {
  width: 116px; flex: none; border-radius: 14px; overflow: hidden; text-align: center;
  border: 1px dashed var(--line2); background: var(--card); padding: 8px;
}
.qr-box img { width: 100%; display: block; border-radius: 8px; }
.qr-ph { display: block; font-size: 11.5px; color: var(--ink3); padding: 14px 0; }
.foot-note { flex: 1 1 100%; margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--ink3); }

/* ---------- 凑单筐抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; z-index: 90; background: rgba(40, 33, 24, .42); opacity: 0; transition: opacity .26s; }
.drawer-mask.show { opacity: 1; }
.drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-height: 82vh;
  display: flex; flex-direction: column; background: var(--card);
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow-l);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .7, .3, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 10px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 15.5px; }
.drawer-sum { padding: 12px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.sum-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink2); }
.sum-line b { font-size: 17px; color: var(--price); font-weight: 800; }
.sum-coupons { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.cp-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink2); padding: 5px 9px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.cp-row.hit { border-color: var(--good); color: var(--good); background: rgba(110, 140, 97, .1); font-weight: 600; }
.cp-tip { margin: 8px 0 0; font-size: 12px; color: var(--oat-deep); }
.drawer-list { overflow-y: auto; padding: 8px 16px; flex: 1; -webkit-overflow-scrolling: touch; }
.ci { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ci-main { flex: 1; min-width: 0; }
.ci-main b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-main span { font-size: 11.5px; color: var(--ink3); }
.ci-price { font-size: 14px; font-weight: 800; color: var(--price); flex: none; }
.ci-del { width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink3); display: grid; place-items: center; }
.ci-del:hover { color: var(--price); border-color: var(--price); }
.drawer-foot { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.red-field { display: flex; align-items: center; gap: 6px; }
.red-field span { font-size: 12px; color: var(--ink3); }
.red-field input { width: 88px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); padding: 0 10px; font-size: 13.5px; outline: none; }
.drawer-foot .ghost-btn { margin-left: auto; }
.drawer-empty { text-align: center; padding: 34px 10px; color: var(--ink3); font-size: 13px; }

/* ---------- 跳转直播间 loading ---------- */
.jump-mask {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  background: rgba(250, 247, 241, .72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .24s;
}
[data-theme="dark"] .jump-mask { background: rgba(27, 24, 19, .74); }
.jump-mask.show { opacity: 1; }
.jump-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 24px 28px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-l);
  transform: translateY(10px) scale(.98); transition: transform .26s cubic-bezier(.2, .7, .3, 1);
}
.jump-mask.show .jump-card { transform: none; }
.jump-card { gap: 6px; padding: 26px 30px 24px; border-radius: 20px; }
.jump-title {
  font-size: 20px; font-weight: 800; letter-spacing: .5px; line-height: 1.35;
  margin: 2px 0 0; color: var(--price);
  background: linear-gradient(120deg, var(--price), var(--oat-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.jump-sub { font-size: 16px; color: var(--ink2); max-width: 310px; line-height: 1.7; word-break: break-all; }
.jump-sub b { font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.jump-sheep { width: 62px; height: 62px; animation: hop 1s ease-in-out infinite; }
.jump-sheep svg { width: 100%; height: 100%; }
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-9px) scale(1.04); }
  70% { transform: translateY(0) scale(.98); }
}

/* ---------- 二次确认弹窗（是否去微信） ---------- */
.ask-mask {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(250, 247, 241, .72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s;
}
[data-theme="dark"] .ask-mask { background: rgba(27, 24, 19, .74); }
.ask-mask.show { opacity: 1; }
.ask-card {
  width: min(88vw, 330px); padding: 22px 20px 18px; border-radius: 18px; text-align: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-l);
  transform: translateY(10px) scale(.98); transition: transform .26s cubic-bezier(.2, .7, .3, 1);
}
.ask-mask.show .ask-card { transform: none; }
.ask-card b { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.ask-card span { display: block; margin-top: 7px; font-size: 13px; color: var(--ink3); line-height: 1.65; }
.ask-btns { display: flex; gap: 10px; margin-top: 16px; }
.ask-btns button { flex: 1; justify-content: center; }

/* ---------- 微信二维码大图弹窗 ---------- */
.qr-card { position: relative; }
.qr-card img {
  width: 100%; display: block; margin: 12px auto 0; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
}
.qr-card > span b { color: var(--ink); }
.qr-close { position: absolute; top: 6px; right: 10px; font-size: 24px; }
#qrImg {
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}

/* ---------- Toast / 回到顶部 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(12px); z-index: 120;
  background: rgba(59, 53, 44, .94); color: #fff; padding: 11px 20px; border-radius: 12px;
  font-size: 13px; opacity: 0; transition: all .28s; box-shadow: var(--shadow-l); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; background: var(--card); color: var(--ink2); box-shadow: var(--shadow-m);
  transition: opacity .26s, transform .26s;
}
.to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.to-top.hide { opacity: 0; transform: translateY(18px); pointer-events: none; }

/* ---------- 今日作业 · 链路 ---------- */
.chain-sum {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 13px; padding: 10px 13px; border-radius: var(--radius-s);
  background: var(--bg2); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink2);
}
.chain-sum > b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chain-sum b { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chain-sum .gold { color: var(--gold-deep); }
.chain-sum .net { color: var(--brand-deep); }
.chain-list { margin-top: 13px; display: flex; flex-direction: column; gap: 10px; }

.chain-card { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.cc-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 13px; background: var(--card2); border-bottom: 1px solid var(--line);
}
.cc-head { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cc-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cc-title { flex: 1 1 200px; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cc-title b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cc-range { font-size: 11.5px; color: var(--ink3); }
.cc-fold { font-size: 11.5px; color: var(--ink3); }
.cc-chev {
  width: 16px; height: 16px; flex: none; margin-left: auto;
  fill: none; stroke: var(--ink3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .26s;
}
.cc-head[aria-expanded="true"] .cc-chev { transform: rotate(180deg); }
.cc-sum { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); }
.cc-sum b { font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-sum .gold { color: var(--gold-deep); }
.cc-sum .net { color: var(--brand-deep); }
.cc-copy { flex: none; }

.cc-items { display: flex; flex-direction: column; }
.cr { padding: 10px 13px; border-top: 1px solid var(--line); }
.cc-items .cr:first-child { border-top: 0; }
.cr.soldout { opacity: .4; }
.cr-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cr-date {
  font-size: 11.5px; color: var(--ink2); background: var(--bg2); border: 1px solid var(--line);
  border-left: 3px solid var(--line2); border-radius: 6px; padding: 1px 7px; white-space: nowrap;
}
.cr-date.today { border-left-color: var(--brand); color: var(--brand-deep); }
.cr-no {
  flex: none; padding: 2px 7px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: var(--brand); color: #fff;
}
.cr-name { flex: 1 1 140px; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.cr-pay { font-size: 18px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.cr-rebate {
  font-size: 12px; font-weight: 600; color: var(--gold-deep); background: var(--gold-soft);
  padding: 2px 8px; border-radius: 8px; white-space: nowrap;
}
.cr-rebate.zero { color: var(--ink3); background: var(--bg2); }
.cr-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.cr-room { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink2); }
.cr-room svg { width: 13px; height: 13px; fill: none; stroke: var(--ink3); stroke-width: 1.8; stroke-linecap: round; }
.cr-go {
  height: 30px; padding: 0 12px; border: 0; border-radius: 9px; font-size: 12px; font-weight: 600;
  background: var(--brand); color: #fff;
}
.cr-go:hover { background: var(--brand-deep); }

/* ---------- 工具结果：统一卡片格式 ---------- */
.tr-range { font-size: 11.5px; color: var(--ink3); }
.tr-item .ti-date {
  flex: none; font-size: 11px; color: var(--ink2); background: var(--bg2);
  border-left: 3px solid var(--line2); padding: 1px 6px; border-radius: 5px;
}
.tr-item .ti-no {
  flex: none; font-size: 12px; font-weight: 600; color: #fff;
  background: var(--brand); padding: 1px 7px; border-radius: 8px;
}
.tr-item .ti-room { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink2); }
.tr-item .ti-room svg { width: 12px; height: 12px; fill: none; stroke: var(--ink3); stroke-width: 1.8; stroke-linecap: round; }
.tr-item .ti-name i { font-style: normal; font-size: 11px; color: var(--ink3); margin-left: 6px; }
.tr-summary {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 9px; padding-top: 8px;
  border-top: 1px dashed var(--line2); font-size: 12px; color: var(--ink2);
}
.tr-summary b { font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tr-summary .gold { color: var(--gold-deep); }
.tr-summary .net { color: var(--brand-deep); }

/* ---------- 凑单筐：券进度 / 一键补差额 ---------- */
.cp-seg { margin: 10px 0 0; height: 36px; }
.cp-seg .seg-btn { height: 30px; padding: 0 13px; font-size: 12.5px; }
.cp-seg .seg-btn.active { background: var(--brand); color: #fff; box-shadow: none; }
.cp-list { margin-top: 9px; display: flex; flex-direction: column; gap: 8px; }
.cp-item { padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.cp-item.done { border-color: var(--good); background: rgba(23, 166, 122, .08); }
.cp-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink2); }
.cp-item.done .cp-st { color: var(--good); font-weight: 600; }
.cp-bar { margin-top: 6px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: 6px; background: var(--gold); }
.cp-item.done .cp-bar i { background: var(--good); }
.cp-fill-box { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: var(--bg2); border: 1px dashed var(--line2); }
.cp-fill-head { font-size: 12px; color: var(--ink2); margin-bottom: 7px; }
.cp-fill-head b { font-size: 14px; font-weight: 600; color: var(--brand-deep); }
.cp-fill-head i { font-style: normal; font-size: 11px; color: var(--ink3); margin-left: 6px; }
.cp-fill-list { display: flex; flex-direction: column; gap: 6px; }
.cp-fill { display: flex; align-items: center; gap: 8px; }
.cp-fill b { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-can { flex: none; font-size: 12px; font-weight: 600; color: var(--gold-deep); background: var(--gold-soft); padding: 2px 8px; border-radius: 8px; }
.sum-formula {
  margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); font-size: 12.5px; color: var(--ink2);
  font-variant-numeric: tabular-nums;
}
.sum-formula b { font-size: 14px; font-weight: 600; color: var(--brand-deep); }

/* ---------- 移动端 ---------- */
.filter-toggle { display: none; }
@media (max-width: 860px) {
  .grid { gap: 9px; }
  .mcol { gap: 9px; }
  .card-title { font-size: 12.5px; }          /* 高度随标题行数自然变化 */
  .card-body { padding: 10px 11px 11px; gap: 6px; }
  .price { font-size: 19px; }
  .note { font-size: 11px; -webkit-line-clamp: 2; }
  .act-live { height: 34px; font-size: 12px; }
  .act-item, .act-add { width: 34px; height: 34px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .hero { padding: 15px 0; }
  .hero-inner { gap: 12px; }
  .hero-avatar { width: 62px; height: 62px; }
  .hero-title { font-size: 17.5px; }
  .hero-slogan { font-size: 12.5px; margin-bottom: 6px; }
  .hero-desc { font-size: 11.5px; margin-bottom: 11px; }
  .hero-hook { font-size: 12px; }
  .hero-qr { width: 74px; }
  .qr-ph { padding: 14px 4px; font-size: 10.5px; }
  .notice-stack { padding: 12px 14px 0; gap: 4px; }
  .notice-line { font-size: 11.5px; }
  .topbar-inner { padding: 9px 14px; }
  .stat-strip { margin-top: 10px; }
  .stat { padding: 9px 4px; }
  .stat b { font-size: 16px; }
  .stat span { font-size: 10.5px; }
  .logo-sheep { width: 34px; height: 34px; }
  .logo-text b { font-size: 16px; }
  .modules { padding: 10px 0 2px; scroll-snap-type: x proximity; }
  .mod-tab { scroll-snap-align: start; padding: 8px 13px; font-size: 13px; }

  /* 筛选面板折叠 */
  .filter-toggle {
    display: none; align-items: center; justify-content: space-between; width: 100%;
    margin-top: 12px; padding: 12px 15px; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--card); color: var(--ink);
    font-size: 14px; font-weight: 600; box-shadow: var(--shadow-s);
  }
  .filter-toggle .ft-left, .filter-toggle .ft-right { display: inline-flex; align-items: center; gap: 8px; }
  .filter-toggle svg { width: 17px; height: 17px; fill: none; stroke: var(--oat-deep); stroke-width: 2; stroke-linecap: round; }
  .filter-toggle .chev { stroke: var(--ink3); transition: transform .26s; }
  .filter-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .ft-badge {
    min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; font-style: normal;
    background: var(--oat); color: #4A3F2D; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  }
  .filters { margin-top: 10px; max-height: 0; opacity: 0; overflow: hidden; padding: 0 14px; border-width: 0; transition: max-height .34s ease, opacity .24s, padding .3s, border-width .2s; }
  .filters.open { max-height: 820px; opacity: 1; padding: 14px; border-width: 1px; }

  .search-box { flex: 1 1 100%; height: 44px; }
  .select-box { flex: 1 1 0; }
  .select-box select { width: 100%; height: 44px; }
  .ghost-btn, .solid-btn { height: 44px; }
  .range-body { width: 100%; min-width: 0; }
  .inputs input { flex: 1; width: auto; height: 40px; font-size: 14px; min-width: 0; }
  .slider { height: 34px; }
  .slider-track { top: 15px; height: 6px; }
  .slider input[type=range] { height: 34px; }
  .slider input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; border-width: 4px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 7px 13px; }

  .cc-head { padding: 10px 11px; gap: 8px; }
  .cr { padding: 9px 11px; }
  .cr-top { gap: 6px; }
  .cr-name { flex: 1 1 100%; order: 3; }
  .cr-pay { font-size: 17px; }
  .cr-go { height: 32px; }
  .tool-row { gap: 9px; }
  .field { flex: 1 1 130px; }
  .field input, .field select { width: 100%; }
  .seg { height: 44px; flex: 1 1 100%; }
  .seg-btn { flex: 1; height: 38px; }
  .tool-row .solid-btn { flex: 1 1 100%; justify-content: center; }

  .grid { gap: 8px; padding-bottom: 20px; }
  .mcol { gap: 8px; }
  .card { border-radius: 14px; }
  .card-body { padding: 9px 10px 10px; gap: 6px; }
  .card-title { font-size: 12px; }
  .price { font-size: 18px; }
  .note { font-size: 11px; }
  .m-tags { left: 7px; bottom: 7px; gap: 4px; max-width: calc(100% - 14px); }
  .tag-host { padding: 3px 8px; font-size: 10.5px; max-width: 100%; }
  .tag-code { font-size: 10.5px; padding: 2px 6px; left: 7px; top: 7px; }
  .badge-date { top: 8px; right: 8px; font-size: 10.5px; padding: 2px 6px; }
  .foot-actions { gap: 5px; }
  .act-live { height: 36px; font-size: 12px; padding: 0 12px; min-width: 0; white-space: nowrap; }
  .act-live svg { width: 13px; height: 13px; }
  .act-item, .act-add { width: 34px; height: 34px; }
  .act-item svg, .act-add svg { width: 15px; height: 15px; }
  .tag { display: none; }
  .load-more { width: 100%; max-width: 320px; }
  .empty { padding: 44px 12px; }
  .foot-inner { padding: 22px 14px calc(22px + env(safe-area-inset-bottom)); }
  .qr-box { width: 100%; max-width: 200px; margin: 0 auto; }
  .drawer-foot .ghost-btn { margin-left: 0; }
  .drawer-foot { justify-content: space-between; }
  .toast { bottom: calc(70px + env(safe-area-inset-bottom)); width: min(90vw, 340px); text-align: center; }
  .to-top { display: none; }
}

@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow-s); }
  .card:hover .card-media img { transform: none; }
  .act-live:active, .act-add:active, .mod-tab:active, .chip:active { opacity: .72; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 移动端：输入框字号不小于 16px，避免 iOS 聚焦时自动放大页面 */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
}


/* 价格说明问号 + 弹窗（指定主播红包搭配） */
.note-mask { position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center; padding:22px; background:rgba(27,24,19,.55); opacity:0; transition:opacity .18s; }
.note-mask[hidden]{ display:none; }
.note-mask.show{ opacity:1; }
.note-card{ width:100%; max-width:340px; background:var(--card, #fff); border-radius:16px; padding:20px; box-shadow:0 14px 44px rgba(0,0,0,.28); transform:translateY(10px); transition:transform .18s; }
.note-mask.show .note-card{ transform:none; }
.note-card-title{ font-size:15px; font-weight:800; color:var(--ink, #2E2A26); margin-bottom:10px; }
.note-card-bd{ font-size:13.5px; line-height:1.7; color:var(--ink2, #7A6E64); white-space:pre-wrap; word-break:break-word; }
.note-close{ margin-top:16px; width:100%; border:none; border-radius:10px; padding:11px; background:var(--brand, #FF7CA8); color:#fff; font-size:14px; font-weight:700; cursor:pointer; }
.note-close:hover{ filter:brightness(1.05); }

/* ===== 指定主播红包搭配：按日期分组的新布局 ===== */

/* 方案卡片：更大留白、更柔阴影、精致描边 */
.ask-plan {
  padding: 15px 16px 14px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(140, 50, 80, .07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .18s, box-shadow .22s, transform .12s;
}
.ask-plan:hover { border-color: var(--brand); box-shadow: 0 10px 28px rgba(140, 50, 80, .14); }
.ask-plan:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ask-plan:active { transform: scale(.994); }

/* 间距整体收 ~15% */
.ap-groups { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* 方案头：标题 / 标签 / 合计 */
.ap-head {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 8px; margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.ap-head::-webkit-scrollbar { display: none; }
.ap-head b { font-size: 13px; font-weight: 800; flex: none; white-space: nowrap; }
.ap-head .ap-sum { margin-left: 0; flex: none; white-space: nowrap; }
}
.ap-head b { font-size: 15px; font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.ap-sum { margin-left: auto; font-size: 12px; color: var(--ink3); letter-spacing: .2px; }
.ap-sum b { color: var(--brand-deep); font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }

/* 标签：渐变底 + 细描边 + 微阴影，字色更高级（不再单调） */
.ap-tag {
  font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 700;
  white-space: nowrap; letter-spacing: .4px; border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.ap-tag.good {
  padding: 3px 10px; letter-spacing: .3px;
  color: var(--brand-deep); background: var(--brand-soft);
  border-color: rgba(232, 84, 127, .22);
  box-shadow: none; animation: none;
}
.ap-tag.gold {
  padding: 3px 10px; letter-spacing: .3px;
  color: #96650A; background: #FFF3D6;
  border-color: rgba(245, 180, 0, .28);
  box-shadow: none; animation: none;
}
.ap-tag.warn { background: linear-gradient(135deg, rgba(255, 170, 60, .18), rgba(224, 138, 0, .10)); color: #B26A00; border-color: rgba(224, 138, 0, .28); }
.ap-tag.info { background: linear-gradient(135deg, rgba(80, 150, 255, .16), rgba(45, 127, 249, .08)); color: #1E63D0; border-color: rgba(45, 127, 249, .26); }
@keyframes apTagShine { 0% { background-position: 0% 50%; } 100% { background-position: 220% 50%; } }
@media (prefers-reduced-motion: reduce) { .ap-tag.good, .ap-tag.gold { animation: none; background-size: 100% 100%; } }


/* 日期分组：极淡粉渐变 + 细描边 */
.ap-day {
  display: flex; flex-direction: column; gap: 9px;
}

/* 日期标题：品牌色小圆点 + 加粗日期 */
.ap-day-head { display: flex; align-items: baseline; gap: 8px; }
.ap-day-head .ap-day-sum { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--ink3);
  font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.ap-left .ap-sum { margin-left: 0; }
.ap-day-head .ap-date {
  position: relative; padding-left: 14px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .2px; color: var(--ink2);
}
.ap-day-head .ap-date::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
}

/* 商品行：紧凑有呼吸感，行间细分隔 */
.ap-rows { display: flex; flex-direction: column; gap: 10px; }
.ap-rows .ap-row:not(:last-child) { padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.ap-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; cursor: pointer; }

/* 编号胶囊：描边 + 浅底，hover 填色 */
.ap-code {
  flex: none; border: 1px solid var(--line2); background: var(--card);
  color: var(--brand); font-weight: 700; font-size: 11px;
  border-radius: 8px; padding: 3px 7px; line-height: 1.3;
  box-shadow: 0 1px 2px rgba(140, 50, 80, .05);
}
.ap-code:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.ap-row .ap-name { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; }

/* 商品名：黑体加粗、字距、更精致 */
.ap-title {
  font-weight: 800;
  font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Heiti SC', sans-serif;
  color: var(--ink); line-height: 1.5; font-size: 13.5px; letter-spacing: .2px;
}

/* 减免说明：字号稍大(12px)、浅灰小字、左对齐、克制 */
.ap-note { font-size: 12px; line-height: 1.6; color: #a89e94; margin-top: 4px; letter-spacing: .1px; }
.ap-note .hl { color: var(--brand-deep); font-weight: 700; background: var(--brand-soft); border-radius: 4px; padding: 0 3px; }

/* 到手价：品牌色突出，数字等宽 */
.ap-price {
  flex: none; font-weight: 800; color: var(--brand-deep); font-size: 15px; line-height: 1.3;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
}

/* 方案卡：行级「进直播间」（仅复制本行编号），沿用品牌色胶囊 */
.ap-go {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 28px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .18s, transform .12s;
}
.ap-go svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ap-go:hover { background: var(--brand-deep); }
.ap-go:active { transform: scale(.96); }


/* 进直播间按钮：宽度只包住 icon+文字（修复 Safari 纵向 flex 拉伸 / 移动端 width:100% 导致过宽） */
.ap-day .ai-go,
.ap-day-foot .ai-go {
  flex: 0 0 auto;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
}
.ap-day > .ai-go { align-self: flex-end; margin-left: 0; margin-top: 2px; }
.ap-day-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.ap-left { font-size: 11px; color: var(--ink3); letter-spacing: .1px; }

/* 方案「继续查看」按钮：居中胶囊，与原商品加载更多区分 */
.ask-more-wrap { display: flex; justify-content: center; margin-top: 10px; }
.ask-more {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  border: 1px solid var(--line2); background: var(--card); color: var(--brand);
  font-weight: 700; font-size: 13px; letter-spacing: .5px;
  padding: 9px 22px; border-radius: 22px;
  box-shadow: 0 2px 8px rgba(140, 50, 80, .08); transition: all .18s;
}
.ask-more:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 14px rgba(232, 84, 127, .26); }
.ask-more:active { transform: scale(.97); }

/* 手机端：字号与间距收敛 */
@media (max-width: 640px) {
  .ask-plan { padding: 13px 14px 12px; border-radius: 14px; }
  .ap-day { gap: 8px; }
  .ap-day-head .ap-date { font-size: 13px; }
  .ap-title { font-size: 13px; }
  .ap-note { font-size: 11px; }
  .ap-price { font-size: 14px; }
  .ap-rows { gap: 9px; }
  .ap-rows .ap-row:not(:last-child) { padding-bottom: 8px; }
  .ask-more { font-size: 12.5px; padding: 8px 18px; }
}
