:root{--teacher-brand:#008b7a;--teacher-ink:#11213c;--teacher-muted:#61728f;--teacher-border:#e4eaf2;--teacher-bg:#f4faf9;--teacher-card:#fff;--teacher-danger:#b42318;font-family:"Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;color:var(--teacher-ink);background:var(--teacher-bg)}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.teacher-login{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);background:linear-gradient(115deg,#e9fbf8,#f8fcff 55%,#f2f8e8)}
.teacher-login__brand{padding:clamp(48px,9vw,136px);display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 12% 15%,#bdf5e8,transparent 36%),linear-gradient(145deg,#007e71,#075d68);color:#fff}
.teacher-login__brand-mark{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:26px;font-weight:700;background:#fff;color:var(--teacher-brand);box-shadow:0 12px 30px #003e4266}
.teacher-login__eyebrow,.teacher-card__eyebrow,.teacher-header__eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em}
.teacher-login__brand .teacher-login__eyebrow{margin:42px 0 12px;color:#c4fff2}
.teacher-login h1{margin:0;font-size:clamp(34px,4vw,60px);line-height:1.25}
.teacher-login__brand>p:not(.teacher-login__eyebrow){max-width:560px;font-size:18px;line-height:1.8;color:#ddfaf4}
.teacher-login__promises{padding:0;margin:24px 0 0;list-style:none;display:grid;gap:12px}
.teacher-login__promises li:before{content:"✓";display:inline-grid;place-items:center;width:22px;height:22px;margin-right:10px;border-radius:50%;background:#70eed2;color:#056d62;font-weight:800}
.teacher-login__panel{display:grid;place-items:center;background:#fff}
.teacher-login__panel-inner{width:min(100%,460px);padding:36px}
.teacher-login__logo{display:flex;align-items:center;gap:9px;color:var(--teacher-brand);font-weight:800}
.teacher-login__logo span{width:28px;height:28px;display:grid;place-items:center;border:1px solid #77e5d8;border-radius:9px}
.teacher-login__panel .teacher-login__eyebrow{margin:58px 0 8px;color:var(--teacher-brand)}
.teacher-login h2{font-size:32px;margin:0}
.teacher-login__description{color:var(--teacher-muted);margin:12px 0 30px}
.teacher-form{display:grid;gap:20px}
.teacher-form__field{display:grid;gap:8px}
.teacher-form label{font-weight:700;font-size:14px}
.teacher-form input{width:100%;min-height:48px;padding:12px 14px;border:1px solid #ccd7e5;border-radius:12px;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s}
.teacher-form input:focus{border-color:var(--teacher-brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--teacher-brand) 16%,transparent)}
.teacher-form__help{margin:0;color:var(--teacher-muted);font-size:12px}
.teacher-form__error{margin:0;color:var(--teacher-danger);font-size:13px}
.teacher-button{border:0;border-radius:12px;min-height:46px;padding:0 19px;cursor:pointer;font-weight:700;transition:transform .15s,opacity .15s;display:inline-grid;place-items:center}
.teacher-button:focus-visible,.teacher-nav__item:focus-visible,.teacher-shell__brand:focus-visible{outline:3px solid #f4bb23;outline-offset:3px}
.teacher-button:hover{transform:translateY(-1px)}
.teacher-button:disabled{cursor:wait;opacity:.72;transform:none}
.teacher-button__loading{display:none}
.teacher-button--loading>span:first-child{display:none}
.teacher-button--loading .teacher-button__loading{display:inline}
.teacher-button--primary{color:#fff;background:var(--teacher-brand);box-shadow:0 8px 18px color-mix(in srgb,var(--teacher-brand) 23%,transparent)}
.teacher-button--secondary{color:var(--teacher-brand);background:#eafaf7}
.teacher-button--wide{width:100%}
.teacher-demo-hint{margin-top:28px;padding:15px 16px;display:grid;gap:4px;border:1px solid #d7eee9;border-radius:13px;background:#f4fdfb;color:#456174;font-size:13px}
.teacher-demo-hint strong{color:#126c63}
.teacher-flash{padding:13px 15px;margin:0 0 20px;border-radius:12px;font-size:14px}
.teacher-flash--error{color:#8b241d;background:#fff2f0;border:1px solid #ffd3ce}
.teacher-flash--success{color:#136a57;background:#edfff8;border:1px solid #b8f0db}
.teacher-shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr);padding:24px;gap:18px;background:radial-gradient(circle at 90% 0,#e9f8d9,transparent 27%),linear-gradient(145deg,#effafa,#f7fbff)}
.teacher-shell__sidebar,.teacher-shell__header,.teacher-card{background:var(--teacher-card);border:1px solid #e8edf3;box-shadow:0 8px 25px #14365a0d;border-radius:22px}
.teacher-shell__sidebar{padding:18px;display:flex;flex-direction:column;min-height:calc(100vh - 48px)}
.teacher-shell__brand{display:flex;align-items:center;gap:11px;padding:7px 5px 24px}
.teacher-shell__brand img,.teacher-shell__brand-mark{width:42px;height:42px;border-radius:50%;object-fit:cover}
.teacher-shell__brand-mark{display:grid;place-items:center;background:#e9faf7;color:var(--teacher-brand);font-weight:800}
.teacher-shell__brand strong,.teacher-shell__brand small,.teacher-header__profile strong,.teacher-header__profile small{display:block}
.teacher-shell__brand small,.teacher-header__profile small{margin-top:3px;color:var(--teacher-muted);font-size:12px}
.teacher-nav{display:grid;gap:5px}
.teacher-nav__label{margin:18px 8px 5px;color:#8b9ab1;font-size:12px;font-weight:700}
.teacher-nav__item{padding:12px;border-radius:11px;color:#4a5f7c;font-weight:650}
.teacher-nav__item span{margin-right:9px}
.teacher-nav__item--active{background:var(--teacher-brand);color:#fff}
.teacher-shell__sidebar-note{margin-top:auto;padding:15px;border-radius:15px;background:#f0fcfa;color:#4e687d;font-size:13px;line-height:1.55}
.teacher-shell__sidebar-note strong,.teacher-shell__sidebar-note span{display:block}
.teacher-shell__sidebar-note strong{color:var(--teacher-brand);margin-bottom:4px}
.teacher-shell__main{min-width:0}
.teacher-shell__header{min-height:96px;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.teacher-header__eyebrow{margin:0 0 5px;color:var(--teacher-brand)}
.teacher-shell__header h1{margin:0;font-size:25px}
.teacher-header__profile{display:flex;align-items:center;gap:10px}
.teacher-header__avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e6faf6;color:var(--teacher-brand);font-weight:800}
.teacher-shell__content{width:min(100%,940px);padding:26px 2px 50px}
.teacher-card{padding:clamp(22px,4vw,34px);margin-bottom:18px}
.teacher-card__eyebrow{color:var(--teacher-brand);margin:0 0 8px}
.teacher-card h2{margin:0;font-size:22px}
.teacher-security__intro p:last-child,.teacher-card__heading p,.teacher-security__logout p{color:var(--teacher-muted);line-height:1.7}
.teacher-card__heading,.teacher-security__logout{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:26px}
.teacher-card__heading p,.teacher-security__logout p{margin:7px 0 0}
.teacher-status{padding:6px 10px;border-radius:99px;background:#eafaf7;color:var(--teacher-brand);font-size:12px;font-weight:700;white-space:nowrap}
.teacher-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.teacher-security__logout{align-items:center;margin:0}
.teacher-security__logout form{margin:0}
@media(max-width:850px){.teacher-login{grid-template-columns:1fr}
.teacher-login__brand{display:none}
.teacher-login__panel{min-height:100vh}
.teacher-shell{grid-template-columns:1fr;padding:12px}
.teacher-shell__sidebar{min-height:auto}
.teacher-shell__sidebar-note{display:none}
.teacher-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
.teacher-nav__label{grid-column:1/-1;margin-top:7px}
.teacher-shell__header{padding:18px}
.teacher-shell__content{padding:18px 2px}
}
@media(max-width:540px){.teacher-login__panel-inner{padding:28px 22px}
.teacher-login h2{font-size:27px}
.teacher-shell__header h1{font-size:21px}
.teacher-header__profile strong{font-size:14px}
.teacher-form__grid{grid-template-columns:1fr}
.teacher-card__heading,.teacher-security__logout{flex-direction:column}
.teacher-shell__sidebar{padding:13px}
.teacher-nav__item{font-size:14px}
.teacher-shell__brand{padding-bottom:12px}
}
.teacher-dashboard__hero,.teacher-wallet__hero,.teacher-wallet__purchase{display:flex;align-items:center;justify-content:space-between;gap:22px}
.teacher-dashboard__hero p:last-child,.teacher-wallet__hero p:last-child,.teacher-wallet__purchase p{color:var(--teacher-muted);line-height:1.7}
.teacher-dashboard__stats,.teacher-wallet__balances{display:grid;grid-template-columns:repeat(4,minmax(0, 1fr));gap:18px}
.teacher-dashboard__stats .teacher-card,.teacher-wallet__balances .teacher-card{margin:0;display:grid;gap:7px;min-width:0}
.teacher-dashboard__stats small,.teacher-wallet__balances small{color:var(--teacher-muted)}
.teacher-dashboard__stats strong,.teacher-wallet__balances strong{font-size:clamp(28px,4vw,42px);line-height:1;color:var(--teacher-brand)}
.teacher-dashboard__stats span,.teacher-wallet__balances span{color:var(--teacher-muted);font-size:13px;overflow-wrap: anywhere}
.teacher-dashboard__stats a{color:var(--teacher-brand);font-weight:700}
.teacher-dashboard__courses{display:grid;grid-template-columns:repeat(2,minmax(0, 1fr));gap:12px}
.teacher-dashboard__course{display:grid;gap:8px;padding:17px;border:1px solid var(--teacher-border);border-radius:15px;background:#fbfefd;min-width:0}
.teacher-dashboard__course strong,.teacher-dashboard__course small{overflow-wrap: anywhere}
.teacher-dashboard__course small{color:var(--teacher-muted)}
.teacher-wallet__sources{display:grid;grid-template-columns:repeat(3,minmax(0, 1fr));gap:12px;margin:0}
.teacher-wallet__sources div{padding:17px;border-radius:14px;background:#f4fbfa;min-width:0}
.teacher-wallet__sources dt{color:var(--teacher-muted);font-size:13px}
.teacher-wallet__sources dd{margin:7px 0 0;font-weight:800;overflow-wrap: anywhere}
.teacher-wallet__filters{display:grid;grid-template-columns:repeat(3,minmax(0, 1fr)) auto;gap:13px;align-items:end}
.teacher-wallet__filters select,.teacher-wallet__filters input{width:100%;min-height:48px;padding:12px 14px;border:1px solid #ccd7e5;border-radius:12px;background:#fff}
.teacher-wallet__table-wrap{overflow-x:auto}
.teacher-wallet__table{width:100%;min-width:720px;border-collapse:collapse;text-align:left}
.teacher-wallet__table th,.teacher-wallet__table td{padding:13px 10px;border-bottom:1px solid var(--teacher-border);vertical-align:top}
.teacher-wallet__table th{color:var(--teacher-muted);font-size:12px}
.teacher-wallet__table td{overflow-wrap: anywhere}
.teacher-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}
.teacher-pagination a{padding:8px 12px;border-radius:9px;background:#eafaf7;color:var(--teacher-brand);font-weight:700}
@media (max-width: 1024px){.teacher-dashboard__stats,.teacher-wallet__balances{grid-template-columns:repeat(2,minmax(0, 1fr))}.teacher-wallet__filters{grid-template-columns:repeat(2,minmax(0, 1fr))}}
@media (max-width: 768px){.teacher-dashboard__hero,.teacher-wallet__hero,.teacher-wallet__purchase{align-items:flex-start;flex-direction:column}.teacher-dashboard__stats,.teacher-wallet__balances,.teacher-dashboard__courses,.teacher-wallet__sources,.teacher-wallet__filters{grid-template-columns:minmax(0, 1fr)}.teacher-wallet__hero .teacher-button,.teacher-wallet__purchase .teacher-button{width:100%}}
