:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,PingFang TC,Noto Sans TC,sans-serif;color:#17142b;background:#f1edff;font-synthesis:none;--purple:#743aff;--muted:#77728e;--line:#e8e2fa;--surface:rgba(255,255,255,.78);--radius:24px;--shadow:0 8px 30px #6653b90a}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:radial-gradient(ellipse at 25% 8%,#e5dbff 0,transparent 38%),radial-gradient(ellipse at 86% 45%,#e3e5ff 0,transparent 46%),#f6f3ff}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:wait;opacity:.55}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a98cff;outline-offset:4px}button{color:inherit}a{color:var(--purple);text-decoration:none}svg{width:22px;height:22px;stroke-width:1.8;flex-shrink:0}.shell{min-height:100dvh;display:flex;flex-direction:column;max-width:1120px;margin:auto}.brandbar{height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 44px}.brand{display:flex;align-items:center;gap:10px;font-size:20px;letter-spacing:-.7px;font-weight:760;color:#27203b}.brand img{height:32px;width:32px;border-radius:10px}.brandbar .version{font-size:12px;font-weight:500;color:#9288aa;letter-spacing:.05em}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;background:transparent;border-radius:14px}.icon-btn:hover{background:#e8e0ff}.home{width:100%;max-width:466px;margin:28px auto 0;padding:0 24px 30px;animation:enter .25s ease}.home-top{display:flex;justify-content:flex-end;height:36px}.home-top .icon-btn{position:relative;right:-8px}.hero{text-align:center;padding:0 0 24px}.hero-logo{width:110px;height:110px;display:block;margin:0 auto 21px;border-radius:31px;box-shadow:0 18px 35px #713eff30,0 0 60px #b6a0ff36;transform:rotate(-4deg)}h1,h2,h3,p{margin:0}.hero h1{font-size:32px;line-height:1.25;font-weight:780;letter-spacing:-1.4px}.hero p{font-size:15px;color:#72658f;margin-top:10px;letter-spacing:.4px}.account-card{background:var(--surface);border:1px solid #fff;border-radius:23px;overflow:hidden;margin:5px 0 20px;box-shadow:var(--shadow)}.account-main{display:flex;gap:13px;align-items:center;padding:18px 20px 12px}.avatar{width:43px;height:43px;display:flex;align-items:center;justify-content:center;background:#eee6ff;color:#8655ff;border-radius:50%}.avatar svg{width:27px;height:27px}.account-text{flex:1;min-width:0}.nickname{font-size:15px;font-weight:700;display:flex;align-items:center;gap:6px}.nickname span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.small-icon{display:inline-flex;align-items:center;justify-content:center;background:none;padding:2px;color:#625377}.small-icon svg{width:15px;height:15px}.account-id{display:flex;gap:8px;align-items:center;color:#8b819c;font-size:11px;margin-top:7px;letter-spacing:.3px}.credential-status{background:#f5f2ff;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;font-size:12px;font-weight:600;color:#259c60}.credential-status svg{width:15px;height:15px}.credential-status .help{color:#9990aa;margin-left:2px}.main-menu{display:flex;flex-direction:column;gap:14px}.menu-card{display:flex;align-items:center;gap:18px;text-align:left;color:#fff;border-radius:24px;min-height:102px;padding:20px 22px;position:relative;overflow:hidden;box-shadow:0 10px 22px #743aff20;transition:transform .2s,box-shadow .2s;background:linear-gradient(115deg,#9253ff,#6450ff 65%,#865cff)}.menu-card:after{content:"";position:absolute;width:180px;height:180px;background:radial-gradient(circle,#fff2,transparent 65%);right:-15px;bottom:-100px;pointer-events:none}.menu-card:hover{transform:translateY(-2px);box-shadow:0 14px 25px #743aff35}.menu-card.blue{background:linear-gradient(115deg,#359aff,#4666ff 70%,#4482ff);box-shadow:0 10px 22px #4666ff20}.menu-card .tile-icon{width:50px;height:50px;background:linear-gradient(145deg,#fff,#ece2ff);border-radius:16px;display:flex;align-items:center;justify-content:center;color:#925aff;box-shadow:inset 0 -3px 4px #b1a0fd38,0 4px 10px #4637ac20}.tile-icon svg{width:30px;height:30px;stroke-width:2.2}.menu-card.blue .tile-icon{background:transparent;box-shadow:none;color:#fff}.menu-card.blue .tile-icon svg{width:45px;height:45px;fill:#f8f5ff;stroke:#e4edff;stroke-width:1.3}.menu-card strong{display:block;font-size:22px;letter-spacing:.3px;line-height:1.25}.menu-card small{display:block;opacity:.84;font-size:12px;margin-top:7px;letter-spacing:.1px}.menu-card>svg:last-child{margin-left:auto;width:23px}.home-note{text-align:center;color:#a096b6;font-size:11px;margin:24px 0 0;display:flex;justify-content:center;align-items:center;gap:5px}.home-note svg{width:13px;height:13px}.footer{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;font-size:11px;color:#a59bb8;padding:35px 20px 24px}.footer button{background:none;color:#9488aa;font-size:11px;padding:0}.footer .dot{opacity:.5}.page{width:100%;max-width:466px;margin:20px auto 32px;padding:0 24px;animation:enter .25s ease}.page-head{position:relative;display:flex;align-items:center;justify-content:center;min-height:50px;margin-bottom:26px}.page-head h1{font-size:20px;line-height:1.4;font-weight:750;letter-spacing:-.5px}.page-head>.icon-btn:first-child{position:absolute;left:-11px}.page-head>.icon-btn:last-child:not(:first-child){position:absolute;right:-10px}.settings-list{display:flex;flex-direction:column;gap:7px}.row{background:var(--surface);border:1px solid #fff;display:flex;align-items:center;gap:14px;min-height:63px;border-radius:18px;padding:15px 17px;width:100%;text-align:left;font-size:14px;font-weight:640}.row>svg:first-child{color:#4d415e;width:23px;height:23px}.row>svg:last-child{margin-left:auto;width:17px;color:#8b809d}.row .right{font-weight:500;color:#9387a6;font-size:12px;margin-left:auto}.row .right+svg{margin-left:-4px}.row.highlight{background:#e8defe;color:#6925ed;border-color:#e9defe}.row.highlight>svg{color:#7b38ff}.row:hover{filter:brightness(.985)}.credential-panel{margin-top:28px;background:var(--surface);border:1px solid white;border-radius:25px;padding:24px 20px;display:flex;align-items:flex-start;gap:16px}.shield{width:51px;height:55px;display:flex;align-items:center;justify-content:center;background:#e5f6ed;border-radius:19px;color:#1cb66b;flex-shrink:0}.shield svg{width:33px;height:33px;fill:#27bd75;stroke:#fff;stroke-width:1.7}.credential-panel h2{font-size:15px;margin:4px 0 7px;font-weight:720}.credential-panel p{font-size:12px;line-height:1.9;color:#8a7f9c}.primary{width:100%;min-height:53px;border-radius:28px;background:linear-gradient(115deg,#9863ff,#6e38f8 55%,#6018e6);box-shadow:0 7px 16px #7941f826,inset 0 1px #ffffff40;color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:650;padding:13px 20px;transition:filter .2s,transform .2s}.primary:hover{filter:brightness(1.06)}.primary:active{transform:scale(.985)}.credential-panel+.primary{margin-top:0;position:relative;top:-1px}.secondary{width:100%;min-height:48px;border-radius:23px;border:1px solid #e9e1ff;background:#fffc;color:#726489;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 18px;box-shadow:0 4px 12px #8060dd0a}.stack{display:flex;flex-direction:column;gap:12px}.switch-row{background:#ffffff69;padding:18px;border-radius:20px;display:flex;align-items:center;gap:16px;margin-bottom:22px}.switch-row h2{font-size:15px}.switch-row p{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.6}.toggle{width:50px;height:29px;border-radius:30px;background:#d3ccdf;padding:3px;flex-shrink:0;margin-left:auto}.toggle.on{background:#7730f5}.toggle span{display:block;height:23px;width:23px;border-radius:50%;background:#fff;box-shadow:0 2px 6px #3f146233;transition:transform .2s}.toggle.on span{transform:translate(21px)}.form{display:flex;flex-direction:column;gap:17px}.field{display:flex;align-items:center;gap:15px}.field>label{width:79px;font-size:13px;font-weight:650;flex-shrink:0}.input-wrap{position:relative;flex:1;min-width:0}input,select,textarea{background:#fbfaffb3;border:1px solid #e5dcff;border-radius:16px;padding:13px 15px;min-height:46px;outline:none;width:100%;color:#35274c;font-size:13px;transition:border-color .2s}input:focus,select:focus,textarea:focus{border-color:#a77afc;box-shadow:0 0 0 3px #8c51ff0b}input::placeholder,textarea::placeholder{color:#aaa0bb}select{appearance:none;padding-right:35px}.select-arrow{pointer-events:none;position:absolute;right:14px;top:14px;width:18px;height:18px;color:#8c7aab}.input-wrap>.icon-btn{position:absolute;right:4px;top:4px;width:38px;height:38px}.input-wrap:has(.icon-btn) input{padding-right:44px}.api-save{margin-top:30px}.hint{font-size:12px;line-height:1.85;color:#9183a5;margin-top:17px;padding:0 5px}.hint.danger{color:#b1694a}.mode-choice{display:flex;background:#ebe5f8;border-radius:15px;padding:4px;gap:4px;margin-top:7px}.mode-choice button{flex:1;font-size:11px;min-height:37px;border-radius:11px;background:transparent;color:#8c7d9e;padding:7px}.mode-choice .selected{background:#fff;color:#6e34db;box-shadow:0 2px 5px #4d306010}.backup-tabs{display:flex;gap:8px;margin-bottom:24px}.backup-tabs button{flex:1;min-height:43px;border-radius:15px;color:#9a8bac;background:#eee8fa;font-size:13px;font-weight:600}.backup-tabs .active{background:#fff;color:#7636f2;box-shadow:0 4px 16px #7550ac0c}.info-box{background:#eae3ff7a;border-radius:20px;padding:18px 20px;color:#867599;font-size:12px;line-height:1.9;margin:18px 0}.qr-wrap{text-align:center;background:#fff;border-radius:24px;padding:24px;margin:22px auto;max-width:300px;box-shadow:0 8px 25px #7653bf10}.qr-wrap canvas{display:block;width:100%;height:auto}.qr-wrap p{font-size:10px;color:#9b8ba9;margin-top:10px}.full-label{font-size:13px;font-weight:650;display:block;margin:0 0 9px 3px}.backup-form>.primary{margin-top:18px}.bottom-link{display:flex;justify-content:center;gap:18px;align-items:center;margin-top:25px;font-size:12px;color:#8d7fa1}.text-btn{background:none;color:#8c63d1;font-size:12px;padding:4px}.language-options{margin-top:50px;display:flex;gap:12px;flex-direction:column}.language-option{min-height:62px;border-radius:19px;padding:17px 20px;background:#fff9;display:flex;align-items:center;font-size:15px;font-weight:650}.language-option svg{margin-left:auto;color:#c6bcd7}.language-option.selected{background:linear-gradient(115deg,#975cff,#723bfa);color:#fff;box-shadow:0 7px 18px #7440ed20}.language-option.selected svg{color:#fff;fill:#fff;stroke:#9464ff}.language-confirm{margin-top:180px}.update-center{text-align:center;padding:48px 0 18px}.update-center>.update-icon{color:#8c50ff;width:74px;height:74px;margin-bottom:28px;stroke-width:1.3}.update-center h2{font-size:17px;font-weight:700}.update-center p{font-size:13px;color:#998aa8;margin-top:13px}.update-center+.secondary{max-width:250px;margin:52px auto 0}.about-center{text-align:center;padding:13px 0 30px}.about-center img{width:83px;height:83px;border-radius:25px;box-shadow:0 12px 25px #894bf51c;margin-bottom:20px}.about-center h2{font-size:23px;font-weight:760}.about-center .v{font-size:13px;color:#907fa4;margin-top:8px}.about-center .intro{font-size:12px;color:#9788a8;margin:25px 0 7px}.about-center .features{font-size:10px;color:#a293b3;line-height:1.8}.legal{background:#ffffff85;border:1px solid #fff;border-radius:23px;padding:25px;line-height:1.95;font-size:13px;color:#81718f}.legal h2{font-size:16px;margin:22px 0 10px;color:#44334f}.legal h2:first-child{margin-top:0}.legal p+p{margin-top:14px}.offline-bar{font-size:11px;padding:10px 14px;border-radius:12px;background:#fff3db;color:#967638;margin:0 0 15px;line-height:1.7}.wide{max-width:900px}.tools-intro{color:#8d7e9f;font-size:13px;margin:-8px 0 25px}.search-box{position:relative}.search-box input{background:#fff9;padding-left:45px;height:48px}.search-box>svg{position:absolute;left:15px;top:14px;width:19px;color:#a08ab7}.filters{display:flex;gap:7px;overflow:auto;padding:18px 0 22px}.filters button{white-space:nowrap;border-radius:20px;padding:8px 16px;background:#eae3f8;color:#93809f;font-size:12px}.filters .active{background:#8050fa;color:#fff}.tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.tool-card{background:#ffffffac;border:1px solid white;border-radius:23px;padding:22px;display:flex;align-items:flex-start;gap:15px;text-align:left;min-height:130px;transition:transform .2s}.tool-card:hover{transform:translateY(-3px)}.tool-icon{width:43px;height:43px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#eee5ff;color:#8e52f0;flex-shrink:0}.tool-card:nth-child(3n+2) .tool-icon{background:#e4edff;color:#5481eb}.tool-card:nth-child(3n) .tool-icon{background:#fbe3f6;color:#c55fb4}.tool-card h3{font-size:15px;line-height:1.5;margin-top:1px}.tool-card p{font-size:12px;color:#a08eac;margin-top:8px;line-height:1.65}.tool-card>svg:last-child{margin-left:auto;width:15px;height:15px;color:#b5a5c8;margin-top:4px}.tool-host{font-size:10px!important;color:#b9a9c6!important}.tools-notice{font-size:11px;line-height:1.8;color:#a696b4;text-align:center;margin:25px 0}.empty{padding:60px 20px;text-align:center;color:#a18dae;font-size:14px}.chat-page{max-width:900px;flex:1;display:flex;flex-direction:column;min-height:calc(100dvh - 180px);padding-bottom:0}.chat-head{margin-bottom:8px}.chat-head h1{display:flex;align-items:center;gap:9px;font-size:18px}.chat-head .model-badge{font-size:10px;font-weight:500;color:#9980b6}.chat-actions{display:flex;gap:4px;justify-content:center;margin-bottom:10px}.chat-actions button{font-size:11px;color:#9b89b0;padding:5px 10px;border-radius:20px;background:#ece5f8}.chat-messages{flex:1;min-height:250px;padding:18px 0 30px}.chat-empty{text-align:center;margin:auto;max-width:430px;padding-top:60px}.chat-empty img{width:70px;height:70px;border-radius:22px;box-shadow:0 15px 30px #7e42ef25;margin-bottom:22px}.chat-empty h2{font-size:25px;font-weight:750;letter-spacing:-.8px}.chat-empty>p{font-size:13px;color:#a08aad;margin-top:12px}.suggestions{margin:30px auto 10px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.suggestions button{font-size:12px;border:1px solid #e8ddf6;background:#fffa;padding:11px 15px;border-radius:13px;color:#8b6ca7}.configure-link{display:inline-block;font-size:11px;margin-top:25px;background:none;color:#a17abd;text-decoration:underline;text-underline-offset:3px}.message{display:flex;gap:12px;margin:0 0 25px;align-items:flex-start}.message-avatar{width:30px;height:30px;border-radius:10px;background:#e8dcff;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#9c67e9}.message-avatar svg{width:17px;height:17px}.message-avatar img{width:30px;height:30px;border-radius:10px}.message-body{background:#fffa;border:1px solid #fff;border-radius:3px 20px 20px;padding:15px 18px;max-width:calc(100% - 85px);white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85}.message.user{flex-direction:row-reverse}.message.user .message-body{background:#e9dfff;border-color:#e6d9ff;border-radius:20px 3px 20px 20px}.message .copy-message{display:flex;background:none;color:#aa95bd;margin-top:8px;padding:0;gap:4px;font-size:10px;align-items:center}.copy-message svg{width:12px;height:12px}.message.error .message-body{color:#ac666b;background:#fff0f0}.composer-wrap{position:sticky;bottom:0;background:linear-gradient(0deg,#f6f3ff 78%,#f6f3ff00);padding-top:18px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.composer{background:#fff;border:1px solid #e3d6f9;border-radius:24px;box-shadow:0 8px 30px #7343b811;display:flex;align-items:flex-end;padding:10px 11px 10px 16px;gap:8px}.composer textarea{resize:none;border:0;background:transparent;box-shadow:none;min-height:40px;max-height:160px;padding:9px 0;font-size:14px;line-height:1.6}.composer .send{height:40px;width:40px;background:linear-gradient(135deg,#a36aff,#7135ef);border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.composer .send svg{height:19px;width:19px}.chat-disclaimer{font-size:10px;color:#b3a2bf;text-align:center;margin-top:12px}.modal-backdrop{position:fixed;inset:0;background:#27124055;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:20}.modal{width:100%;max-width:420px;background:#fbf9ff;border:1px solid #fff;border-radius:28px;padding:28px;box-shadow:0 20px 100px #1d0c3340;max-height:90dvh;overflow:auto}.modal h2{font-size:20px;margin-bottom:18px}.modal p{font-size:13px;color:#8e779f;line-height:1.8;margin-bottom:18px}.modal .primary{margin-top:20px}.modal .secondary{margin-top:10px}.history-list{display:flex;flex-direction:column;gap:8px}.history-list button{padding:15px;border-radius:14px;text-align:left;background:#eee5fb;font-size:13px}.camera{width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px;background:#1a1029}.admin-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-form label{font-size:12px;color:#8d77a0}.admin-form input,.admin-form select{margin-top:7px}.admin-form .full{grid-column:1/-1}.admin-card{background:#fff9;border:1px solid #fff;border-radius:18px;padding:18px;margin-top:13px;font-size:13px}.admin-card .actions{display:flex;gap:8px;margin-top:12px}.admin-card .actions button{padding:8px 14px;border-radius:12px;color:#8a4de1;background:#eae0fa}.admin-card small{color:#aa95b9}.admin-error{color:#b8727c;font-size:12px;margin-top:15px}.loading-dots:after{content:"…";animation:blink 1s infinite}#toast{position:fixed;bottom:36px;left:50%;transform:translate(-50%,15px);background:#30233fe8;color:#fff;font-size:13px;line-height:1.6;border-radius:17px;padding:12px 23px;max-width:calc(100vw - 40px);box-shadow:0 5px 25px #2e0d3e20;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;text-align:center}#toast.show{opacity:1;transform:translate(-50%)}@keyframes enter{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes blink{50%{opacity:.4}}@media(min-width:900px){.home{margin-top:25px}.hero-logo{width:118px;height:118px}.home .hero h1{font-size:34px}.brandbar{margin:0 28px;border-bottom:1px solid #ded4f259}.page:not(.wide):not(.chat-page){margin-top:34px}.page-head{margin-bottom:30px}}@media(max-width:600px){.brandbar{height:61px;padding:0 23px}.brand{font-size:18px;gap:8px}.brand img{width:27px;height:27px;border-radius:9px}.brandbar .version{font-size:10px}.home{margin-top:0;padding:0 25px 24px}.home-top{height:38px}.hero{padding:4px 0 22px}.hero-logo{width:100px;height:100px;margin-bottom:22px;border-radius:29px}.hero h1{font-size:30px}.hero p{font-size:14px;margin-top:10px}.account-card{margin-top:6px}.menu-card{min-height:92px;border-radius:22px;padding:19px;gap:17px}.menu-card strong{font-size:21px}.menu-card small{font-size:11px}.home-note{margin-top:24px}.footer{padding-top:23px;padding-bottom:20px;font-size:10px}.page{margin-top:12px;padding:0 25px}.page-head{margin-bottom:24px}.page-head h1{font-size:19px}.tool-grid{grid-template-columns:1fr}.tool-card{min-height:110px;padding:19px}.chat-page{min-height:calc(100dvh - 115px);padding:0 20px}.chat-empty{padding-top:45px}.chat-empty h2{font-size:24px}.chat-page~.footer{display:none}.message-body{max-width:calc(100% - 48px);font-size:13px;padding:13px 15px}.message{gap:9px}.field{gap:12px}.field>label{font-size:12px;width:72px}.admin-form{grid-template-columns:1fr}.admin-form .full{grid-column:auto}.language-confirm{margin-top:200px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
