:root{
  color-scheme:light;
  --brand:#e60012;
  --brand-deep:#c4001e;
  --ink:#1b1c1e;
  --secondary:#7d8087;
  --muted:#9a9da4;
  --line:#ecebe7;
  --line-strong:#e2e0db;
  --surface:#f8f8f6;
  --white:#fff;
  --soft:#fff4f1;
  --soft-line:#f3ded8;
  --ok:#0f8f4d;
  --warn:#8a5a12;
  --star:#f5a623;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Helvetica Neue",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:radial-gradient(1000px 620px at 50% -180px,#ffe4dd 0%,rgba(255,228,221,0) 68%),#eff0f2;color:var(--ink);font-family:var(--font);font-size:15px;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer;border:0;color:inherit;background:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:disabled{cursor:default}
button:active:not(:disabled){opacity:.7}
button:focus-visible,input:focus-visible{outline:3px solid #ffb0a6;outline-offset:3px}
h1,h2,h3,p{margin:0}
small{font-size:12px}
[hidden]{display:none!important}
svg{width:22px;height:22px;display:block;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===== 外壳 ===== */
.stage{min-height:100dvh;display:grid;place-items:center;padding:20px 16px}
.app-shell{width:min(430px,100%);height:min(844px,calc(100dvh - 40px));position:relative;isolation:isolate;display:flex;flex-direction:column;background:var(--surface);border:1px solid #e4dfd9;border-radius:36px;box-shadow:0 30px 80px -42px #3b171055,0 2px 0 #ffffff inset;overflow:hidden}
.app{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--surface)}
.noscript{padding:40px;text-align:center;color:var(--secondary)}
.toast{position:absolute;left:50%;bottom:96px;transform:translateX(-50%);background:#292d35ee;color:#fff;border-radius:11px;font-size:12px;padding:11px 16px;line-height:1.6;z-index:80;max-width:86%;width:max-content;box-shadow:0 6px 20px #0002;pointer-events:none}

/* ===== 通用 ===== */
.scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-width:none;-webkit-overflow-scrolling:touch}
[data-hscroll]{cursor:grab;user-select:none;-webkit-user-select:none}
[data-hscroll].dragging{cursor:grabbing;scroll-snap-type:none}
.scroll::-webkit-scrollbar{display:none}
.ai-orb{width:34px;height:34px;border-radius:50%;position:relative;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#ff6a4d,#e60012);box-shadow:0 7px 18px -8px #e6001277;isolation:isolate;flex-shrink:0}
.ai-orb::before{content:"";position:absolute;inset:-1px;border-radius:50%;background:conic-gradient(from 210deg,#ffc16b,#ff5a3d,#e60012,#ff8a5c,#ffc16b,#e60012);z-index:-1;animation:orb-spin 10s linear infinite}
.ai-orb svg{width:16px;height:16px;position:relative;z-index:1}
.ai-orb.tiny{width:25px;height:25px;box-shadow:none}
.ai-orb.tiny svg{width:12px;height:12px}
.ai-orb.big{width:58px;height:58px;box-shadow:0 18px 34px -18px #e60012aa;margin-bottom:16px}
.ai-orb.big svg{width:28px;height:28px}
@keyframes orb-spin{to{transform:rotate(360deg)}}
@keyframes msg-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes cursor-blink{0%,45%{opacity:1}46%,100%{opacity:0}}
@keyframes dot-pulse{0%,80%,100%{transform:scale(.65);opacity:.55}40%{transform:scale(1);opacity:1}}

/* ===== 顶部导航 ===== */
.top-nav{flex-shrink:0;min-height:60px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:10px 14px 8px;background:#fff}
.nav-circle{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:50%;border:1px solid #ecebe7;background:#fff;color:#35373d;display:grid;place-items:center;box-shadow:0 6px 16px -14px #32110a}
.nav-circle svg{width:18px;height:18px}
.nav-center{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}
.nav-center .ai-orb{width:30px;height:30px;box-shadow:0 6px 16px -8px #e6001266}
.nav-center .ai-orb svg{width:14px;height:14px}
.nav-center strong{font-size:15.5px;font-weight:750;letter-spacing:-.03em;white-space:nowrap}

/* ===== 首页 ===== */
.home-screen{height:100%;display:flex;flex-direction:column;min-height:0;background:radial-gradient(560px 340px at 92% -80px,#fff0eb 0%,rgba(255,240,235,0) 72%),var(--surface)}
.home-scroll{flex:1;min-height:0;overflow-y:auto;padding:2px 18px 10px;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column}
.home-scroll::-webkit-scrollbar{display:none}
.home-hero{padding:10px 2px 10px;margin-top:auto}
.home-discover{flex-shrink:0;margin-bottom:auto}
.home-loc{display:flex;align-items:center;gap:4px;font-size:10.5px;color:#a09b94}
.home-loc svg{width:12px;height:12px}
.home-hero h1{font-size:25px;line-height:1.24;font-weight:800;letter-spacing:-.045em;color:#17181a;margin-top:8px}
.home-sub{font-size:11px;line-height:1.6;color:#8b8e94;margin-top:6px}
.resume-chat{display:inline-flex;align-items:center;gap:5px;margin-top:10px;min-height:32px;padding:0 10px;border-radius:999px;border:1px solid #f3d9d2;background:#fff8f5;color:#b04a36;font-size:10.5px;font-weight:650}
.resume-chat svg{width:13px;height:13px}
.resume-chat small{font-size:9.5px;font-weight:400;color:#b07a6c;margin-left:1px}
.home-tabs{display:flex;align-items:center;gap:20px;overflow-x:auto;padding:2px 2px 0;border-bottom:1px solid #f0ede8;scrollbar-width:none;overscroll-behavior-x:contain}
.home-tabs::-webkit-scrollbar{display:none}
.home-tab{position:relative;flex:0 0 auto;min-height:42px;padding:0;font-size:14px;color:#8e9197;font-weight:500;white-space:nowrap;letter-spacing:-.01em}
.home-tab.on{color:#17181a;font-weight:750}
.home-tab.on::after{content:"";position:absolute;left:50%;bottom:-1px;transform:translateX(-50%);width:20px;height:3px;border-radius:2px;background:var(--brand)}
.brand-wall{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 20px) / 2.6);gap:10px;overflow-x:auto;padding:12px 2px 10px;margin:0 -4px;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 10px),transparent 100%);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 10px),transparent 100%)}
.brand-wall::-webkit-scrollbar{display:none}
.brand-wall.two-row{grid-template-rows:repeat(2,114px)}
.brand-wall.one-row{grid-template-rows:1fr}
.brand-card{position:relative;width:100%;height:114px;background:#fff;border:1px solid #e8e6e0;border-radius:16px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;scroll-snap-align:start;box-shadow:0 8px 22px -26px #32110a;transition:transform .14s,border-color .14s}
.brand-card:active{transform:scale(.975);border-color:#f0d7d0}
.brand-logo{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--c1),var(--c2));color:#fff;font-size:22px;font-weight:850;letter-spacing:-.04em;box-shadow:inset 0 -6px 12px #0000001a;flex-shrink:0;overflow:hidden}
.brand-logo.has-image{background:#fff;border:1px solid #efede8;padding:4px;box-shadow:none}
.brand-logo.has-image img{display:block;width:100%;height:100%;object-fit:contain}
.brand-logo.is-wordmark{background:#fff;border:1px solid #efede8;padding:4px;color:var(--word-color);box-shadow:none}
.brand-wordmark{display:block;max-width:100%;font-size:var(--word-size);font-weight:850;letter-spacing:-.045em;line-height:1.05;text-align:center;white-space:nowrap}
.brand-mono{line-height:1}
.brand-title{font-size:11.5px;line-height:1.25;color:#4e525a;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.brand-meta{font-size:8.5px;line-height:1.3;color:#a6a8ad;white-space:nowrap}
.brand-hint{font-size:9px;line-height:1.4;color:#b0b2b6;text-align:right;margin:-4px 4px 0}
.brand-loading{display:flex;align-items:center;justify-content:center;gap:7px;min-height:140px;font-size:11px;color:#9a9da2}
.brand-loading .spinner{width:14px;height:14px;border:2px solid #f0d7d0;border-top-color:var(--brand);border-radius:50%;animation:spin 1s linear infinite}
.brand-empty{padding:28px 16px;text-align:center;font-size:11.5px;line-height:1.7;color:#8b8e95;background:#fff;border:1px dashed #dedcd6;border-radius:14px;margin:12px 0 4px}
.home-bottom{flex-shrink:0;padding:0 14px 5px;background:linear-gradient(180deg,rgba(248,248,246,0),#f8f8f6 26%)}
.home-quick{padding:8px 2px 4px}
.home-quick-label{display:block;font-size:9.5px;color:#a0a3a8;margin-bottom:6px}
.home-quick-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.home-quick-chips::-webkit-scrollbar{display:none}
.home-quick-chips button{flex:0 0 auto;min-height:29px;border:1px solid #e5e2dc;background:#fff;border-radius:999px;padding:0 10px;font-size:10.5px;color:#5d6168;white-space:nowrap}
.home-ask{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #ece9e4;border-radius:999px;padding:5px 6px 5px 11px;min-height:52px;box-shadow:0 16px 34px -26px #32110a55,0 2px 6px #32110a0a}
.home-ask .ai-orb{width:25px;height:25px;box-shadow:none}
.home-ask .ai-orb::before{display:none}
.home-ask .ai-orb svg{width:12px;height:12px}
.home-ask input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:14px;line-height:1.4;color:var(--ink);height:38px;padding:0 2px}
.home-ask input::placeholder{color:#adafb4}
.home-disclaimer{font-size:9.5px;line-height:1.5;text-align:center;color:#adafb4;margin:5px 0 1px}
.chat-empty{padding:18px 2px 10px}
.chat-empty h2{font-size:24px;font-weight:800;letter-spacing:-.04em;margin-top:2px}
.chat-empty p{font-size:12.5px;line-height:1.75;color:#7d8087;margin-top:8px}
.chat-empty-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.chat-empty-chips button{border:1px solid #e5e2dc;background:#fff;border-radius:999px;padding:7px 11px;font-size:10.5px;color:#5d6168}

/* ===== 聊天页 ===== */
.chat-screen{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--surface)}
.chat-head{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px 8px;background:#fff}
.chat-identity{display:flex;align-items:center;gap:9px;min-width:0}
.chat-identity strong{display:block;font-size:16px;font-weight:750;letter-spacing:-.03em;line-height:1.2;white-space:nowrap}
.chat-identity small{display:block;font-size:10px;color:var(--muted);margin-top:3px;white-space:nowrap}
.chat-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.chat-actions button{min-height:32px;border-radius:999px;padding:0 10px;background:#f7f6f3;color:#676a70;font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:4px}
.chat-actions button svg{width:14px;height:14px}
.chat-actions .new-chat{background:var(--soft);color:var(--brand)}
.context-bar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 10px;background:#fff;border-bottom:1px solid var(--line);font-size:10.5px;color:#8c8f95}
.context-bar>span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.context-bar svg{width:12px;height:12px;color:#a0a3a8}
.context-bar .discount{color:#9a6a60}
.context-bar .discount::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--ok);margin-right:2px}
.chat-scroll{flex:1;min-height:0;overflow-y:auto;padding:16px 16px 6px;background:radial-gradient(480px 280px at 105% -30px,#fff0eb 0%,rgba(255,240,235,0) 72%),var(--surface);scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.chat-scroll::-webkit-scrollbar{display:none}
.chat-date{font-size:10px;text-align:center;color:#a0a3a8;margin:2px 0 16px;letter-spacing:.02em}

/* 欢迎 */
.welcome{padding:4px 2px 6px}
.welcome-eyebrow{display:flex;align-items:center;gap:4px;font-size:10.5px;color:#a09b94;margin-bottom:6px}
.welcome-eyebrow svg{width:12px;height:12px}
.welcome h2{font-size:26px;line-height:1.23;font-weight:800;letter-spacing:-.045em;color:#17181a}
.welcome-sub{font-size:12.5px;line-height:1.75;color:#7d8087;margin-top:8px}
.starter-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
.starter{min-height:86px;border-radius:16px;border:1px solid var(--line);background:#fff;padding:11px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;gap:8px;box-shadow:0 10px 26px -28px #32110a;transition:transform .15s,border-color .15s}
.starter:active{transform:scale(.985)}
.starter-ic{width:29px;height:29px;border-radius:9px;background:var(--soft);color:var(--brand);display:grid;place-items:center}
.starter-ic svg{width:16px;height:16px}
.starter strong{display:block;font-size:13px;line-height:1.3;font-weight:700;letter-spacing:-.01em;color:#242529}
.starter small{display:block;font-size:10px;line-height:1.45;color:#96999e;margin-top:2px}
.welcome-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.welcome-chips button{border:1px solid #e9e5df;background:#fff;border-radius:999px;padding:6px 10px;font-size:10.5px;color:#6c6f75}
.welcome-note{font-size:10px;color:#a6a19a;line-height:1.6;margin-top:18px;display:flex;align-items:center;gap:5px}
.welcome-note::before{content:"";width:14px;height:1px;background:#d7d2ca}
.demo-tip{display:flex;align-items:center;gap:6px;margin-top:12px;padding:9px 10px;border-radius:10px;background:#fffaf8;border:1px solid #f5e3dd;font-size:10.5px;line-height:1.5;color:#9a6a60}
.demo-tip svg{width:14px;height:14px;color:var(--brand);flex-shrink:0}

/* 消息 */
.turn{margin-bottom:18px;animation:msg-in .24s cubic-bezier(.16,1,.3,1) both}
.turn.user{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.turn-label{font-size:9.5px;color:#a0a3a8;margin-right:4px}
.bubble-user{max-width:85%;background:#1b1c1e;color:#fff;border-radius:18px 18px 5px 18px;padding:11px 14px;font-size:14px;line-height:1.65;overflow-wrap:anywhere;box-shadow:0 12px 26px -24px #111}
.turn.ai{display:flex;flex-direction:column}
.ai-label{display:flex;align-items:center;gap:6px;margin:0 2px 7px;font-size:10.5px;color:#8b8e94}
.ai-label strong{font-weight:650;color:#555960}
.ai-label .time{margin-left:auto;color:#b0b2b6;font-size:9.5px}
.bubble-ai{background:#fff;border:1px solid var(--line);border-radius:5px 18px 18px 18px;padding:13px 14px;font-size:13.5px;line-height:1.78;color:#2d2f33;box-shadow:0 14px 30px -34px #32110a;transition:border-color .2s}
.bubble-ai:empty{display:none}
.ai-text p{margin:0 0 8px}
.ai-text p:last-child{margin-bottom:0}
.ai-text strong{font-weight:750;color:#1d1f22}
.ai-text ul,.ai-text ol{margin:6px 0 8px;padding-left:18px}
.ai-text li{margin:3px 0}
.ai-text code{background:#f6f4f0;border-radius:4px;padding:1px 4px;font-size:.92em}
.ai-text.streaming:after{content:"▍";display:inline-block;margin-left:2px;color:var(--brand);animation:cursor-blink .9s steps(1) infinite;font-weight:400}
.ai-text.clamped{max-height:7.4em;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 72%,transparent 100%)}
.expand-text{display:block;margin:7px 0 0;padding:0;min-height:0;font-size:10.5px;line-height:1.4;color:var(--brand);font-weight:600}
.intent-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:11px;padding-top:10px;border-top:1px dashed #efede8}
.intent-label{font-size:9.5px;color:#a3a6ab;margin-right:1px;white-space:nowrap}
.intent-chip{display:inline-flex;align-items:center;background:var(--soft);border:1px solid #fae4dd;color:#b5412f;border-radius:6px;padding:2px 7px;font-size:10px;line-height:1.45;white-space:nowrap}
.ai-status{display:flex;align-items:center;gap:7px;font-size:11.5px;line-height:1.6;color:#8b8e94;padding:2px 0}
.ai-status .spinner{width:14px;height:14px;border:2px solid #f0d7d0;border-top-color:var(--brand);border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}
.ai-status .dots{display:inline-flex;gap:3px;margin-left:1px}
.ai-status .dots i{width:3px;height:3px;border-radius:50%;background:#c7a69e;animation:dot-pulse 1.2s infinite}
.ai-status .dots i:nth-child(2){animation-delay:.15s}
.ai-status .dots i:nth-child(3){animation-delay:.3s}
.ai-error{color:#a33b2c;font-size:12px;line-height:1.7}

/* 卡片 */
.result-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 2px 8px;font-size:10.5px;color:#9a9da2}
.result-head span{font-size:11.5px;font-weight:700;color:#50545b}
.result-head small{font-size:9.5px}
.store-card{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px;margin-bottom:8px;box-shadow:0 12px 28px -34px #32110a;transition:transform .14s,border-color .14s}
.store-card:active{transform:scale(.988);border-color:#f0d7d0}
.store-cover{position:relative;width:64px;height:64px;border-radius:13px;overflow:hidden;flex-shrink:0;background:linear-gradient(135deg,var(--c1),var(--c2))}
.cover-mono{position:absolute;right:-2px;bottom:-10px;font-size:41px;line-height:1;font-weight:850;letter-spacing:-.08em;color:#fff;opacity:.18;white-space:nowrap}
.cover-glyph{position:absolute;left:7px;top:7px;color:#fff;opacity:.9}
.cover-glyph svg{width:14px;height:14px}
.store-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.store-top{display:flex;align-items:baseline;gap:5px;min-width:0}
.store-top strong{font-size:13.5px;font-weight:750;letter-spacing:-.015em;color:#232428;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;max-width:60%}
.store-branch{font-size:9.5px;color:#9b9ea3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.store-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:9.5px;color:#8f9298;line-height:1.3}
.store-meta .star{color:var(--star);font-weight:650}
.store-status{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.store-status::before{content:"";width:4px;height:4px;border-radius:50%;background:#a0a3a8}
.store-status.open{color:var(--ok)}
.store-status.open::before{background:var(--ok)}
.store-why{font-size:10.5px;line-height:1.45;color:#9a5c4b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-foot{display:flex;align-items:center;gap:5px;margin-top:1px}
.store-offer{font-size:9px;font-weight:650;line-height:1.4;color:#c04a32;background:var(--soft);border:1px solid #fae4dd;border-radius:4px;padding:1px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:64%}
.store-price{font-size:10.5px;color:var(--brand);font-weight:750;margin-left:auto;white-space:nowrap}
.store-card>.chevron{width:13px;height:13px;color:#c3c1bc;flex-shrink:0}
.product-card{width:100%;display:flex;align-items:center;gap:9px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:9px;margin-bottom:7px;box-shadow:0 12px 28px -36px #32110a;transition:transform .14s,border-color .14s}
.product-card:active{transform:scale(.988);border-color:#f0d7d0}
.product-cover{position:relative;width:56px;height:56px;border-radius:11px;overflow:hidden;flex-shrink:0;background:linear-gradient(135deg,var(--c1),var(--c2))}
.product-cover .cover-mono{font-size:31px;bottom:-7px;right:-1px}
.product-cover .cover-glyph{left:6px;top:6px}
.product-cover .cover-glyph svg{width:12px;height:12px}
.product-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.product-top{display:flex;align-items:center;gap:5px;min-width:0}
.product-top strong{font-size:13px;font-weight:750;letter-spacing:-.01em;color:#232428;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-badge{font-size:8.5px;line-height:1.4;color:#b5412f;background:var(--soft);border-radius:4px;padding:1px 4px;flex-shrink:0;white-space:nowrap}
.product-spec{font-size:9.5px;color:#9b9ea3;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-store{font-size:9.5px;color:#8f9298;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-price{font-size:14px;font-weight:800;color:var(--brand);letter-spacing:-.02em;white-space:nowrap;flex-shrink:0;align-self:flex-start;padding-top:2px}
.product-card>.chevron{width:12px;height:12px;color:#c3c1bc;flex-shrink:0}
.followups{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.followup{background:#fff;border:1px solid #e5e2dc;border-radius:999px;padding:6px 10px;font-size:10.5px;line-height:1.4;color:#5d6168;box-shadow:0 4px 12px -16px #32110a}
.followup:active{background:#f8f7f4}

/* 输入 */
.composer{flex-shrink:0;padding:8px 14px 6px;background:linear-gradient(180deg,rgba(248,248,246,0),#f8f8f6 34%)}
.composer-bar{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #ece9e4;border-radius:999px;padding:5px 6px 5px 11px;min-height:52px;box-shadow:0 16px 34px -26px #32110a55,0 2px 6px #32110a0a}
.composer-bar .ai-orb{width:25px;height:25px;box-shadow:none}
.composer-bar .ai-orb::before{display:none}
.composer-bar .ai-orb svg{width:12px;height:12px}
.composer input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:14px;line-height:1.4;color:var(--ink);height:38px;padding:0 2px}
.composer input::placeholder{color:#adafb4}
.send{width:38px;height:38px;min-width:38px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;flex-shrink:0;transition:background .15s}
.send svg{width:18px;height:18px}
.send:disabled{background:#efede9;color:#b9b6b0}
.composer-hint{font-size:9.5px;line-height:1.5;text-align:center;color:#adafb4;margin:5px 0 1px}
.composer-hint b{color:#8c8f95;font-weight:500}

/* ===== 店铺详情 ===== */
.detail-screen{height:100%;display:flex;flex-direction:column;min-height:0;background:var(--surface);animation:msg-in .2s ease}
.nav{height:54px;flex-shrink:0;display:grid;grid-template-columns:96px 1fr 96px;align-items:center;padding:0 6px;background:#fff;border-bottom:1px solid var(--line)}
.nav button{display:flex;align-items:center;gap:1px;color:var(--brand);font-size:13px;padding:0 6px;min-width:0;justify-self:start}
.nav button svg{width:19px;height:19px}
.nav h2{text-align:center;font-size:16px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav .nav-end{justify-self:end;padding-right:8px}
.nav .nav-end .ai-orb{width:25px;height:25px;box-shadow:none}
.nav .nav-end .ai-orb svg{width:12px;height:12px}
.detail-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:6px}
.detail-scroll::-webkit-scrollbar{display:none}
.detail-banner{position:relative;margin:14px 16px 0;height:158px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,var(--c1),var(--c2));color:#fff;box-shadow:0 20px 36px -32px #32110a}
.detail-banner .cover-mono{font-size:142px;right:10px;bottom:-36px;opacity:.2}
.detail-banner .cover-glyph{left:14px;top:14px;opacity:.85}
.detail-banner .cover-glyph svg{width:20px;height:20px}
.banner-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 42%,rgba(0,0,0,.3))}
.banner-brand{position:absolute;left:16px;bottom:15px;font-size:23px;font-weight:850;letter-spacing:-.045em;z-index:1;text-shadow:0 2px 12px #00000022}
.banner-cat{position:absolute;left:16px;bottom:47px;font-size:10px;background:#ffffff2e;border:1px solid #ffffff3d;border-radius:6px;padding:2px 7px;z-index:1}
.status-chip{position:absolute;top:12px;left:12px;z-index:2;display:inline-flex;align-items:center;gap:4px;font-size:9.5px;font-weight:650;line-height:1.4;padding:3px 7px;border-radius:7px;background:#ffffffdf;color:#6f737a}
.status-chip::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.status-chip.open{color:var(--ok)}
.status-chip.closed{color:#7c828d}
.detail-main{padding:0 16px 26px}
.detail-head{margin-top:14px}
.detail-title-row{display:flex;align-items:flex-start;gap:8px}
.detail-title-row h2{font-size:21px;line-height:1.32;font-weight:800;letter-spacing:-.04em;flex:1;min-width:0}
.detail-rating{display:flex;align-items:center;gap:3px;font-size:11px;color:#7d8087;padding-top:5px;white-space:nowrap}
.detail-rating svg{width:12px;height:12px;fill:var(--star);stroke:none;color:var(--star)}
.detail-rating b{color:#2a2b2f;font-weight:700}
.detail-sub{font-size:10.5px;color:#9a9da2;line-height:1.55;margin-top:5px}
.detail-line{display:flex;align-items:flex-start;gap:5px;font-size:11px;line-height:1.6;color:#676b72;margin-top:6px}
.detail-line svg{width:13px;height:13px;margin-top:1px;color:#a0a3a8;flex-shrink:0}
.ai-why-card{margin-top:14px;padding:13px 14px;border-radius:16px;border:1px solid var(--soft-line);background:linear-gradient(135deg,#fff4f1,#fff 72%);box-shadow:0 12px 28px -34px #32110a}
.ai-why-head{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:#7a3a2c}
.ai-why-head .ai-orb{width:24px;height:24px;box-shadow:none}
.ai-why-head .ai-orb svg{width:12px;height:12px}
.ai-why-card p{font-size:11.5px;line-height:1.75;color:#6b5852;margin-top:7px}
.ai-why-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.ai-why-tags span{font-size:9px;line-height:1.5;color:#a4553f;background:#fff;border:1px solid #f6ddd5;border-radius:5px;padding:1px 5px}
.detail-offer{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px 13px;border-radius:15px;background:linear-gradient(120deg,#e60012,#ff6a4d);color:#fff;box-shadow:0 16px 30px -30px #e60012}
.offer-ic{width:34px;height:34px;border-radius:10px;background:#ffffff24;display:grid;place-items:center;flex-shrink:0}
.offer-ic svg{width:18px;height:18px}
.detail-offer strong{display:block;font-size:12px;font-weight:650;line-height:1.4}
.detail-offer p{font-size:9.5px;line-height:1.55;opacity:.9;margin-top:2px}
.detail-card{margin-top:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 14px}
.detail-card h3{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;font-weight:750;letter-spacing:-.01em;margin-bottom:8px}
.detail-card h3 small{font-size:9.5px;font-weight:400;color:#a0a3a8}
.detail-product{display:flex;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #f2f0ec}
.detail-product:first-of-type{border-top:0}
.detail-product.highlight{background:#fff5f2;border-top-color:#fae4dd;border-radius:10px;padding:9px 8px;margin:2px -8px 0}
.detail-product .product-cover{width:46px;height:46px;border-radius:10px}
.detail-product .product-cover .cover-mono{font-size:26px;bottom:-6px}
.detail-product-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.detail-product-top{display:flex;align-items:center;gap:5px;min-width:0}
.detail-product-top strong{font-size:12.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.you-asked{font-size:8px;line-height:1.4;color:#fff;background:var(--brand);border-radius:4px;padding:1px 4px;flex-shrink:0;white-space:nowrap}
.detail-product-copy small{font-size:9.5px;color:#9a9da2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-price{font-size:13px;font-weight:800;color:var(--brand);white-space:nowrap;align-self:flex-start;padding-top:2px}
.info-line{display:flex;justify-content:space-between;gap:14px;font-size:10.5px;line-height:1.6;padding:8px 0;border-top:1px solid #f2f0ec;color:#7d8087}
.info-line:first-of-type{border-top:0;padding-top:0}
.info-line span:last-child{text-align:right;color:#41444a;max-width:64%}
.data-note{font-size:9px;line-height:1.6;text-align:center;color:#a8aaa9;margin:16px 10px 4px}
.detail-action{flex-shrink:0;padding:9px 16px 11px;background:#fff;border-top:1px solid var(--line)}
.primary{width:100%;min-height:48px;border-radius:14px;background:var(--brand);color:#fff;font-size:15px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 14px 28px -20px #e60012}
.primary svg{width:18px;height:18px}
.detail-loading{flex:1;display:flex;align-items:center;justify-content:center;color:var(--secondary);font-size:12px;gap:8px}
.detail-loading .spinner{width:16px;height:16px;border:2px solid #f0d7d0;border-top-color:var(--brand);border-radius:50%;animation:spin 1s linear infinite}

/* ===== 示例弹层 ===== */
.sheet-layer{position:absolute;inset:0;z-index:60;display:flex;align-items:flex-end;background:#1b1c1e66;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:fade-in .18s ease}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
.sheet{width:100%;max-height:82%;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -20px 50px -30px #0005;animation:sheet-in .26s cubic-bezier(.16,1,.3,1)}
@keyframes sheet-in{from{transform:translateY(40px);opacity:.7}to{transform:none;opacity:1}}
.sheet-handle{width:34px;height:5px;border-radius:4px;background:#dddad4;margin:0 auto 12px}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.sheet-head h2{font-size:19px;font-weight:800;letter-spacing:-.035em}
.sheet-head p{font-size:11px;color:var(--secondary);line-height:1.6;margin-top:4px}
.sheet-close{width:32px;height:32px;border-radius:50%;background:#f4f2ee;color:#6f7279;display:grid;place-items:center;flex-shrink:0}
.sheet-close svg{width:16px;height:16px}
.prompt-group{font-size:10px;color:#a3a6ab;letter-spacing:.05em;margin:14px 0 7px}
.prompt-item{width:100%;text-align:left;display:flex;align-items:flex-start;gap:9px;padding:11px 10px;border-radius:12px;border:1px solid #efede8;background:#fff;margin-bottom:7px}
.prompt-item:active{background:#faf9f6}
.prompt-item .p-ic{width:28px;height:28px;border-radius:9px;background:var(--soft);color:var(--brand);display:grid;place-items:center;flex-shrink:0}
.prompt-item .p-ic svg{width:15px;height:15px}
.prompt-item strong{display:block;font-size:12.5px;line-height:1.45;font-weight:650;color:#2f3034}
.prompt-item small{display:block;font-size:10px;line-height:1.5;color:#9a9da2;margin-top:2px}

/* ===== 响应式 ===== */
@media(max-width:520px){
  body{background:var(--surface)}
  .stage{padding:0;display:block;min-height:100dvh}
  .app-shell{width:100%;height:100dvh;border:0;border-radius:0;box-shadow:none}
  .chat-head{padding-top:max(12px,env(safe-area-inset-top))}
  .top-nav{padding-top:max(10px,env(safe-area-inset-top))}
  .home-scroll{padding-left:16px;padding-right:16px}
  .home-bottom{padding-bottom:max(5px,env(safe-area-inset-bottom))}
  .composer{padding-bottom:max(6px,env(safe-area-inset-bottom))}
  .detail-action{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .toast{bottom:88px}
  .composer input,.home-ask input{font-size:16px}
}
@media(max-height:760px) and (min-width:521px){
  .app-shell{height:calc(100dvh - 20px);border-radius:28px}
  .welcome h2{font-size:23px}
  .starter{min-height:78px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
