/* 统一账号 · 登录页、账号工作台与顶栏入口 */
.llx-account-slot{display:flex;align-items:center;min-width:0}
.llx-account-chip{
  min-height:38px;display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 7px;
  border:1px solid #b9d7ca;border-radius:12px;background:#f3fbf7;color:#174d3d;
  font:650 12.5px/1.2 "PingFang SC","Microsoft YaHei",sans-serif;text-decoration:none;
  cursor:pointer;white-space:nowrap;transition:transform .16s,border-color .16s,box-shadow .16s,background .16s
}
.llx-account-chip:hover{transform:translateY(-1px);border-color:#7db49e;background:#e9f7ef;box-shadow:0 8px 18px rgba(0,0,0,.1)}
.llx-account-chip:focus-visible{outline:2px solid #1f6b4f;outline-offset:3px}
.llx-account-avatar{
  width:27px;height:27px;border-radius:9px;display:grid;place-items:center;flex:none;
  background:#dff2e8;color:#1f6b4f
}
.llx-account-avatar svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.llx-account-copy{display:flex;flex-direction:column;min-width:0;text-align:left;line-height:1.15}
.llx-account-copy b{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#14382c;font-size:12.5px}
.llx-account-copy small{margin-top:3px;color:#5f786d;font-size:11px;font-weight:650}
.llx-floating-account{
  position:fixed;right:12px;bottom:10px;z-index:80;display:flex;align-items:center;gap:7px;
  padding:6px 10px;border:1px solid #c8dcd3;border-radius:999px;background:rgba(248,252,250,.96);
  box-shadow:0 5px 18px rgba(0,0,0,.12);color:#50675e;
  font:600 11.5px/1.2 "PingFang SC","Microsoft YaHei",sans-serif
}
.llx-floating-account button,.llx-floating-account a{
  border:0;background:none;color:#174d3d;text-decoration:none;cursor:pointer;
  font:inherit;padding:2px 4px;border-bottom:1px solid transparent
}
.llx-floating-account button:hover,.llx-floating-account a:hover{border-bottom-color:#8eb9a8}
.llx-floating-who{color:#173b2d;font-weight:750}
.llx-account-toast{
  position:fixed;left:50%;bottom:62px;z-index:160;transform:translate(-50%,8px);
  max-width:min(440px,calc(100vw - 32px));padding:10px 16px;border-radius:10px;
  background:#173b2d;color:#fff;font:650 12px/1.45 "PingFang SC","Microsoft YaHei",sans-serif;
  opacity:0;pointer-events:none;transition:opacity .18s,transform .18s
}
.llx-account-toast.is-visible{opacity:1;transform:translate(-50%,0)}

/* 登录页 */
.auth-body{
  min-height:100vh;margin:0;background:
    radial-gradient(circle at 12% 18%,rgba(175,224,199,.34),transparent 29%),
    radial-gradient(circle at 88% 82%,rgba(233,213,163,.24),transparent 27%),
    #eef8f1;color:#123528;
  font-family:"PingFang SC","Microsoft YaHei",sans-serif
}
.auth-shell{
  min-height:100vh;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(450px,1.1fr);
  position:relative;overflow:hidden
}
.auth-brand-panel{
  position:relative;display:flex;flex-direction:column;justify-content:space-between;
  padding:clamp(28px,5vw,68px);background:#164b3a;color:#f5fbf7;overflow:hidden
}
.auth-brand-panel::before{
  content:"";position:absolute;right:-120px;top:16%;width:420px;height:420px;border-radius:50%;
  border:1px solid rgba(213,240,225,.22);box-shadow:0 0 0 62px rgba(213,240,225,.055),0 0 0 125px rgba(213,240,225,.035)
}
.auth-brand-panel::after{
  content:"语";position:absolute;right:-10px;bottom:-62px;color:rgba(255,255,255,.055);
  font:800 clamp(220px,31vw,440px)/1 "Songti SC","SimSun",serif
}
.auth-brand{position:relative;z-index:1;display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}
.auth-brand-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.12)}
.auth-brand-mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.auth-brand b{font-size:16px;letter-spacing:.02em}
.auth-thesis{position:relative;z-index:1;max-width:510px;margin:60px 0}
.auth-thesis h1{
  margin:0;max-width:8.4em;font:800 clamp(38px,5.4vw,76px)/1.05 "Songti SC","SimSun",serif;
  letter-spacing:-.045em;text-wrap:balance
}
.auth-thesis p{margin:24px 0 0;max-width:36em;color:#c9e3d7;font-size:14px;line-height:1.85}
.auth-promise{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px}
.auth-promise span{
  padding:6px 10px;border:1px solid rgba(224,242,233,.2);border-radius:999px;
  color:#e1eee8;font-size:11px;font-weight:650;background:rgba(255,255,255,.045)
}
.auth-main{display:grid;place-items:center;padding:clamp(24px,5vw,72px)}
.auth-panel{width:min(520px,100%)}
.auth-back{display:inline-flex;align-items:center;gap:8px;color:#547067;text-decoration:none;font-size:12px;font-weight:650}
.auth-back:hover{color:#174d3d}
.auth-panel h2{margin:30px 0 0;color:#102f26;font:800 clamp(28px,4vw,42px)/1.18 "Songti SC","SimSun",serif;letter-spacing:-.035em}
.auth-intro{margin:10px 0 22px;color:#52695f;font-size:12.5px;line-height:1.75}
.auth-role{
  display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 18px;padding:5px;
  border:1px solid #d5e6de;border-radius:14px;background:#f5faf7
}
.auth-role button{
  min-height:62px;border:0;border-radius:10px;background:transparent;color:#405d52;cursor:pointer;
  display:flex;align-items:center;gap:10px;padding:9px 13px;text-align:left
}
.auth-role button.on{background:#fff;color:#164b3a;box-shadow:0 4px 16px rgba(0,0,0,.09)}
.auth-role svg{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.auth-role span{display:flex;flex-direction:column;gap:2px}
.auth-role b{font-size:13px}
.auth-role small{font-size:11px;color:#52695f;font-weight:550}
.auth-switch{display:flex;gap:18px;margin:0 0 16px;border-bottom:1px solid #dbe8e2}
.auth-switch button{
  position:relative;border:0;background:none;padding:0 0 10px;color:#73877f;cursor:pointer;
  font:650 12px/1 "PingFang SC","Microsoft YaHei",sans-serif
}
.auth-switch button.on{color:#174d3d}
.auth-switch button.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#1f6b4f}
.auth-form{display:flex;flex-direction:column;gap:12px}
.auth-field{display:flex;flex-direction:column;gap:6px}
.auth-field[hidden]{display:none}
.auth-field label{font-size:11.5px;font-weight:750;color:#405d52}
.auth-field input{
  width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbded6;border-radius:11px;
  background:#fbfefc;color:#14382c;font:400 14px/1.45 "PingFang SC","Microsoft YaHei",sans-serif;
  outline:none;transition:border-color .16s,box-shadow .16s,background .16s
}
.auth-field input:focus{border-color:#74aa94;background:#fff;box-shadow:0 0 0 3px rgba(31,107,79,.11)}
.auth-field input::placeholder{color:#5c7168}
.auth-help{color:#52695f;font-size:11px;line-height:1.55}
.auth-consent{display:flex;align-items:flex-start;gap:9px;margin-top:2px;color:#546d63;font-size:11.5px;line-height:1.6}
.auth-consent input{width:16px;height:16px;margin:2px 0 0;accent-color:#1f6b4f;flex:none}
.auth-consent a{color:#1f6b4f;text-underline-offset:3px}
.auth-field[hidden],.auth-consent[hidden]{display:none!important}
.auth-submit{
  min-height:48px;border:0;border-radius:11px;background:#1f6b4f;color:#fff;cursor:pointer;
  font:750 14px/1 "PingFang SC","Microsoft YaHei",sans-serif;
  box-shadow:0 8px 18px rgba(0,0,0,.14);transition:transform .16s,background .16s
}
.auth-submit:hover{transform:translateY(-1px);background:#185941}
.auth-submit:disabled{opacity:.62;cursor:wait;transform:none}
.auth-msg{min-height:20px;margin:1px 0 0;color:#6c8178;font-size:11.5px;line-height:1.55}
.auth-msg.bad{color:#a43e36}
.auth-msg.ok{color:#1f6b4f}
.auth-foot{margin:18px 0 0;color:#50675e;font-size:12px;line-height:1.7}

/* 账号工作台 */
.account-body{min-height:100vh;margin:0;background:#f3faf5;color:#123528;font-family:"PingFang SC","Microsoft YaHei",sans-serif}
.account-top{
  border-bottom:1px solid #dce9e2;background:rgba(249,253,251,.94);position:sticky;top:0;z-index:20;
  backdrop-filter:blur(12px)
}
.account-top-in{width:min(1120px,calc(100% - 32px));min-height:64px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.account-top .auth-brand{color:#164b3a}
.account-top .auth-brand-mark{background:#e3f3eb;color:#1f6b4f;width:36px;height:36px}
.account-nav{display:flex;align-items:center;gap:16px;font-size:12px;font-weight:650}
.account-nav a{color:#496359;text-decoration:none}
.account-nav a:hover{color:#164b3a}
.account-main{width:min(1120px,calc(100% - 32px));margin:auto;padding:44px 0 72px}
.account-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}
.account-head h1{margin:0;font:800 clamp(30px,4vw,48px)/1.12 "Songti SC","SimSun",serif;letter-spacing:-.04em}
.account-head p{margin:8px 0 0;color:#50685e;font-size:12.5px;line-height:1.7}
.account-role-badge{
  display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;
  background:#e2f2e9;color:#1f6b4f;font-size:11px;font-weight:800;white-space:nowrap
}
.account-grid{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.45fr);gap:18px;align-items:start}
.account-panel{border:1px solid #d9e8e1;border-radius:18px;background:#fff;padding:20px;box-shadow:0 10px 30px rgba(0,0,0,.05)}
.account-panel h2{margin:0;color:#173b2d;font:750 17px/1.3 "Songti SC","SimSun",serif}
.account-panel > p{margin:6px 0 16px;color:#536b61;font-size:11px;line-height:1.65}
.account-profile-name{margin:12px 0 2px;font-size:22px;font-weight:800;letter-spacing:-.02em}
.account-profile-id{color:#4f685c;font-size:11px}
.account-meta{display:grid;gap:9px;margin:20px 0 0}
.account-meta div{display:flex;justify-content:space-between;gap:12px;padding-top:9px;border-top:1px solid #edf3f0;font-size:11px}
.account-meta div[hidden]{display:none!important}
.account-meta dt{color:#536b61}
.account-meta dd{margin:0;color:#2b4a3f;font-weight:700;text-align:right}
.account-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.account-btn{
  min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;
  border:1px solid #bed8cd;border-radius:9px;background:#f6fbf8;color:#174d3d;text-decoration:none;cursor:pointer;
  font:700 11.5px/1 "PingFang SC","Microsoft YaHei",sans-serif
}
.account-btn:hover{background:#eaf6ef;border-color:#8dbda9}
.account-btn--primary{background:#1f6b4f;border-color:#1f6b4f;color:#fff}
.account-btn--primary:hover{background:#185941}
.account-btn--danger{background:#fff8f7;border-color:#e7c4c0;color:#a43e36}
.account-section{display:grid;gap:12px}
.account-empty{padding:28px 20px;border:1px dashed #c8ddd4;border-radius:13px;text-align:center;color:#71867d;font-size:11.5px;line-height:1.7}
.account-form-row{display:flex;gap:8px}
.account-form-row input,.account-form-grid input{
  min-width:0;flex:1;min-height:40px;padding:9px 11px;border:1px solid #cdded7;border-radius:9px;
  background:#fbfefc;color:#173b2d;font:400 12.5px/1.4 inherit;outline:none
}
.account-form-row input:focus,.account-form-grid input:focus{border-color:#74aa94;box-shadow:0 0 0 3px rgba(31,107,79,.1)}
.account-form-row button,.account-form-grid button{
  min-height:40px;padding:0 14px;border:0;border-radius:9px;background:#1f6b4f;color:#fff;
  font:700 11.5px/1 inherit;cursor:pointer
}
.account-class{border:1px solid #e0ece6;border-radius:13px;padding:15px;background:#fbfefc}
.account-class-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.account-class h3{margin:0;color:#173b2d;font-size:14px}
.account-class small{display:block;margin-top:4px;color:#526a60;font-size:11px}
.account-count{color:#1f6b4f;font-size:11px;font-weight:800;white-space:nowrap}
.account-student-list{display:grid;gap:0;margin:13px 0 0;border-top:1px solid #e8f0ec}
.account-student{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e8f0ec}
.account-student:last-child{border-bottom:0;padding-bottom:0}
.account-student b{display:block;color:#294a3e;font-size:11.5px}
.account-student small{color:#526a60;font-size:11px;margin-top:2px}
.account-student button{border:0;background:none;color:#944b43;font:650 11px/1 inherit;cursor:pointer;padding:4px}
.account-class .account-form-row{margin-top:12px}
.account-note{margin:0;padding:11px 12px;border:1px solid #e1ebe6;border-radius:10px;background:#f7faf8;color:#526a60;font-size:11px;line-height:1.65}
.account-loading{padding:70px 0;text-align:center;color:#51685e;font-size:12px}

html[data-theme="dim"] .llx-account-chip{background:#312922;border-color:#4a3f35;color:#f0e7d9}
html[data-theme="dim"] .llx-account-avatar{background:rgba(143,191,164,.16);color:#a8d2ba}
html[data-theme="dim"] .llx-account-copy b{color:#f0e7d9}
html[data-theme="dim"] .llx-account-copy small{color:#b3a595}
html[data-theme="dim"] .llx-floating-account{background:rgba(36,30,25,.95);border-color:#4a3f35;color:#c2b5a3}
html[data-theme="dim"] .llx-floating-account button,html[data-theme="dim"] .llx-floating-account a,
html[data-theme="dim"] .llx-floating-who{color:#f0e7d9}
html[data-theme="dim"] .auth-body{background:#1e1915;color:#f0e7d9}
html[data-theme="dim"] .auth-brand-panel{background:#15362c}
html[data-theme="dim"] .auth-panel h2,html[data-theme="dim"] .auth-role b{color:#f0e7d9}
html[data-theme="dim"] .auth-role small{color:#c2b5a3}
html[data-theme="dim"] .auth-intro,html[data-theme="dim"] .auth-help,html[data-theme="dim"] .auth-foot,
html[data-theme="dim"] .auth-consent{color:#c2b5a3}
html[data-theme="dim"] .auth-back{color:#b3a595}
html[data-theme="dim"] .auth-role{background:#2a231e;border-color:#4a3f35}
html[data-theme="dim"] .auth-role button.on{background:#3a312a}
html[data-theme="dim"] .auth-switch{border-color:#4a3f35}
html[data-theme="dim"] .auth-switch button{color:#b3a595}
html[data-theme="dim"] .auth-switch button.on{color:#a8d2ba}
html[data-theme="dim"] .auth-field label{color:#d8cbbd}
html[data-theme="dim"] .auth-field input{background:#2b241f;border-color:#4a3f35;color:#f0e7d9}
html[data-theme="dim"] .account-body{background:#1e1915;color:#f0e7d9}
html[data-theme="dim"] .account-top{background:rgba(36,30,25,.94);border-color:#4a3f35}
html[data-theme="dim"] .account-top .auth-brand{color:#f0e7d9}
html[data-theme="dim"] .account-nav a{color:#c2b5a3}
html[data-theme="dim"] .account-panel{background:#312922;border-color:#4a3f35}
html[data-theme="dim"] .account-panel h2,html[data-theme="dim"] .account-profile-name,
html[data-theme="dim"] .account-class h3{color:#f0e7d9}
html[data-theme="dim"] .account-panel > p,html[data-theme="dim"] .account-head p,
html[data-theme="dim"] .account-profile-id,html[data-theme="dim"] .account-student small{color:#c2b5a3}
html[data-theme="dim"] .account-meta div,html[data-theme="dim"] .account-student-list,
html[data-theme="dim"] .account-student{border-color:rgba(255,255,255,.08)}
html[data-theme="dim"] .account-student b{color:#eadfd0}
html[data-theme="dim"] .account-class{background:#2b241f;border-color:#4a3f35}
html[data-theme="dim"] .account-form-row input{background:#241e1a;border-color:#4a3f35;color:#f0e7d9}
html[data-theme="dim"] .account-empty{background:#2b241f;border-color:#4a3f35;color:#c2b5a3}

@media (max-width:860px){
  .auth-shell{grid-template-columns:1fr}
  .auth-brand-panel{min-height:250px;padding:28px 22px 24px}
  .auth-brand-panel::before{width:300px;height:300px;right:-150px;top:-40px}
  .auth-thesis{margin:35px 0 24px}
  .auth-thesis h1{font-size:clamp(34px,10vw,52px)}
  .auth-thesis p{max-width:30em;margin-top:14px;font-size:12.5px}
  .auth-main{padding:30px 18px 48px}
  .account-grid{grid-template-columns:1fr}
}
@media (max-width:520px){
  .llx-account-copy b{max-width:92px}
  .llx-account-copy small{display:none}
  .llx-floating-account{left:10px;right:10px;justify-content:center;flex-wrap:wrap}
  .auth-role{grid-template-columns:1fr}
  .auth-role button{min-height:54px}
  .account-main{width:min(100% - 24px,1120px);padding-top:28px}
  .account-top-in{width:calc(100% - 24px)}
  .account-head{align-items:flex-start;flex-direction:column}
  .account-form-row{flex-direction:column}
  .account-form-row button{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .llx-account-chip,.auth-submit,.llx-account-toast{transition:none}
}
