:root{color-scheme:light;--ink:#16253f;--muted:#66758c;--line:#dce3ed;--blue:#2563eb;--green:#15985b;--surface:#f4f7fb;font-family:"Microsoft YaHei","Segoe UI",sans-serif;font-size:14px;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--surface);min-height:100vh}button,input{font:inherit}button,a,input{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.page{min-height:100vh;display:grid;place-items:center;padding:32px 20px}.login-shell{display:grid;grid-template-columns:1fr 1fr;width:min(940px,100%);background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 24px 80px #2136520d}.brand-panel{padding:44px 38px;background:linear-gradient(145deg,#eff5ff,#e6effa);display:flex;flex-direction:column;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:21px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:var(--blue);color:white;border-radius:10px;font-size:24px;font-weight:800}.brand-panel h1{font-size:32px;line-height:1.45;margin:48px 0 14px;letter-spacing:-1px}.brand-panel p{color:var(--muted);line-height:1.8;margin:0}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:32px 0}.product{background:#ffffffb3;border:1px solid #dce6f4;border-radius:12px;padding:16px;display:flex;align-items:center;gap:10px}.product-icon{width:32px;height:32px;border-radius:8px;background:#e5edfb;color:#2e63b8;display:grid;place-items:center;font-weight:700}.brand-foot{font-size:12px;color:var(--muted)}.form-panel{padding:44px 40px}.form-panel h2{font-size:25px;margin:2px 0 9px}.subline{color:var(--muted);line-height:1.7;margin:0 0 24px}.button{border:1px solid var(--line);border-radius:9px;background:white;padding:12px 16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px}.wide{width:100%}.primary{background:var(--blue);color:white;border-color:var(--blue)}.wechat{background:var(--green);border-color:var(--green);color:white}.wechat svg{width:24px;height:24px}.wechat-note{text-align:center;font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0 22px}.divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px;margin:24px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.field{display:block;margin:16px 0}.field span{display:block;margin-bottom:7px;font-weight:600}.field input{border:1px solid var(--line);border-radius:8px;width:100%;height:44px;padding:0 12px;background:white;color:var(--ink)}.field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb12}.password-field{position:relative}.password-field input{padding-right:55px}.password-toggle{position:absolute;right:8px;top:5px;padding:7px 5px;border:0;background:transparent;font-size:12px;color:var(--muted)}.form-options{display:flex;justify-content:space-between;align-items:center;margin:16px 0;font-size:12px;color:var(--muted)}.check{display:flex;align-items:flex-start;gap:8px;line-height:1.6;cursor:pointer}.check input{accent-color:var(--blue);margin:3px 0 0;width:15px;height:15px;flex-shrink:0}.agreements{margin:18px 0 0;font-size:12px;color:var(--muted)}.notice{min-height:20px;line-height:1.65;font-size:12px;color:var(--muted);margin:12px 0}.notice.error{color:#bf3434}.notice.success{color:#137a50}.hidden{display:none!important}.footer{margin-top:24px;color:var(--muted);font-size:12px;text-align:center;line-height:1.8}.captcha-box{margin:18px 0;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fbfcfe}.captcha-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:12px;color:var(--muted)}.text-button{border:0;background:none;padding:3px;color:var(--blue);font-size:12px}.slider-captcha{position:relative;max-width:100%;margin:auto;user-select:none;touch-action:none}.puzzle-stage{position:relative;overflow:hidden;border-radius:6px;line-height:0}.puzzle-background{width:100%;display:block}.puzzle-piece{position:absolute;left:0;pointer-events:none}.slider-track{height:42px;position:relative;background:#edf1f7;border:1px solid var(--line);border-radius:6px;margin-top:10px;text-align:center;line-height:40px;color:var(--muted);font-size:12px}.slider-handle{position:absolute;top:-1px;left:0;width:42px;height:42px;background:white;border:1px solid #bccbe0;border-radius:6px;color:var(--blue);font-size:22px;touch-action:none;cursor:grab}.slider-track.complete{background:#eaf7f0;color:#197747}.slider-track.complete .slider-handle{border-color:#88c6a7;color:#197747}.center-card{width:min(480px,100%);border:1px solid var(--line);border-radius:16px;background:white;padding:32px}.center-card h1{font-size:24px;margin:28px 0 12px}.identity-card{border:1px solid var(--line);border-radius:10px;padding:16px;margin:18px 0;display:flex;gap:12px;align-items:center}.avatar{width:44px;height:44px;display:grid;place-items:center;background:#e8effb;color:var(--blue);border-radius:50%;font-size:20px;object-fit:cover}.actions{display:flex;gap:10px;margin-top:20px}.policy{max-width:800px;margin:40px auto;padding:36px;background:white;border:1px solid var(--line);border-radius:14px;line-height:1.95}.policy h1{font-size:28px}.policy h2{font-size:18px;margin-top:26px}.policy ul{padding-left:22px}.policy-version{color:var(--muted);font-size:12px}.workspace{max-width:1120px;margin:auto;padding:28px 24px}.workspace-nav{display:flex;align-items:center;justify-content:space-between;padding-bottom:22px;border-bottom:1px solid var(--line)}.workspace h1{font-size:28px;margin:38px 0 12px}.app-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}.app-card{border:1px solid var(--line);border-radius:12px;background:white;padding:24px;display:block;color:var(--ink)}.app-card:hover{text-decoration:none;border-color:#8fb0ea;box-shadow:0 10px 30px #1d355510}.app-card h2{font-size:18px}.app-card p{color:var(--muted);font-size:13px;line-height:1.8}.account-details{display:grid;grid-template-columns:130px 1fr;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:24px 0}.account-details dt,.account-details dd{margin:0;padding:13px 16px;border-bottom:1px solid var(--line)}.account-details dt{background:#f8faff;border-right:1px solid var(--line);color:var(--muted)}.account-details dt:last-of-type,.account-details dd:last-of-type{border-bottom:0}@media(max-width:760px){.login-shell{grid-template-columns:1fr;max-width:460px}.brand-panel{padding:23px 26px}.brand-panel h1,.brand-panel>p,.product-grid,.brand-foot{display:none}.form-panel{padding:28px 26px}.page{padding:18px 12px}.app-grid{grid-template-columns:1fr 1fr}.workspace-nav{align-items:flex-start;gap:16px}.workspace-nav .brand{font-size:18px}.policy{margin:16px;padding:24px}.center-card{padding:26px}}@media(max-width:420px){.app-grid{grid-template-columns:1fr}.form-panel{padding:24px 18px}.form-options{gap:12px}.workspace{padding:22px 16px}.account-details{grid-template-columns:95px 1fr}.account-details dt,.account-details dd{padding:12px}}
.form-panel{min-width:0}.agreements.agreement-invalid{color:#bf3434}.agreement-invalid input{outline:2px solid #bf3434;outline-offset:2px}.agreement-error{color:#bf3434;font-size:12px;line-height:1.65;margin:6px 0 0;padding-left:23px}
.field-help{display:block;font-size:12px;font-weight:400;color:var(--muted);line-height:1.65;margin-top:7px}.sms-field{display:flex;gap:8px}.sms-field input{min-width:0;flex:1}.sms-field .button{white-space:nowrap;flex-shrink:0;font-size:12px;padding:8px 12px}.credential-shell .brand-panel{justify-content:flex-start;gap:24px}.credential-shell .brand-foot{margin-top:auto}.optional-fields{margin:16px 0;color:var(--muted);font-size:12px}.optional-fields summary{cursor:pointer}.remember-choice{margin:18px 0;font-size:12px;color:var(--muted)}.account-entry-links{margin:20px 0 0;text-align:center;font-size:13px;line-height:1.8}.account-entry-links a{font-weight:600}.account-entry-links .entry-separator{margin:0 10px;color:var(--line)}

/* Official branding and shared light/dark presentation. */
:root{--ink:#153451;--muted:#647d96;--line:#dce7f2;--blue:#287eeb;--surface:#f5f9ff;--account-card:#fff;--account-soft:#eef5ff;--account-product:#ffffffb3;--account-brand-panel:linear-gradient(145deg,#edf5ff,#e4efff);--account-shadow:0 24px 80px #1d4f8810}
html[data-theme="dark"]{color-scheme:dark;--ink:#e7effa;--muted:#9cadc5;--line:#2b405b;--blue:#79b6ff;--surface:#101b2d;--account-card:#17263b;--account-soft:#1d304b;--account-product:#1b2f49;--account-brand-panel:linear-gradient(145deg,#18334f,#192a43);--account-shadow:0 24px 80px #0003}
body{background:var(--surface);color:var(--ink)}
.login-shell,.center-card,.policy,.app-card{background:var(--account-card)}
.login-shell{box-shadow:var(--account-shadow)}
.brand-panel{background:var(--account-brand-panel)}
.product{background:var(--account-product);border-color:var(--line)}
.product-icon,.avatar{background:var(--account-soft);color:var(--blue)}
.button:not(.primary):not(.wechat),.field input,.slider-handle{background:var(--account-card);color:var(--ink)}
.primary{background:#287eeb;color:#fff;border-color:#287eeb}
.captcha-box,.slider-track,.account-details dt{background:var(--account-soft)}
.brand-logo{width:40px;height:40px;object-fit:contain;display:block;flex-shrink:0}
.account-brand-images{display:inline-flex;flex-shrink:0}
.brand-logo-dark{display:none}
html[data-theme="dark"] .brand-logo-light{display:none}
html[data-theme="dark"] .brand-logo-dark{display:block}
.account-sitebar{max-width:1180px;margin:0 auto;padding:18px 24px;min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.account-sitebar>a{font-size:13px;font-weight:600;white-space:nowrap}
.account-sitebar-actions{display:flex;align-items:center;gap:10px}
.account-theme-button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:9px;background:var(--account-card);color:var(--ink);padding:9px 12px;min-height:38px;font-size:12px}
.account-sitebar+.page{min-height:calc(100vh - 68px);padding-top:8px}
html[data-theme="dark"] .notice.error,html[data-theme="dark"] .agreement-error,html[data-theme="dark"] .agreements.agreement-invalid{color:#ff9c9c}
html[data-theme="dark"] .notice.success{color:#7cd4b0}
@media(max-width:760px){.account-sitebar{padding:12px 16px;min-height:62px}.account-theme-button{padding:8px}.account-sitebar-actions{gap:6px}.account-sitebar+.page{min-height:calc(100vh - 62px)}.account-sitebar .portal-launcher-button{width:36px;height:36px}}

/* Compact account forms; policy, handoff and member pages keep their own layout. */
.auth-page .auth-brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:18px}
.auth-page .auth-layout{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:24px 16px 36px}
.auth-card{width:min(420px,100%);padding:30px 32px;background:var(--account-card);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 32px #183c6910}
.auth-register-card{width:min(560px,100%)}
.auth-heading h1{font-size:25px;line-height:1.4;margin:0 0 7px;font-weight:600}
.auth-heading .subline{margin:0 0 22px;font-size:13px;line-height:1.6}
.auth-page .field{margin:0 0 16px;min-width:0}
.auth-page .field span{font-size:13px;font-weight:500}
.auth-page .field em{font-size:12px;font-style:normal;font-weight:400;color:var(--muted);margin-left:3px}
.auth-page .field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.auth-page .field input,.auth-page select{height:42px}
.auth-page .form-options{margin:2px 0 16px}
.auth-page .agreements{margin:4px 0 16px}
.auth-page .remember-choice{margin:0 0 16px}
.auth-page .notice:empty,.auth-page .field-help:empty{display:none}
.auth-page .notice{margin:12px 0 0;min-height:0}
.auth-page .auth-help{display:block;font-size:12px;text-align:center;margin-top:20px;color:var(--muted)}
.auth-page .footer{margin:0}
.auth-page .optional-fields{margin:0 0 16px}
.auth-page .optional-fields .field{margin:10px 0 0}
.auth-page .location-field{border:0;padding:0;margin:0 0 16px;min-width:0}
.auth-page .location-field legend{font-size:13px;margin-bottom:7px}
.region-selects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.region-selects label{min-width:0}
.auth-page select{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:0 8px;background:var(--account-card);color:var(--ink);font:inherit;font-size:13px}
.auth-page select:disabled{color:var(--muted);background:var(--account-soft)}
.auth-page select:focus{border-color:var(--blue);outline:2px solid var(--blue);outline-offset:1px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.official-wechat-entry{margin-top:12px}.official-wechat-entry .wechat-note{margin:8px 0 0}.official-wechat-panel{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:9px;text-align:center;background:var(--account-soft)}.official-wechat-panel h2{margin:0 0 12px;font-size:16px;font-weight:600}.official-wechat-panel img{display:block;width:220px;max-width:100%;height:auto;aspect-ratio:1;margin:auto;padding:8px;background:#fff;border-radius:4px}.official-wechat-panel .actions{justify-content:center;flex-wrap:wrap;gap:8px;margin-top:14px}.official-wechat-panel .button{padding:9px 11px;font-size:12px}
.captcha-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px;background:#08142680;overflow:auto}
.captcha-dialog-card{width:min(360px,100%);padding:18px;background:var(--account-card);border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 70px #0004}
.captcha-dialog-heading,.captcha-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.captcha-dialog-heading{margin-bottom:14px}
.captcha-dialog-heading h2{margin:0;font-size:16px;font-weight:600}
.captcha-dialog-heading .text-button{font-size:25px;line-height:1;padding:3px 6px;color:var(--muted)}
.captcha-dialog-footer{margin-top:12px;min-height:20px}
.captcha-dialog-footer .notice{margin:0;min-height:0}
.captcha-dialog-footer .text-button{white-space:nowrap}
.captcha-open{overflow:hidden}
html[data-theme="dark"] .auth-page .slider-track.complete{background:#183d30;color:#9ee3bd}
@media(max-width:560px){.auth-page .auth-layout{justify-content:flex-start;padding-top:18px}.auth-card{padding:25px 22px}.auth-page .account-sitebar{gap:8px}.auth-page .auth-brand{font-size:16px}.auth-page .brand-logo{width:30px;height:30px}.auth-page .account-sitebar-actions>a{font-size:12px}}
@media(max-width:420px){.auth-page .field-row{grid-template-columns:1fr;gap:0}.auth-card{padding:23px 18px}.region-selects{gap:5px}.auth-page select{padding-left:5px;font-size:12px}.captcha-overlay{padding:10px}.captcha-dialog-card{padding:14px}}
