:root{
  --bg:#0f0d0c;--surface:rgba(255,245,230,.04);--surface-h:rgba(255,245,230,.07);
  --border:rgba(201,160,99,.1);--border-b:rgba(201,160,99,.25);
  --gold:#C9A063;--gold-b:#E8C896;--gold-d:#8B6914;
  --gold-grad:linear-gradient(135deg,#E8C896,#C9A063,#9A7530);
  --jade:#5C9B8E;--vermilion:#C45A4A;
  --text:#F2EBE0;--text-2:#B8AEA3;--text-3:#7A716A;--text-4:#5A5249;
  --serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong",serif;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;overflow:hidden}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);display:flex;justify-content:center;color:var(--text)}
.bg-deco{position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse 600px 400px at 30% 0%,rgba(201,160,99,.06),transparent),radial-gradient(ellipse 500px 300px at 70% 100%,rgba(92,155,142,.04),transparent),var(--bg)}
.app{position:relative;z-index:1;width:100%;max-width:520px;height:100%;height:100dvh;display:flex;flex-direction:column;background:linear-gradient(180deg,#131110,#100e0d);border-left:1px solid var(--border);border-right:1px solid var(--border)}

/* ===== Header ===== */
.header{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:10px 20px;padding-top:calc(10px + env(safe-area-inset-top,0));background:rgba(19,17,16,.85);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border);z-index:50}
.ha{width:38px;height:38px;border-radius:50%;flex-shrink:0;background:linear-gradient(135deg,#1a2520,#0f1815);border:1px solid var(--border-b);display:flex;align-items:center;justify-content:center}
.ht{flex:1;min-width:0}
.hn{font-family:var(--serif);font-size:17px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:6px}
.hs{font-size:11px;color:var(--text-3);margin-top:1px}
.badge{display:inline-flex;align-items:center;gap:3px;font-size:9px;padding:2px 7px;border-radius:20px;background:rgba(92,155,142,.12);color:var(--jade);border:1px solid rgba(92,155,142,.25)}
.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--jade)}
.ptag{display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:3px 10px;border-radius:20px;background:rgba(201,160,99,.12);border:1px solid var(--border-b);color:var(--gold);cursor:pointer;flex-shrink:0;transition:all .2s}
.ptag:active{background:rgba(201,160,99,.2)}

/* ===== Chat ===== */
.chat{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px 20px 8px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.chat::-webkit-scrollbar{width:3px}.chat::-webkit-scrollbar-thumb{background:rgba(201,160,99,.12);border-radius:3px}
.msg{display:flex;gap:10px;margin-bottom:14px;animation:mIn .4s ease-out}
.msg.user{flex-direction:row-reverse}
.ma{width:30px;height:30px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--gold)}
.msg.bot .ma{background:linear-gradient(135deg,#1a2520,#0f1815);border:1px solid var(--border)}
.msg.user .ma{background:var(--gold-grad)}
.mb{max-width:80%;padding:11px 15px;border-radius:16px;font-size:14px;line-height:1.65}
.msg.bot .mb{background:var(--surface);border:1px solid var(--border);border-top-left-radius:5px;color:var(--text)}
.msg.user .mb{background:var(--gold-grad);border-top-right-radius:5px;color:#1a1410;font-weight:500}

/* ===== Welcome ===== */
.wel{text-align:center;padding:20px 16px 12px;margin-bottom:4px}
.wel-i{width:56px;height:56px;border-radius:50%;margin:0 auto 10px;background:linear-gradient(135deg,rgba(201,160,99,.12),rgba(92,155,142,.06));border:1px solid var(--border-b);display:flex;align-items:center;justify-content:center}
.wel-t{font-family:var(--serif);font-size:19px;font-weight:600;color:var(--text);margin-bottom:3px}
.wel-s{font-size:12px;color:var(--text-3);line-height:1.6}

/* ===== Artifact Card (inline in chat) ===== */
.ac{margin-top:8px;border-radius:12px;overflow:hidden;background:rgba(255,245,230,.025);border:1px solid var(--border)}
.ac-h{padding:12px 14px 8px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(201,160,99,.05)}
.ac-i{width:40px;height:40px;border-radius:8px;background:linear-gradient(135deg,rgba(201,160,99,.1),rgba(92,155,142,.05));border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--gold);flex-shrink:0}
.ac-n{font-family:var(--serif);font-size:14px;font-weight:600;color:var(--text)}
.ac-e{font-size:10px;color:var(--text-3);margin-top:1px}
.ac-b{padding:8px 14px 12px;font-size:12.5px;line-height:1.7;color:var(--text-2)}
.ac-t{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.ac-tg{font-size:9px;padding:2px 7px;border-radius:4px;background:rgba(92,155,142,.08);color:var(--jade);border:1px solid rgba(92,155,142,.12)}

/* ===== Typing Indicator ===== */
.typ{display:flex;gap:4px;padding:4px 0}
.typ span{width:6px;height:6px;border-radius:50%;background:var(--text-3);animation:tp 1.4s infinite}
.typ span:nth-child(2){animation-delay:.2s}.typ span:nth-child(3){animation-delay:.4s}

/* ===== Suggestion Chips ===== */
.sug{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.sug-c{font-size:12px;padding:6px 12px;border-radius:18px;background:var(--surface);border:1px solid var(--border-b);color:var(--gold);cursor:pointer;transition:all .2s;white-space:nowrap}
.sug-c:active{background:rgba(201,160,99,.1)}

/* ===== Service Bar ===== */
.sbar{flex-shrink:0;display:flex;padding:6px 10px;gap:4px;overflow-x:auto;background:rgba(15,13,12,.5);border-top:1px solid rgba(201,160,99,.04);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sbar::-webkit-scrollbar{display:none}
.sb{display:flex;align-items:center;gap:5px;padding:6px 10px;border-radius:10px;background:transparent;border:none;cursor:pointer;transition:all .2s;flex-shrink:0;white-space:nowrap}
.sb:active{background:rgba(201,160,99,.06)}
.sb-i{width:26px;height:26px;border-radius:7px;background:linear-gradient(135deg,rgba(201,160,99,.1),rgba(92,155,142,.05));border:1px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sb-i svg{width:15px;height:15px;stroke:var(--gold);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sb-l{font-size:13px;color:var(--text-2);font-weight:500}

/* ===== Input Bar ===== */
.ibar{flex-shrink:0;display:flex;align-items:center;gap:8px;padding:8px 14px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0));background:rgba(15,13,12,.8);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid rgba(201,160,99,.04)}
.iw{flex:1;display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:2px 4px 2px 16px;transition:border-color .2s}
.iw:focus-within{border-color:var(--border-b)}
.iw input{flex:1;background:none;border:none;outline:none;font-size:14px;color:var(--text);font-family:inherit;padding:9px 0}
.iw input::placeholder{color:var(--text-4)}
.send{width:34px;height:34px;border-radius:50%;background:var(--gold-grad);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .15s}
.send:active{transform:scale(.9)}
.send svg{width:17px;height:17px}

/* ===== Modal / Bottom Sheet ===== */
.modal{position:fixed;inset:0;z-index:100;display:none;align-items:flex-end;justify-content:center}
.modal.show{display:flex}
.modal-bg{position:absolute;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:fI .25s}
.sheet{position:relative;width:100%;max-width:520px;height:82vh;background:linear-gradient(180deg,#1a1715,#131110);border-radius:22px 22px 0 0;border-top:1px solid var(--border-b);display:flex;flex-direction:column;animation:sU .35s cubic-bezier(.32,.72,.32,1);overflow:hidden}
.sh-d{width:34px;height:4px;border-radius:2px;background:rgba(201,160,99,.2);margin:8px auto 0;flex-shrink:0}
.sh-h{display:flex;align-items:center;justify-content:space-between;padding:10px 20px 8px;border-bottom:1px solid var(--border);flex-shrink:0}
.sh-t{font-family:var(--serif);font-size:16px;font-weight:600;color:var(--text)}
.sh-c{width:26px;height:26px;border-radius:50%;background:var(--surface);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-3);font-size:14px;transition:all .2s}
.sh-c:active{background:var(--surface-h)}
.sh-b{flex:1;overflow-y:auto;padding:14px 18px 28px;-webkit-overflow-scrolling:touch}
.sh-b::-webkit-scrollbar{width:3px}.sh-b::-webkit-scrollbar-thumb{background:rgba(201,160,99,.12)}

/* ===== Modal Tabs ===== */
.sh-tabs{display:flex;gap:0;padding:0 18px;border-bottom:1px solid var(--border);flex-shrink:0}
.sh-tab{padding:10px 14px;font-size:12px;color:var(--text-3);cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;font-weight:500}
.sh-tab:active{color:var(--text-2)}
.sh-tab--active{color:var(--gold);border-bottom-color:var(--gold)}

/* ===== Museum Card ===== */
.mc{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:13px;margin-bottom:9px}
.mc-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.mc-n{font-family:var(--serif);font-size:14px;font-weight:600;color:var(--text)}
.mc-c{font-size:11px;color:var(--text-3)}
.mc-i{font-size:12px;color:var(--text-2);line-height:1.6;margin-bottom:9px}
.mc-i b{color:var(--gold);font-weight:500}
.mc-a{display:flex;gap:7px}
.mc-b{flex:1;padding:7px 0;border-radius:9px;font-size:12px;font-weight:500;cursor:pointer;border:none;font-family:inherit;transition:all .15s}
.mc-b.buy{background:var(--gold-grad);color:#1a1410}
.mc-b.ask{background:var(--surface);border:1px solid var(--border-b);color:var(--gold)}
.mc-b:active{transform:scale(.97)}
.tf{margin-top:9px;padding:11px;background:rgba(0,0,0,.2);border-radius:9px;display:none}
.tf.show{display:block}
.tf label{font-size:10px;color:var(--text-3);display:block;margin-bottom:3px}
.tf select,.tf input{width:100%;padding:6px 9px;background:var(--surface);border:1px solid var(--border);border-radius:7px;color:var(--text);font-size:12px;font-family:inherit;margin-bottom:7px}
.tf-btn{width:100%;padding:8px;border-radius:8px;background:var(--gold-grad);border:none;color:#1a1410;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit}
.tf-ok{text-align:center;font-size:12px;color:var(--jade);padding:8px}

/* ===== Voice Card ===== */
.vc{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:13px;margin-bottom:9px}
.vc-h{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.vc-i{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,rgba(201,160,99,.1),rgba(92,155,142,.05));border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--gold);flex-shrink:0}
.vc-n{font-family:var(--serif);font-size:13px;font-weight:600;color:var(--text)}
.vc-m{font-size:10px;color:var(--text-3);margin-top:1px}
.vt{display:flex;align-items:center;gap:8px;padding:8px 10px;background:rgba(0,0,0,.15);border-radius:8px;margin-bottom:5px}
.vt-num{font-size:11px;color:var(--text-4);width:18px;text-align:center;flex-shrink:0}
.vt-title{flex:1;font-size:12px;color:var(--text-2)}
.vt-dur{font-size:10px;color:var(--text-4);flex-shrink:0}
.vt-play{width:24px;height:24px;border-radius:50%;background:rgba(201,160,99,.1);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .2s}
.vt-play:active{background:rgba(201,160,99,.2)}
.vt-play svg{width:10px;height:10px;stroke:var(--gold);fill:none;stroke-width:2}

/* ===== Persona Card ===== */
.pc{display:flex;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:13px;margin-bottom:9px;cursor:pointer;transition:all .2s}
.pc:active{background:rgba(201,160,99,.05);border-color:var(--border-b)}
.pc-a{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,rgba(201,160,99,.12),rgba(92,155,142,.06));border:1px solid var(--border-b);display:flex;align-items:center;justify-content:center;color:var(--gold);flex-shrink:0}
.pc-n{font-family:var(--serif);font-size:14px;font-weight:600;color:var(--text)}
.pc-t{font-size:11px;color:var(--gold);margin-top:1px}
.pc-d{font-size:11.5px;color:var(--text-2);line-height:1.5;margin-top:3px}

/* ===== Heritage Grid ===== */
.hg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hc{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px;cursor:pointer;transition:all .2s}
.hc:active{background:rgba(201,160,99,.05);border-color:var(--border-b)}
.hc-i{margin-bottom:4px;color:var(--gold);display:flex;align-items:center;justify-content:center}
.hc-n{font-family:var(--serif);font-size:12.5px;font-weight:600;color:var(--text)}
.hc-c{font-size:10px;color:var(--jade);margin-top:1px}
.hc-d{font-size:10.5px;color:var(--text-3);line-height:1.4;margin-top:3px}

/* ===== Cuisine ===== */
.cr{width:100%;padding:12px;border-radius:12px;background:linear-gradient(135deg,rgba(196,90,74,.12),rgba(201,160,99,.08));border:1px solid var(--border-b);color:var(--text);font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;margin-bottom:10px;transition:all .15s}
.cr:active{transform:scale(.98)}
.cl{display:flex;flex-direction:column;gap:7px}
.cc{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden}
.cc-h{padding:11px 13px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.cc-n{font-family:var(--serif);font-size:13px;font-weight:600;color:var(--text)}
.cc-m{font-size:10px;color:var(--text-3)}
.cc-d{display:none;padding:0 13px 12px;font-size:11.5px;color:var(--text-2);line-height:1.7}
.cc-d.show{display:block}
.cc-st{font-size:10px;color:var(--gold);font-weight:600;margin-bottom:3px;margin-top:6px}
.cc-sp{padding:1px 0 1px 10px;position:relative}
.cc-sp:before{content:"";position:absolute;left:0;top:9px;width:3px;height:3px;border-radius:50%;background:var(--gold)}
.cc-send{margin-top:8px;padding:7px 13px;border-radius:8px;background:var(--gold-grad);border:none;cursor:pointer;color:#1a1410;font-size:11px;font-weight:500;font-family:inherit}

/* ===== Explore / Site Cards ===== */
.exp-search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 14px;margin-bottom:12px;transition:border-color .2s}
.exp-search:focus-within{border-color:var(--border-b)}
.exp-search input{flex:1;font-size:13px;color:var(--text);background:transparent;border:none;outline:none;font-family:inherit}
.exp-search input::placeholder{color:var(--text-4)}
.exp-filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:10px;margin-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.exp-filters::-webkit-scrollbar{display:none}
.exp-f{padding:5px 12px;font-size:11px;color:var(--text-3);background:var(--surface);border:1px solid var(--border);border-radius:16px;white-space:nowrap;cursor:pointer;transition:all .2s;flex-shrink:0;font-family:inherit}
.exp-f:active{transform:scale(.95)}
.exp-f--on{color:#1a1410;background:var(--gold-grad);border-color:var(--gold)}
.exp-count{font-size:11px;color:var(--text-4);margin-bottom:10px}
.sc{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:11px;margin-bottom:7px;display:flex;gap:10px;align-items:flex-start;cursor:pointer;transition:all .2s}
.sc:active{background:var(--surface-h);border-color:var(--border-b)}
.sc-i{width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,rgba(201,160,99,.1),rgba(92,155,142,.05));border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--gold);flex-shrink:0}
.sc-b{flex:1;min-width:0}
.sc-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}
.sc-n{font-family:var(--serif);font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58%}
.sc-p{font-size:12px;color:var(--gold);font-weight:500;flex-shrink:0}
.sc-m{font-size:10px;color:var(--text-3);margin-bottom:3px}
.sc-d{font-size:10.5px;color:var(--text-4);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ===== Video Cards ===== */
.vid-sec{margin-top:12px;border-top:1px solid var(--border);padding-top:10px}
.vid-title{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--text-3);margin-bottom:8px;font-weight:500}
.vid{display:flex;gap:10px;padding:10px;background:rgba(255,245,230,.025);border:1px solid var(--border);border-radius:10px;margin-bottom:6px;cursor:pointer;transition:all .2s}
.vid:active{background:rgba(201,160,99,.05);border-color:var(--border-b)}
.vid-thumb{width:44px;height:44px;border-radius:8px;background:linear-gradient(135deg,rgba(201,160,99,.15),rgba(201,160,99,.05));border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--gold);flex-shrink:0}
.vid-info{flex:1;min-width:0}
.vid-n{font-family:var(--serif);font-size:12.5px;font-weight:600;color:var(--text)}
.vid-meta{font-size:10px;color:var(--jade);margin-top:1px}
.vid-d{font-size:10.5px;color:var(--text-3);line-height:1.4;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== Animations ===== */
@keyframes mIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes tp{0%,60%,100%{opacity:.3}30%{opacity:1}}
@keyframes fI{from{opacity:0}to{opacity:1}}
@keyframes sU{from{transform:translateY(100%)}to{transform:translateY(0)}}
