/* ShopLab 商城样式。移动端优先，≥768px 平板，≥1024px 桌面。
   主题色通过 --brand 由实验配置 store.theme_color 注入。 */
:root {
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI Variable Text", "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "PingFang SC", "Microsoft YaHei", "Segoe UI Variable Display", system-ui, sans-serif;
  --brand: #ff4142;
  --brand-2: #ff7a00;
  --price: #ff2442;
  --ink: #1f2329;
  --ink-2: #525866;
  --muted: #8b92a1;
  --line: #ebedf2;
  --bg: #f5f6fa;
  --card: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(24, 32, 62, .06);
  --header-h: 56px;
  --tabbar-h: 54px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --wrap: 1200px;
}
html[data-theme="soft"]{--brand:#ff4142;--brand-2:#ff7a00;--price:#ff2442;--ink:#1f2329;--ink-2:#525866;--muted:#8b92a1;--line:#ebedf2;--bg:#f5f6fa;--card:#fff;--shadow:0 8px 24px rgba(24,32,62,.06);color-scheme:light}
html[data-theme="warm"]{--brand:#d9534f;--brand-2:#f0ad4e;--price:#d93025;--ink:#3a302a;--ink-2:#6b5e55;--muted:#94877d;--line:#ebe2d8;--bg:#f8f3eb;--card:#fffdf9;--shadow:0 8px 28px rgba(88,61,42,.09);color-scheme:light}
html[data-theme="calm"]{--brand:#2b6cb0;--brand-2:#4299e1;--price:#e53e3e;--ink:#293640;--ink-2:#5d6b76;--muted:#89959e;--line:#e2e8ed;--bg:#f1f5f7;--card:#fff;--shadow:0 8px 28px rgba(45,69,88,.09);color-scheme:light}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.58;
  font-family: var(--font-sans);
  font-weight: 400; letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 12px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
@media (max-width: 1023px) { .hide-m { display: none !important; } }
@media (min-width: 1024px) {
  .show-m { display: none !important; }
  .wrap { padding: 0 20px; }
}

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 20px;
  border-radius: 999px; font-weight: 600; white-space: nowrap; transition: filter .15s, transform .05s; }
.btn:active { transform: scale(.98); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-line { border: 1px solid #ddd; background: #fff; color: var(--ink-2); }
.btn-cart { background: linear-gradient(90deg, #ffc500, #ff9402); color: #fff; }
.btn-buy { background: linear-gradient(90deg, #ff7a00, var(--brand)); color: #fff; }
.btn-block { width: 100%; height: 46px; font-size: 16px; }
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.badge { position: absolute; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff;
  font-size: 11px; font-style: normal; line-height: 17px; text-align: center; font-weight: 600; }

/* ---------- 顶部 ---------- */
.preview-bar { background: #222; color: #ffd666; text-align: center; font-size: 12px; padding: 4px; }
.topbar { background: #f0f0f0; font-size: 12px; color: #666; border-bottom: 1px solid #e6e6e6; }
.topbar-in { display: flex; justify-content: space-between; height: 32px; align-items: center; }
.topbar nav { display: flex; gap: 18px; align-items: center; }
.topbar a:hover { color: var(--brand); }
.topbar-budget b { color: var(--brand); }
.header { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 6px; flex: none; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 17px; }
.logo-text { font-size: 18px; font-weight: 800; color: var(--brand); letter-spacing: .5px; }
@media (max-width: 1023px) { .page-home .logo-text, .page-me .logo-text, .page-cart .logo-text, .page-categories .logo-text { display: none; } }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; flex: none; margin-left: -8px; }
.search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; height: 36px; border-radius: 999px;
  background: #f5f5f5; border: 1px solid transparent; }
.search:focus-within { border-color: var(--brand); background: #fff; }
.search-ico { width: 17px; height: 17px; margin-left: 12px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 8px; height: 100%; font-size: 14px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-btn { height: 30px; padding: 0 14px; margin-right: 3px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow); z-index: 40; overflow: hidden; }
.suggest a { display: block; padding: 10px 16px; font-size: 14px; }
.suggest a:hover, .suggest a.on { background: #f7f7f7; }
.header-cart { position: relative; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border: 1px solid var(--brand);
  border-radius: 999px; color: var(--brand); font-weight: 600; flex: none; }
.header-cart .badge { top: -7px; right: -4px; }
.m-budget { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.m-budget small { font-size: 10px; color: var(--muted); }
.m-budget b { font-size: 13px; color: var(--brand); }
.timer-bar { background: #fff7e6; color: #ad6800; text-align: center; font-size: 12px; padding: 4px; }
@media (min-width: 1024px) {
  .header-in { height: 76px; gap: 28px; }
  .logo-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 10px; }
  .logo-text { font-size: 24px; }
  .search { height: 42px; max-width: 640px; border: 2px solid var(--brand); background: #fff; }
  .search-btn { height: 34px; padding: 0 26px; font-size: 15px; }
}
.catnav { background: #fff; border-bottom: 1px solid var(--line); }
.catnav-in { display: flex; gap: 26px; height: 40px; align-items: center; font-size: 15px; overflow: hidden; }
.catnav-all { background: var(--brand); color: #fff; height: 100%; display: flex; align-items: center; padding: 0 22px; font-weight: 600; width: 200px; }
.catnav a:hover:not(.catnav-all) { color: var(--brand); }

/* ---------- 底部导航 ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex !important; height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
@media (min-width: 1024px) { .tabbar { display: none !important; } }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: #666; position: relative; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on svg { fill: currentColor; fill-opacity: .12; }
.tabbar .badge { top: 4px; left: calc(50% + 6px); }
.main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); min-height: 60vh; }
.page-product .main { padding-bottom: calc(60px + var(--safe-b) + 16px); }
@media (min-width: 1024px) { .main, .page-product .main { padding-bottom: 40px; } }

/* ---------- 首页 ---------- */
.home-top { margin-top: 12px; }
@media (min-width: 1024px) {
  .home-top { display: grid; grid-template-columns: 200px 1fr 260px; gap: 14px; margin-top: 14px; min-height: 390px; align-items: stretch; }
}
.home-cats { background: #fff; border-radius: var(--radius); padding: 6px 0; overflow: auto; box-shadow: 0 2px 12px rgba(0, 0, 0, .03); }
.home-cats a { display: flex; justify-content: space-between; padding: 0 18px; line-height: 36px; font-size: 13.5px; color: var(--ink); }
.home-cats a:hover { background: #fff1f0; color: var(--brand); }
.home-cats i { font-style: normal; color: var(--muted); }
.banner { position: relative; border-radius: var(--radius); overflow: hidden; height: 210px; background: linear-gradient(135deg, #ff4142, #ff7a00); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .banner { aspect-ratio: auto; height: 100%; min-height: 390px; } }
.banner-track { display: flex; height: 100%; transition: transform .5s ease; }
.banner-slide { flex: 0 0 100%; position: relative; background: linear-gradient(120deg, var(--bc), color-mix(in srgb, var(--bc) 55%, #fff)); color: #fff; overflow: hidden; }
.banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-slide::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 55%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.banner-text { position: absolute; left: 7%; top: 50%; transform: translateY(-50%); z-index: 1; max-width: 70%; }
.banner-text h2 { margin: 0 0 6px; font-size: clamp(20px, 5vw, 40px); font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.banner-text p { margin: 0; font-size: clamp(12px, 2.6vw, 18px); opacity: .92; }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); transition: width .3s; }
.banner-dots i.on { width: 16px; background: #fff; }
.home-side { display: flex; flex-direction: column; gap: 12px; }
.side-card { background: #fff; border-radius: var(--radius); padding: 20px 18px; text-align: center; flex: 1; }
.side-avatar { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.side-card p { margin: 0 0 12px; color: var(--ink-2); }
.side-budget { background: #fff5f5; border-radius: 8px; padding: 10px; margin-bottom: 14px; }
.side-budget small { display: block; color: var(--muted); }
.side-budget b { font-size: 22px; color: var(--brand); }
.side-links { display: flex; justify-content: space-around; font-size: 13px; color: var(--ink-2); }
.side-links a:hover { color: var(--brand); }
.side-svc { background: #fff; border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--ink-2); text-align: center; }
.icon-grid { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 14px 6px; background: #fff; border-radius: var(--radius); padding: 14px 6px; margin-top: 10px; }
.icon-grid>a{min-width:0;width:100%;overflow:hidden}
@media (min-width: 1024px) { .icon-grid { display: none !important; } }
.icon-grid a, .catgroup-items a { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); }
.icon-grid em, .catgroup-items em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px;
  background: hsl(calc(var(--h, 0) * 41 + 5) 72% 60%); box-shadow: 0 3px 8px hsl(calc(var(--h, 0) * 41 + 5) 70% 60% / .35); }
.ico-emoji {
  background: linear-gradient(135deg, hsl(calc(var(--h, 0) * 38 + 10) 90% 96%), hsl(calc(var(--h, 0) * 38 + 10) 85% 90%)) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06) !important;
  font-size: 22px !important;
  border-radius: 16px !important;
}
.section-title { text-align: center; margin: 22px 0 12px; font-size: 17px; font-weight: 700; }
.section-title span { position: relative; padding: 0 18px; }
.section-title span::before, .section-title span::after { content: ""; position: absolute; top: 50%; width: 36px; height: 1px; background: #ccc; }
.section-title span::before { right: 100%; } .section-title span::after { left: 100%; }

/* ---------- 商品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
@media (hover: hover) { .card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .1); transform: translateY(-2px); } }
.card-img { position: relative; aspect-ratio: 1; background: #f7f7f7; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.ad-tag, .promo-tag { display: inline-block; font-size: 10px; line-height: 15px; padding: 0 4px; border-radius: 3px; margin-right: 4px; vertical-align: 1px; font-weight: 600; }
.ad-tag { color: #999; border: 1px solid #ccc; font-weight: 400; }
.promo-tag { color: #fff; background: var(--brand); }
.pd-promos .promo-tag { background: #fff0f0; color: var(--brand); border: 1px solid #ffccc7; font-size: 12px; padding: 1px 6px; line-height: 18px; }
.card-price { display: flex; align-items: baseline; gap: 5px; margin-top: auto; }
.price { color: var(--price); font-weight: 700; white-space: nowrap; }
.price small { font-size: .72em; margin-right: 1px; }
.price .p-int { font-size: 1.28em; }
.price .p-dec { font-size: .85em; }
.card .price { font-size: 14px; }
.orig { color: var(--muted); font-size: 12px; }
.card-meta { display: flex; gap: 8px; font-size: 11.5px; color: var(--muted); }
.card-shop { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-shop i { font-style: normal; margin-left: 2px; }
.cue { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 4px; font-weight: 600; }
.card-img .cue { position: absolute; left: 6px; bottom: 6px; }
.cue-scarcity { background: var(--brand); color: #fff; }
.cue-social { background: #fff7e6; color: #d46b08; }
.cue-line { font-size: 11.5px; color: #d46b08; }
.cue-urgency { color: var(--brand); font-weight: 600; }
.load-more { text-align: center; color: var(--muted); padding: 18px 0 8px; font-size: 13px; }

/* ---------- 列表页 ---------- */
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); padding: 14px 0 4px; }
.crumbs i { font-style: normal; color: #bbb; }
.crumbs a:hover { color: var(--brand); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 5px 14px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink-2); border: 1px solid transparent; }
.chip.on { color: var(--brand); border-color: var(--brand); background: #fff5f5; font-weight: 600; }
.search-head { padding: 12px 2px 0; color: var(--ink-2); }
.search-head b { color: var(--brand); }
.filterbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; align-items: center; background: #fff; margin: 10px -12px 0; padding: 0 12px;
  height: 44px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .filterbar { position: static; margin: 12px 0 0; border-radius: var(--radius) var(--radius) 0 0; padding: 0 16px; } }
.sorts { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.sorts::-webkit-scrollbar { display: none; }
.sorts a { flex: none; padding: 0 12px; line-height: 44px; color: var(--ink-2); position: relative; }
.sorts a.on { color: var(--brand); font-weight: 600; }
.sorts a.on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 6px; height: 2px; border-radius: 1px; background: var(--brand); }
.filter-toggle { flex: none; padding: 0 4px 0 12px; color: var(--ink-2); position: relative; border-left: 1px solid var(--line); line-height: 20px; }
.filter-toggle .dot { position: absolute; top: -2px; right: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.filters { background: #fff; margin: 0 -12px; padding: 4px 12px 12px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .filters { margin: 0; padding: 6px 16px 14px; } }
.filter-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.filter-row > label { flex: none; width: 40px; color: var(--muted); padding-top: 4px; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { display: none; }
.opt span { display: inline-block; padding: 4px 12px; border-radius: 4px; background: #f5f5f5; font-size: 13px; cursor: pointer; border: 1px solid transparent; }
.opt input:checked + span { color: var(--brand); border-color: var(--brand); background: #fff5f5; }
.price-range { align-items: center; }
.price-range input { width: 100px; height: 30px; border: 1px solid #ddd; border-radius: 4px; padding: 0 8px; }
.filter-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; }
.filter-actions .btn { height: 34px; }
.filterbar + .filters + .grid, .filterbar + .grid, .filters + .grid { margin-top: 10px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty-ico { font-size: 42px; margin-bottom: 8px; }
.empty-state .btn { margin-top: 14px; }

/* ---------- 分类页 ---------- */
.main-flush { padding-top: 0; }
.catpage { display: flex; padding: 0; background: #fff; min-height: calc(100vh - var(--header-h) - var(--tabbar-h)); }
@media (min-width: 1024px) { .catpage { margin-top: 12px; border-radius: var(--radius); min-height: 520px; overflow: hidden; } }
.catpage-left { width: 88px; flex: none; background: #f7f7f7; overflow-y: auto; }
@media (min-width: 1024px) { .catpage-left { width: 180px; } }
.catpage-left a { display: block; padding: 14px 8px; text-align: center; font-size: 13.5px; color: var(--ink-2); position: relative; }
.catpage-left a.on { background: #fff; color: var(--brand); font-weight: 700; }
.catpage-left a.on::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 3px; border-radius: 2px; background: var(--brand); }
.catpage-right { flex: 1; padding: 12px; min-width: 0; }
.catpage-all { display: block; background: linear-gradient(120deg, #fff1f0, #fff7e6); border-radius: 8px; padding: 14px; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.catgroup h3 { font-size: 14px; margin: 14px 0 10px; }
.catgroup-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
@media (min-width: 640px) { .catgroup-items { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .catgroup-items { grid-template-columns: repeat(8, 1fr); } }

/* ---------- 详情页 ---------- */
@media (max-width: 1023px) {
  .page-product .header { position: sticky; }
  .main-product > .wrap { padding: 0; }
  .main-product .block, .main-product .section-title, .main-product .grid { margin-left: 8px; margin-right: 8px; }
}
.pd { background: #fff; }
@media (min-width: 1024px) { .pd { display: grid; grid-template-columns: 460px 1fr; gap: 36px; padding: 24px; border-radius: var(--radius); margin-top: 8px; } }
.pd-gallery { position: relative; }
.pd-main { position: relative; overflow: hidden; background: #f7f7f7; aspect-ratio: 1; }
@media (min-width: 1024px) { .pd-main { border-radius: 8px; } }
.pd-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: start; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pd-counter { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 12px; padding: 1px 9px; border-radius: 10px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; background: #f7f7f7; }
.pd-thumbs img.on { border-color: var(--brand); }
.pd-info { padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1024px) { .pd-info { padding: 0; gap: 14px; } }
.pd-pricebox { display: flex; align-items: flex-end; justify-content: space-between; }
@media (min-width: 1024px) { .pd-pricebox { background: linear-gradient(90deg, #fff1f0, #fff); padding: 14px 18px; border-radius: 8px; } }
.pd-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price.big { font-size: 22px; }
.price.big .p-int { font-size: 1.3em; }
.disc { font-size: 12px; color: var(--brand); border: 1px solid var(--brand); padding: 0 4px; border-radius: 3px; line-height: 16px; }
.pd-sold { color: var(--muted); font-size: 12px; }
.pd-title { font-size: 16px; line-height: 1.45; margin: 0; font-weight: 700; }
@media (min-width: 1024px) { .pd-title { font-size: 20px; } }
.pd-sub { margin: -4px 0 0; color: var(--brand-2); font-size: 13px; }
.pd-promos, .pd-cues { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-cues .cue { font-size: 12px; padding: 1px 8px; line-height: 20px; }
.cue-banner { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.pd-svc { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.pd-svc span { color: #389e0d; }
.pd-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; width: 100%; }
.pd-row .lbl, .pd-qty .lbl, .var-group > .lbl { color: var(--muted); flex: none; width: 40px; }
.pd-row .val { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-row i { font-style: normal; color: var(--muted); }
.pd-shop { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pd-shop small { display: block; color: var(--muted); font-size: 12px; }
.shop-ico { width: 40px; height: 40px; border-radius: 8px; background: #fff1f0; color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.var-group { display: flex; gap: 12px; margin-bottom: 12px; }
.var-opts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.var-opt { min-width: 52px; padding: 6px 12px; border-radius: 6px; background: #f5f5f5; border: 1px solid transparent; font-size: 13px; text-align: center; }
.var-opt.on { color: var(--brand); border-color: var(--brand); background: #fff5f5; font-weight: 600; }
.var-opt.off { color: #ccc; text-decoration: line-through; cursor: not-allowed; }
.var-opt img { width: 22px; height: 22px; border-radius: 3px; display: inline-block; vertical-align: middle; margin: -3px 5px 0 -4px; object-fit: cover; }
.pd-qty { display: flex; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; height: 30px; overflow: hidden; }
.stepper button { width: 30px; height: 100%; font-size: 17px; color: var(--ink-2); background: #fafafa; }
.stepper input { width: 42px; height: 100%; border: 0; border-left: 1px solid #ddd; border-right: 1px solid #ddd; text-align: center; outline: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.sm { height: 26px; } .stepper.sm button { width: 26px; } .stepper.sm input, .stepper.sm span { width: 34px; text-align: center; font-size: 13px; }
.pd-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.pd-actions .btn { height: 46px; padding: 0 34px; font-size: 16px; }
.btn-fav { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--ink-2); margin-left: 8px; }
.btn-fav.on, .ab-ico.on { color: var(--brand); }
.btn-fav.on svg, .ab-ico.on svg { fill: currentColor; }
.pd-tabs { display: none; }
@media (min-width: 1024px) { .pd-tabs { display: flex; gap: 32px; background: #fff; margin-top: 12px; padding: 0 24px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
  .pd-tabs a { line-height: 48px; font-size: 15px; } .pd-tabs a.on { color: var(--brand); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); } }
.block { background: #fff; border-radius: var(--radius); padding: 14px; margin-top: 10px; }
@media (min-width: 1024px) { .block { padding: 18px 24px; } }
.block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.block-head h3 { margin: 0; font-size: 15px; }
.block-head h3 small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.rating { display: flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; }
.stars { --pct: 100%; display: inline-block; width: 80px; height: 15px; background: linear-gradient(90deg, #ffb400 var(--pct), #e5e5e5 var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cg fill='black'%3E%3Cpath id='s' d='M8 1l2.2 4.6 5 .7-3.6 3.5.9 5L8 12.4 3.5 14.8l.9-5L.8 6.3l5-.7z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cg fill='black'%3E%3Cpath id='s' d='M8 1l2.2 4.6 5 .7-3.6 3.5.9 5L8 12.4 3.5 14.8l.9-5L.8 6.3l5-.7z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.stars.sm { width: 60px; height: 11px; margin-left: auto; }
.review { padding: 12px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.review-avatar { width: 26px; height: 26px; border-radius: 50%; background: #f0f0f0; display: grid; place-items: center; font-size: 12px; color: var(--ink-2); }
.review p { margin: 6px 0; line-height: 1.6; }
.review-imgs { display: flex; gap: 6px; } .review-imgs img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; }
.review-foot { font-size: 12px; color: var(--muted); }
.more-btn { display: block; margin: 8px auto 0; padding: 6px 22px; border: 1px solid #ddd; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 30%; color: var(--muted); font-weight: 400; background: #fafafa; }
.pd-desc { color: var(--ink-2); }
.detail-img { width: 100%; max-width: 790px; margin: 0 auto; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex !important; align-items: center; gap: 4px; height: calc(58px + var(--safe-b));
  padding: 0 8px var(--safe-b); background: #fff; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .actionbar { display: none !important; } }
.ab-ico { position: relative; width: 48px; display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--ink-2); flex: none; }
.ab-ico svg { width: 21px; height: 21px; }
.ab-ico .badge { top: -4px; right: 2px; }
.ab-btns { flex: 1; display: flex; border-radius: 999px; overflow: hidden; height: 40px; margin-left: 4px; }
.ab-btns .btn { flex: 1; border-radius: 0; height: 100%; padding: 0; font-size: 14px; }

/* ---------- 底部弹层（规格选择） ---------- */
.sheet-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 60; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-radius: 14px 14px 0 0; max-height: 82vh; display: flex; flex-direction: column;
  padding-bottom: var(--safe-b); animation: up .25s ease; }
@media (min-width: 768px) { .sheet { left: 50%; right: auto; bottom: 50%; width: 520px; transform: translate(-50%, 50%); border-radius: 14px; animation: fade .2s; } }
.sheet-head { display: flex; gap: 12px; padding: 14px 14px 10px; position: relative; }
.sheet-head img { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; margin-top: -30px; border: 3px solid #fff; background: #f7f7f7; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
@media (min-width: 768px) { .sheet-head img { margin-top: 0; } }
.sheet-head .price { font-size: 20px; }
.sheet-close { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; font-size: 22px; color: var(--muted); line-height: 1; }
.sheet-body { overflow-y: auto; padding: 4px 14px 10px; }
.sheet-body .var-group { flex-direction: column; gap: 8px; }
.sheet-body .var-group > .lbl { width: auto; color: var(--ink); font-weight: 600; }
.sheet-body .var-group .stepper { align-self: flex-start; }
.sheet-foot { padding: 8px 14px 12px; display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; height: 44px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

/* ---------- 购物车 ---------- */
.page-h { font-size: 18px; margin: 14px 2px 10px; }
.page-h small { font-size: 13px; color: var(--muted); font-weight: 400; }
@media (min-width: 1024px) { .cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; } }
.cart-list .cl-group { background: #fff; border-radius: var(--radius); margin-bottom: 10px; padding: 4px 12px; }
.cl-head { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; }
.cl-item { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.cl-item.na { opacity: .5; }
.ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #ccc; flex: none; display: grid; place-items: center; margin-top: 30px; background: #fff; }
.cl-head .ck { margin-top: 0; }
.ck.on { background: var(--brand); border-color: var(--brand); }
.ck.on::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.cl-item img { width: 86px; height: 86px; border-radius: 8px; object-fit: cover; flex: none; background: #f7f7f7; }
.cl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-title { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-opt { align-self: flex-start; font-size: 12px; color: var(--muted); background: #f5f5f5; padding: 1px 8px; border-radius: 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.cl-del { font-size: 12px; color: var(--muted); margin-left: 10px; }
.cart-sum { display: none; }
@media (min-width: 1024px) { .cart-sum { display: block; position: sticky; top: 100px; background: #fff; border-radius: var(--radius); padding: 18px; } }
.cs-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); }
.cs-row.total { font-size: 15px; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.cs-row.total .price { font-size: 22px; }
.over { color: var(--brand); font-size: 12px; margin: 6px 0; }
.cart-sum .btn { width: 100%; margin-top: 12px; height: 44px; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 29; height: 54px; background: #fff; border-top: 1px solid var(--line);
  display: flex !important; align-items: center; gap: 10px; padding: 0 12px; }
@media (min-width: 1024px) { .cart-bar { display: none !important; } }
.cart-bar .ck { margin: 0; }
.cart-bar .cb-total { flex: 1; text-align: right; line-height: 1.25; }
.cart-bar .cb-total > small { display: block; font-size: 11px; color: var(--muted); }
.cart-bar .cb-total .price { font-size: 16px; }
.cart-bar .btn { height: 38px; padding: 0 22px; }
.page-cart .main { padding-bottom: calc(var(--tabbar-h) + 70px + var(--safe-b)); }

/* ---------- 结算 ---------- */
.checkout { max-width: 820px; }
.ck-addr { display: flex; gap: 12px; align-items: center; }
.ck-addr-ico { font-size: 26px; }
.ck-addr p { margin: 2px 0 0; font-size: 13px; }
.ck-line { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ck-line:first-child { border-top: 0; }
.ck-line img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.ck-info { flex: 1; min-width: 0; font-size: 13px; }
.ck-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ck-right { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; }
.ck-sum div { display: flex; justify-content: space-between; padding: 5px 0; }
.ck-note { font-size: 12px; color: var(--muted); padding: 10px 4px; }
.ck-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 12px calc(10px + var(--safe-b)); margin: 0 -12px;
  border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .ck-bar { border-radius: var(--radius); margin: 0; } }
.ck-total { flex: 1; }
.ck-total .price { font-size: 20px; }
.ck-total small { display: block; font-size: 11px; }
.alert { background: #fff1f0; color: #cf1322; border: 1px solid #ffccc7; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }

/* ---------- 我的 ---------- */
.me-head { display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 22px 16px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2)); }
.me-head > div { flex: 1; }
.me-head p { margin: 2px 0 0; opacity: .92; }
.me-head .btn-line { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .5); }
.me-round-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin:0 0 12px;padding:18px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}
.me-round-balance span,.me-round-balance small{display:block;color:var(--muted)}.me-round-balance span{font-size:12px;font-weight:700;letter-spacing:.05em}.me-round-balance strong{display:block;margin:2px 0;color:var(--brand);font-size:30px;line-height:1.2;letter-spacing:-.025em}.me-round-balance small{font-size:11px}.me-end-round{margin:0}.btn-end-round{min-width:138px;border:1px solid color-mix(in srgb,var(--price) 45%,var(--line));background:color-mix(in srgb,var(--price) 7%,var(--card));color:#8a3e31}
@media(max-width:480px){.me-round-card{grid-template-columns:1fr;padding:16px}.me-end-round,.me-end-round .btn{width:100%}.me-round-balance strong{font-size:27px}}
.me-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); padding: 14px 0; text-align: center; }
.me-stats b { display: block; font-size: 18px; }
.me-stats span { font-size: 12px; color: var(--muted); }
.tabs-line { display: flex; gap: 24px; margin: 16px 4px 10px; }
.tabs-line a { padding-bottom: 6px; color: var(--ink-2); }
.tabs-line a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }
.rules p { line-height: 1.8; }
.footer { margin-top: 30px; background: #fff; border-top: 1px solid var(--line); padding: 26px 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.footer-svc { display: flex; justify-content: center; gap: 60px; margin-bottom: 16px; font-size: 15px; }
.footer-svc b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); margin-right: 8px; }
.footer p { margin: 4px 0; }

/* ---------- 提示 ---------- */
.toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 200; background: rgba(0, 0, 0, .78); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-size: 14px; max-width: 80vw; text-align: center; animation: fade .15s; pointer-events: none; }
.fly-dot { position: fixed; z-index: 150; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); pointer-events: none; transition: transform .6s cubic-bezier(.5, -0.3, .7, .4), opacity .6s; }

/* ---------- 被试流程页 ---------- */
body.flow { background: linear-gradient(180deg, #fff5f5 0, var(--bg) 280px); }
.flow-wrap { max-width: 680px; margin: 0 auto; padding: 24px 14px 60px; }
.flow-brand { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 800; font-size: 18px; color: var(--brand); margin-bottom: 16px; }
.flow-card { background: #fff; border-radius: 14px; padding: 24px 20px; box-shadow: 0 2px 12px rgba(0, 0, 0, .04); }
@media (min-width: 768px) { .flow-card { padding: 32px 36px; } }
.flow-card h1 { font-size: 21px; margin: 0 0 14px; }
.flow-card p { line-height: 1.8; margin: 0 0 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 20px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.q { border: 0; padding: 0; margin: 0 0 20px; }
.q legend { font-weight: 600; margin-bottom: 8px; padding: 0; line-height: 1.6; }
.q.wrong legend { color: #cf1322; }
.req { color: var(--brand); font-style: normal; }
.opt-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.opt-row:has(input:checked) { border-color: var(--brand); background: #fff5f5; }
.opt-row input { accent-color: var(--brand); }
.likert { display: flex; gap: 6px; }
.likert label { flex: 1; }
.likert input { display: none; }
.likert span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.likert input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.likert-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.input { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 9px 12px; outline: 0; }
.input:focus { border-color: var(--brand); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.row-btns .btn { flex: 1; min-width: 140px; height: 44px; }
.code-box { font-size: 34px; font-weight: 800; letter-spacing: 5px; text-align: center; padding: 18px; margin: 18px 0; border: 2px dashed var(--brand); border-radius: 12px;
  color: var(--brand); background: #fff5f5; user-select: all; font-family: ui-monospace, Menlo, monospace; }
.order-sum { margin-top: 22px; font-size: 13px; }
.order-sum h3 { font-size: 14px; }
.order-sum div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---------- AI 导购 ---------- */
#assistant-root{position:fixed;inset:0;z-index:40;width:100%;height:100%;overflow:hidden;pointer-events:none}
#assistant-root.is-open{z-index:100}
#assistant-root .ai-fab,#assistant-root .ai-teaser,#assistant-root .ai-panel{pointer-events:auto}
.ai-fab { position: fixed; right: 14px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16); display: grid; place-items: center; transition: transform .2s; }
.ai-fab:hover { transform: scale(1.05); }
.page-product .ai-fab { bottom: calc(58px + var(--safe-b) + 16px); }
.page-cart .ai-fab { bottom: calc(var(--tabbar-h) + 54px + var(--safe-b) + 16px); }
@media (min-width: 1024px) { .ai-fab, .page-product .ai-fab, .page-cart .ai-fab { bottom: 28px; right: 28px; width: 64px; height: 64px; } }
.ai-fab .av { width: 46px; height: 46px; }
.ai-fab .dot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.ai-fab-label { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 10px; padding: 0 6px; border-radius: 8px; white-space: nowrap; line-height: 15px; }
.ai-teaser { position: fixed; right: 80px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 22px); z-index: 40; max-width: min(300px, calc(100vw - 100px)); background: #fff;
  border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow); padding: 10px 13px; font-size: 13px; text-align: left; animation: fade .25s; }
.page-product .ai-teaser { bottom: calc(58px + var(--safe-b) + 22px); }
@media (min-width: 1024px) { .ai-teaser, .page-product .ai-teaser { right: 104px; bottom: 36px; } }
.ai-teaser b { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.ai-teaser span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-panel { position: fixed; inset: 0; z-index: 80; background: #fff; display: flex; flex-direction: column; animation: up .25s ease; }
@media (min-width: 768px) { .ai-panel { inset: auto 24px 24px auto; width: 400px; height: min(660px, calc(100vh - 48px)); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); overflow: hidden; } }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); }
.ai-head .av { width: 40px; height: 40px; flex: none; }
.ai-head b { display: block; }
.ai-head small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.ai-head .online { width: 7px; height: 7px; border-radius: 50%; background: #52c41a; }
.ai-close { margin-left: auto; width: 34px; height: 34px; font-size: 22px; color: var(--muted); }
.ai-notice { background: #fffbe6; color: #876800; border-bottom: 1px solid #ffe58f; font-size: 12.5px; padding: 7px 14px; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; background: #f6f7f8; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.ai-msg { display: flex; gap: 8px; max-width: 92%; }
.ai-msg .av { width: 32px; height: 32px; flex: none; }
.ai-msg .bub { padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ai-msg.bot .bub { background: #fff; border-top-left-radius: 4px; }
.ai-msg.me { align-self: flex-end; }
.ai-msg.me .bub { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.ai-panel.system .ai-msg.bot .bub { border-radius: 4px; background: #eef0f2; font-family: ui-monospace, "SF Mono", Menlo, "Microsoft YaHei", monospace; font-size: 13px; }
.ai-card { display: flex; gap: 10px; align-items: center; margin: 8px 0 4px; padding: 8px; background: #fafafa; border: 1px solid #eee; border-radius: 10px; width: 100%; text-align: left;
  white-space: normal; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.ai-card:hover { border-color: var(--brand); }
.ai-card img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: #fff; }
.ai-card .t { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.ai-card .m { font-size: 12px; color: var(--muted); }
.ai-card .price { font-size: 14px; margin-right: 6px; }
.ai-badge { display: inline-block; font-size: 10px; padding: 0 4px; line-height: 15px; border-radius: 3px; color: #ad6800; background: #fff7e6; border: 1px solid #ffd591; margin-right: 4px; vertical-align: 1px; }
.ai-typing { font-size: 13px; color: var(--muted); padding-left: 42px; }
.ai-typing i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: 3px; animation: blink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; } .ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.ai-quick { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; }
.ai-quick button { flex: none; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f5f5f5; color: var(--ink-2); }
.ai-input { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); }
.ai-input input { flex: 1; min-width: 0; height: 38px; border-radius: 999px; border: 1px solid #e5e5e5; background: #f6f7f8; padding: 0 14px; outline: 0; font-size: 15px; }
.ai-input input:focus { border-color: var(--brand); background: #fff; }
.ai-input .btn { height: 38px; padding: 0 16px; }
.ai-foot { font-size: 11px; color: var(--muted); text-align: center; padding: 0 0 6px; }
/* Public game and account onboarding */
.public-body{margin:0;background:#f4f1ea;color:#17211f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.public-header,.public-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1180px;margin:auto;padding:22px 28px}.public-header nav{display:flex;align-items:center;gap:18px}.public-brand{font:800 22px/1 Georgia,serif;color:#155e52;text-decoration:none}.public-main{max-width:1180px;min-height:70vh;margin:auto;padding:40px 28px}.public-hero{padding:72px 0 58px;max-width:820px}.public-hero.compact{padding-top:36px}.public-hero h1{font:700 clamp(42px,7vw,78px)/.98 Georgia,serif;letter-spacing:-.045em;margin:15px 0 24px}.public-hero p{font-size:19px;line-height:1.65}.eyebrow{color:#b34e2b;font-size:12px!important;font-weight:800;letter-spacing:.18em}.public-actions{display:flex;align-items:center;gap:20px;margin-top:32px}.primary-btn{display:inline-block;border:0;border-radius:999px;background:#155e52!important;color:#fff!important;padding:13px 23px;font-weight:750;text-decoration:none;cursor:pointer}.public-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.public-grid article,.auth-card,.policy-card{background:#fff;border:1px solid #ded9cd;border-radius:20px;padding:28px;box-shadow:0 10px 35px #2f3b3720}.auth-card{max-width:540px;margin:30px auto}.auth-card.wide,.policy-card{max-width:900px;margin:20px auto}.form-row{display:grid;gap:7px;margin:16px 0}.form-row input,.form-row select,.auth-card input,.auth-card select{box-sizing:border-box;width:100%;padding:12px;border:1px solid #c9c4b8;border-radius:9px;background:#fff}.form-row.hidden{display:none}.errorlist{color:#a52f25}.inline-form{display:inline}.inline-form button{border:0;background:none;color:#155e52;cursor:pointer}.option-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.phone-option{display:grid;gap:8px;border:1px solid #d8d1c5;border-radius:14px;padding:20px;cursor:pointer}.phone-option:has(input:checked){outline:3px solid #27796c}.phone-option span{font-size:25px;font-weight:800}.policy-copy{font-size:17px;line-height:1.75}.check-row{display:flex;gap:10px;align-items:flex-start;margin:28px 0}.public-footer{border-top:1px solid #d8d1c5;color:#5f6965;font-size:13px}.notice{background:#e0f0eb;padding:12px 16px;border-radius:10px}
@media(max-width:700px){.public-header,.public-footer{padding:18px}.public-main{padding:22px 18px}.public-hero{padding:40px 0}.public-hero h1{font-size:46px}.public-grid,.option-grid{grid-template-columns:1fr}.public-footer{align-items:flex-start;flex-direction:column}}
.ticket-card,.order-card{display:grid;gap:10px;border-top:1px solid #e4dfd5;padding:20px 0}.ticket-card strong{font:700 28px/1 ui-monospace,monospace;color:#155e52}.ticket-card progress{width:100%}.shipment{display:grid;gap:8px;margin:10px 0;color:#65706c}.shipment-line{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:0;list-style:none;font-size:11px}.shipment-line li{border-top:4px solid #d7d4cb;padding-top:6px}.shipment-line li.on{border-color:#27796c;color:#155e52}
.tracking-page{max-width:1080px;margin:0 auto 60px}.tracking-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:0 0 28px}.tracking-page-head h1{font:700 clamp(38px,6vw,62px)/1 Georgia,serif;letter-spacing:-.04em;margin:7px 0 12px}.tracking-page-head p{margin:0;color:#65706c}.tracking-eyebrow{font-size:11px!important;letter-spacing:.18em;font-weight:850;color:#b34e2b!important}.simulation-badge{display:flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid #cfe1dc;background:#eef8f5;color:#155e52;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:750}.simulation-badge span{width:8px;height:8px;border-radius:50%;background:#2c8a70;box-shadow:0 0 0 4px #cfe9e1}.tracking-round{display:grid;gap:16px;margin:34px 0}.tracking-round-title{display:flex;justify-content:space-between;align-items:end;padding:0 4px}.tracking-round-title span,.tracking-order-head span,.tracking-facts span,.delivery-kicker,.next-update span{display:block;font-size:10px;font-weight:850;letter-spacing:.13em;color:#7b827f}.tracking-round-title h2{margin:3px 0 0;font:700 25px/1.1 Georgia,serif}.tracking-round-title a{color:#155e52;font-weight:750;font-size:13px}.tracking-order{background:#fff;border:1px solid #dcd7cc;border-radius:22px;box-shadow:0 14px 42px rgba(39,55,50,.08);overflow:hidden}.tracking-order-head{display:grid;grid-template-columns:1.1fr 1.5fr 1fr .65fr;gap:18px;padding:19px 24px;background:#fbfaf7;border-bottom:1px solid #ebe7de}.tracking-order-head strong{display:block;margin-top:4px;font-size:13px;color:#202b28}.parcel-card{padding:24px}.parcel-card+.parcel-card{border-top:8px solid #f4f1ea}.parcel-title-row{display:flex;align-items:center;gap:14px}.parcel-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:13px;background:#e8f2ef;color:#155e52;font-size:23px}.parcel-title{min-width:0;flex:1}.parcel-title small{font-size:10px;letter-spacing:.12em;color:#7b827f;font-weight:800}.parcel-title h3{margin:3px 0 4px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.parcel-title p{margin:0;color:#707875;font-size:12px}.delivery-status{flex:none;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800;background:#fff3d5;color:#7d5b00}.delivery-status.status-transit{background:#e8f0fb;color:#255a96}.delivery-status.status-out_for_delivery{background:#eee9fb;color:#5d4590}.delivery-status.status-delivered{background:#e4f3e9;color:#23653b}.delivery-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 26px;padding:22px 24px;border-radius:16px;background:linear-gradient(135deg,#edf6f3,#f8fbfa);border:1px solid #d7e8e3}.delivery-hero.status-transit{background:linear-gradient(135deg,#edf4fd,#f9fbfe);border-color:#d7e3f2}.delivery-hero.status-out_for_delivery{background:linear-gradient(135deg,#f1eef9,#fbfaff);border-color:#e0d9f0}.delivery-hero.status-delivered{background:linear-gradient(135deg,#e9f5ed,#f8fcf9);border-color:#d1e7d8}.delivery-hero h3{margin:3px 0 5px;font-size:23px}.delivery-hero p{margin:0 0 7px;color:#596560}.delivery-hero small{color:#7b827f}.delivery-eta{min-width:170px;border-left:1px solid #d4dfdb;padding-left:24px}.delivery-eta span{font-size:9px;letter-spacing:.13em;font-weight:850;color:#65706c}.delivery-eta strong{display:block;margin:5px 0 2px;font:700 21px/1.1 Georgia,serif}.delivery-eta small{font-size:11px}.tracking-progress{position:relative;margin:4px 4px 30px}.tracking-progress-bar{position:absolute;left:5%;right:5%;top:15px;height:4px;background:#e4e5e2;border-radius:99px;overflow:hidden}.tracking-progress-bar i{display:block;height:100%;background:#27796c;border-radius:99px;transition:width .4s}.tracking-progress ol{position:relative;display:grid;grid-template-columns:repeat(5,1fr);padding:0;margin:0;list-style:none}.tracking-progress li{display:grid;justify-items:center;text-align:center;color:#8a908e}.progress-dot{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#e3e5e2;border:3px solid #fff;box-shadow:0 0 0 1px #d8dcd8;font-size:10px;font-weight:900;z-index:1}.tracking-progress li.complete .progress-dot{background:#27796c;color:#fff;box-shadow:0 0 0 1px #27796c}.tracking-progress li.current .progress-dot{box-shadow:0 0 0 4px #cfe6df}.tracking-progress b{font-size:11px;margin-top:8px}.tracking-progress small{font-size:10px;margin-top:2px}.tracking-progress li.complete b{color:#155e52}.tracking-facts{display:grid;grid-template-columns:1fr 1.35fr 1.25fr 1fr;border:1px solid #e2ded5;border-radius:14px;overflow:hidden}.tracking-facts>div{position:relative;padding:15px 17px;min-width:0}.tracking-facts>div+div{border-left:1px solid #e8e4dc}.tracking-facts strong{display:block;margin:4px 0 2px;font-size:12px;overflow:hidden;text-overflow:ellipsis}.tracking-facts small{display:block;color:#747c79;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tracking-number button{position:absolute;right:9px;top:23px;border:0;border-radius:6px;background:#edf4f1;color:#155e52;padding:5px 8px;font-size:10px;font-weight:800;cursor:pointer}.tracking-number strong{padding-right:46px;font-family:ui-monospace,"SFMono-Regular",Consolas,monospace}.tracking-detail-grid{display:grid;grid-template-columns:1.45fr .85fr;gap:30px;margin-top:28px}.tracking-detail-grid h4{margin:0 0 17px;font-size:14px}.tracking-activity ol{list-style:none;padding:0;margin:0}.tracking-activity li{position:relative;display:grid;grid-template-columns:18px 1fr auto;gap:11px;padding:0 0 22px}.tracking-activity li:not(:last-child):before{content:"";position:absolute;left:6px;top:11px;bottom:-2px;width:2px;background:#dce4e1}.tracking-activity li i{width:11px;height:11px;margin-top:3px;border-radius:50%;background:#aab3af;box-shadow:0 0 0 4px #f0f2f1;z-index:1}.tracking-activity li.current i{background:#27796c;box-shadow:0 0 0 4px #dceee8}.tracking-activity strong{font-size:13px}.tracking-activity p{margin:3px 0;color:#606b67;font-size:12px}.tracking-activity small{font-size:10px;color:#8a908e}.tracking-activity time{text-align:right;color:#69736f;font-size:10px;line-height:1.5}.delivery-summary{background:#f8f7f3;border-radius:15px;padding:19px}.delivery-summary dl{margin:0}.delivery-summary dl div{padding:10px 0;border-top:1px solid #e4e1d8}.delivery-summary dt{font-size:10px;color:#7b827f}.delivery-summary dd{margin:3px 0 0;font-size:12px;font-weight:700}.next-update{margin:10px 0 0;padding:13px;border-radius:10px;background:#e9f3f0}.next-update b,.next-update small{display:block}.next-update b{margin:4px 0;font-size:12px}.next-update small{font-size:10px;color:#65706c}.simulation-note{margin:14px 0 0;font-size:10px;line-height:1.5;color:#858b88}.shipment-pending,.tracking-empty{text-align:center;padding:34px;border:1px dashed #d3cec3;border-radius:14px;color:#66716d}.shipment-pending p,.tracking-empty p{margin-bottom:0}.tracking-empty.large{background:#fff;padding:60px 24px}.tracking-empty.large .primary-btn{margin-top:18px}
.delivery-route-card{position:relative;margin:0 0 29px;padding:19px 21px 17px;border:1px solid #d9e1de;border-radius:16px;overflow:hidden;background-color:#f4f8f6;background-image:linear-gradient(rgba(40,100,82,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(40,100,82,.055) 1px,transparent 1px),radial-gradient(circle at 15% 70%,#dcece6 0 3px,transparent 4px),radial-gradient(circle at 72% 25%,#dcece6 0 4px,transparent 5px);background-size:26px 26px,26px 26px,100% 100%,100% 100%}.delivery-route-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.delivery-route-card>header span,.route-locations span{display:block;font-size:9px;font-weight:850;letter-spacing:.14em;color:#74807c}.delivery-route-card>header strong{display:block;margin-top:4px;font-size:13px}.route-distance{text-align:right}.route-distance b{display:block;color:#155e52;font:800 22px/1 ui-monospace,monospace}.route-distance small{font-size:10px;color:#74807c}.route-map{position:relative;height:88px;margin:8px 4px 0}.route-road{position:absolute;left:24px;right:24px;top:42px;height:7px;border-radius:99px;background:repeating-linear-gradient(90deg,#c4cfcb 0 15px,#eef3f1 15px 25px);box-shadow:0 2px 0 rgba(28,65,54,.08)}.route-road i{display:block;width:var(--route-progress);max-width:100%;height:100%;border-radius:99px;background:repeating-linear-gradient(90deg,#75ad9c 0 15px,#b9d7ce 15px 25px)}.route-point{position:absolute;top:31px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(31,58,50,.2);display:grid;place-items:center}.route-point span{width:11px;height:11px;border-radius:50%;background:#27796c}.route-origin{left:11px}.route-destination{right:11px}.route-destination span{border-radius:2px;background:#b34e2b}.route-truck{position:absolute;z-index:3;top:10px;left:clamp(35px,var(--route-progress),calc(100% - 48px));transform:translateX(-50%);width:48px;height:34px;color:#1f7564;filter:drop-shadow(0 4px 3px rgba(24,54,46,.2));transition:left .7s ease}.route-truck svg{display:block;width:100%;height:100%}.route-locations{display:flex;justify-content:space-between;gap:30px;margin-top:-2px}.route-locations>div{max-width:43%}.route-locations>div:last-child{text-align:right}.route-locations b{display:block;margin-top:3px;font-size:10px}.route-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:15px;border-top:1px solid rgba(73,110,99,.18)}.route-stats>div{padding:12px 9px 0;text-align:center}.route-stats>div+div{border-left:1px solid rgba(73,110,99,.15)}.route-stats span{display:block;font-size:12px;font-weight:800}.route-stats small{display:block;margin-top:2px;color:#74807c;font-size:9px}

/* Softer typography and user-selectable color themes */
body,button,input,select,textarea,.public-body,.ai-card{font-family:var(--font-sans)}
h1,h2,h3,h4,.logo-text,.public-brand,.public-hero h1,.tracking-page-head h1,.tracking-round-title h2,.delivery-eta strong{font-family:var(--font-display);font-optical-sizing:auto}
h1,h2,h3,h4{letter-spacing:-.018em}.card-title,.pd-title,.parcel-title h3{font-weight:570}.btn,.primary-btn,.search-btn,.header-cart{font-weight:650}.logo-text,.public-brand{font-weight:720;letter-spacing:-.02em}.public-body{background:var(--bg);color:var(--ink);font-family:var(--font-sans)}
html[data-theme] .header,html[data-theme] .catnav,html[data-theme] .home-cats,html[data-theme] .side-card,html[data-theme] .side-svc,html[data-theme] .icon-grid,html[data-theme] .card{background:var(--card)}
html[data-theme] .topbar{background:color-mix(in srgb,var(--bg) 75%,#fff);border-color:var(--line);color:var(--ink-2)}
html[data-theme] .search{background:color-mix(in srgb,var(--bg) 72%,#fff)}
html[data-theme] .search:focus-within{background:#fff}html[data-theme] .tabbar{border-color:var(--line)}
html[data-theme="warm"] .public-grid article,html[data-theme="warm"] .auth-card,html[data-theme="warm"] .policy-card,html[data-theme="warm"] .tracking-order{background:#fffdf9;border-color:#e9ded2}
html[data-theme="warm"] .delivery-route-card{filter:sepia(.12)}html[data-theme="calm"] .delivery-route-card{filter:hue-rotate(35deg) saturate(.82)}
.preferences-dock{position:fixed;left:18px;bottom:18px;z-index:95;display:flex;align-items:center;gap:8px;font-family:var(--font-sans)}.theme-picker{position:relative}.language-switch{margin:0}.language-trigger,.theme-trigger{display:flex;align-items:center;gap:7px;height:39px;padding:0 13px;border:1px solid color-mix(in srgb,var(--brand) 25%,#ddd);border-radius:999px;background:color-mix(in srgb,var(--card) 92%,transparent);color:var(--brand);box-shadow:0 8px 26px rgba(33,49,44,.14);backdrop-filter:blur(14px);font-size:12px;font-weight:700}.language-trigger:hover,.theme-trigger:hover{background:var(--card);transform:translateY(-1px)}.language-trigger svg,.theme-trigger svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.theme-menu{position:absolute;left:0;bottom:49px;width:260px;padding:9px;border:1px solid var(--line);border-radius:17px;background:var(--card);box-shadow:0 18px 50px rgba(31,47,42,.18)}.theme-menu-head{padding:8px 9px 10px}.theme-menu-head strong,.theme-menu-head small{display:block}.theme-menu-head strong{font-size:13px}.theme-menu-head small{margin-top:2px;color:var(--muted);font-size:10px}.theme-menu>button{display:grid;grid-template-columns:36px 1fr 18px;align-items:center;gap:9px;width:100%;padding:9px;border-radius:11px;text-align:left}.theme-menu>button:hover{background:color-mix(in srgb,var(--brand) 8%,transparent)}.theme-menu>button[aria-pressed="true"]{background:color-mix(in srgb,var(--brand) 12%,transparent)}.theme-menu>button span b,.theme-menu>button span small{display:block}.theme-menu>button span b{font-size:12px}.theme-menu>button span small{margin-top:1px;color:var(--muted);font-size:10px}.theme-menu>button em{visibility:hidden;color:var(--brand);font-style:normal;font-weight:850}.theme-menu>button[aria-pressed="true"] em{visibility:visible}.theme-swatch{display:block;width:32px;height:32px;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}.swatch-soft{background:linear-gradient(135deg,#447c6c 0 50%,#eef3ee 50%)}.swatch-warm{background:linear-gradient(135deg,#a76845 0 50%,#f5eadc 50%)}.swatch-calm{background:linear-gradient(135deg,#58799b 0 50%,#e8f0f5 50%)}
@media(max-width:1023px){body:not(.public-body) .preferences-dock{bottom:calc(var(--tabbar-h) + var(--safe-b) + 12px)}}
@media(max-width:760px){.preferences-dock{position:relative;left:auto;bottom:auto;z-index:20;width:min(100% - 32px,680px);margin:18px auto calc(22px + var(--safe-b))}.theme-menu{top:auto;right:0;left:auto;bottom:49px;max-width:calc(100vw - 32px)}}
@media(max-width:760px){.tracking-page-head{align-items:flex-start;flex-direction:column}.tracking-order-head{grid-template-columns:1fr 1fr}.parcel-card{padding:18px}.parcel-title-row{align-items:flex-start;flex-wrap:wrap}.delivery-status{margin-left:62px}.delivery-hero{align-items:flex-start;flex-direction:column}.delivery-eta{border-left:0;border-top:1px solid #d4dfdb;padding:15px 0 0;width:100%}.tracking-progress{overflow-x:auto;padding-bottom:5px}.tracking-progress ol,.tracking-progress-bar{min-width:620px}.tracking-facts{grid-template-columns:1fr 1fr}.tracking-facts>div:nth-child(3){border-left:0;border-top:1px solid #e8e4dc}.tracking-facts>div:nth-child(4){border-top:1px solid #e8e4dc}.tracking-detail-grid{grid-template-columns:1fr}.simulation-badge{align-self:flex-start}.route-stats{grid-template-columns:1fr 1fr}.route-stats>div:nth-child(3){border-left:0;border-top:1px solid rgba(73,110,99,.15)}.route-stats>div:nth-child(4){border-top:1px solid rgba(73,110,99,.15)}}
@media(max-width:480px){.tracking-order-head{grid-template-columns:1fr}.tracking-order-head>div+div{border-top:1px solid #e8e4dc;padding-top:10px}.tracking-facts{grid-template-columns:1fr}.tracking-facts>div+div{border-left:0;border-top:1px solid #e8e4dc}.tracking-facts>div:nth-child(3){border-top:1px solid #e8e4dc}.parcel-title h3{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.delivery-status{margin-left:0}}

/* Search-native experimental assistants ----------------------------------- */
.search-ai{display:flex;align-items:flex-start;gap:18px;margin:6px 0 24px;padding:24px;border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 34px rgba(44,65,58,.07);overflow:hidden}.search-ai h1{margin:4px 0 8px;font-size:clamp(22px,3vw,32px)}.search-ai p{margin:0;color:var(--muted);line-height:1.62}.search-ai-kicker{display:block;font-size:10px;font-weight:850;letter-spacing:.15em;color:#5f776f}.search-ai-avatar{position:relative;display:grid;place-items:center;flex:0 0 58px;height:58px;border-radius:18px}.search-ai-avatar.machine{background:#e8edeb;border:1px solid #d2dad7}.search-ai-avatar.machine span{width:25px;height:25px;border:2px solid #66746f;border-radius:5px;box-shadow:inset 0 0 0 6px #e8edeb;background:#66746f}.search-ai-avatar.machine:before,.search-ai-avatar.machine:after{content:"";position:absolute;width:34px;height:2px;background:repeating-linear-gradient(90deg,#66746f 0 4px,transparent 4px 7px)}.search-ai-avatar.machine:before{top:10px}.search-ai-avatar.machine:after{bottom:10px}.mechanical-ai{background:linear-gradient(135deg,#f2f5f4,#fbfcfb)}.search-ai-copy{flex:1;min-width:0}.analysis-meter{align-self:center;display:grid;place-items:center;flex:0 0 130px;min-height:90px;border-left:1px solid #d8dfdc;text-align:center}.analysis-meter b{font-size:34px;color:#3d5550}.analysis-meter span{max-width:80px;font-size:10px;color:var(--muted)}
.interactive-ai{background:radial-gradient(circle at 95% 5%,rgba(255,218,190,.55),transparent 31%),linear-gradient(135deg,#fffaf4,#f1f8f5);border-color:#d9e8e1}.search-ai-avatar.human{background:linear-gradient(145deg,#f7caa8,#fff0df);box-shadow:0 8px 18px rgba(130,82,46,.18)}.ava-face{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff8ef;color:#72503b;font:800 19px/1 var(--font-display)}.search-ai-avatar.human i{position:absolute;right:3px;bottom:3px;width:13px;height:13px;border:3px solid #fff;border-radius:50%;background:#3ba776}.search-ai-conversation{flex:1;min-width:0}.ava-message{position:relative;max-width:780px;margin:13px 0 14px;padding:15px 17px;border-radius:5px 18px 18px 18px;background:#fff;box-shadow:0 6px 18px rgba(51,75,66,.07)}.ava-message .history-hint{margin-top:7px;color:#527168;font-size:12px}.need-chips,.active-needs{display:flex;flex-wrap:wrap;gap:8px}.need-chips button,.active-needs span{border:1px solid #bcd5cc;border-radius:999px;background:#fff;color:#285e52;padding:8px 12px;font:650 12px/1 var(--font-sans)}.need-chips button{cursor:pointer;transition:.18s}.need-chips button:hover,.need-chips button:focus-visible{background:#296f60;color:#fff;border-color:#296f60;transform:translateY(-1px)}.active-needs{margin:0 0 12px}.active-needs span{background:#e4f1ec}.active-needs a{align-self:center;margin-left:4px;color:#6d7773;font-size:11px}.ava-freeform{display:grid;grid-template-columns:1fr auto;max-width:620px;margin-top:12px;border:1px solid #c9d9d3;border-radius:14px;background:#fff;overflow:hidden}.ava-freeform>span{grid-column:1/-1;padding:9px 12px 0;color:#66756f;font-size:10px;font-weight:750}.ava-freeform input{min-width:0;border:0;outline:0;padding:8px 12px 11px;background:transparent;font:inherit}.ava-freeform button{margin:6px;border:0;border-radius:10px;background:#286f60;color:#fff;padding:0 17px;font-weight:750;cursor:pointer}.show-unrefined{display:inline-block;margin-top:12px;color:#64736d;font-size:11px;text-decoration:underline}.interactive-ai.is-thinking{opacity:.72}.interactive-ai.is-thinking:after{content:"Ava is refining your results…";position:absolute}.results-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:30px 0 13px}.results-section-head span{font-size:9px;font-weight:850;letter-spacing:.15em;color:#5e746d}.results-section-head h2{margin:3px 0 0;font-size:23px}.results-section-head p{margin:0;color:var(--muted);font-size:11px}.results-section-head.continuation{border-top:1px solid var(--line);padding-top:28px}.ai-analyzed-card{position:relative;min-width:0;border:1px solid #d7e4df;border-radius:15px;background:#fff;overflow:hidden}.ai-analyzed-card>.card{border:0;border-radius:0;box-shadow:none}.ai-reason{min-height:58px;padding:10px 11px;background:#edf5f2;color:#53665f;font-size:10px;line-height:1.4}.ai-reason span{display:block;margin-bottom:3px;color:#266958;font-size:8px;font-weight:900;letter-spacing:.13em}.ai-analysis-grid{align-items:stretch}
@media(max-width:760px){.search-ai{gap:12px;padding:17px 14px;border-radius:17px}.search-ai-avatar{flex-basis:44px;height:44px;border-radius:14px}.search-ai-avatar.machine span{width:20px;height:20px}.ava-face{width:34px;height:34px}.analysis-meter{display:none}.search-ai h1{font-size:21px}.search-ai p{font-size:13px}.ava-message{margin-top:10px;padding:12px 13px}.need-chips{flex-wrap:nowrap;overflow-x:auto;margin-right:-14px;padding:1px 14px 7px 0;scrollbar-width:none}.need-chips button{flex:none}.ava-freeform{grid-template-columns:minmax(0,1fr) auto}.ava-freeform button{padding:0 12px}.results-section-head{align-items:flex-start;flex-direction:column;gap:4px}.ai-reason{min-height:70px}}

/* Round journey: parcel -> personal container -> 100-player draw pool -------- */
.round-complete-banner{display:flex;align-items:center;gap:18px;margin:0 0 28px;padding:20px 22px;border:1px solid #cce2d9;border-radius:20px;background:linear-gradient(120deg,#e8f5ef,#fff8e9);box-shadow:0 12px 30px rgba(46,96,77,.1)}.round-complete-banner .celebration-orb{display:grid;place-items:center;flex:0 0 52px;height:52px;border-radius:50%;background:#2d806b;color:#fff;font-size:24px;box-shadow:0 0 0 8px rgba(45,128,107,.12)}.round-complete-banner>div:nth-child(2){flex:1}.round-complete-banner span{font-size:9px;font-weight:900;letter-spacing:.15em;color:#3a7565}.round-complete-banner h2{margin:3px 0 4px;font-size:22px}.round-complete-banner p{margin:0;color:#61706b;font-size:12px}
.round-journey{margin:0 0 18px;padding:22px;border:1px solid #dce5e1;border-radius:22px;background:linear-gradient(180deg,#fbfdfa,#f3f8f5);box-shadow:0 10px 28px rgba(40,70,59,.06);overflow:hidden}.round-journey>header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.round-journey>header span{font-size:9px;font-weight:900;letter-spacing:.14em;color:#5b756c}.round-journey>header h3{margin:4px 0 0;font-size:22px}.round-journey>header p{margin:0;color:#60716a;font-size:11px}.journey-world{display:grid;grid-template-columns:1.35fr .8fr .7fr;align-items:end;gap:18px;min-height:190px;margin:16px 0 12px;padding:20px;border-radius:18px;background-color:#eaf4ef;background-image:linear-gradient(rgba(52,108,87,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(52,108,87,.05) 1px,transparent 1px);background-size:25px 25px}.journey-road{position:relative;height:65px;margin-bottom:20px;border-bottom:9px solid #aebcb7}.journey-road:after{content:"";position:absolute;left:0;right:0;bottom:-6px;border-bottom:3px dashed #edf4f1}.journey-road i{position:absolute;left:4px;bottom:15px;width:10px;height:42px;border-radius:7px 7px 2px 2px;background:#78998d;box-shadow:14px 8px 0 -2px #9cb5ac}.journey-truck{position:absolute;right:4%;bottom:4px;width:98px;height:55px;animation:truck-bob 1.5s ease-in-out infinite}.truck-box{position:absolute;left:0;bottom:12px;display:grid;place-items:center;width:62px;height:39px;border-radius:5px 4px 2px 2px;background:#2d806b;color:#fff;font-size:12px;font-weight:900}.truck-cab{position:absolute;right:3px;bottom:12px;width:33px;height:31px;border-radius:5px 11px 2px 2px;background:#ef9d62}.truck-cab:after{content:"";position:absolute;left:6px;top:5px;width:17px;height:10px;border-radius:2px;background:#d9f1ec}.journey-truck b{position:absolute;bottom:3px;width:18px;height:18px;border:5px solid #34433e;border-radius:50%;background:#fff}.journey-truck b:nth-of-type(1){left:13px}.journey-truck b:nth-of-type(2){right:12px}@keyframes truck-bob{50%{transform:translateY(-2px)}}.journey-home>span,.journey-pool>span{display:block;margin-bottom:7px;text-align:center;font-size:9px;font-weight:900;letter-spacing:.1em;color:#597268}.collection-bin{position:relative;display:flex;align-content:flex-start;justify-content:center;flex-wrap:wrap;gap:4px;min-height:92px;padding:18px 10px 10px;border:3px solid #d29259;border-top:0;border-radius:5px 5px 18px 18px;background:linear-gradient(135deg,#f8d8aa,#eebd7f);box-shadow:inset 0 -8px 0 rgba(149,88,39,.08)}.collection-bin:before{content:"";position:absolute;left:-6px;right:-6px;top:0;height:9px;border-radius:99px;background:#a66537}.collection-bin em{align-self:center;color:#886648;font-size:10px}.journey-product{position:relative;width:38px;height:38px;border:2px solid #fff;border-radius:9px;background:#fff;box-shadow:0 4px 8px rgba(65,47,32,.16);overflow:visible}.journey-product img{width:100%;height:100%;border-radius:7px;object-fit:cover}.journey-product small{position:absolute;right:-5px;bottom:-5px;padding:2px 4px;border-radius:7px;background:#4a635a;color:#fff;font-size:8px}.stage-container .journey-product{animation:drop-in .65s both;animation-delay:calc(var(--item-index) * 90ms)}@keyframes drop-in{from{opacity:0;transform:translateY(-80px) rotate(-12deg)}70%{transform:translateY(5px) rotate(4deg)}to{opacity:1;transform:none}}.pool-drum{position:relative;display:grid;place-items:center;align-content:center;width:115px;height:115px;margin:auto;border:5px solid #6a77a0;border-radius:50%;background:radial-gradient(circle,#fef3c8 0 20%,#dce3f7 21% 60%,#b8c5e8 61%);box-shadow:inset 0 0 0 7px #edf1fb,0 8px 15px rgba(55,69,107,.16)}.pool-drum:after{content:"";position:absolute;bottom:-14px;width:64px;height:14px;border-radius:4px;background:#58668f}.pool-drum b{font-size:27px;color:#485781}.pool-drum small{font-size:8px;color:#52607e}.pool-sparkles{position:absolute;right:-5px;top:-12px;color:#d89932;font-size:23px}.stage-pool .journey-product{animation:pool-drop 1s both;animation-delay:calc(var(--item-index) * 100ms)}.stage-pool .collection-bin{opacity:.55}@keyframes pool-drop{0%{opacity:1;transform:none}45%{transform:translate(80px,-25px) rotate(18deg)}100%{opacity:0;transform:translate(190px,35px) scale(.4) rotate(90deg)}}.journey-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;list-style:none;margin:16px 0 0;padding:0}.journey-steps li{position:relative;display:flex;align-items:flex-start;gap:9px;padding-right:12px;color:#7a8581}.journey-steps li:not(:last-child):after{content:"";position:absolute;left:31px;right:5px;top:13px;height:2px;background:#d8dfdc}.journey-steps i{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:#dfe4e2;font-style:normal;font-size:10px;font-weight:900}.journey-steps b,.journey-steps small{display:block}.journey-steps b{font-size:11px}.journey-steps small{margin-top:3px;font-size:9px;line-height:1.35}.journey-steps .done{color:#286d5c}.journey-steps .done i{background:#2e806c;color:#fff}.journey-steps .current i{box-shadow:0 0 0 5px rgba(46,128,108,.15)}.journey-callout{margin:16px 0 0;padding:11px 13px;border-radius:11px;background:#fff0d9;color:#705330;font-size:11px}.journey-callout.pool-callout{background:#e6edf9;color:#455779}
@media(max-width:760px){.round-complete-banner{align-items:flex-start;flex-wrap:wrap}.round-complete-banner form{width:100%}.round-complete-banner button{width:100%}.round-journey{padding:16px 13px}.round-journey>header{align-items:flex-start;flex-direction:column;gap:4px}.journey-world{grid-template-columns:1fr 1fr;min-height:0;padding:14px;gap:16px}.journey-road{grid-column:1/-1;height:75px;margin-bottom:0}.journey-home,.journey-pool{min-width:0}.pool-drum{width:94px;height:94px}.stage-pool .journey-product{animation-name:fade-drop}.journey-steps{grid-template-columns:1fr 1fr;gap:14px}.journey-steps li:after{display:none}}@keyframes fade-drop{to{opacity:.15;transform:translateY(30px) scale(.7)}}
@media(max-width:390px){.journey-world{grid-template-columns:1fr}.journey-road{grid-column:auto}.collection-bin{max-width:180px;margin:auto}.journey-steps{grid-template-columns:1fr}.journey-steps small{font-size:10px}}
.mobile-end-round button{border:1px solid #d7d4cb;border-radius:8px;background:#fff;color:#7d3023;padding:7px;font-size:11px}

/* Order visibility and purchase journey ----------------------------------- */
.me-orders-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 0 12px;padding:15px 17px;border:1px solid #cfe0da;border-radius:var(--radius);background:linear-gradient(120deg,#eef7f3,var(--card));box-shadow:var(--shadow)}
.me-orders-card>span:nth-child(2){min-width:0}.me-orders-card b,.me-orders-card small{display:block}.me-orders-card b{font-size:14px}.me-orders-card small{margin-top:2px;color:var(--muted);font-size:11px;white-space:normal}.me-orders-card>i{color:var(--brand);font-size:24px;font-style:normal}.me-orders-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--brand);color:#fff}.me-orders-icon svg{width:25px;height:25px}
.purchase-success{position:fixed;z-index:260;left:50%;top:50%;display:grid;grid-template-columns:minmax(250px,.95fr) minmax(270px,1.05fr);gap:24px;width:min(720px,calc(100vw - 28px));padding:24px;border:1px solid #cce0d8;border-radius:26px;background:rgba(255,255,255,.98);box-shadow:0 28px 90px rgba(27,52,44,.25);transform:translate(-50%,-50%);animation:success-pop .48s cubic-bezier(.2,.9,.25,1.15) both;overflow:hidden}
.purchase-success:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 14% 10%,rgba(255,218,160,.38),transparent 34%),radial-gradient(circle at 90% 95%,rgba(90,164,139,.2),transparent 35%);pointer-events:none}.purchase-success>*{position:relative}.purchase-success.is-leaving{animation:success-leave .42s ease both}.purchase-success-close{position:absolute;z-index:3;right:12px;top:9px;width:36px;height:36px;border-radius:50%;background:#f1f3f1;font-size:23px;line-height:1}.success-scene{position:relative;align-self:center;height:190px;border-radius:20px;background:linear-gradient(#e9f6f1 0 65%,#d8e2dd 65% 69%,#aebcb7 69% 77%,#f0eadc 77%);overflow:hidden}.success-road{position:absolute;left:0;right:0;bottom:45px;border-top:4px dashed #fff}.success-van{position:absolute;left:12px;bottom:49px;width:92px;height:49px;animation:success-drive 4.4s cubic-bezier(.2,.7,.25,1) .45s both}.success-van span{position:absolute;left:0;bottom:9px;display:grid;place-items:center;width:58px;height:35px;border-radius:7px 4px 3px 3px;background:#287663;color:#fff;font-size:11px;font-weight:900}.success-van:after{content:"";position:absolute;right:3px;bottom:9px;width:31px;height:27px;border-radius:5px 10px 3px 3px;background:#ed9a60}.success-van b{position:absolute;z-index:2;bottom:1px;width:17px;height:17px;border:4px solid #35443f;border-radius:50%;background:#fff}.success-van b:nth-of-type(1){left:12px}.success-van b:nth-of-type(2){right:10px}.success-package{position:absolute;z-index:2;left:39px;top:13px;display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:#efb66d;color:#fff;box-shadow:0 8px 16px rgba(74,55,34,.2);animation:success-pack 1.15s cubic-bezier(.3,.8,.4,1) .25s both}.success-package:before,.success-package:after{content:"";position:absolute;background:#fff4d9}.success-package:before{width:5px;height:100%}.success-package:after{width:100%;height:4px;top:10px}.success-package span{z-index:1;font-weight:900}.success-copy{align-self:center}.success-copy>span{color:#2d7b67;font-size:10px;font-weight:900;letter-spacing:.16em}.success-copy h2{margin:5px 0 9px;font-size:clamp(25px,4vw,35px);line-height:1.12}.success-copy p{margin:0;color:var(--ink-2);font-size:13px;line-height:1.65}.success-copy a{display:inline-flex;margin-top:15px;border-radius:999px;background:var(--brand);color:#fff;padding:9px 17px;font-size:12px;font-weight:800}.success-confetti i{position:absolute;top:-15px;left:calc(var(--i) * 17%);width:7px;height:13px;border-radius:2px;background:hsl(calc(var(--i) * 63) 62% 58%);animation:confetti-fall 2.2s ease-in calc(var(--i) * 80ms) infinite}
@keyframes success-pop{from{opacity:0;transform:translate(-50%,-44%) scale(.92)}}
@keyframes success-leave{to{opacity:0;transform:translate(-50%,-56%) scale(.96)}}
@keyframes success-drive{0%{transform:translateX(-120px)}20%{transform:translateX(0)}75%{transform:translateX(135px)}100%{transform:translateX(360px)}}
@keyframes success-pack{0%{opacity:0;transform:translateY(-70px) rotate(-15deg)}65%{opacity:1;transform:translateY(80px) rotate(6deg)}100%{opacity:0;transform:translate(48px,92px) scale(.65)}}
@keyframes confetti-fall{to{transform:translate(25px,220px) rotate(260deg)}}

/* Small-phone hardening ---------------------------------------------------- */
.tabbar a{min-width:0}.tabbar a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card,.card-body,.card-title,.tracking-order-head>div,.route-locations>div{min-width:0}
.card-title,.parcel-title h3,.tracking-order-head strong,.route-locations b{overflow-wrap:anywhere}
@media(max-width:700px){.purchase-success{grid-template-columns:1fr;gap:14px;padding:18px;border-radius:20px}.success-scene{height:145px}.success-copy h2{font-size:26px}.success-copy p{font-size:12px}.success-van{bottom:38px}.success-road{bottom:34px}}
@media(max-width:430px){
  .tabbar a{font-size:9px}.tabbar a svg{width:20px;height:20px}
  .header-in{gap:6px}.logo-mark{width:28px;height:28px}.search-ico{margin-left:9px}.search input{padding:0 5px;font-size:13px}.search-btn{padding:0 10px}
  .me-head{display:grid;grid-template-columns:48px minmax(0,1fr);padding:16px 13px}.me-avatar{width:48px;height:48px}.me-head .btn{grid-column:1/-1;width:100%}
  .me-orders-card{grid-template-columns:40px minmax(0,1fr) auto;padding:13px}.me-orders-icon{width:40px;height:40px}
  .cl-item{gap:7px}.cl-item img{width:72px;height:72px}.ck{margin-top:25px}.cl-bottom{align-items:flex-end;gap:4px}.cl-bottom>span:last-child{display:flex;align-items:center}.cl-del{margin-left:4px}
  .purchase-success{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);overflow:auto}.success-scene{height:128px}.success-copy h2{font-size:23px}
  .tracking-page{margin-bottom:30px}.tracking-round-title{align-items:flex-start;gap:10px}.tracking-order{border-radius:16px}.tracking-order-head{gap:9px;padding:14px}.parcel-card{padding:13px}
  .route-locations{align-items:flex-start}.route-locations>div{min-width:0}.route-locations b{font-size:10px}
}
@media(max-width:360px){
  .wrap{padding-left:7px;padding-right:7px}.header-in{height:56px}.search-btn{font-size:12px;padding:0 8px}.search input::placeholder{color:transparent}.tabbar a{font-size:8px}
  .grid{gap:6px}.card-body{padding-left:8px;padding-right:8px}.card-title{font-size:12px}
  .ava-freeform{grid-template-columns:1fr}.ava-freeform button{min-height:38px}
  .tracking-progress{margin:4px 0 24px}.tracking-progress-bar{display:none}.tracking-progress ol{grid-template-columns:1fr;gap:9px}.tracking-progress li{grid-template-columns:34px minmax(0,1fr);justify-items:start;text-align:left;padding:0}.tracking-progress li .progress-dot{grid-row:1/3}.tracking-progress b{margin:1px 0 0;font-size:10px}.tracking-progress small{font-size:9px}
  .route-stats{grid-template-columns:1fr}.route-stats>div+div{border-left:0!important;border-top:1px solid rgba(73,110,99,.15)}
  .ck-bar{grid-template-columns:1fr 1fr}.ck-total{grid-column:1/-1}.ck-bar .btn{padding:0 6px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.purchase-success,.success-van,.success-package,.success-confetti i,.journey-truck,.journey-product{animation:none!important}.success-package{display:none}.success-van{transform:translateX(90px)}}

/* Responsive hardening: compact phones, tablets, landscape, and touch devices. */
.catgroup-items>a{min-width:0;width:100%;overflow:hidden}.catgroup-items em{width:100%;min-width:0}
.ck-bar{z-index:35}.ck-bar>.btn{min-width:0}

@media(max-width:1023px){
  .preferences-dock{position:relative;left:auto;bottom:auto;z-index:20;width:min(100% - 32px,680px);margin:18px auto calc(22px + var(--safe-b))}
  .theme-menu{top:auto;right:0;left:auto;bottom:49px;max-width:calc(100vw - 32px)}
  .page-checkout .ai-fab,.page-checkout .ai-teaser{display:none!important}
}

@media(min-width:768px) and (max-width:1023px){
  .page-product .main-product>.wrap{padding:0 18px}
  .page-product .pd{display:grid;grid-template-columns:minmax(300px,42%) minmax(0,1fr);gap:22px;margin-top:14px;padding:18px;border-radius:var(--radius)}
  .page-product .pd-main{border-radius:8px}
  .page-product .pd-info{padding:0;gap:12px}
  .page-product .pd-thumbs{display:flex!important;overflow-x:auto;padding-bottom:3px}
  .page-product .pd-variants{display:block!important}
  .page-product .pd-qty,.page-product .pd-actions{display:flex!important}
  .page-product .pd-actions{gap:8px;flex-wrap:wrap}
  .page-product .pd-actions .btn{height:42px;padding:0 20px;font-size:14px}
  .page-product .pd-row,.page-product .actionbar{display:none!important}
  .page-product .main{padding-bottom:calc(var(--tabbar-h) + var(--safe-b) + 18px)}
  .page-product .ai-fab{bottom:calc(var(--tabbar-h) + var(--safe-b) + 16px)}
  .page-product .ai-teaser{bottom:calc(var(--tabbar-h) + var(--safe-b) + 22px)}
}

@media(max-width:767px){
  :root{--header-h:60px}
  .header-in{gap:7px}.search{height:40px}.icon-btn{width:40px;height:40px}.mobile-end-round button{min-height:40px}
  .btn,.primary-btn,.language-trigger,.theme-trigger{min-height:42px}
  .form-row input,.form-row select,.auth-card input,.auth-card select{min-height:44px}
  .public-actions{flex-wrap:wrap}
  .tracking-progress{overflow:visible;padding-bottom:0}
  .tracking-progress ol,.tracking-progress-bar{min-width:0}
  .tracking-progress b{font-size:9px;line-height:1.2;padding:0 2px}
  .tracking-progress small{font-size:8px}
  .progress-dot{width:27px;height:27px}
  .delivery-route-card{padding:16px 14px 14px}
  .route-distance b{font-size:18px}
  .ai-fab-label{right:0;left:auto;max-width:calc(100vw - 28px);overflow:hidden;text-overflow:ellipsis;transform:none}
  .ai-teaser{right:76px;max-width:calc(100vw - 104px)}
  .ai-panel{width:100vw;max-width:100%;height:100vh;height:100dvh}
}

@media(max-width:380px){
  .wrap{padding-left:8px;padding-right:8px}
  .filterbar{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.filters{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}
  .search-btn{padding:0 10px}.m-budget small{font-size:9px}.m-budget b{font-size:12px}
  .catpage-left{width:76px}.catpage-right{padding:9px 8px}.catgroup-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 8px}
  .catpage-left a{padding:12px 5px;font-size:12px}
  .ck-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:0 -8px;padding:9px 8px calc(9px + var(--safe-b))}
  .ck-total{grid-column:1/-1}.ck-bar>.btn{width:100%;padding:0 8px;font-size:12px}
  .public-header,.public-footer{padding:16px}.public-main{padding:20px 14px}.public-hero h1{font-size:clamp(34px,13vw,42px)}
  .public-grid article,.auth-card,.policy-card{padding:20px;border-radius:16px}
  .tracking-order-head{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tracking-order-head>div+div{border-top:0;padding-top:0}
  .tracking-order-head>div:nth-child(n+3){border-top:1px solid #e8e4dc;padding-top:10px}
  .parcel-card{padding:14px}.parcel-icon{flex-basis:40px;height:40px}.delivery-status{margin-left:0}
  .delivery-hero{padding:17px 15px}.delivery-hero h3{font-size:20px}
  .route-locations{gap:12px}.route-locations>div{max-width:48%}
  .tracking-progress{margin-left:-5px;margin-right:-5px}.tracking-progress b{font-size:8px}.tracking-progress small{font-size:7px}
}

@media(max-height:600px) and (orientation:landscape){
  .ai-panel{height:calc(100vh - 24px);top:12px;bottom:12px}
  .sheet{max-height:94vh}
}

/* ==========================================================================
   科研游戏化：伴侣养成、100人奖池、三组搜索交互与全端自适应增强
   ========================================================================== */

/* 顶部伴侣状态药丸挂件 */
.topbar-left { display: flex; align-items: center; gap: 14px; }
.companion-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 6px;
  background: rgba(68, 124, 108, 0.12); border: 1px solid rgba(68, 124, 108, 0.25);
  border-radius: 999px; font-size: 11px; color: var(--ink);
}
.companion-emoji { font-size: 13px; }
.companion-name { font-weight: 600; color: var(--brand); }
.companion-lvl {
  background: var(--brand); color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 8px; line-height: 1.2;
}
.companion-progress-bar {
  width: 44px; height: 6px; background: rgba(0, 0, 0, 0.08); border-radius: 3px; overflow: hidden;
}
.companion-progress-bar .bar-inner {
  height: 100%; background: linear-gradient(90deg, #6ec1a8, var(--brand)); border-radius: 3px;
  transition: width 0.4s ease;
}
.lottery-ready-badge {
  display: inline-flex; align-items: center; background: linear-gradient(90deg, #ff8a00, #e52d27);
  color: #fff !important; font-weight: 700; padding: 2px 9px; border-radius: 12px;
  animation: pulse-badge 1.8s infinite;
}
@keyframes pulse-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* 订单成功页面的伴侣成长反馈卡 */
.companion-growth-card {
  margin: 16px 0; padding: 14px 16px; background: #f4f9f7; border: 1px solid #d4e8e1;
  border-radius: 14px; text-align: left;
}
.cg-head { display: flex; align-items: center; gap: 12px; }
.cg-icon { font-size: 26px; }
.cg-head strong { font-size: 14px; color: var(--brand); }
.cg-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); }
.cg-bar { height: 8px; background: #e0eee9; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.cg-fill { height: 100%; background: linear-gradient(90deg, #447c6c, #ff9f43); transition: width .6s ease; }
.cg-bonus-banner {
  margin-top: 8px; padding: 6px 10px; background: #fff8e7; border: 1px dashed #f5b041;
  border-radius: 8px; font-size: 12px; color: #b7791f; font-weight: 600;
}

/* 伪AI组（安慰剂模式）交互样式 */
.mechanical-ai {
  background: linear-gradient(135deg, #f8fbfd 0%, #edf4f8 100%);
  border: 1px solid #cce1ee; border-radius: 16px; padding: 20px 24px; margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(45, 95, 130, 0.05);
}
.search-ai-badge {
  display: inline-block; font-size: 11px; font-weight: 700; color: #2b6cb0;
  background: #ebf8ff; border: 1px solid #bee3f8; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 8px;
}
.mechanical-ai h1 { font-size: 18px; margin: 0 0 6px; color: #1a365d; }
.mechanical-ai .ai-desc { font-size: 13px; color: #4a5568; margin: 0 0 14px; line-height: 1.5; }
.refine-group-title { font-size: 12px; font-weight: 600; color: #718096; margin-bottom: 8px; }
.need-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.need-chips .chip-btn {
  height: 32px; padding: 0 14px; border-radius: 16px; background: #fff; border: 1px solid #cbd5e0;
  font-size: 13px; color: #2d3748; transition: all .15s ease;
}
.need-chips .chip-btn:hover { border-color: #3182ce; color: #3182ce; background: #ebf8ff; }
.need-chips .chip-btn.is-active { background: #3182ce; color: #fff; border-color: #3182ce; }
.active-needs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.active-label { font-size: 12px; color: #718096; }
.pref-tag {
  background: #2b6cb0; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px;
}
.reset-link { font-size: 12px; color: #e53e3e; text-decoration: underline; margin-left: 6px; }

/* 安慰剂动态进度条 */
.ai-analysis-bar { margin-top: 14px; }
.bar-track { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #3182ce, #63b3ed); transition: width 0.7s ease; }
.bar-text { font-size: 12px; color: #4a5568; margin-top: 6px; animation: blink-text 1s infinite alternate; }
@keyframes blink-text { from { opacity: .6; } to { opacity: 1; } }

/* AI 推荐理由小微标 */
.ai-reason {
  background: #f0f7f5; border-left: 3px solid var(--brand); padding: 6px 10px;
  font-size: 11px; color: #2c5248; border-radius: 0 6px 6px 0; margin-bottom: 8px;
}
.ai-reason .ai-tag {
  display: inline-block; font-weight: 700; color: var(--brand); margin-right: 6px;
}

/* 真AI组（DeepSeek）对话风格卡片 */
.interactive-ai {
  background: linear-gradient(135deg, #fffaf6 0%, #fef3e9 100%);
  border: 1px solid #fed7aa; border-radius: 18px; padding: 22px 26px; margin-bottom: 24px;
}
.interactive-ai.style-professional {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-color: #cbd5e0;
}
.ava-face {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px; font-weight: 800; color: #fff;
}
.ava-face.friend { background: linear-gradient(135deg, #ff7a00, #ff4d4d); }
.ava-face.expert { background: linear-gradient(135deg, #3182ce, #2b6cb0); }
.ava-message {
  background: #fff; border-radius: 12px; padding: 14px 18px; margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); font-size: 14px; line-height: 1.6;
}
.ava-freeform {
  display: flex; gap: 8px; margin-top: 12px;
}
.ava-freeform input {
  flex: 1; height: 40px; padding: 0 14px; border: 1px solid #cbd5e0; border-radius: 20px;
  font-size: 13px; outline: none; background: #fff;
}
.ava-freeform input:focus { border-color: var(--brand); }
.ava-freeform button {
  height: 40px; padding: 0 18px; border-radius: 20px; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 600;
}

/* 100人奖池页面专属样式 */
.game-tickets-page { padding: 24px 16px 60px; }
.tickets-head { margin-bottom: 28px; text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.tickets-badge {
  display: inline-block; background: #feebc8; color: #c05621; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}
.tickets-head h1 { font-size: 28px; margin: 0 0 10px; color: var(--ink); }
.tickets-sub { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; }

.pending-pool-section {
  background: #fff; border: 2px dashed #e2e8f0; border-radius: 20px; padding: 24px;
  margin-bottom: 36px; box-shadow: var(--shadow);
}
.pending-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.ph-title { display: flex; align-items: center; gap: 12px; }
.safe-box-icon { font-size: 32px; }
.ph-title h2 { font-size: 18px; margin: 0; color: var(--ink); }
.ph-title small { font-size: 13px; color: var(--muted); }
.ph-title small b { color: var(--price); }
.btn-lottery-join {
  background: linear-gradient(90deg, #ff7a00, #e52d27); color: #fff; padding: 10px 22px;
  border-radius: 24px; font-size: 14px; font-weight: 700; border: none; cursor: pointer;
}
.pulse-glow { animation: pulse-shadow 2s infinite; }
@keyframes pulse-shadow { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 45, 39, 0.4); } 50% { box-shadow: 0 0 16px 4px rgba(229, 45, 39, 0.25); } }

.pending-items-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.pending-item-card {
  display: flex; gap: 12px; padding: 12px; background: #f8fafc; border-radius: 12px; border: 1px solid #edf2f7;
}
.pending-item-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.pi-info { min-width: 0; }
.pi-title { font-size: 12px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pi-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.pi-tag { display: inline-block; font-size: 10px; color: #4a5568; background: #e2e8f0; padding: 1px 6px; border-radius: 4px; margin-top: 4px; }

/* 奖池卡片网格 */
.tickets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.ticket-plate {
  background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); position: relative;
}
.ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tp-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px;
  background: #e6fffa; color: #234e52;
}
.tp-pool-no { font-size: 13px; font-weight: 700; color: #4a5568; }
.ticket-code-row {
  background: #f7fafc; border: 1px dashed #cbd5e0; border-radius: 10px; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.tc-label { font-size: 12px; color: #718096; }
.tc-code { font-size: 18px; font-family: monospace; color: #2b6cb0; letter-spacing: 1px; }
.pool-progress-block .ppb-meta { display: flex; justify-content: space-between; font-size: 12px; color: #4a5568; margin-bottom: 6px; }
.ppb-bar { height: 8px; background: #edf2f7; border-radius: 4px; overflow: hidden; }
.ppb-fill { height: 100%; background: linear-gradient(90deg, #3182ce, #38a169); border-radius: 4px; }
.ticket-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ==========================================================================
   全新高颜值视觉重塑：现代电商质感、微胶囊、商品大卡、灵动养成小岛
   ========================================================================== */

/* 1. 首页顶部品类与主轮播精修 */
.home-wrapper { margin-top: 14px; }
.cats-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px 8px;
  font-size: 14px; font-weight: 700; color: #1a202c; border-bottom: 1px solid #f1f3f7;
}
.cats-head svg { width: 18px; height: 18px; stroke: var(--brand); }
.banner-kicker {
  display: inline-block; background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px);
  color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px;
  margin-bottom: 10px; border: 1px solid rgba(255, 255, 255, 0.35);
}

/* 首页右侧伴侣专属养成看板 */
.companion-side-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfb 100%);
  border: 1px solid #e6f0ed; border-radius: 18px; padding: 22px 16px;
  box-shadow: 0 4px 20px rgba(68, 124, 108, 0.08); position: relative;
}
.companion-avatar-wrap { position: relative; width: 68px; height: 68px; margin: 0 auto 10px; }
.companion-avatar-circle {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #e6f7f2 0%, #c3ecdf 100%);
  display: grid; place-items: center; font-size: 34px;
  box-shadow: 0 6px 16px rgba(68, 124, 108, 0.15); border: 3px solid #fff;
}
.companion-level-badge {
  position: absolute; bottom: -2px; right: -4px; background: linear-gradient(135deg, #ff9f43, #ff5252);
  color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 10px;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.companion-side-name { font-size: 16px; font-weight: 800; margin: 0 0 4px; color: #1a202c; }
.companion-side-quote { font-size: 11.5px; color: #5f746d; margin: 0 0 12px; line-height: 1.45; }

.companion-side-exp { margin: 10px 0 14px; background: #fff; padding: 10px 12px; border-radius: 12px; border: 1px solid #eef3f1; }
.companion-side-exp .exp-text { display: flex; justify-content: space-between; font-size: 11px; color: #718096; margin-bottom: 5px; }
.companion-side-exp .exp-track { height: 6px; background: #edf2f7; border-radius: 3px; overflow: hidden; }
.companion-side-exp .exp-fill { height: 100%; background: linear-gradient(90deg, #447c6c, #ff9f43); border-radius: 3px; }

.side-budget {
  background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
  border: 1px solid #fed7d7; border-radius: 12px; padding: 12px; margin-bottom: 12px;
}
.side-budget small { font-size: 11px; color: #718096; }
.side-budget b { font-size: 24px; color: #e53e3e; font-family: "Segoe UI", sans-serif; font-weight: 800; }
.bonus-hint { font-size: 11px; color: #dd6b20; margin-top: 4px; font-weight: 600; }
.bonus-hint.active { color: #38a169; }

.btn-side-lottery {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: linear-gradient(90deg, #ff7a00, #ff4142); color: #fff !important;
  font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 20px;
  box-shadow: 0 4px 14px rgba(255, 65, 66, 0.25); transition: transform .15s ease;
}
.btn-side-lottery:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* 四大游戏化科研特色横幅 */
.gamification-features-banner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: #fff; border-radius: 16px; padding: 16px 20px; margin: 18px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03); border: 1px solid #edf2f7;
}
.feat-item { display: flex; align-items: center; gap: 12px; }
.feat-icon {
  width: 42px; height: 42px; border-radius: 12px; background: #f7fafc;
  display: grid; place-items: center; font-size: 20px; flex: none;
}
.feat-item b { font-size: 13px; color: #2d3748; display: block; }
.feat-item small { font-size: 11px; color: #a0aec0; display: block; margin-top: 2px; }
@media (max-width: 900px) {
  .gamification-features-banner { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* 楼层导航头 */
.home-feed-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; margin: 26px 0 16px; padding: 0 4px;
}
.feed-tabs { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab {
  padding: 7px 16px; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0;
  font-size: 13px; font-weight: 700; color: #4a5568; cursor: pointer; transition: all .2s;
  white-space: nowrap; flex: none;
}
.feed-tab.active, .feed-tab:hover {
  background: linear-gradient(135deg, #ff4142, #ff6b35); color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 65, 66, 0.25);
}
.feed-tip { font-size: 12px; color: #718096; }

/* 2. 商品大卡（Modern Card）现代升级 */
.modern-card {
  background: #ffffff; border-radius: 16px; overflow: hidden; border: 1px solid #f0f2f5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.035); transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 65, 66, 0.15);
}
.card-badge-hot {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: linear-gradient(135deg, #ff4142, #ff7a00); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255, 65, 66, 0.3);
}
.card-price-row {
  display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 6px;
}
.price-prefix { display: block; font-size: 10px; color: #ff4142; font-weight: 600; line-height: 1; margin-bottom: 2px; }
.modern-card .price { font-size: 18px; font-weight: 800; color: #ff2442; font-family: "Segoe UI", sans-serif; }
.quick-add-btn {
  width: 30px; height: 30px; border-radius: 50%; background: #fff1f0; border: 1px solid #ffccc7;
  display: grid; place-items: center; color: #ff4142; flex: none; transition: all .15s;
}
.quick-add-btn:hover { background: #ff4142; color: #fff; border-color: #ff4142; transform: scale(1.1); }
.quick-add-btn svg { width: 16px; height: 16px; stroke-width: 2.4; }
.meta-sales { font-size: 11px; color: #718096; background: #f7fafc; padding: 1px 6px; border-radius: 4px; }
.meta-rating { font-size: 11px; color: #d69e2e; font-weight: 700; }

/* 3. 伴侣灵动悬浮岛 (Companion Float Island) */
.companion-float-island {
  position: fixed; right: 24px; bottom: 84px; z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end;
}
@media (max-width: 768px) {
  .companion-float-island { right: 14px; bottom: 74px; }
}

/* 呼吸浮动动画 */
.companion-float-avatar {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
  border: 2px solid #38a169; box-shadow: 0 8px 24px rgba(56, 161, 105, 0.35);
  cursor: pointer; animation: island-bob 3.2s ease-in-out infinite;
  display: grid; place-items: center;
}
@keyframes island-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.c-orb-icon { font-size: 28px; line-height: 1; }
.c-orb-lvl {
  position: absolute; bottom: -3px; right: -3px; background: #ff4142; color: #fff;
  font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 8px; border: 2px solid #fff;
}
.companion-speech-bubble {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px 14px 2px 14px;
  padding: 8px 14px; margin-bottom: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  max-width: 200px; font-size: 12px; color: #2d3748; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: all .3s ease; pointer-events: none;
}
.companion-speech-bubble.is-popped { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* 展开的互动养成毛玻璃面板 */
.companion-popup-panel {
  position: absolute; right: 0; bottom: 72px; width: 310px;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8); border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16); padding: 18px; z-index: 50;
  animation: panel-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes panel-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.cpp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; }
.cpp-title { display: flex; align-items: center; gap: 8px; }
.cpp-emoji { font-size: 22px; }
.cpp-title h4 { margin: 0; font-size: 15px; color: #1a202c; }
.cpp-title small { font-size: 11px; color: #718096; }
.cpp-close { width: 26px; height: 26px; border-radius: 50%; background: #f7fafc; font-size: 16px; color: #718096; display: grid; place-items: center; }

.cpp-stage { text-align: center; padding: 18px 0 10px; }
.cpp-avatar-hero { font-size: 54px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1)); }
.animate-bounce { animation: mini-bounce 2s infinite; }
@keyframes mini-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cpp-mood-tag {
  display: inline-block; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px; margin-top: 8px;
}

.cpp-exp-box { background: #f8fafc; border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.cpp-exp-labels { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; margin-bottom: 5px; }
.cpp-exp-bar { height: 7px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.cpp-exp-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 4px; }

.cpp-bonus-alert {
  display: flex; gap: 8px; background: #fffbeb; border: 1px solid #fef3c7; border-radius: 10px;
  padding: 10px; margin-bottom: 14px; font-size: 11.5px; color: #92400e;
}
.cba-ico { font-size: 18px; flex: none; }
.cpp-bonus-alert b { display: block; margin-bottom: 2px; }
.cpp-bonus-alert p { margin: 0; line-height: 1.4; color: #b45309; }

.cpp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cpp-pet-btn {
  height: 38px; border-radius: 19px; background: #fee2e2; color: #dc2626; font-size: 13px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; position: relative;
  transition: transform .15s;
}
.cpp-pet-btn:hover { background: #fecaca; transform: scale(1.02); }
.cpp-pool-btn {
  height: 38px; border-radius: 19px; background: linear-gradient(135deg, #ff7a00, #ff4142);
  color: #fff !important; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 65, 66, 0.25);
}

.floating-heart {
  position: absolute; top: -20px; font-size: 12px; font-weight: 800; color: #ef4444;
  animation: float-up-fade 1s forwards ease-out; pointer-events: none;
}
@keyframes float-up-fade {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-28px); }
}

/* ==========================================================================
   质变级视觉打磨：搜索热词、双栏质感Hero卡片、无裁切白底商品图框
   ========================================================================== */
.search-wrap { flex: 1; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 1024px) { .header-in { height: 84px; } }
.hot-tags { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); padding-left: 14px; white-space: nowrap; overflow: hidden; }
.hot-tags a { color: var(--ink-2); transition: color .15s; }
.hot-tags a:hover { color: var(--brand); text-decoration: underline; }

.hero-rich-slide {
  background: radial-gradient(circle at 85% 20%, rgba(255, 224, 130, 0.35), transparent 45%),
              linear-gradient(135deg, #ff3846 0%, #ff6a2b 60%, #ff9332 100%) !important;
  display: flex; align-items: center; padding: 24px 32px;
}
.hero-grid-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; position: relative; z-index: 2; }
.hero-copy { max-width: 420px; color: #fff; }
.hero-copy h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.22; letter-spacing: .5px; text-shadow: 0 4px 16px rgba(140, 20, 0, .18); }
.hero-copy p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; opacity: .94; }
.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn-primary {
  display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 999px;
  background: #fff; color: #ff3846; font-weight: 800; font-size: 13.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14); transition: transform .15s;
}
.hero-btn-primary:hover { transform: translateY(-2px); }
.hero-btn-ghost {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(8px); transition: background .15s;
}
.hero-btn-ghost:hover { background: rgba(255, 255, 255, .28); }

.hero-showcase { display: grid; grid-template-columns: repeat(2, 118px); gap: 10px; flex: none; }
.hero-mini-card {
  background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 12px 10px; text-align: center;
  color: var(--ink); box-shadow: 0 12px 28px rgba(120, 20, 0, .18); position: relative;
}
.hero-mini-card.c3 { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; background: linear-gradient(90deg, #fff9e6, #fff); border: 1px solid #ffe58f; }
.hero-mini-card .hm-tag { position: absolute; top: 6px; right: 6px; background: #fff1f0; color: #ff3846; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px; }
.hero-mini-card.c3 .hm-tag { position: static; background: #ff9f43; color: #fff; }
.hero-mini-card .hm-ico { font-size: 28px; line-height: 1.1; margin-bottom: 4px; }
.hero-mini-card.c3 .hm-ico { font-size: 22px; margin: 0; }
.hero-mini-card b { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-mini-card small { font-size: 13px; font-weight: 800; color: #ff2442; }
@media (max-width: 767px) {
  .hero-rich-slide { padding: 18px 20px; }
  .hero-copy p { font-size: 12px; margin-bottom: 12px; }
  .hero-btn-primary, .hero-btn-ghost { height: 34px; padding: 0 14px; font-size: 12.5px; }
}

/* 商品图片不裁切 + 柔和白底高级展示 */
.modern-card .card-img { background: #ffffff; padding: 10px; border-bottom: 1px solid #f5f6f8; }
.modern-card .card-img img { object-fit: contain; transition: transform .3s ease; }
.modern-card:hover .card-img img { transform: scale(1.05); }
.modern-card .card-body { padding: 10px 12px 12px; gap: 6px; }
.modern-card .card-title { font-size: 13.5px; font-weight: 600; color: #1f2329; line-height: 1.42; min-height: 2.84em; }



