/* 问一问 + 我的 */
.chat-page{max-width:820px;position:relative}
.chat-top{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.chat-top .chat-quota{margin-left:auto;font-size:12.5px;color:var(--muted);white-space:nowrap}
.chat-hero{text-align:center;padding:34px 0 18px}
.chat-mark{width:56px;height:56px;border-radius:16px;background:var(--ink);color:#fff;display:grid;place-items:center;margin:0 auto 18px;position:relative}
.chat-mark svg{width:32px;height:32px}
.chat-mark::after{content:"";position:absolute;right:-3px;top:-3px;width:12px;height:12px;border-radius:50%;background:#22a06b;border:2.5px solid var(--bg)}
.chat-hero h1{margin:0;font:700 clamp(26px,4vw,34px)/1.3 var(--serif);letter-spacing:.2px}
.chat-hero p{margin:12px auto 0;max-width:520px;color:var(--muted);font-size:15px;line-height:1.7}
.composer{display:flex;align-items:flex-end;gap:8px;margin:8px 0 0;padding:10px 10px 10px 16px;background:var(--surface);border:1.5px solid var(--line2);border-radius:22px;box-shadow:var(--shadow);transition:border-color .15s,box-shadow .15s}
.composer:focus-within{border-color:var(--ink);box-shadow:0 0 0 4px rgba(15,92,67,.10)}
.composer textarea{flex:1;min-width:0;border:0;outline:0;background:transparent;resize:none;font-size:16px;line-height:1.5;padding:8px 0;max-height:180px;min-height:40px}
.composer textarea::placeholder{color:var(--faint)}
.composer .send{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:grid;place-items:center}
.composer .send:disabled{opacity:.4;cursor:default}
.composer .send svg{width:20px;height:20px}
.chat-starters{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:14px}
.chat-starters span{font-size:13px;color:var(--faint)}
.chip{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);font-size:13.5px;font-weight:600;color:var(--ink2);white-space:nowrap}
.chip:hover{border-color:var(--ink)}
.chat-note{text-align:center;color:var(--faint);font-size:12.5px;margin:14px 0 0}
.has-thread .chat-note{display:none}
/* 对话 */
.chat-thread{display:flex;flex-direction:column;gap:14px;padding:12px 0 8px}
.chat-thread .me{align-self:flex-end;max-width:88%;background:var(--ink);color:#fff;padding:10px 16px;border-radius:18px 18px 4px 18px;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.turn{display:flex;flex-direction:column;gap:12px;min-width:0}
.asksteps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13.5px;color:var(--muted)}
.asksteps li{display:flex;align-items:center;gap:8px}
.asksteps li i{width:14px;height:14px;border-radius:50%;border:2px solid var(--line2);border-top-color:var(--brand);animation:spin .9s linear infinite;flex:none}
.asksteps li.ok i{animation:none;border-color:var(--brand);background:var(--brand)}
.asksteps li.todo{opacity:.5}
.asksteps li.todo i{animation:none}
@keyframes spin{to{transform:rotate(360deg)}}
.hits{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.hitcard{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);min-width:0}
.hitcard:hover{border-color:var(--ink2)}
.hitcard .ico{width:40px;height:40px}
.hitcard .tx{min-width:0;flex:1}
.hitcard b{display:block;font-size:14px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hitcard p{margin:2px 0 0;font-size:12.5px;color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hitcard .m{display:block;margin-top:4px;font-size:12.5px;font-weight:700;color:var(--money)}
.ans{background:var(--surface);border:1px solid var(--line);border-radius:18px 18px 18px 4px;padding:14px 18px;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.ans p{margin:0 0 10px}
.ans p:last-child{margin-bottom:0}
.ans h4{margin:14px 0 6px;font-size:15.5px}
.ans ul,.ans ol{margin:6px 0 10px;padding-left:22px}
.ans li{margin:3px 0}
.ans code{font:13px/1.4 var(--mono);background:var(--sunk);padding:1px 5px;border-radius:5px}
.ans a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.ans h3{margin:16px 0 8px;font-size:17px;line-height:1.4}
.ans h3:first-child,.ans h4:first-child{margin-top:0}
.ans strong{font-weight:700}
.ans ul ul,.ans ol ol,.ans ul ol,.ans ol ul{margin:2px 0 4px}
.ans blockquote{margin:10px 0;padding:8px 14px;border-left:3px solid var(--line);background:var(--sunk);border-radius:0 10px 10px 0;color:var(--muted)}
.ans blockquote p{margin:4px 0}
.ans .md-hr{border:0;border-top:1px solid var(--line);margin:14px 0}
.ans .md-pre{margin:10px 0;padding:10px 12px;background:var(--sunk);border-radius:10px;overflow-x:auto;font:13px/1.5 var(--mono)}
.ans .md-pre code{background:none;padding:0}
.ans .md-table{margin:10px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px}
.ans .md-table table{border-collapse:collapse;width:100%;font-size:13.5px;line-height:1.5}
.ans .md-table th,.ans .md-table td{padding:7px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;white-space:nowrap}
.ans .md-table td{white-space:normal;min-width:72px}
.ans .md-table th{background:var(--sunk);font-weight:600}
.ans .md-table tr:last-child td{border-bottom:0}
.cites-line{margin:0;font-size:12.5px;color:var(--muted);line-height:1.7}
.cites-line a{color:var(--brand)}
.followups{display:flex;flex-wrap:wrap;gap:8px}
.asknote{padding:12px 14px;border-radius:var(--r-md);background:var(--sunk);font-size:14px;line-height:1.6;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.asknote.err{background:var(--down-bg);color:#7a2e12}
.asknote a{color:var(--brand);font-weight:600}
.has-thread .composer{position:sticky;bottom:calc(16px + env(safe-area-inset-bottom));z-index:5;margin-top:10px}
@media (max-width:860px){.has-thread .composer{bottom:calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom))}}
/* 今天在涨 */
.rise{margin-top:36px}
.rise h2{margin:0 0 12px;font:700 20px/1.3 var(--serif)}
.rise-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rise-col{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:6px 14px 4px;min-width:0}
.rise-col header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0 6px;border-bottom:1px solid var(--line)}
.rise-col header b{font-size:15px}
.rise-col header a{font-size:12.5px;color:var(--muted);white-space:nowrap}
.rise-row{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);min-width:0}
.rise-row:last-child{border-bottom:0}
.rise-row .ico,.rise-row .tile.sm{width:36px;height:36px;border-radius:9px;font-size:15px}
.rise-row .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.rise-row b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rise-row small{font-size:12.5px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45}
.rise-row em{font-style:normal;font-size:12.5px;font-weight:700;color:var(--money);white-space:nowrap}
/* 对话记录抽屉 */
.hist-mask{position:fixed;inset:0;z-index:45;border:0;background:rgba(16,27,22,.45)}
.hist-sheet{position:fixed;z-index:46;top:0;bottom:0;left:0;width:min(340px,86vw);background:var(--surface);border-right:1px solid var(--line);box-shadow:var(--shadow-pop);display:flex;flex-direction:column}
.hist-h{display:flex;align-items:center;justify-content:space-between;padding:14px 10px 10px 18px;border-bottom:1px solid var(--line)}
.hist-h b{font-size:16px}
.hist-list{overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:2px}
.hist-list a{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;min-width:0}
.hist-list a:hover,.hist-list a.on{background:var(--sunk)}
.hist-list a b{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hist-list a small{font-size:12px;color:var(--faint)}
.empty-line{padding:16px 12px;color:var(--muted);font-size:13.5px;line-height:1.7}
/* 登录弹层 */
.acct-sheet{border:0;border-radius:var(--r-lg);padding:0;width:min(440px,calc(100% - 24px));background:var(--surface);color:var(--ink);box-shadow:var(--shadow-pop)}
.acct-sheet::backdrop{background:rgba(16,27,22,.55)}
.acct-login{display:flex;flex-direction:column;gap:14px;padding:22px}
.acct-login-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.acct-login-h b{display:block;font:700 22px/1.3 var(--serif)}
.acct-login-h small{display:block;color:var(--muted);font-size:13px;margin-top:4px;line-height:1.5}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.field input{height:46px;padding:0 14px;border:1px solid var(--line2);border-radius:var(--r-md);background:var(--surface);font-size:16px;color:var(--ink);width:100%;min-width:0}
.field input:focus{outline:2px solid var(--brand2);outline-offset:0;border-color:transparent}
.codeline{display:flex;gap:8px}
.codeline input{flex:1}
.codeline .btn{height:46px;flex:none}
.acct-msg{margin:0;min-height:1.2em;font-size:13px;color:var(--muted)}
.acct-fine{margin:0;font-size:12px;color:var(--faint);line-height:1.6}
.acct-fine a{text-decoration:underline;text-underline-offset:2px}
@media (max-width:640px){.acct-sheet{width:100%;max-width:100%;margin:auto 0 0;border-radius:var(--r-lg) var(--r-lg) 0 0;max-height:92dvh}.acct-login{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}}
/* 我的 */
.me-page{max-width:760px}
.me-card{padding:20px}
.me-id{display:flex;align-items:center;gap:14px}
.me-avatar{width:52px;height:52px;border-radius:50%;background:var(--sunk);display:grid;place-items:center;color:var(--muted);font:700 20px/1 var(--sans);flex:none}
.me-avatar.on{background:var(--brand);color:#fff}
.me-avatar svg{width:26px;height:26px}
.me-id b{display:block;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.me-id small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.me-card>p{margin:14px 0;color:var(--ink2);font-size:14.5px;line-height:1.75}
.me-card .btn.lg{width:100%}
.me-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:16px 0 0}
.me-stats>div{background:var(--sunk);border-radius:var(--r-md);padding:10px 12px;min-width:0}
.me-stats dt{font-size:12px;color:var(--muted)}
.me-stats dd{margin:2px 0 0;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.me-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.me-sec{margin-top:26px}
.me-sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.me-sec-h h2{margin:0;font-size:14px;font-weight:600;color:var(--muted)}
.me-sec-h a{font-size:13px;color:var(--brand);font-weight:600}
.me-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.me-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);min-height:56px}
.me-row:last-child{border-bottom:0}
.me-row .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.me-row b{font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.me-row small{font-size:12.5px;color:var(--muted);line-height:1.5;margin-top:2px}
.me-row .chev{color:var(--faint);font-size:20px;line-height:1}
a.me-row:hover{background:var(--sunk)}
.me-redeem{display:flex;gap:8px;padding:12px 16px 4px}
.me-redeem input{flex:1;min-width:0;height:40px;padding:0 12px;border:1px solid var(--line2);border-radius:var(--r-sm);font-size:15px}
.me-list .acct-msg{padding:0 16px 10px}
.me-foot{margin:30px 0 0;font-size:12.5px;color:var(--faint)}
.me-foot a{text-decoration:underline;text-underline-offset:2px}
@media (max-width:720px){.rise-grid{grid-template-columns:1fr}.chat-hero{padding:22px 0 14px}.chat-top .chat-quota{display:none}.hits{grid-template-columns:1fr}}
