/* ===== 云仓进销存 · 轻量版 ===== */
:root{
  --bg:#f4f6f8;
  --panel:#ffffff;
  --line:#e6e9ee;
  --line-soft:#f1f3f6;
  --text:#151b23;
  --text-2:#4a5462;
  --muted:#8a94a3;
  --brand:#2f6df6;
  --brand-dark:#1f56d6;
  --brand-soft:#eef3ff;
  --red:#e5484d;
  --red-soft:#fdeceb;
  --green:#12a06a;
  --green-soft:#e7f7f0;
  --amber:#e08c00;
  --amber-soft:#fdf4e3;
  --purple:#7c5cf0;
  --radius:12px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.05);
  --shadow-md:0 8px 24px -6px rgba(16,24,40,.12), 0 2px 6px rgba(16,24,40,.05);
  --shadow-lg:0 24px 60px -12px rgba(16,24,40,.25);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg);color:var(--text);font-size:14px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
::selection{background:#cfe0ff}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#d3d8e0;border-radius:6px;border:2px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:#b9c0cb;background-clip:content-box}
::-webkit-scrollbar-track{background:transparent}

/* ===== 布局 ===== */
.app{display:flex;min-height:100vh}
.sidebar{
  width:232px;flex:0 0 232px;background:var(--panel);border-right:1px solid var(--line);
  position:sticky;top:0;height:100vh;display:flex;flex-direction:column;z-index:40;
}
.brand{display:flex;align-items:center;gap:10px;padding:18px 18px 14px}
.brand-mark{
  width:34px;height:34px;border-radius:9px;flex:0 0 34px;display:grid;place-items:center;
  background:linear-gradient(145deg,#3d7bfb,#2449c9);color:#fff;
  box-shadow:0 4px 12px -2px rgba(47,109,246,.45);
}
.brand-mark svg{width:19px;height:19px}
.brand-text{display:flex;flex-direction:column;line-height:1.25}
.brand-text strong{font-size:14.5px;letter-spacing:.2px}
.brand-text span{font-size:11px;color:var(--muted)}
.nav{flex:1;overflow-y:auto;padding:4px 10px 16px}
.nav-group{font-size:10.5px;letter-spacing:.1em;color:#a3abb8;font-weight:600;padding:14px 10px 6px;text-transform:uppercase}
.nav-item{
  display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;
  color:var(--text-2);font-size:13.5px;cursor:pointer;user-select:none;
  transition:background .14s,color .14s;
}
.nav-item svg{width:17px;height:17px;flex:0 0 17px;opacity:.75}
.nav-item:hover{background:#f4f6f9;color:var(--text)}
.nav-item.active{background:var(--brand-soft);color:var(--brand-dark);font-weight:600}
.nav-item.active svg{opacity:1}
.sidebar-foot{padding:12px 16px 16px;border-top:1px solid var(--line-soft)}
.storage-hint{font-size:11px;color:var(--muted)}
.storage-bar{height:4px;background:#eef0f4;border-radius:3px;margin-top:7px;overflow:hidden}
.storage-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#5b8ff9,#2f6df6);border-radius:3px;transition:width .4s}

.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{
  height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 26px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30;
}
.topbar-left{display:flex;align-items:center;gap:10px;min-width:0}
.crumb{font-size:11px;color:var(--muted);letter-spacing:.04em}
.page-title{font-size:16px;font-weight:650;letter-spacing:-.01em}
.topbar-right{display:flex;align-items:center;gap:14px}
.today{font-size:12.5px;color:var(--muted);white-space:nowrap}
.user-switch{display:flex;align-items:center;gap:8px;background:#f6f7fa;border:1px solid var(--line);border-radius:999px;padding:4px 6px 4px 4px}
.avatar{
  width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;
  background:linear-gradient(145deg,#8fb0ff,#4b7cf3);color:#fff;font-weight:600;flex:0 0 26px;
}
.user-switch select{border:0;background:transparent;font-size:13px;color:var(--text);outline:none;cursor:pointer;padding-right:4px;font-family:inherit;max-width:120px}

.view{padding:22px 26px 60px;max-width:1560px;width:100%;margin:0 auto;animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ===== 页头 ===== */
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.page-head h1{margin:0;font-size:19px;font-weight:650;letter-spacing:-.015em}
.page-head p{margin:4px 0 0;font-size:12.5px;color:var(--muted)}
.head-actions{display:flex;gap:8px;flex-wrap:wrap}

/* ===== 卡片 ===== */
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}
.card-head h3{margin:0;font-size:13.5px;font-weight:600}
.card-head .sub{font-size:11.5px;color:var(--muted);font-weight:400;margin-left:6px}
.card-body{padding:16px}
.card-body.tight{padding:0}

.grid-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:13px;margin-bottom:16px}
.kpi{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:15px 16px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden}
.kpi-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
.kpi-value{font-size:22px;font-weight:660;letter-spacing:-.02em;margin-top:7px;font-variant-numeric:tabular-nums}
.kpi-value small{font-size:12px;font-weight:500;color:var(--muted);margin-left:3px}
.kpi-foot{font-size:11.5px;color:var(--muted);margin-top:6px;display:flex;align-items:center;gap:5px}
.dot{width:6px;height:6px;border-radius:50%;display:inline-block}
.up{color:var(--red)}
.down{color:var(--green)}

.grid-2{display:grid;grid-template-columns:1.55fr 1fr;gap:14px}
.grid-2-even{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:1100px){.grid-2,.grid-2-even{grid-template-columns:1fr}}

/* ===== 表格 ===== */
.table-wrap{overflow:auto;max-height:none}
table.tb{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.tb th{
  text-align:left;font-weight:600;color:#79838f;font-size:11.5px;letter-spacing:.02em;
  padding:9px 14px;background:#fafbfc;border-bottom:1px solid var(--line);white-space:nowrap;
}
.tb td{padding:10px 14px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
.tb tbody tr:hover td{background:#fafbfd}
.tb tbody tr:last-child td{border-bottom:none}
.tb .num{text-align:right;font-variant-numeric:tabular-nums}
.tb .muted{color:var(--muted)}
.tb .strong{font-weight:600}
.tb td.name{font-weight:550;color:var(--text)}
.tb .sub{font-size:11.5px;color:var(--muted);font-weight:400;margin-top:1px}
.tb tr.row-alert td{background:#fffdf7}
.tb tr.row-alert:hover td{background:#fdf9ee}
.mini-th{font-size:10.5px;color:#aab2be;font-weight:500}

/* ===== 按钮 ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:34px;padding:0 13px;border-radius:8px;border:1px solid var(--line);
  background:#fff;color:var(--text-2);font-size:13px;font-weight:520;cursor:pointer;
  font-family:inherit;white-space:nowrap;transition:all .15s;
}
.btn:hover{background:#f7f8fa;border-color:#d8dde4;color:var(--text)}
.btn:active{transform:translateY(.5px)}
.btn svg{width:15px;height:15px}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 1px 2px rgba(47,109,246,.3)}
.btn-primary:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff}
.btn-danger{color:var(--red);border-color:#f3cfd0;background:#fff}
.btn-danger:hover{background:var(--red-soft);border-color:#eab6b8;color:#c93a3f}
.btn-ghost{border-color:transparent;background:transparent}
.btn-ghost:hover{background:#f2f4f7;border-color:transparent}
.btn-sm{height:28px;padding:0 9px;font-size:12px;border-radius:7px}
.btn-sm svg{width:13px;height:13px}
.icon-btn{width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--text-2)}
.icon-btn:hover{background:#f2f4f7}
.icon-btn svg{width:18px;height:18px}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* ===== 表单 ===== */
.field{display:flex;flex-direction:column;gap:5px;min-width:0}
.field > label{font-size:12px;color:#6d7784;font-weight:520}
.field .hint{font-size:11px;color:var(--muted)}
.input,.select,.textarea{
  height:34px;padding:0 10px;border:1px solid #dde1e7;border-radius:8px;background:#fff;
  font-size:13px;color:var(--text);outline:none;font-family:inherit;transition:border-color .15s,box-shadow .15s;width:100%;
}
.textarea{height:auto;padding:8px 10px;resize:vertical;min-height:64px;line-height:1.5}
.input:focus,.select:focus,.textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(47,109,246,.12)}
.input::placeholder,.textarea::placeholder{color:#b3bac4}
.input:disabled,.input[readonly]{background:#f7f8fa;color:#6b7280}
.select{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");background-repeat:no-repeat;background-position:right 9px center;padding-right:28px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.form-grid .full{grid-column:1/-1}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}
.search-box{position:relative;flex:1;min-width:180px;max-width:320px}
.search-box svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:#a8b0bc}
.search-box .input{padding-left:31px}
.toolbar{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-bottom:13px}
.toolbar .spacer{flex:1}

/* 分段控件 */
.seg{display:inline-flex;background:#f1f3f6;border-radius:9px;padding:3px;gap:2px}
.seg button{
  border:0;background:transparent;font-family:inherit;font-size:12.5px;color:#68727f;
  padding:5px 12px;border-radius:6px;cursor:pointer;font-weight:520;white-space:nowrap;transition:all .14s;
}
.seg button:hover{color:var(--text)}
.seg button.on{background:#fff;color:var(--text);box-shadow:0 1px 2px rgba(16,24,40,.1);font-weight:600}

/* ===== 徽标 ===== */
.badge{display:inline-flex;align-items:center;gap:4px;height:21px;padding:0 7px;border-radius:6px;font-size:11.5px;font-weight:560;white-space:nowrap}
.badge-gray{background:#f1f3f6;color:#6b7280}
.badge-blue{background:var(--brand-soft);color:var(--brand-dark)}
.badge-green{background:var(--green-soft);color:#0d7d53}
.badge-red{background:var(--red-soft);color:#c93a3f}
.badge-amber{background:var(--amber-soft);color:#a56800}
.badge-purple{background:#f1ecfe;color:#5b3fd1}
.tag{display:inline-block;padding:1px 6px;border-radius:5px;background:#f3f5f8;color:#6b7280;font-size:11px;font-weight:500}

/* ===== 弹窗 ===== */
.modal-backdrop{
  position:fixed;inset:0;background:rgba(19,25,34,.42);backdrop-filter:blur(2px);
  z-index:100;display:flex;align-items:flex-start;justify-content:center;
  padding:6vh 16px 4vh;overflow-y:auto;animation:fade .16s ease;
}
.modal{
  background:#fff;border-radius:14px;box-shadow:var(--shadow-lg);width:100%;max-width:560px;
  animation:pop .2s cubic-bezier(.2,.8,.3,1);display:flex;flex-direction:column;max-height:88vh;
}
.modal.wide{max-width:880px}
.modal.narrow{max-width:420px}
@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line-soft)}
.modal-head h3{margin:0;font-size:15px;font-weight:640}
.modal-head p{margin:3px 0 0;font-size:12px;color:var(--muted)}
.modal-body{padding:18px 20px;overflow-y:auto;flex:1}
.modal-foot{display:flex;justify-content:flex-end;gap:9px;padding:14px 20px;border-top:1px solid var(--line-soft);background:#fcfcfd;border-radius:0 0 14px 14px}

/* ===== 单据录入 ===== */
.items-editor{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:4px}
.items-editor table{width:100%;border-collapse:collapse;font-size:12.5px}
.items-editor th{background:#fafbfc;font-size:11px;color:#79838f;font-weight:600;padding:7px 8px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.items-editor td{padding:5px 6px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
.items-editor tr:last-child td{border-bottom:none}
.items-editor .input,.items-editor .select{height:31px;font-size:12.5px;padding:0 7px;border-radius:6px}
.items-editor .select{padding-right:22px;background-position:right 7px center}
.items-editor .num-in{text-align:right;font-variant-numeric:tabular-nums}
.ie-del{width:26px;height:26px;border-radius:6px;border:0;background:transparent;color:#b0b7c1;cursor:pointer;display:grid;place-items:center}
.ie-del:hover{background:var(--red-soft);color:var(--red)}
.ie-del svg{width:13px;height:13px}
.ie-empty{padding:22px;text-align:center;color:var(--muted);font-size:12.5px}
.ie-foot{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;background:#fcfcfd;border-top:1px solid var(--line-soft)}
.bill-sum{display:flex;align-items:baseline;gap:8px;font-size:12.5px;color:var(--muted)}
.bill-sum b{font-size:18px;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.stock-tip{font-size:11px;color:var(--muted);margin-top:3px}
.stock-tip.warn{color:var(--red)}

/* ===== 图表 ===== */
.chart-box{width:100%;overflow:hidden}
.chart-box svg{display:block;width:100%;height:auto}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;color:var(--text-2)}
.legend i{width:9px;height:9px;border-radius:3px;display:inline-block;margin-right:5px;vertical-align:middle}

/* ===== 提示 ===== */
.toast-root{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:300;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{
  background:#1c2430;color:#fff;font-size:13px;padding:9px 16px;border-radius:9px;
  box-shadow:0 10px 30px -8px rgba(0,0,0,.4);display:flex;align-items:center;gap:8px;
  animation:toastIn .22s cubic-bezier(.2,.8,.3,1);max-width:80vw;
}
.toast.err{background:#c93a3f}
.toast.ok{background:#0f7a52}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ===== 空状态 ===== */
.empty{padding:46px 20px;text-align:center;color:var(--muted)}
.empty svg{width:40px;height:40px;color:#ccd3dc;margin-bottom:10px}
.empty p{margin:0;font-size:13px}
.empty .sub{font-size:12px;color:#b3bac4;margin-top:4px}

/* ===== 列表/详情 ===== */
.dlist{display:grid;grid-template-columns:auto 1fr;gap:9px 16px;font-size:13px}
.dlist dt{color:var(--muted);font-size:12.5px;white-space:nowrap}
.dlist dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.divider{height:1px;background:var(--line-soft);margin:14px 0}
.notice{display:flex;gap:9px;padding:11px 13px;border-radius:9px;background:#f7f9fc;border:1px solid #e8eef7;font-size:12.5px;color:var(--text-2);line-height:1.55}
.notice.warn{background:#fffbf0;border-color:#f6e6c0;color:#8a6100}
.notice svg{width:15px;height:15px;flex:0 0 15px;margin-top:1px;opacity:.8}
.pill-stat{display:flex;gap:22px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line-soft)}
.pill-stat div{font-size:11.5px;color:var(--muted)}
.pill-stat b{display:block;font-size:15px;color:var(--text);font-variant-numeric:tabular-nums;margin-top:1px}
.row-flex{display:flex;align-items:center;gap:8px}
.money-pos{color:var(--red)}
.money-neg{color:var(--green)}
.mono{font-variant-numeric:tabular-nums}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-only{display:none}

/* ===== 响应式 ===== */
@media (max-width:900px){
  .sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);transition:transform .22s ease;box-shadow:var(--shadow-lg)}
  .sidebar.open{transform:none}
  .mobile-only{display:grid}
  .view{padding:16px 14px 50px}
  .topbar{padding:0 14px;height:60px}
  .today{display:none}
  .grid-kpi{grid-template-columns:repeat(2,1fr);gap:10px}
  .kpi-value{font-size:19px}
  .page-head{align-items:flex-start}
  .form-grid{grid-template-columns:1fr}
  .modal{max-width:100%}
  .modal-backdrop{padding:14px 10px}
}
@media (max-width:520px){
  .grid-kpi{grid-template-columns:1fr 1fr}
  .kpi{padding:12px}
}

/* 打印（打印单据） */
@media print{
  .sidebar,.topbar,.head-actions,.toolbar,.modal-foot{display:none!important}
  .modal-backdrop{position:static;background:#fff;padding:0;overflow:visible}
  .modal{box-shadow:none;max-width:100%}
}

/* ============================================================
   云端版新增：启动遮罩 / 登录页 / 账号菜单
   ============================================================ */
.boot-screen{position:fixed;inset:0;background:#fff;display:grid;place-content:center;justify-items:center;gap:16px;z-index:200}
.boot-logo{width:50px;height:50px;border-radius:15px;background:linear-gradient(145deg,#3d7bfb,#2449c9);color:#fff;display:grid;place-items:center;box-shadow:0 10px 26px -8px rgba(47,109,246,.55);animation:bootPulse 1.5s ease-in-out infinite}
.boot-logo svg{width:26px;height:26px}
.boot-text{font-size:12.5px;color:#8a94a3;letter-spacing:.02em}
@keyframes bootPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.94);opacity:.75}}

.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:#fff}
.auth-left{
  position:relative;overflow:hidden;color:#fff;padding:38px 46px;display:flex;flex-direction:column;
  background:linear-gradient(158deg,#101a2e 0%,#1c3670 42%,#2f6df6 100%);
}
.auth-left::before{
  content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-190px;top:-170px;
  background:radial-gradient(circle,rgba(255,255,255,.16),transparent 68%);
}
.auth-left::after{
  content:"";position:absolute;width:420px;height:420px;border-radius:50%;left:-150px;bottom:-180px;
  background:radial-gradient(circle,rgba(120,170,255,.22),transparent 70%);
}
.auth-brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;position:relative;z-index:1}
.auth-hero{margin:auto 0;max-width:430px;position:relative;z-index:1}
.auth-hero h1{margin:0 0 15px;font-size:29px;line-height:1.38;letter-spacing:-.025em;font-weight:650}
.auth-hero p{margin:0 0 28px;font-size:13.5px;line-height:1.75;color:rgba(255,255,255,.72)}
.auth-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:15px}
.auth-points li{display:flex;gap:12px;font-size:12.5px;line-height:1.6;color:rgba(255,255,255,.78)}
.auth-points li > span{
  flex:0 0 32px;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-size:14px;
  background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16);
}
.auth-points b{display:block;color:#fff;font-size:13px;font-weight:600;margin-bottom:2px}
.auth-foot{font-size:11.5px;color:rgba(255,255,255,.5);position:relative;z-index:1}

.auth-right{display:grid;place-items:center;padding:40px 26px;background:#fbfcfe}
.auth-card{width:100%;max-width:378px}
.auth-tabs{display:inline-flex;background:#eceff5;border-radius:9px;padding:3px;margin-bottom:24px}
.auth-tabs button{
  border:0;background:transparent;padding:6px 20px;border-radius:6px;font-size:13px;color:#6b7280;
  cursor:pointer;font-family:inherit;font-weight:500;transition:all .15s;
}
.auth-tabs button.on{background:#fff;color:#151b23;font-weight:600;box-shadow:0 1px 3px rgba(16,24,40,.12)}
.auth-title{font-size:21px;font-weight:660;letter-spacing:-.02em}
.auth-sub{font-size:12.5px;color:#8a94a3;margin:6px 0 20px}
#authForm .field{margin-bottom:13px}
.code-row{display:flex;gap:8px}
.code-row .input{flex:1;min-width:0}
.code-row .btn{flex:0 0 auto;min-width:104px}
.auth-err{
  background:#fdeceb;border:1px solid #f6cfcf;color:#c0393d;font-size:12.5px;
  padding:8px 11px;border-radius:8px;margin-bottom:12px;line-height:1.55;
}
.auth-submit{width:100%;height:40px;font-size:14px;margin-top:2px}
.auth-submit:disabled{opacity:.65}
.auth-links{display:flex;justify-content:space-between;margin-top:13px;min-height:16px}
.link{background:none;border:0;color:#2f6df6;font-size:12.5px;cursor:pointer;padding:0;font-family:inherit}
.link:hover{text-decoration:underline}
.auth-tip{margin-top:22px;font-size:11.5px;color:#a6aeb9;line-height:1.65}

/* 账号菜单 */
.acct{position:relative}
.acct-btn{
  display:flex;align-items:center;gap:8px;height:36px;padding:0 10px 0 4px;border-radius:999px;
  border:1px solid var(--line);background:#f8f9fb;cursor:pointer;font-family:inherit;transition:background .15s;
}
.acct-btn:hover{background:#f1f3f7}
.acct-btn svg{width:14px;height:14px;color:#9aa3ae}
.acct-name{font-size:12.5px;color:var(--text);max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-menu{
  position:absolute;right:0;top:44px;width:216px;background:#fff;border:1px solid var(--line);
  border-radius:12px;box-shadow:var(--shadow-md);padding:6px;z-index:60;animation:pop .16s ease;
}
.acct-menu-head{padding:9px 10px 11px;border-bottom:1px solid var(--line-soft);margin-bottom:5px;display:flex;flex-direction:column;gap:2px}
.acct-menu-head b{font-size:13px}
.acct-menu-head span{font-size:11.5px;color:#8a94a3;word-break:break-all}
.acct-menu button{
  border:0;background:transparent;width:100%;text-align:left;padding:8px 10px;border-radius:7px;
  font-size:13px;color:var(--text-2);cursor:pointer;font-family:inherit;
}
.acct-menu button:hover{background:#f4f6f9}
.acct-menu button.danger{color:var(--red)}
.acct-menu button.danger:hover{background:var(--red-soft)}

@media (max-width:900px){
  .auth-screen{grid-template-columns:1fr}
  .auth-left{padding:26px 22px 30px;min-height:auto}
  .auth-hero{margin:22px 0 0}
  .auth-hero h1{font-size:22px}
  .auth-hero p{margin-bottom:0;font-size:12.5px}
  .auth-points,.auth-foot{display:none}
  .auth-right{padding:26px 18px 40px;align-items:start}
  .acct-name{display:none}
}

/* hidden 属性优先级最高（避免被 display:grid/flex 覆盖） */
[hidden]{display:none !important}
