/* 页面视觉细节、登录表单和公告弹窗。 */
:root{--blue:#3c69d6;--blue-dark:#305abb;--text:#222d40;--muted:#5f6c80;--line:#e5eaf2;--radius:16px;--shadow:0 5px 20px rgba(45,68,101,.035)}
body{background:#f6f8fb;color:var(--text);font-family:"Microsoft YaHei","PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;font-weight:600}
body:before{display:none}
button,input,textarea{font-family:inherit}
button{font-weight:700}
button:focus-visible{outline:3px solid #b7caf6;outline-offset:3px}
.app-top{max-width:1400px;margin:auto}
.panel{background:#fff;border:1px solid #e4e9f1;backdrop-filter:none;box-shadow:var(--shadow)}
.brand-mini{font-size:15px;font-weight:700;gap:9px;letter-spacing:0}
.brand-mini>.ui-icon{width:32px;height:32px}
.top-pill,.ghost-btn{border-radius:9px;background:#fff;border:1px solid #e4e9f1;box-shadow:none;backdrop-filter:none;font-weight:700;color:#526278}
.ghost-btn:hover,.top-pill:hover{transform:none;box-shadow:none;background:#f6f9ff}
.ghost-btn.danger{background:#fff8f7;color:#b95550;border-color:#f3e3df}
.ui-icon{width:21px;height:21px;display:inline-block;flex-shrink:0;vertical-align:middle;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65;overflow:visible}
.icon-label,.section-title b,.work-title h2,.panel-head h2{display:inline-flex;align-items:center;gap:9px}
.icon-badge{display:inline-grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:9px;background:#edf3ff}
.icon-badge.violet{background:#f3effd}.icon-badge.teal{background:#eaf7f2}.icon-badge.amber{background:#fff4e5}
.work-title h2{font-size:25px;font-weight:700;letter-spacing:0;margin:0}
.work-title h2>.ui-icon{width:28px;height:28px}
.work-title p,.panel-head p{color:#627085;font-size:13px;font-weight:600;line-height:1.8}
.hint-pill{background:#eff7f4;color:#337c69;border:1px solid #dfede8;box-shadow:none;border-radius:8px;gap:6px;white-space:nowrap;font-weight:700}
.hint-pill>.ui-icon{width:17px;height:17px}
.section{border:1px solid #e8ecf3;border-radius:12px;background:#fff;padding:18px}
.section-title{align-items:center}
.section-title b{font-size:15px;font-weight:700}
.section-title>span{color:#68778d;font-weight:600}
.size-chip{position:relative;cursor:pointer}
.size-chip input{display:block;position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}
.size-chip span{border-radius:8px;border:1px solid #e0e6ef;color:#4b5b72;background:#fff;font-weight:700;box-shadow:none}
.size-chip input:checked+span{background:#edf3ff;border-color:#9db7ed;color:#375da6;box-shadow:none}
.size-chip input:focus-visible+span{outline:3px solid #bfd0f4;outline-offset:2px}
.size-chip input:disabled+span{opacity:.55;cursor:not-allowed}
.size-type-switch{display:flex;align-items:center;gap:6px;margin:0 0 14px;width:max-content;padding:3px;border:1px solid #e4e9f1;border-radius:8px;background:#f7f9fc}
.size-type-switch button{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:5px;background:transparent;color:#586b83;font-size:13px;font-weight:700;border:1px solid transparent}
.size-type-switch button.active{color:#3b5f9e;background:#fff;border-color:#dce5f3}
.size-type-switch .ui-icon{width:18px;height:18px}
.table-head{color:#52627a;font-weight:700;padding-bottom:10px}
.table-head>span{display:flex;align-items:center;gap:6px}
.table-head .ui-icon{width:16px;height:16px}
.item-row{border-radius:10px;border-color:#e7ecf3;box-shadow:none}
.item-row:focus-within{border-color:#b7c9ed;box-shadow:none}
.input,.login-input{border-radius:9px;border-color:#dce3ee;background:#fff;color:#26344b;font-size:15px;font-weight:700;box-shadow:none}
.input::placeholder,.login-input::placeholder{color:#758298;font-weight:600;font-size:13px}
.input:focus,.login-input:focus{border-color:#86a5e0;box-shadow:0 0 0 3px #eff4fc}
.cell .input{background:#f9fbfe;border-color:#e4eaf3}
.cell-label{color:#586a83;font-weight:700}
.delete-btn,.modal-close{display:inline-grid;place-items:center;border-radius:8px;background:#fff3f1;color:#bf6159}
.delete-btn:hover{background:#ffeae7}
.delete-btn .ui-icon,.modal-close .ui-icon{width:19px;height:19px}
.empty-loc{color:#65758c;font-weight:600;line-height:1.8}
.empty-loc .ui-icon{width:16px;height:16px;margin-right:4px}
.btn{border-radius:9px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:none}
.btn:active{transform:none}
.btn-primary{background:#426bd0;box-shadow:none}
.btn-primary:hover{background:#355ec1}
.btn-primary>.ui-icon{background:#fff;border-radius:5px;padding:3px;width:25px;height:25px}
.btn-light{background:#fff;border-color:#dfe6f1;color:#344762}
.btn-light:hover{background:#f6f9ff}
.progress-panel{border-radius:12px;box-shadow:none;border-color:#e3eaf3}
.progress-top{font-weight:700;color:#3c506f}
.progress-top span:last-child{color:#697c98}
.bar{background:#5b85df}
.result-box,.debug-box{background:#f6f8fc;color:#3b4d68;border:1px solid #e4eaf3;border-radius:9px;font-weight:600}
.toast{border-radius:10px;font-weight:700;box-shadow:0 5px 16px #24395714}
.modal{border-radius:16px;max-height:90vh;overflow:auto;background:#fff;border-color:#e5eaf2;box-shadow:0 14px 40px #1d30491a}
.modal-mask{backdrop-filter:none}
.modal-head h3{font-size:21px;font-weight:700;display:flex;align-items:center;gap:8px}
.modal-head p,.step p{color:#65768e;font-weight:600}
.step b{color:#364964;font-weight:700}

/* 登录页面保留表单，公告与更新记录统一在弹窗中显示。 */
.app.is-login{padding:46px 20px 40px}
.workspace.login-mode{width:min(490px,100%);margin:0 auto;padding-top:0}
.auth-panel{padding:29px 30px 26px;border-radius:16px}
@media(min-width:641px){
 .auth-panel{background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
}
.auth-panel .form-grid{gap:19px}
.label{font-size:14px;color:#354761;font-weight:700}
.label .icon-label{gap:7px}
.label .ui-icon{width:19px;height:19px}
.label small{font-size:12px;color:#71809a;font-weight:600}
.login-input{height:48px}
.auth-actions{gap:10px;margin-top:2px}
.auth-actions .btn{height:46px}
body.site-notice-open{overflow:hidden}
.site-notice-dialog{position:fixed;top:var(--notice-top,var(--island-top));left:var(--notice-center,50%);right:auto;bottom:auto;transform:translateX(-50%);width:min(420px,calc(100% - 40px));max-height:min(600px,calc(100vh - var(--notice-top,var(--island-top)) - 20px));max-height:min(600px,calc(100dvh - var(--notice-top,var(--island-top)) - 20px));margin:0;padding:0;border:1px solid #e3eaf4;border-radius:28px;background:#fbfcff;color:#26344c;box-shadow:0 24px 75px #324f7a26;overflow:hidden}
.site-notice-dialog[open]{display:flex;flex-direction:column;transform-origin:top center;animation:kmNoticeEnter 600ms cubic-bezier(.22,.8,.22,1) both}
.site-notice-dialog::backdrop{background:rgba(70,88,116,.16);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:kmNoticeBackdropIn 400ms ease-out both}
.site-notice-dialog[open].is-closing{animation:kmNoticeExit 420ms cubic-bezier(.4,0,.25,1) both}
.site-notice-dialog.is-closing::backdrop{animation:kmNoticeBackdropOut 420ms ease-in both}
@keyframes kmNoticeEnter{
 from{clip-path:inset(0 var(--notice-capsule-right,75px) calc(100% - var(--notice-capsule-height,46px)) var(--notice-capsule-left,75px) round 23px)}
 to{clip-path:inset(0 0 0 round 28px)}
}
@keyframes kmNoticeExit{from{clip-path:inset(0 0 0 round 28px)}to{clip-path:inset(0 var(--notice-capsule-right,75px) calc(100% - var(--notice-capsule-height,46px)) var(--notice-capsule-left,75px) round 23px)}}
@keyframes kmNoticeBackdropIn{from{opacity:0}to{opacity:1}}
@keyframes kmNoticeBackdropOut{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){
 .site-notice-dialog[open],.site-notice-dialog::backdrop{animation:none!important}
}
.site-notice-header{flex-shrink:0;padding:12px 22px 20px;text-align:center}
.site-notice-header h2{margin:0;color:#263750;font-size:18px;line-height:1.5;font-weight:700;letter-spacing:.02em}
.site-notice-header h2:focus{outline:none}
.site-notice-header p{margin:6px 0 0;color:#8e9ab0;font-size:11px;font-weight:400;line-height:1.6}
.site-notice-content{display:grid;gap:22px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 22px 22px;scrollbar-width:none;-ms-overflow-style:none}
.site-notice-content::-webkit-scrollbar{display:none;width:0;height:0}
.site-notice-actions{display:flex;flex-shrink:0;padding:0;border-top:1px solid #e2e9f3;background:#f4f7fc}
.site-notice-actions .btn{flex:1;min-width:0;min-height:53px;height:auto;margin:0;padding:14px 8px;border:0;border-radius:0;background:transparent;color:#547bb9;font-size:14px;font-weight:600;box-shadow:none}
.site-notice-actions .btn+.btn{border-left:1px solid #e2e9f3}
.site-notice-actions .btn-light{font-weight:400;color:#70819c}
.site-notice-actions .btn:hover{background:#eaf1fb}
.site-notice-actions .btn:active{background:#e2eaf6}
.site-notice-actions .btn:focus-visible{outline:2px solid #007aff;outline-offset:-5px}
.site-notice-dialog .content-heading{margin-bottom:10px}
.site-notice-dialog .content-heading h2{font-size:13px;color:#435875;gap:7px}
.site-notice-dialog .content-tag{display:none}
.site-notice-dialog .icon-badge{width:23px;height:23px;border-radius:7px}
.site-notice-dialog .icon-badge .ui-icon{width:16px;height:16px}
.site-notice-dialog .notice-body{padding:12px 13px;border:1px solid #e5ebf4;border-radius:14px;background:#f1f5fb}
.site-notice-dialog .notice-body p{font-size:12px;line-height:1.8;font-weight:400;color:#56647b}
.site-notice-dialog .notice-updated{margin-top:12px;text-align:right;font-size:10px;line-height:1.7;font-weight:400;color:#929fb3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.site-notice-dialog .update-meta h3{font-size:12px;color:#566c8a;font-weight:600}
.site-notice-dialog .update-meta time{font-size:10px;font-weight:400;color:#98a2b4}
.site-notice-dialog .update-entry ul{font-size:11px;font-weight:400;color:#7a889e;line-height:1.85}
.site-notice-dialog .update-entry{border-left-color:#e1e8f2}
.site-notice-dialog .icon-badge{background:#eff3fb}
.content-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.content-heading h2{font-size:14px;font-weight:700;color:#354965;display:flex;align-items:center;gap:8px;margin:0}
.content-heading>.content-tag{background:#f4f7fc;color:#6e7f9c;padding:2px 8px;border-radius:5px;font-size:11px;font-weight:600}
.content-heading .icon-badge{width:28px;height:28px;border-radius:8px}
.content-heading .ui-icon{width:19px;height:19px}
.notice-body{padding:12px 14px;background:#fffaf1;border:1px solid #f3e8d2;border-radius:9px}
.notice-body p{font-size:13px;line-height:1.9;font-weight:600;color:#796140;margin:0;overflow-wrap:anywhere}
.notice-body p+p{margin-top:5px}
.update-list{display:grid;gap:0}
.update-entry{padding:0 0 16px 16px;border-left:1px solid #e2e9f5;position:relative;margin-left:5px}
.update-entry:last-child{padding-bottom:0}
.update-entry:before{content:'';position:absolute;top:7px;left:-4px;width:7px;height:7px;border-radius:50%;background:#839fdc;border:2px solid #eff4ff;box-sizing:content-box;transform:translateX(-1px)}
.update-meta{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:6px}
.update-meta h3{font-size:13px;font-weight:700;color:#425775;margin:0}
.update-meta time{color:#70809a;font-size:11px;white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}
.update-entry ul{padding-left:16px;margin:0;color:#62748f;font-size:12px;line-height:1.85;font-weight:600}
.update-entry li{padding-left:1px;overflow-wrap:anywhere}
.update-entry li+li{margin-top:3px}
.update-entry li::marker{color:#97acd0}
@media(max-width:1060px){.size-grid.is-pants{grid-template-columns:repeat(6,1fr)}}
@media(min-width:1061px){.size-grid.is-pants{grid-template-columns:repeat(12,1fr)}}
@media(max-width:640px){
 .app.is-login{padding:24px 15px 30px}
 .auth-panel{padding:24px 21px;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
 .auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
 .auth-actions .btn{font-size:13px;padding:0 9px}
 .auth-actions .ui-icon{width:18px;height:18px}
 .auth-actions .btn-primary>.ui-icon{width:23px;height:23px}
 .login-input{font-size:16px}
 .site-notice-header{padding:12px 18px 17px}
 .site-notice-content{padding:0 18px 20px;gap:20px}
 .work-panel{border-radius:14px}
 .work-title h2{font-size:23px}
 .section{padding:15px;border-radius:10px}
 .section-title{align-items:flex-start}
 .section-title>span{font-size:11px;line-height:1.6;max-width:48%;text-align:right}
 .section-title b{font-size:14px;gap:7px}
 .size-grid.is-pants{grid-template-columns:repeat(4,1fr)}
 .form-actions .btn{width:100%}
 .update-meta{align-items:flex-start;gap:8px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* 商品标题、灵动岛与账号操作共享标题行。 */
.app:not(.is-login){padding-top:22px}
.workspace:not(.login-mode){margin-top:0}
.work-header{position:sticky;z-index:3;top:var(--island-top);display:grid;grid-template-columns:minmax(0,1fr) 270px minmax(0,1fr);align-items:start;gap:12px 18px;margin-bottom:16px;background:#fff;border-radius:12px}
.work-title{display:flex;align-items:center;min-width:0;min-height:46px}
.work-title h2{white-space:nowrap}
.work-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:46px;flex-wrap:wrap}
.work-account{display:inline-flex;align-items:center;gap:6px;color:#5a6d88;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.work-tools .ui-icon{width:18px;height:18px}
.compact-tool{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:31px;padding:0 8px;border-radius:6px;background:#f7f9fd;border:1px solid #e7edf5;color:#546883;font-size:12px;font-weight:700}
.compact-tool:hover{background:#eef4fd}
.compact-tool.danger{color:#b36960;background:#fff8f6;border-color:#f2e7e4}
.compact-tool:disabled{opacity:.5;cursor:not-allowed}
.work-subline{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.work-subline p{margin:0;color:#63758f;font-size:12px;line-height:1.7;font-weight:600}
.work-subline .hint-pill{height:28px;font-size:11px;padding:0 8px;margin:0}
.login-error{display:flex;align-items:flex-start;gap:6px;margin:0;padding:10px 12px;border-radius:8px;background:#fff6f3;color:#af6657;font-size:13px;font-weight:600;line-height:1.7}
.login-error .ui-icon{width:17px;height:17px;margin-top:2px}
@media(max-width:1100px){
 .work-header{grid-template-columns:minmax(0,1fr) 270px}
 .work-tools{grid-column:1/-1;min-height:31px;justify-content:flex-start;gap:9px}
 .work-account{margin-right:auto}
}
@media(max-width:640px){
 .app:not(.is-login){padding-top:14px}
 .work-header{grid-template-columns:minmax(0,1fr) clamp(100px,34vw,140px);gap:11px 10px;margin-bottom:14px}
 .work-title h2{font-size:clamp(16px,4.6vw,20px);gap:6px}
 .work-title h2>.ui-icon{width:21px;height:21px}
 .work-tools{width:100%;gap:9px}
 .work-account{margin-right:auto}
 .work-subline{align-items:flex-start;flex-direction:column;gap:7px}
 .work-subline p{font-size:12px}
}

/* 同一浏览器最近使用的手机号，最多三条。 */
.recent-phones{margin-top:-8px}
.recent-phone-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#718199;font-size:11px;font-weight:600}
.clear-phones{padding:2px 0;background:transparent;color:#75869f;font-size:11px;font-weight:600}
.clear-phones:hover{color:#476da9}
.recent-phone-list{display:flex;flex-wrap:wrap;gap:7px}
.recent-phone{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px 8px;border:1px solid #e4eaf3;background:#f9fbfe;color:#657894;border-radius:7px;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.recent-phone.selected{background:#eef4ff;border-color:#b5c9ed;color:#44699f}
.recent-phone .ui-icon{width:14px;height:14px}
.recent-phone:disabled{opacity:.6;cursor:not-allowed}

/* Account login: restrained tabs and secure remembered-device shortcut. */
.login-tabs{display:flex;gap:5px;padding:5px;margin-bottom:24px;border:1px solid #e5eaf2;border-radius:12px;background:#f4f6fa}
.login-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;padding:12px 8px;border:0;border-radius:8px;background:transparent;color:#738096;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.login-tabs button.active{background:#fff;color:#263c63;box-shadow:0 2px 7px #243b6410}
.login-tabs button:focus-visible,.password-toggle:focus-visible{outline:2px solid #7899d8;outline-offset:2px}
.password-wrap{position:relative;display:block}.password-wrap .login-input{width:100%;padding-right:66px;box-sizing:border-box}
.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:0;background:none;color:#647caa;font-size:13px;font-weight:700;cursor:pointer;padding:8px}
.remember-account{display:flex;align-items:flex-start;gap:9px;color:#48566d;font-size:14px;font-weight:700;cursor:pointer}
.remember-account input{width:16px;height:16px;margin:3px 0 0;accent-color:#6385c6}.remember-account small{display:block;color:#8a94a5;font-size:12px;font-weight:500;margin-top:4px}
.account-submit{width:100%}.saved-account{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce7f7;border-radius:12px;padding:15px;background:#f5f8fe}
.saved-account strong{display:block;color:#3a4e70;font-size:14px;overflow-wrap:anywhere}.saved-account span{display:block;margin-top:4px;color:#8793a7;font-size:12px;overflow-wrap:anywhere}.saved-account>div{min-width:0;flex:1}.quick-login{width:100%;font-size:13px}.auth-panel>.login-error{margin-top:16px}

/* 灵动岛：时钟、公告和操作反馈共用同一位置。 */
:root{--island-top:max(18px,env(safe-area-inset-top,0px))}
.app.is-login{padding-top:96px}
.app:not(.is-login){padding-top:22px}
.dynamic-island{position:fixed;z-index:100;top:var(--island-top);left:50%;transform:translateX(-50%);width:270px;max-width:calc(100% - 40px);border:1px solid #e0e8f3;border-radius:25px;background:linear-gradient(135deg,#fff,#f0f5fd);color:#27364e;box-shadow:0 8px 26px #42608b18;overflow:hidden;transition:width .45s cubic-bezier(.22,1,.36,1),border-radius .4s,box-shadow .4s}
.dynamic-island.is-notice-open{visibility:hidden}
.dynamic-island.has-message{width:390px;border-radius:26px;box-shadow:0 16px 40px #42608b24}
.work-header>.dynamic-island{position:relative;z-index:1;top:auto;left:auto;transform:none;width:100%;max-width:100%;margin:0;scroll-margin-top:18px}
.island-clock,.island-notice-bar{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:44px;min-height:44px;margin:0;padding:0 14px;background:transparent;color:#27364e;white-space:nowrap;font-variant-numeric:tabular-nums;flex-shrink:0}
.island-clock{cursor:pointer;border-radius:24px}
.island-clock:disabled{cursor:default;opacity:1}
.island-clock:focus-visible{outline:2px solid #8bb9ff;outline-offset:-4px}
.island-notice-bar{height:45px;min-height:45px}
.island-notice-bar{cursor:pointer;transition:background .2s}
.island-notice-bar:hover{background:#f0f5fc}
.island-notice-bar:focus-visible{outline:2px solid #8bb9ff;outline-offset:-5px;border-radius:24px}
.island-notice-bar:disabled{cursor:default;opacity:1}
.island-live-dot{width:5px;height:5px;flex-shrink:0;border-radius:50%;background:#69b99d;box-shadow:0 0 8px #69b99d25}
.island-time{font-size:14px;line-height:1;letter-spacing:.02em;font-weight:600}
.island-date{color:#7d8ba3;font-size:11px;font-weight:400;line-height:1}
.island-clock-divider{height:12px;width:1px;flex-shrink:0;background:#dbe4f1}
.island-message{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .4s cubic-bezier(.22,1,.36,1),opacity .25s}
.has-message .island-message{grid-template-rows:1fr;opacity:1}
.island-message-clip{min-height:0;overflow:hidden}
.island-message-inner{display:flex;align-items:flex-start;gap:11px;padding:3px 20px 18px}
.island-message-icon{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;border-radius:50%;background:#e9f1ff;color:#6087bd;font-size:15px;font-weight:600}
.success .island-message-icon{background:#eaf7f0;color:#438568}
.error .island-message-icon{background:#fff0eb;color:#ab6e5f}
.island-message p{margin:2px 0 0;font-size:13px;line-height:1.7;font-weight:500;color:#40536e;overflow-wrap:anywhere;max-height:180px;overflow:auto;scrollbar-width:none}
.island-message p::-webkit-scrollbar{display:none}
.island-live-region{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:640px){
 .app.is-login{padding-top:90px}.app:not(.is-login){padding-top:14px}
 .work-header .island-clock{flex-direction:column;gap:4px;padding:0 6px}
 .work-header .island-live-dot,.work-header .island-clock-divider{display:none}
 .work-header .island-time{font-size:13px}
 .work-header .island-date{font-size:10px}
 .work-header .island-message-inner{gap:6px;padding:2px 9px 12px}
 .work-header .island-message-icon{width:19px;height:19px;font-size:12px}
 .work-header .island-message p{font-size:12px;margin:0}
}
@media(prefers-reduced-motion:reduce){.dynamic-island,.island-message{transition:none!important}}

/* 仅调整登录页胶囊：利用标题上方留白，不改变标题和表单的位置。 */
.login-island-header{position:relative;height:0}
.login-island-header>.dynamic-island{position:absolute;top:-44px;left:50%;transform:translateX(-50%);width:250px;max-width:100%;margin:0;scroll-margin-top:18px}
.login-island-header>.dynamic-island.has-message{width:390px}
.login-island-header .island-clock{height:30px;min-height:30px;gap:8px;padding:0 12px}
.login-island-header .island-time{font-size:12px}
.login-island-header .island-date{font-size:10px}
@media(max-width:640px){
 .login-island-header>.dynamic-island{top:-36px;width:240px}
 .login-island-header .island-clock{height:26px;min-height:26px}
}

/* 电脑登录页下移，胶囊的位置与尺寸对齐登录后的标题行。 */
@media(min-width:641px){
 html{scrollbar-gutter:stable both-edges}
 .workspace.login-mode{margin-top:68px}
 .login-island-header>.dynamic-island{position:fixed;top:49px;left:50%;width:270px;max-width:calc(100% - 40px)}
 .login-island-header>.dynamic-island.has-message{width:270px}
 .login-island-header .island-clock{height:44px;min-height:44px;gap:10px;padding:0 14px}
 .login-island-header .island-time{font-size:14px}
 .login-island-header .island-date{font-size:11px}
}
@media(min-width:641px) and (max-width:1100px){
 .login-island-header>.dynamic-island{left:calc(100% - 190px)}
}
