@font-face{font-family:Harmony;src:url('/assets/HarmonyOS-Sans.ttf') format('truetype');font-display:swap}
:root{font-family:Harmony,'Microsoft YaHei',sans-serif;color:#163a51;background:#eff7fb;font-synthesis:none;--cyan:#22a8c2;--ink:#163a51;--muted:#7794a2;--line:#d6e9ef}
*{box-sizing:border-box}body{margin:0;min-width:280px;background:radial-gradient(ellipse at 0% 0%,#d9f5fc,transparent 55%),radial-gradient(ellipse at 100% 95%,#e1eafe,transparent 60%);min-height:100dvh}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,label:focus-visible{outline:3px solid #4bd1e4;outline-offset:4px}button{touch-action:manipulation}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}.phone-shell{max-width:620px;margin:auto;min-height:100dvh}.topbar{height:100px;display:flex;align-items:center;padding:18px 24px;gap:13px;border-bottom:1px solid rgba(184,217,230,.65);background:#ffffff92;backdrop-filter:blur(18px);position:relative;z-index:2}.avatar{width:54px;height:54px;display:grid;place-items:center;border:1px solid #fff;border-radius:20px;background:linear-gradient(140deg,#fff,#d4eff9);box-shadow:0 5px 20px #519aaf20}.avatar svg{width:40px;fill:none;stroke:#2486a3;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.avatar circle{fill:#2486a3}.topbar h1{font-size:23px;letter-spacing:2px;margin:0;font-weight:600}.topbar p{font-size:12px;color:#7995a3;margin:5px 0 0;letter-spacing:1px}.connection{margin-left:auto;font-size:11px;color:#78939f;white-space:nowrap}.connection.ready::before{content:'';display:inline-block;width:6px;height:6px;background:#35b6aa;box-shadow:0 0 0 4px #35b6aa12;border-radius:50%;margin-right:8px}.pair-panel{text-align:center;padding:60px 32px 32px}.pair-orbit{width:130px;height:130px;margin:0 auto 32px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#d7f2f8);border:1px solid #fff;box-shadow:0 18px 45px #548fa32b,inset -12px -8px 28px #5ac2d422;position:relative}.pair-orbit::after{content:'';position:absolute;inset:15px -16px;border:1px solid #81d7e1;border-radius:50%;transform:rotate(-30deg)}.pair-orbit span{font-size:48px;font-weight:600;letter-spacing:-3px;color:#309cb7}.pair-panel h2{font-size:26px;font-weight:500;letter-spacing:1px;margin:0 0 13px}.pair-panel>p{color:#7894a2;font-size:14px}.pair-panel form{max-width:320px;margin:32px auto 0}#pair-code{width:100%;height:70px;border:1px solid #d4e6ed;border-radius:20px;background:#ffffffbd;box-shadow:0 10px 25px #6d9eae0b;text-align:center;letter-spacing:12px;padding-left:20px;font-size:29px;color:#205d73;outline:none}#pair-code::placeholder{color:#bfccd2}.primary{margin-top:18px;width:100%;height:55px;border:1px solid #49b8ca;border-radius:18px;color:white;background:linear-gradient(120deg,#30b3c9,#2298b4);box-shadow:0 8px 20px #249db52b;font-size:16px;letter-spacing:2px}.primary span{margin-left:12px}.classroom{height:calc(100dvh - 100px);display:flex;flex-direction:column}.messages{padding:25px 20px 15px;overflow:auto;flex:1;scroll-behavior:smooth;overscroll-behavior:contain}.empty-message{margin:34px auto;max-width:290px;text-align:center;color:#668697;line-height:1.9}.empty-message h2{font-size:23px;font-weight:500;color:#2e6178;margin:0 0 13px}.empty-message p{font-size:14px;margin:0}.message{max-width:92%;margin:0 0 22px;animation:enter .3s ease both}.message.user{margin-left:auto}.message-label{font-size:11px;color:#8aa1ad;margin-bottom:7px;padding:0 4px}.message.user .message-label{text-align:right}.bubble{padding:14px 17px;background:#ffffffd4;border:1px solid #ffffff;border-radius:5px 20px 20px 20px;box-shadow:0 7px 24px #7497a00b;font-size:15px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.user .bubble{background:linear-gradient(135deg,#d6f3f8,#e5f2fc);border-color:#bde5ed;border-radius:20px 5px 20px 20px;color:#255a6d}.message.error .bubble{color:#947157;background:#fff9f1;border-color:#f0e4cf}.bubble img{display:block;max-width:100%;max-height:320px;border-radius:12px;margin:8px 0;object-fit:contain;cursor:zoom-in}.thinking{display:flex;align-items:center;height:25px;gap:5px}.thinking i{display:block;background:#77b5c5;border-radius:50%;width:5px;height:5px;animation:breathe 1.2s infinite}.thinking i:nth-child(2){animation-delay:.2s}.thinking i:nth-child(3){animation-delay:.4s}.composer-wrap{padding:12px 16px max(15px,env(safe-area-inset-bottom));background:linear-gradient(0deg,#f0f8fc 75%,#f0f8fc00);flex:none}.mode-switch{display:flex;width:max-content;gap:3px;padding:4px;border:1px solid #d5e6ed;background:#e4f0f53d;border-radius:14px;margin-bottom:10px}.mode-switch button{border:0;border-radius:10px;padding:7px 16px;color:#7c97a5;background:transparent;font-size:13px}.mode-switch button[aria-pressed=true]{background:#fff;color:#2589a2;box-shadow:0 2px 6px #527b8c10}.composer{border:1px solid #d3e6ed;background:#ffffffdf;border-radius:22px;padding:13px 15px 10px;box-shadow:0 9px 35px #688f9e0c}.composer textarea{border:0;outline:none;background:transparent;width:100%;resize:none;max-height:130px;font-size:15px;line-height:1.6;color:#234f64;padding:0}.composer textarea::placeholder{color:#a1b4bd}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:7px}.upload-button{display:flex;gap:7px;align-items:center;font-size:12px;color:#7293a2;cursor:pointer;padding:6px 0}.upload-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.send{width:38px;height:38px;display:grid;place-items:center;border:1px solid #3cb5c6;border-radius:13px;background:linear-gradient(140deg,#46c4d2,#2094b1);box-shadow:0 4px 12px #249eb526}.send svg{width:21px;height:21px;stroke:white;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.attachment{position:relative;width:74px;margin-bottom:10px}.attachment img{display:block;width:74px;height:64px;object-fit:cover;border-radius:10px;border:1px solid #d4e5ec}.attachment button{position:absolute;right:-6px;top:-6px;width:23px;height:23px;border:1px solid #c6dfe9;border-radius:50%;background:white;color:#678a9b;line-height:1}.error{color:#b45f56;font-size:12px;line-height:1.6;margin:8px 2px 0;min-height:0}.error:empty{display:none}.sr-only{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}dialog{border:0;background:#ecf7fa;padding:15px;border-radius:20px;max-width:95vw;max-height:93dvh;box-shadow:0 30px 100px #123e6b55}dialog::backdrop{background:#163f58b8;backdrop-filter:blur(5px)}dialog img{display:block;max-width:calc(95vw - 30px);max-height:calc(90dvh - 50px);object-fit:contain}dialog button{position:absolute;top:5px;right:5px;width:33px;height:33px;background:white;border:1px solid #d4e5ed;border-radius:50%;color:#52798e;font-size:22px}@keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes breathe{50%{opacity:.3;transform:translateY(-2px)}}@media(min-width:700px){.phone-shell{border-left:1px solid #d4e5ed;border-right:1px solid #d4e5ed;background:#f2f9fc77}.messages{padding-inline:30px}.composer-wrap{padding-inline:28px}}@media(prefers-reduced-motion:reduce){*,*::after{animation:none!important;scroll-behavior:auto!important}}
