:root{--orange: #ff8c00;--orange-dark: #f07d00;--bg: #f5f6f8;--card: #ffffff;--text: #2b2b2b;--muted: #8a8f98;--line: #eceef1;--safe-bottom: env(safe-area-inset-bottom, 0px);font-size:16px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;height:100%;background:#e9ebee}body{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Helvetica Neue,Microsoft YaHei,sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}#app{height:100%}button,input,textarea{font-family:inherit;outline:none;border:none}button{cursor:pointer}.phone{position:relative;max-width:480px;margin:0 auto;height:100%;min-height:100%;max-height:100%;background:var(--bg);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 24px #0000000f}.page-header{flex:none;height:54px;background:#fff;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid var(--line);z-index:5}.page-header h1{font-size:18px;font-weight:600;margin:0;letter-spacing:.5px}.page-header .back{position:absolute;left:14px;top:0;height:54px;display:flex;align-items:center;font-size:28px;color:#333;padding:0 8px;line-height:1;background:none}.page-header .more{position:absolute;right:16px;top:0;height:54px;display:flex;align-items:center;font-size:22px;color:inherit;background:none;letter-spacing:1px}.menu{position:absolute;right:12px;top:50px;z-index:20;background:#fff;border-radius:10px;min-width:158px;box-shadow:0 6px 22px #00000029;overflow:hidden}.menu button{display:block;width:100%;text-align:left;background:#fff;padding:12px 14px;font-size:14px;color:#333;border-bottom:1px solid #f2f3f5}.menu button:last-child{border-bottom:none}.chat-header{background:var(--orange);color:#fff;border-bottom:none}.chat-header .back,.chat-header .more{color:#fff}.home-scroll{flex:1;overflow-y:auto;padding:4px 14px calc(24px + var(--safe-bottom));-webkit-overflow-scrolling:touch}.section-title{font-size:16px;font-weight:700;margin:18px 2px 10px;color:#222}.panel{background:#fff;border-radius:14px;padding:14px 6px 6px;box-shadow:0 1px 6px #141e3208}.grid-6{display:grid;grid-template-columns:repeat(3,1fr);row-gap:16px}.tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 0 10px;background:none}.tile-icon{width:58px;height:58px;border-radius:15px;display:flex;align-items:center;justify-content:center;font-size:30px;line-height:1;box-shadow:inset 0 1px 2px #ffffffe6,0 3px 8px #1e283c1a;border:1px solid rgba(0,0,0,.03)}.tile-label{font-size:14px;color:#333}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.tool-card{background:#fff;border-radius:12px;padding:14px 12px;min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;box-shadow:0 1px 6px #141e320a}.tool-card .tool-title{color:var(--orange);font-weight:700;font-size:15px;margin-bottom:5px}.tool-card .tool-desc{color:#9aa0a8;font-size:11.5px;line-height:1.45}.tool-card .tool-art{font-size:30px;flex:none;width:44px;text-align:center}.teach-panel{background:#fff;border-radius:14px;padding:18px 10px 14px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.teach-item{display:flex;flex-direction:column;align-items:center;gap:10px;background:none;font-size:14px;color:#333}.teach-item .teach-art{font-size:38px}.tips{flex:none;background:#fff;padding:18px 20px 16px;font-size:15px;line-height:1.85;color:#333}.tips p{margin:0 0 12px}.tips p:last-child{margin-bottom:0}.msg-area{flex:1;overflow-y:auto;background:#fff;border-top:1px solid var(--line);padding:16px 14px 20px;-webkit-overflow-scrolling:touch}.msg-row{display:flex;margin-bottom:16px}.msg-row.user{justify-content:flex-end}.bubble-user{background:var(--orange);color:#fff;border-radius:12px;padding:12px 15px;max-width:84%;font-size:16px;line-height:1.6;word-break:break-word;white-space:pre-wrap}.card-ai{position:relative;width:100%;background:#f4f5f6;border-radius:12px;padding:16px 16px 46px;font-size:15.5px;line-height:1.8;color:#333;white-space:pre-wrap;word-break:break-word}.card-ai.error{color:#b04a3a}.copy-btn{position:absolute;right:10px;bottom:10px;background:var(--orange);color:#fff;font-size:12px;padding:5px 10px;border-radius:5px}.thumb-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.thumb{position:relative;width:76px;height:76px;border-radius:8px;overflow:hidden;border:1px solid var(--line)}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.thumb .del{position:absolute;top:0;right:0;width:20px;height:20px;background:#0000008c;color:#fff;font-size:13px;line-height:20px;text-align:center}.msg-image{display:block;max-width:100%;border-radius:10px;margin-top:10px}.stage{font-size:13px;color:var(--muted);padding:2px 0 6px}.cursor{display:inline-block;width:2px;height:15px;background:var(--orange);margin-left:2px;vertical-align:-2px;animation:blink .8s infinite}@keyframes blink{50%{opacity:0}}.quick-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}.quick-chips button{background:#fff4e6;color:var(--orange-dark);border:1px solid #ffdfb8;border-radius:16px;padding:7px 12px;font-size:13px}.input-bar{flex:none;display:flex;align-items:center;gap:9px;padding:10px 12px;padding:10px 12px calc(10px + var(--safe-bottom));background:#f7f7f8;border-top:1px solid #e6e8ea}.clip-btn{width:34px;height:34px;font-size:22px;background:none;color:#666;display:flex;align-items:center;justify-content:center}.input-bar input{flex:1;height:42px;background:#fff;border:1px solid #e3e5e8;border-radius:22px;padding:0 16px;font-size:15px;color:#333}.send-btn{height:42px;padding:0 20px;border-radius:22px;background:var(--orange);color:#fff;font-size:15px;font-weight:600}.send-btn:disabled{opacity:.5}.pending-images{flex:none;display:flex;gap:8px;padding:8px 12px 0;background:#f7f7f8}.disclaimer{flex:none;text-align:center;font-size:11px;color:#b0b4ba;background:#f7f7f8;padding:4px 10px 6px;padding:4px 10px calc(6px + var(--safe-bottom))}.list-scroll{flex:1;overflow-y:auto;padding:14px}.hist-item{background:#fff;border-radius:12px;padding:14px;margin-bottom:10px;display:flex;align-items:center;gap:12px}.hist-item .hist-ico{width:40px;height:40px;border-radius:10px;background:#fff3e3;display:flex;align-items:center;justify-content:center;font-size:20px}.hist-item .hist-main{flex:1;min-width:0}.hist-item .hist-title{font-size:15px;font-weight:600}.hist-item .hist-sub{font-size:12px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hist-item .hist-time{font-size:11px;color:#b5b9bf;align-self:flex-start}.empty{text-align:center;color:var(--muted);font-size:14px;padding:60px 20px;line-height:1.9}.mine-card{background:#fff;border-radius:12px;padding:16px;margin-bottom:12px}.mine-card h3{font-size:14px;margin:0 0 12px;color:#333}.kv{display:flex;justify-content:space-between;font-size:13px;padding:7px 0;color:#666;border-bottom:1px solid #f3f4f6}.kv:last-child{border-bottom:none}.kv b{font-weight:500;color:#333}.danger-btn{width:100%;height:44px;background:#fff;color:#d9534f;border:1px solid #f2d4d2;border-radius:10px;font-size:14px}.note{font-size:12px;color:var(--muted);line-height:1.8;margin-top:14px}.toast{position:fixed;left:50%;bottom:calc(24px + var(--safe-bottom));transform:translate(-50%);background:#000000c2;color:#fff;padding:10px 16px;border-radius:8px;font-size:13px;z-index:99;max-width:80%;text-align:center}.loading{flex:1;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px}.phone{max-height:100%}.home-scroll,.msg-area,.list-scroll{min-height:0}
