/* 仁寿新科 · 教师工作台 */
:root{
  --blue:#1768f5;--blue2:#2f8bff;--navy:#142d5a;--ink:#1f3355;--ink2:#4c6386;--ink3:#8b9dbb;
  --line:#e6eefb;--bg:#f3f8ff;--card:#fff;--red:#d92d20;--green:#1a7a3c;
  --sh:0 8px 26px rgba(23,72,148,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);background:linear-gradient(180deg,#f7fbff,#eef5ff 320px,#f7fbff);min-height:100vh;font-size:14px}
a{color:var(--blue);text-decoration:none}
h1,h2{margin:0;font-weight:800;letter-spacing:.3px}
::selection{background:#c9ddff}

/* ================= 左侧功能区（框架） ================= */
.t-app{background:#f2f7fd}
.t-shell{display:flex;min-height:100vh;align-items:flex-start}

.t-sb{width:236px;flex:none;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;
  background:#fff;border-right:1px solid #e8f0fb;z-index:40}
.t-sb-brand{display:flex;align-items:center;gap:10px;height:64px;padding:0 18px;flex:none;
  border-bottom:1px solid #eff5fd;color:var(--navy)}
.t-sb-brand .t-logo{width:34px;height:34px}
.t-sb-brand .t-logo svg{width:21px;height:21px}
.t-bn b{font-size:15.5px;letter-spacing:1px;display:block;line-height:1.15}
.t-bn small{font-size:10px;color:var(--ink3);letter-spacing:2px}

.t-sb-cls{padding:15px 14px 4px;flex:none}
.t-sb-cls>span{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#a9b9d2}
.t-sb-pick{position:relative;display:block;margin-top:8px}
.t-sb-pick svg{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:15px;height:15px;
  fill:none;stroke:#8ba3c6;stroke-width:1.7;pointer-events:none}
.t-sb-sel{width:100%;height:38px;border:1px solid #dbe6f7;border-radius:10px;background:#fbfdff;
  font-family:inherit;font-size:13px;font-weight:600;color:#1f3355;padding:0 30px 0 11px;
  appearance:none;cursor:pointer;outline:0}
.t-sb-sel:focus{border-color:#8fc0ff;box-shadow:0 0 0 3px rgba(23,104,245,.08);background:#fff}
.t-sb-cname{display:flex;align-items:center;gap:9px;margin-top:8px;padding:9px 11px;border-radius:10px;
  background:linear-gradient(100deg,#eff6ff,#f7fbff);border:1px solid #ddeaff}
.t-sb-cname svg{width:17px;height:17px;flex:none;fill:none;stroke:#2f7bff;stroke-width:1.7}
.t-sb-cname b{display:block;font-size:13px;color:#1259d6;line-height:1.3}
.t-sb-cname small{font-size:10.5px;color:#7e94b6}
.t-sb-cname.empty{color:var(--ink3);font-size:12px;background:#f7fafd;border-style:dashed}

.t-sb-nav{flex:1;overflow-y:auto;padding:2px 12px 12px}
.t-sb-nav::-webkit-scrollbar{width:5px}
.t-sb-nav::-webkit-scrollbar-thumb{background:#dde8f6;border-radius:3px}
.t-sb-lb{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#a9b9d2;margin:15px 8px 6px}
.t-sb-nav a{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:10px;
  color:#41597c;font-size:13.5px;font-weight:600;line-height:1.2;transition:background .14s,color .14s}
.t-sb-nav a svg{width:17px;height:17px;flex:none;fill:none;stroke:#93a8c6;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;transition:stroke .14s}
.t-sb-nav a:hover{background:#f4f9ff;color:var(--blue)}
.t-sb-nav a:hover svg{stroke:var(--blue)}
.t-sb-nav a.on{background:linear-gradient(100deg,#eaf3ff,#f4f9ff);color:#1259d6;
  box-shadow:inset 0 0 0 1px #dbe9ff}
.t-sb-nav a.on svg{stroke:#1768f5}

.t-sb-me{flex:none;display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid #eff5fd;background:#fcfdff}
.t-sb-me .t-av{width:32px;height:32px;font-size:13px}
.t-me-n{display:flex;flex-direction:column;line-height:1.22;min-width:0;margin-right:auto}
.t-me-n b{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:82px}
.t-me-n small{font-size:10.5px;color:var(--ink3)}
.t-me-b{width:28px;height:28px;flex:none;border-radius:8px;display:grid;place-items:center;color:#93a8c6}
.t-me-b svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.t-me-b:hover{background:#eff5ff;color:var(--blue)}

.t-sb-mask{display:none;position:fixed;inset:0;background:rgba(16,40,80,.35);z-index:35;
  opacity:0;transition:opacity .2s;backdrop-filter:blur(1px)}
.t-sb-mask.on{display:block;opacity:1}

.t-wrap{flex:1;min-width:0;display:flex;flex-direction:column;min-height:100vh}
.t-topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;height:60px;
  padding:0 24px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid #e8f0fb}
.t-tb-t{display:flex;flex-direction:column;line-height:1.24;min-width:0}
.t-tb-t b{font-size:15px;letter-spacing:.4px}
.t-tb-t small{font-size:11.5px;color:var(--ink3)}
.t-tb-right{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
.t-tb-cls{font-size:12.5px;font-weight:700;color:#1259d6;background:#eef6ff;border-radius:8px;padding:5px 10px;white-space:nowrap}
.t-tb-day{font-size:11.5px;color:#a9b9d2;white-space:nowrap}
.t-burger{display:none;width:36px;height:36px;flex:none;border:1px solid #e2ecf9;background:#fff;
  border-radius:10px;cursor:pointer;place-items:center;color:#4c6386}
.t-burger svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}

/* ================= 主体 ================= */
.t-main{width:100%;max-width:1220px;margin:0 auto;padding:22px 26px 40px}
.t-foot{text-align:center;color:#a7b8d3;font-size:12px;padding:8px 0 26px}
.t-flash{background:#eaf6ee;border:1px solid #c9e8d4;color:#1a7a3c;padding:10px 14px;border-radius:10px;
  font-size:13px;margin-bottom:16px}
.t-flash.err{background:#fdeeee;border-color:#f6d3cf;color:#c0392b}

.t-hello{display:flex;align-items:flex-end;gap:16px;margin:4px 0 18px;flex-wrap:wrap}
.t-hello h1{font-size:24px;letter-spacing:.5px}
.t-hello p{margin:7px 0 0;color:var(--ink2);font-size:13.5px}
.t-hello p b{color:#1259d6}
.t-hello.small h1{font-size:21px}
.t-hero-badge{margin-left:auto;display:flex;align-items:center;gap:8px}
.t-role{background:#eef4ff;color:#43617f;font-size:12px;font-weight:700;padding:5px 10px;border-radius:20px}
.t-role.hd{background:#fff2e0;color:#b45309}
.t-role-2{font-size:12.5px;color:var(--ink3)}

/* 指标 */
.t-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.t-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:var(--sh)}
.t-stat span{font-size:12.5px;color:var(--ink3);font-weight:600}
.t-stat b{display:block;font-size:26px;font-weight:800;margin-top:4px;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.t-stat i{font-style:normal;font-size:12px;color:var(--ink3);font-weight:600;margin-left:3px}

/* 卡片 */
.t-card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh);overflow:hidden}
.t-card+.t-card{margin-top:14px}
.t-card-h{display:flex;align-items:center;gap:10px;padding:15px 18px 12px;border-bottom:1px solid #eff4fc;flex-wrap:wrap}
.t-card-h h2{font-size:15px}
.t-card-h .t-sub{font-size:12.5px;color:var(--ink3)}
.t-card-h .t-link{margin-left:auto;font-size:12.5px;font-weight:600}
.t-card-b{padding:14px 18px}
.t-card-b.nopad{padding:0}
.t-grid2{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:14px;align-items:start}
.t-side{min-width:0}
.t-muted{color:var(--ink3);font-size:13px;margin:2px 0}
.t-empty{text-align:center;color:var(--ink3);font-size:13px;padding:34px 10px}
.t-tip{color:var(--ink3);font-size:12px;margin:12px 2px 0}

/* 今日课程 */
.t-day{list-style:none;margin:0;padding:6px 0}
.t-day li{display:flex;align-items:center;gap:14px;padding:10px 18px;border-bottom:1px dashed #eef3fb}
.t-day li:last-child{border-bottom:0}
.t-day li.past{opacity:.58}
.t-day li.rest{background:#fafcff;opacity:.75}
.t-day li.now{background:linear-gradient(90deg,#eef6ff,#fbfdff);box-shadow:inset 3px 0 0 var(--blue)}
.t-tm{width:96px;flex:none;display:flex;flex-direction:column;line-height:1.3}
.t-tm b{font-size:13px}
.t-tm small{font-size:11.5px;color:var(--ink3);font-variant-numeric:tabular-nums}
.t-tc{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.t-subj{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:7px;background:#eef3fb;color:#3f5a80}
.t-subj.big{font-size:15px;padding:6px 13px;border-radius:9px}
.t-tch{font-size:13px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t-tch.me{color:#1259d6;font-weight:700}
.t-none{font-size:12.5px;color:#b3c2d8}
.t-tag{font-size:11px;font-weight:700;color:var(--blue);background:#eaf2ff;border-radius:20px;padding:3px 9px;white-space:nowrap}
.t-tag.now{color:#fff;background:linear-gradient(100deg,#2f8bff,#1768f5)}

/* 当前课 */
.t-now .t-now-box{display:flex;align-items:center;gap:14px}
.t-now-l{display:flex;flex-direction:column;gap:6px;min-width:0}
.t-now-l b{font-size:14px}
.t-now-l small{font-size:12px;color:var(--ink3)}
.t-now-r{margin-left:auto;font-size:12px;font-weight:700;color:#fff;background:linear-gradient(100deg,#2f8bff,#1768f5);
  padding:5px 11px;border-radius:20px;flex:none}

/* 班级列表 */
.t-clslist{list-style:none;margin:0;padding:6px 0}
.t-clslist a{display:flex;align-items:center;gap:8px;padding:9px 18px;color:var(--ink)}
.t-clslist a:hover{background:#f6faff}
.t-clslist li.on a{background:#eef6ff;box-shadow:inset 3px 0 0 var(--blue)}
.t-cn{font-weight:700;font-size:13.5px}
.t-cr{font-size:11.5px;color:var(--ink3)}
.t-cc{margin-left:auto;font-size:12px;color:var(--ink2);font-variant-numeric:tabular-nums}

/* 今天我的课 */
.t-mine{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.t-mine li{display:flex;align-items:center;gap:8px;font-size:13px}
.t-mine b{width:58px;flex:none;color:var(--ink2);font-weight:600;font-size:12.5px}
.t-mine a{color:var(--blue);font-size:12.5px}

/* 快捷 */
.t-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.t-quick a{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:var(--sh);
  display:flex;flex-direction:column;gap:4px;color:var(--ink)}
.t-quick a:hover{border-color:#bcd6ff;transform:translateY(-1px);transition:.15s}
.t-quick b{font-size:13.5px}
.t-quick small{font-size:12px;color:var(--ink3)}

/* ================= 课表 ================= */
.t-scroll{overflow-x:auto}
.t-tt{width:100%;border-collapse:separate;border-spacing:0;min-width:820px}
.t-tt th{background:#f7fbff;color:var(--ink2);font-size:12.5px;font-weight:700;padding:10px 8px;
  border-bottom:1px solid var(--line);border-right:1px solid #f0f5fd;text-align:center;white-space:nowrap}
.t-tt th small{display:block;font-size:10px;color:var(--blue);font-weight:600}
.t-tt th.today{background:#eef6ff;color:#1259d6}
.t-tt th.t-tt-p{width:104px;text-align:left;padding-left:16px}
.t-tt td{border-bottom:1px solid #f2f6fd;border-right:1px solid #f6f9fe;padding:6px;text-align:center;vertical-align:middle;height:56px}
.t-tt td.today{background:#fbfdff}
.t-tt td.t-tt-p{text-align:left;padding:6px 8px 6px 16px;background:#fcfdff}
.t-tt td.t-tt-p b{display:block;font-size:12.5px}
.t-tt td.t-tt-p small{font-size:11px;color:var(--ink3);font-variant-numeric:tabular-nums}
.t-tt tr.t-tt-rest td{background:#f8fafd;color:#a9b9d2;font-size:11.5px;height:30px;letter-spacing:2px}
.t-cell{display:flex;flex-direction:column;align-items:center;gap:3px}
.t-cell small{font-size:11px;color:var(--ink3);white-space:nowrap}
.t-cell.me{background:#eff7ff;border:1px solid #cfe4ff;border-radius:9px;padding:5px 4px}
.t-cell.me small{color:#1259d6;font-weight:600}
.t-dd{color:#cfdaea;font-size:12px}
.t-legend{margin-left:auto;font-size:11.5px;color:var(--ink3);display:flex;align-items:center;gap:6px}
.t-dot{width:8px;height:8px;border-radius:50%;background:#cdd8e8;display:inline-block}
.t-dot.me{background:var(--blue)}

/* 学科配色 */
.c-blue{background:#e8f1ff;color:#1a5fd0}.c-violet{background:#efe9ff;color:#6a3fd0}
.c-teal{background:#e2f6f2;color:#0f7c6c}.c-pink{background:#ffeaf2;color:#c31f63}
.c-orange{background:#fff0e2;color:#b35a08}.c-green{background:#e6f6e8;color:#1f7a35}
.c-red{background:#ffe9e6;color:#b7271a}.c-brown{background:#f4ece2;color:#85552a}
.c-cyan{background:#e2f5fb;color:#0b6f8c}.c-lime{background:#f0f8dd;color:#5b7a12}
.c-rose{background:#ffe9f0;color:#b81f4d}.c-amber{background:#fff6dd;color:#96660a}
.c-indigo{background:#e9ecff;color:#3a44b8}.c-slate{background:#eef2f8;color:#455a78}
.c-mist{background:#eef4f7;color:#5a7280}.c-gray{background:#f1f4f9;color:#63748f}

/* ================= 学生表 ================= */
.t-tbl{width:100%;border-collapse:separate;border-spacing:0;min-width:640px}
.t-tbl th{background:#f7fbff;color:var(--ink2);font-size:12px;font-weight:700;text-align:left;
  padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.t-tbl td{padding:10px 14px;border-bottom:1px solid #f3f7fd;font-size:13px}
.t-tbl tbody tr:hover{background:#fafdff}
.t-tbl .num{font-variant-numeric:tabular-nums;color:var(--ink2)}
.t-tbl .nm{font-weight:700}
.t-tbl .w60{width:60px}.t-tbl .w70{width:70px}.t-tbl .w90{width:90px}
.t-badge{font-size:11.5px;font-weight:700;color:#1a7a3c;background:#e9f7ee;border-radius:20px;padding:3px 9px}
.t-badge.off{color:#8b9dbb;background:#f0f4fa}
.t-search{margin-left:auto}
.t-search input{height:34px;width:190px;border:1px solid #dbe6f7;border-radius:9px;padding:0 12px;
  font-family:inherit;font-size:13px;outline:0;background:#fbfdff}
.t-search input:focus{border-color:#8fc0ff;box-shadow:0 0 0 3px rgba(23,104,245,.08)}

/* ================= 登录 / 改密 门户 ================= */
.tg-body{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  background:#fff;font-size:14px;letter-spacing:0}
.tg-body.tg-solo{grid-template-columns:minmax(0,1fr)}

/* —— 左侧品牌区 —— */
.tg-side{position:relative;overflow:hidden;display:flex;flex-direction:column;
  padding:clamp(30px,4.4vh,48px) clamp(30px,4vw,58px) clamp(26px,3.4vh,38px);color:#fff;
  background:linear-gradient(157deg,#2f83ff 0%,#1657e8 40%,#0a2c93 100%)}
.tg-grid{position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:58px 58px;
  -webkit-mask-image:radial-gradient(125% 95% at 18% 0%,#000 32%,transparent 80%);
  mask-image:radial-gradient(125% 95% at 18% 0%,#000 32%,transparent 80%)}
.tg-orb{position:absolute;border-radius:50%;pointer-events:none}
.tg-orb.a{width:560px;height:560px;right:-200px;top:-190px;
  background:radial-gradient(circle,rgba(122,192,255,.42),transparent 62%)}
.tg-orb.b{width:400px;height:400px;left:-180px;bottom:-210px;
  background:radial-gradient(circle,rgba(6,26,112,.42),transparent 66%)}
.tg-orb.c{width:230px;height:230px;left:38%;bottom:8%;animation:tgFloat 9s ease-in-out infinite;
  background:radial-gradient(circle,rgba(120,200,255,.16),transparent 68%)}
.tg-rings{position:absolute;right:-130px;top:-70px;width:430px;height:430px;border-radius:50%;
  border:1px solid rgba(255,255,255,.14);pointer-events:none}
.tg-rings:before,.tg-rings:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.1)}
.tg-rings:before{inset:56px}
.tg-rings:after{inset:116px;border-color:rgba(255,255,255,.07)}

.tg-brand{position:relative;z-index:1;display:flex;align-items:center;gap:13px;animation:tgIn .6s .05s both}
.tg-logo{width:46px;height:46px;border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.36),0 10px 22px rgba(4,32,100,.22)}
.tg-logo svg{width:26px;height:26px;display:block}
.tg-logo img{width:100%;height:100%;object-fit:cover;display:block}
.tg-bn{display:flex;flex-direction:column;line-height:1.28}
.tg-bn b{font-size:17px;letter-spacing:3.5px;font-weight:800}
.tg-bn small{font-size:10px;letter-spacing:3.2px;color:rgba(255,255,255,.6);font-weight:500}

.tg-hero{position:relative;z-index:1;margin:auto 0 0;padding-top:clamp(22px,4vh,40px);animation:tgIn .65s .14s both}
.tg-eyebrow{display:inline-block;font-size:9.5px;letter-spacing:3.6px;font-weight:700;
  color:rgba(255,255,255,.66);border:1px solid rgba(255,255,255,.24);border-radius:20px;padding:5px 11px 5px 13px}
.tg-hero h1{margin:15px 0 0;font-size:clamp(28px,3.1vw,42px);line-height:1.2;font-weight:800;letter-spacing:5px}
.tg-hero p{margin:12px 0 0;font-size:13.5px;letter-spacing:2.6px;color:rgba(255,255,255,.72)}

.tg-mock{position:relative;z-index:1;margin:clamp(20px,3.6vh,34px) 0 0;max-width:412px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);border-radius:17px;
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);overflow:hidden;
  box-shadow:0 24px 52px rgba(5,28,88,.32),inset 0 1px 0 rgba(255,255,255,.26);animation:tgIn .7s .24s both}
.tg-mock-h{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.14)}
.tg-mock-h b{font-size:12.5px;letter-spacing:1.2px}
.tg-mock-h span{font-size:11px;color:rgba(255,255,255,.58);letter-spacing:.6px}
.tg-mock ul{list-style:none;margin:0;padding:5px 0}
.tg-mock li{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:12px;color:rgba(255,255,255,.88)}
.tg-mock li+li{border-top:1px solid rgba(255,255,255,.07)}
.tg-mock li.on{background:rgba(255,255,255,.12)}
.tg-mock .tm{display:flex;flex-direction:column;line-height:1.3;width:44px;flex:none;
  font-variant-numeric:tabular-nums;font-weight:600}
.tg-mock .tm small{font-size:10px;color:rgba(255,255,255,.46);font-weight:400}
.tg-mock .sb{font-size:11px;font-weight:700;padding:2px 8px;border-radius:6px;
  background:rgba(255,255,255,.17);flex:none;letter-spacing:.5px}
.tg-mock .cl{color:rgba(255,255,255,.66);font-size:11.5px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.tg-mock em{margin-left:auto;flex:none;font-style:normal;font-size:10px;font-weight:700;letter-spacing:.8px;
  padding:3px 8px;border-radius:20px;background:#fff;color:#1355ef}
.tg-live{width:6px;height:6px;border-radius:50%;flex:none;background:#8df5bd;
  box-shadow:0 0 0 0 rgba(141,245,189,.75);animation:tgPing 2.4s ease-out infinite}

.tg-feats{position:relative;z-index:1;margin-top:auto;padding-top:clamp(18px,3vh,30px);
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;max-width:412px;
  animation:tgIn .7s .32s both}
.tg-feat{padding:12px 13px 13px;border-radius:13px;background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.tg-feat svg{width:17px;height:17px;display:block;margin-bottom:9px;fill:none;stroke:rgba(255,255,255,.82);
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tg-feat b{display:block;font-size:11.5px;font-weight:700;letter-spacing:1.2px;white-space:nowrap}
.tg-feat small{display:block;margin-top:4px;font-size:10px;letter-spacing:.2px;
  color:rgba(255,255,255,.55);white-space:nowrap}

/* —— 右侧表单区 —— */
.tg-main{position:relative;display:flex;align-items:center;justify-content:center;
  padding:clamp(28px,4vw,54px);background:
    radial-gradient(760px 400px at 106% -6%,rgba(96,160,255,.14),transparent 70%),
    radial-gradient(560px 320px at -10% 108%,rgba(23,104,245,.07),transparent 72%),
    linear-gradient(180deg,#fff,#f8fbff)}
.tg-card{width:min(392px,100%);animation:tgIn .6s .1s both}
.tg-card-pwd{width:min(432px,100%);padding:clamp(28px,3.4vw,38px) clamp(24px,3vw,36px) 26px;
  background:#fff;border:1px solid #e9f0fa;border-radius:24px;
  box-shadow:0 28px 66px rgba(26,78,158,.13),0 2px 6px rgba(26,78,158,.04)}
.tg-card-pwd .tg-mini{display:flex;margin-bottom:22px}
.tg-mini{display:none;align-items:center;gap:10px;margin-bottom:26px}
.tg-mini .tg-logo{width:38px;height:38px;border-radius:50%;background:#fff;overflow:hidden;
  border:0;box-shadow:0 8px 18px rgba(23,104,245,.26)}
.tg-mini .tg-logo svg{width:21px;height:21px}
.tg-mini .tg-bn b{font-size:15px;letter-spacing:2.4px;color:var(--navy)}
.tg-mini .tg-bn small{font-size:9.5px;letter-spacing:2.4px;color:var(--ink3)}

.tg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.tg-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:1.4px;
  color:#1355ef;background:#eef5ff;border:1px solid #dbe9ff;border-radius:20px;padding:5px 11px}
.tg-pill:before{content:"";width:5px;height:5px;border-radius:50%;background:#2f8bff}
.tg-head small{font-size:11.5px;color:#a7b7cd;letter-spacing:.4px}
.tg-card h2{margin:0;font-size:clamp(24px,2.4vw,30px);font-weight:800;letter-spacing:1.6px;color:var(--navy)}
.tg-sub{margin:10px 0 26px;font-size:13px;line-height:1.7;color:var(--ink3);letter-spacing:.3px}

.tg-f{margin-bottom:14px}
.tg-fl{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.tg-fl label{font-size:12.5px;font-weight:700;color:#33496d;letter-spacing:.6px}
.tg-fl .tg-hint{font-size:11.5px;color:#a7b7cd;letter-spacing:.2px}
.tg-rem{position:relative;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink3);
  cursor:pointer;user-select:none;line-height:1}
.tg-rem input{position:absolute;opacity:0;width:0;height:0;margin:0}
.tg-rem i{width:15px;height:15px;border-radius:4.5px;border:1.4px solid #cfdbec;background:#fff;
  display:grid;place-items:center;flex:none;transition:background .15s,border-color .15s}
.tg-rem i:after{content:"";width:7.5px;height:4px;border-left:1.8px solid #fff;border-bottom:1.8px solid #fff;
  transform:rotate(-45deg) translateY(-1px);opacity:0;transition:opacity .12s}
.tg-rem:hover i{border-color:#a9c1e2}
.tg-rem input:checked+i{background:var(--blue);border-color:var(--blue)}
.tg-rem input:checked+i:after{opacity:1}
.tg-rem input:focus-visible+i{box-shadow:0 0 0 3px rgba(23,104,245,.18)}
.tg-in{position:relative;display:flex;align-items:center;height:52px;border:1.5px solid #e3eaf6;
  border-radius:13px;background:#fbfdff;transition:border-color .18s,box-shadow .18s,background .18s}
.tg-in:hover{border-color:#cddcf2}
.tg-in:focus-within{border-color:#4d92ff;background:#fff;box-shadow:0 0 0 4px rgba(23,104,245,.09)}
.tg-in>svg{width:19px;height:19px;margin-left:15px;flex:none;fill:none;stroke:#95a8c5;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:stroke .18s}
.tg-in:focus-within>svg{stroke:var(--blue)}
.tg-in input{flex:1 1 auto;min-width:0;height:100%;border:0;outline:0;background:none;
  font-family:inherit;font-size:14.5px;color:#1f3355;padding:0 14px 0 11px;letter-spacing:.4px}
.tg-in input::placeholder{color:#b2c0d5;letter-spacing:.2px}
.tg-in input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #fbfdff inset;-webkit-text-fill-color:#1f3355}
.tg-eye{flex:none;width:38px;height:38px;margin-right:6px;border:0;background:none;border-radius:10px;
  cursor:pointer;display:grid;place-items:center;transition:background .15s}
.tg-eye svg{width:19px;height:19px;fill:none;stroke:#a3b3cb;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
.tg-eye:hover{background:#f2f7ff}
.tg-eye.on svg{stroke:var(--blue)}

.tg-msg{display:none;margin:8px 0 0;font-size:11.5px;color:#d9503f;letter-spacing:.2px;line-height:1.5}
.tg-msg.on{display:block}
.tg-caps{display:none;margin:-8px 0 12px;font-size:11.5px;color:#b45309;letter-spacing:.3px}
.tg-caps.on{display:block}

.tg-err{display:flex;align-items:flex-start;gap:8px;background:#fff6f5;border:1px solid #fad9d4;
  color:#bf2f22;border-radius:11px;padding:10px 12px;font-size:12.5px;line-height:1.55;
  margin:-3px 0 14px;animation:tgShake .48s cubic-bezier(.36,.07,.19,.97) both}
.tg-err svg{width:16px;height:16px;flex:none;margin-top:1px;fill:none;stroke:#d92d20;
  stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.tg-btn{position:relative;overflow:hidden;width:100%;height:52px;margin-top:7px;border:0;border-radius:13px;
  cursor:pointer;color:#fff;font-family:inherit;font-size:15px;font-weight:700;letter-spacing:4px;text-indent:4px;
  background:linear-gradient(100deg,#3d94ff,#1355ef 58%,#0e47d6);
  box-shadow:0 14px 28px rgba(21,88,240,.26);transition:transform .16s,box-shadow .16s}
.tg-btn:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(21,88,240,.32)}
.tg-btn:active{transform:none;box-shadow:0 10px 20px rgba(21,88,240,.24)}
.tg-btn:after{content:"";position:absolute;top:0;left:-62%;width:42%;height:100%;transform:skewX(-18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);
  animation:tgShine 4.8s ease-in-out 1.2s infinite}
.tg-btn[disabled]{cursor:default;transform:none;opacity:.85}
.tg-spin{display:none;width:15px;height:15px;margin-left:9px;vertical-align:-2px;
  border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:tgSpin .7s linear infinite}
.tg-btn.loading .tg-spin{display:inline-block}

.tg-note{display:flex;align-items:flex-start;gap:7px;margin:18px 0 0;font-size:11.5px;
  line-height:1.75;color:#93a6c4;letter-spacing:.2px}
.tg-note svg{width:15px;height:15px;flex:none;margin-top:2px;fill:none;stroke:#b6c5d9;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tg-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  margin-top:24px;padding-top:16px;border-top:1px solid #eff4fc;font-size:11px;color:#b0bfd4;letter-spacing:.3px}
.tg-foot a{font-size:12px;font-weight:600;color:#5b7bb0}
.tg-foot a:hover{color:var(--blue)}

/* 改密页附加 */
.tg-shield{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;margin-bottom:18px;
  background:linear-gradient(145deg,#eaf4ff,#dbeaff);border:1px solid #d4e6ff;
  box-shadow:0 10px 22px rgba(23,104,245,.12)}
.tg-shield svg{width:25px;height:25px;fill:none;stroke:var(--blue);stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.tg-steps{display:flex;align-items:center;gap:8px;margin:0 0 24px;font-size:11px;color:#a7b7cd;letter-spacing:.6px}
.tg-steps i{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-style:normal;
  font-size:10px;font-weight:700;background:#eef4fd;color:#8fa4c2;flex:none}
.tg-steps b{font-weight:600;color:#33496d}
.tg-steps .line{width:26px;height:1px;background:#e3ebf7;flex:none}
.tg-meter{display:none;align-items:center;gap:5px;margin:9px 0 0;height:15px}
.tg-meter.show{display:flex}
.tg-meter i{height:5px;flex:1;border-radius:3px;background:#e8eef8;transition:background .25s}
.tg-meter i.on1{background:#f2634f}.tg-meter i.on2{background:#f0a92e}
.tg-meter i.on3{background:#1fb571}
.tg-meter span{font-size:11px;color:#a7b7cd;min-width:44px;flex:none;text-align:right;letter-spacing:.2px;
  transition:color .2s}
.tg-meter.lv1 span{color:#d9503f}
.tg-meter.lv2 span{color:#c4860c}
.tg-meter.lv3 span{color:#149a5e}

@keyframes tgIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes tgFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}
@keyframes tgPing{0%{box-shadow:0 0 0 0 rgba(141,245,189,.7)}70%{box-shadow:0 0 0 7px rgba(141,245,189,0)}100%{box-shadow:0 0 0 0 rgba(141,245,189,0)}}
@keyframes tgShake{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-6px)}40%,60%{transform:translateX(6px)}}
@keyframes tgShine{0%{left:-62%}55%,100%{left:132%}}
@keyframes tgSpin{to{transform:rotate(360deg)}}

/* ================= 响应式 ================= */
@media(max-width:1180px){
  .t-grid2{grid-template-columns:minmax(0,1fr)}
  .t-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  .t-sb{position:fixed;left:0;top:0;transform:translateX(-102%);transition:transform .24s ease;
    box-shadow:0 18px 46px rgba(20,55,110,.18)}
  .t-sb.open{transform:none}
  .t-burger{display:grid}
  .t-tb-day{display:none}
  .t-main{padding:18px 18px 34px}
}
@media(max-width:760px){
  .t-topbar{height:56px;padding:0 14px}
  .t-tb-cls{font-size:11.5px;padding:4px 8px}
  .t-tb-t b{font-size:14px}
  .t-main{padding:16px 14px 30px}
  .t-hello h1{font-size:20px}
  .t-stats{gap:8px}
  .t-stat b{font-size:22px}
  .t-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
  .t-day li{padding:9px 12px;gap:9px}
  .t-tm{width:74px}
  .t-card .t-card-h{padding:12px 12px 10px}
  .t-search{width:100%}
  .t-search input{width:100%}
}
/* 门户：窄屏改单列，左侧品牌区收起，卡片带品牌头 */
@media(max-width:900px){
  .tg-body{grid-template-columns:minmax(0,1fr)}
  .tg-side{display:none}
  .tg-main{padding:34px 22px 40px;align-items:flex-start;min-height:100vh}
  .tg-card{width:min(430px,100%);margin:auto}
  .tg-card-pwd{box-shadow:0 18px 44px rgba(26,78,158,.1)}
  .tg-mini{display:flex}
  .tg-head{margin-bottom:18px}
  .tg-sub{margin-bottom:22px}
}
@media(max-width:420px){
  .tg-card h2{font-size:23px;letter-spacing:1px}
  .tg-in{height:50px}
  .tg-btn{height:50px}
  .tg-foot{margin-top:20px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.t-muted.small{font-size:12.5px;margin-top:6px;line-height:1.7}
.t-muted.small b{color:var(--ink)}

/* ================= 班级概况 ================= */
.t-ov{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:start}
.t-ov-col{min-width:0}
.t-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.t-info>div{background:#fafcff;border:1px solid #edf4fd;border-radius:11px;padding:11px 13px;min-width:0}
.t-info span{font-size:11.5px;color:var(--ink3);font-weight:600;letter-spacing:.2px}
.t-info b{display:block;font-size:14.5px;margin-top:4px;font-weight:700;word-break:break-all;line-height:1.35}
.t-note{margin:12px 0 0;padding:11px 13px;border-radius:11px;background:#fbfdff;border:1px dashed #e3ecfa;
  font-size:12.5px;color:var(--ink2);line-height:1.7}
.t-note b{color:var(--ink)}

/* 任课教师 */
.t-staff{display:grid;grid-template-columns:repeat(auto-fill,minmax(214px,1fr));gap:11px}
.t-stf{display:flex;align-items:center;gap:10px;padding:12px 13px;border:1px solid var(--line);
  border-radius:13px;background:#fff;min-width:0}
.t-stf.me{border-color:#cfe2ff;background:#f8fbff;box-shadow:inset 3px 0 0 var(--blue)}
.t-stf-av{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;
  font-size:14px;font-weight:800;color:#fff;background:linear-gradient(140deg,#6bb0ff,#1f6cf0)}
.t-stf.f .t-stf-av{background:linear-gradient(140deg,#f7a8c6,#e0568c)}
.t-stf-n{min-width:0;line-height:1.3}
.t-stf-n b{font-size:13.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t-stf-n small{font-size:11.5px;color:var(--ink3)}
.t-stf-h{margin-left:auto;flex:none;font-size:11.5px;color:var(--ink2);background:#f1f6ff;
  border-radius:20px;padding:3px 9px;font-variant-numeric:tabular-nums}
.t-stf-h i{font-style:normal;color:var(--ink3);font-size:10.5px}
.t-stf-tag{font-style:normal;margin-left:5px;font-size:10px;font-weight:700;color:#fff;
  background:linear-gradient(100deg,#2f8bff,#1768f5);border-radius:20px;padding:1px 6px;vertical-align:1px}
.t-stf.none .t-stf-av{background:#edf2f9;color:#9aabc2}
.t-stf.none .t-stf-n b{color:var(--ink3);font-weight:600}

/* ================= 座位图（只读） ================= */
.tb-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px}
.tb-rule{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ink2);
  background:#f7fbff;border:1px solid #edf4fd;border-radius:20px;padding:5px 11px}
.tb-rule b{color:var(--ink);font-variant-numeric:tabular-nums}
.tb-dot{width:8px;height:8px;border-radius:50%;flex:none}
.tb-dot.m{background:#4d93ff}.tb-dot.f{background:#ee74a5}.tb-dot.e{background:#d8e2f1}
.tb-scroll{overflow-x:auto;padding:2px 0 6px}
.tb-board{min-width:0;max-width:920px;margin:0 auto;padding:2px 0}
.tb-podium-row{display:flex;align-items:stretch;gap:8px;margin-bottom:12px}
.tb-podium{flex:1;min-width:0;height:46px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(100deg,#eef4ff,#e0ebff);border:1px solid #d6e4fa;
  color:#4a72b8;font-size:13px;font-weight:700;letter-spacing:7px}
.tb-pod{flex:0 0 80px;width:80px}
.tb-pod .tb-seat{height:100%;min-height:46px;border-style:solid;border-color:#e7d9c6;background:#fffaf2}
.tb-pod .tb-seat.empty{border-style:dashed}
.tb-row{display:grid;gap:8px;margin-bottom:8px}
.tb-seat{min-height:56px;border-radius:11px;border:1px dashed #dbe4f2;background:#fbfdff;
  display:flex;align-items:center;justify-content:center;transition:.12s}
.tb-seat.empty .tb-vac{font-size:12px;color:#cad5e6}
.tb-chip{width:100%;height:100%;min-height:54px;border-radius:10px;border:1px solid transparent;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  text-align:center;padding:5px 4px;user-select:none}
.tb-chip b{font-size:13px;line-height:1.25;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;max-width:100%}
.tb-chip small{font-size:10.5px;opacity:.72}
.tb-chip.m{background:#eaf2ff;border-color:#cfe0ff;color:#1458f4}
.tb-chip.f{background:#fdeef4;border-color:#f8d3e2;color:#c23b74}
.tb-aisle{align-self:stretch;border-radius:6px;background:#f6fafe;
  background-image:repeating-linear-gradient(180deg,#c9dcf5 0 5px,transparent 5px 12px);
  background-size:2px 100%;background-position:center;background-repeat:no-repeat;margin:2px 0}
.tb-aisle-h{position:relative;height:24px;margin:2px 0 10px;border-radius:6px;background:#f7fbff}
.tb-aisle-h:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;
  background-image:repeating-linear-gradient(90deg,#c3d8f2 0 6px,transparent 6px 14px);background-size:100% 1px}
.tb-aisle-h span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  background:#f7fbff;padding:0 10px;font-size:10px;letter-spacing:3px;color:#a7bcd8}
.tb-tip{font-size:11.5px;color:var(--ink3);margin:10px 0 0;line-height:1.7}

/* ================= 作息时间 ================= */
.t-pd{list-style:none;margin:0;padding:4px 0}
.t-pd li{display:flex;align-items:center;gap:14px;padding:11px 18px;border-bottom:1px dashed #eef3fb}
.t-pd li:last-child{border-bottom:0}
.t-pd li.rest{background:#fafcff}
.t-pd li.now{background:linear-gradient(90deg,#eef6ff,#fbfdff);box-shadow:inset 3px 0 0 var(--blue)}
.t-pd li.past{opacity:.55}
.t-pd .tm{width:118px;flex:none;font-variant-numeric:tabular-nums;font-size:13px;font-weight:700}
.t-pd .nm{font-size:13.5px;font-weight:700;min-width:96px}
.t-pd .kd{font-size:11.5px;color:var(--ink3);background:#f2f6fd;border-radius:20px;padding:3px 9px}
.t-pd .kd.rest{background:#f7f3e9;color:#a37a2a}
.t-pd .st{margin-left:auto;font-size:11.5px;font-weight:700;color:#8fa4c2}
.t-pd .st.now{color:#fff;background:linear-gradient(100deg,#2f8bff,#1768f5);padding:3px 10px;border-radius:20px}

@media(max-width:980px){
  .t-ov{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  .t-info{grid-template-columns:minmax(0,1fr)}
  .t-staff{grid-template-columns:minmax(0,1fr)}
  .t-pd li{padding:10px 12px;gap:9px}
  .t-pd .tm{width:96px;font-size:12px}
  .t-pd .nm{min-width:0;font-size:13px}
  .tb-chip b{font-size:12px}
  .tb-seat{min-height:50px}
  .tb-row{gap:5px;margin-bottom:5px}
  .tb-pod{flex:0 0 62px;width:62px}
}

/* 概况页常用入口 */
.t-short{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.t-short a{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border:1px solid #edf4fd;
  border-radius:11px;background:#fafcff;color:var(--ink);transition:.14s}
.t-short a:hover{border-color:#bcd6ff;background:#f6fbff;transform:translateY(-1px)}
.t-short b{font-size:13px}
.t-short small{font-size:11.5px;color:var(--ink3)}
@media(max-width:420px){.t-short{grid-template-columns:minmax(0,1fr)}}

/* 通讯录 */
.t-tbl-c{min-width:760px}
.t-no{display:block;font-size:11px;color:var(--ink3);font-weight:500;margin-top:2px}
.t-pm{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;margin-right:8px;white-space:nowrap}
.t-pm i{font-style:normal;font-size:10.5px;color:var(--ink3);background:#f2f6fd;border-radius:20px;padding:1px 6px}
.t-tbl .w130{width:130px}.t-tbl .w120{width:120px}.t-tbl .w140{width:140px}
@media(max-width:760px){
  .t-tbl th,.t-tbl td{padding:9px 10px}
}

/* ================= 登录方式切换 + 扫码登录 ================= */
.tg-tabs{display:flex;gap:6px;padding:5px;margin:0 0 22px;background:#f1f6fd;border-radius:12px}
.tg-tab{flex:1;height:40px;border:0;border-radius:9px;background:transparent;cursor:pointer;
  font-family:inherit;font-size:13.5px;font-weight:700;color:#7f93b3;letter-spacing:1px;
  transition:background .16s,color .16s,box-shadow .16s}
.tg-tab.on{background:#fff;color:var(--blue);box-shadow:0 4px 12px rgba(23,72,148,.1)}

.tg-qr-wrap{display:flex;flex-direction:column;align-items:center;margin:2px 0 0}
.tg-qr-box{position:relative;width:200px;height:200px;padding:10px;border-radius:16px;background:#fff;
  border:1px solid #e6eefb;box-shadow:0 10px 26px rgba(23,72,148,.08);cursor:pointer}
.tg-qr-box img{width:100%!important;height:100%!important;display:block}
.tg-qr-box canvas{width:100%!important;height:100%!important}
.tg-qr-mask{position:absolute;top:10px;right:10px;bottom:10px;left:10px;
  display:flex;align-items:center;justify-content:center;border-radius:10px;
  background:rgba(255,255,255,.92);font-size:12px;color:#8b9dbb;text-align:center;line-height:1.6;padding:0 12px}
.tg-qr-state{margin-top:14px;font-size:12.5px;color:var(--ink3);letter-spacing:.3px;min-height:18px}
.tg-qr-state.wait{color:var(--blue)}
.tg-qr-state.ok{color:var(--green);font-weight:700}
.tg-qr-tip{margin:14px 0 0;font-size:12px;line-height:1.9;color:#93a6c4;text-align:center}
.tg-qr-tip b{color:var(--blue)}
.tg-qr-refresh{margin:16px auto 0;display:block;height:38px;padding:0 22px;border-radius:10px;
  border:1px solid #d7e5fa;background:#fff;cursor:pointer;font-family:inherit;font-size:12.5px;
  font-weight:700;color:#4a6da3;letter-spacing:.6px}
.tg-qr-refresh:hover{border-color:#b9d3f7;color:var(--blue)}

.tg-pane[hidden]{display:none}

/* 手机相机扫到二维码时的引导页 */
.tg-qr-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px}
.tg-qr-card{width:100%;max-width:360px;background:#fff;border-radius:20px;padding:38px 26px 28px;
  box-shadow:var(--sh);text-align:center;border:1px solid #eaf2fd}
.tg-qr-logo{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin:0 auto 18px;
  border-radius:18px;background:linear-gradient(135deg,#3d94ff,#1355ef)}
.tg-qr-logo svg{width:36px;height:36px}
.tg-qr-card h1{font-size:20px;color:var(--navy)}
.tg-qr-card p{margin:12px 0 0;font-size:13px;line-height:1.9;color:var(--ink2)}
.tg-qr-card p b{color:var(--blue)}
.tg-qr-hint{margin-top:22px!important;font-size:11px!important;color:#b0bfd4!important}

@media(max-width:860px){
  .tg-tabs{display:none}
}

/* ================= macOS 风格登录门户 ================= */
body.tg-body{
  position:relative;min-height:100vh;box-sizing:border-box;margin:0;
  padding:clamp(16px,3vw,40px) clamp(24px,6vw,90px);
  display:flex;align-items:center;justify-content:flex-end;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
  background:
    linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.03) 32%,rgba(246,250,255,.6) 54%,rgba(255,255,255,.9) 76%),
    linear-gradient(180deg,rgba(16,52,120,.06),rgba(16,52,120,.16)),
    url("login-bg.jpg") center center / cover no-repeat fixed;
  background-color:#cddff5
}
body.tg-body::before,body.tg-body::after{content:none;display:none}

/* 左侧宣传区整体移除（登录改密改为单窗口） */
.tg-side{display:none!important}
.tg-main{position:relative;z-index:1;width:100%;display:flex;align-items:center;justify-content:flex-end;
  padding-right:clamp(0px,4vw,64px);min-height:auto;background:transparent}

/* —— macOS 窗口 —— */
.tg-card{
  position:relative;box-sizing:border-box;width:min(470px,100%);overflow:hidden;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.96);border-radius:20px;
  box-shadow:0 42px 92px rgba(12,38,88,.34),0 2px 8px rgba(12,38,88,.14),inset 0 1px 0 rgba(255,255,255,.98);
  backdrop-filter:blur(40px) saturate(180%);-webkit-backdrop-filter:blur(40px) saturate(180%);
  animation:tgIn .6s .06s both
}
.tg-titlebar{
  position:relative;height:46px;display:flex;align-items:center;justify-content:center;
  background:rgba(246,249,255,.56);border-bottom:1px solid rgba(60,90,140,.1)
}
.tg-dots{position:absolute;left:18px;top:50%;transform:translateY(-50%);display:flex;gap:8px}
.tg-dots i{display:block;width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.06)}
.tg-dots i:nth-child(1){background:#ff5f57}
.tg-dots i:nth-child(2){background:#febc2e}
.tg-dots i:nth-child(3){background:#28c840}
.tg-wtitle{font-size:12px;font-weight:600;color:#7a899f;letter-spacing:.6px}
.tg-secure{position:absolute;right:18px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:4px;
  font-size:10.5px;color:#4a9d6d;font-weight:600;letter-spacing:.2px}
.tg-secure svg{width:12px;height:12px;fill:none;stroke:#4a9d6d;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tg-inner{padding:26px clamp(24px,5vw,38px) 18px}

/* 品牌：窗口内居中抬头 */
.tg-brand-c{display:flex;align-items:center;gap:13px;margin:0 0 20px}
.tg-brand-c .tg-logo{
  width:52px;height:52px;flex:none;border-radius:15px;background:#fff;overflow:hidden;
  display:grid;place-items:center;box-shadow:0 8px 20px rgba(28,70,150,.16),inset 0 0 0 1px rgba(0,0,0,.03)
}
.tg-brand-c .tg-logo img{width:100%;height:100%;object-fit:cover;display:block}
.tg-brand-c .tg-bn{display:flex;flex-direction:column;line-height:1.35;gap:2px}
.tg-brand-c .tg-bn b{font-size:17px;letter-spacing:2px;font-weight:700;color:var(--navy)}
.tg-brand-c .tg-bn small{font-size:11px;letter-spacing:1.4px;color:#93a2ba;font-weight:500}
.tg-verified{margin-left:auto;display:inline-flex;align-items:center;gap:3px;flex:none;
  font-size:10px;font-weight:600;color:#2f7fd6;background:rgba(47,127,214,.09);
  border:1px solid rgba(47,127,214,.16);border-radius:20px;padding:4px 8px;letter-spacing:.2px}
.tg-verified svg{width:11px;height:11px;fill:none;stroke:#2f7fd6;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.tg-card h2{margin:0;font-size:27px;font-weight:700;letter-spacing:.4px;color:#1d2c46}
.tg-sub{margin:8px 0 26px;font-size:13px;line-height:1.6;color:#8a99b2;letter-spacing:.2px}

/* 表单：白底、克制描边、苹果蓝主按钮 */
.tg-tabs{background:rgba(120,140,180,.12);border:1px solid rgba(255,255,255,.86);border-radius:11px;padding:4px}
.tg-tab{height:38px;border-radius:8px;font-weight:600}
.tg-tab.on{background:#fff;box-shadow:0 2px 9px rgba(30,58,110,.12)}
.tg-in{
  height:48px;border:1px solid rgba(60,90,140,.16);border-radius:11px;
  background:rgba(255,255,255,.88);box-shadow:inset 0 1px 2px rgba(30,58,110,.04)
}
.tg-in:hover{border-color:rgba(60,90,140,.3)}
.tg-in:focus-within{border-color:rgba(10,132,255,.72);background:#fff;
  box-shadow:0 0 0 4px rgba(10,132,255,.12)}
.tg-in input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #fff inset}
.tg-btn{
  height:46px;border-radius:11px;background:linear-gradient(180deg,#0a84ff,#0071e3);
  box-shadow:0 12px 24px rgba(0,113,227,.26),inset 0 1px 0 rgba(255,255,255,.3);
  letter-spacing:3px;font-weight:600
}
.tg-btn:hover{box-shadow:0 16px 30px rgba(0,113,227,.34),inset 0 1px 0 rgba(255,255,255,.3)}
.tg-qr-box{border-radius:16px;background:rgba(255,255,255,.95)}
.tg-note{margin-top:14px;font-size:11.5px;color:#9aa8be}
.tg-note svg{stroke:#aebbd0}
.tg-motto{display:flex;align-items:center;justify-content:center;gap:10px;
  margin:14px 0 0;font-size:11px;letter-spacing:1px;color:#7c8ba4}
.tg-motto i{width:1px;height:11px;background:#d3ddeb}
.tg-foot{
  margin-top:12px;padding-top:12px;border-top:1px solid rgba(60,90,140,.1);
  justify-content:center;text-align:center
}
.tg-foot span{font-size:11px;color:#a6b3c8}

/* 扫码暂时关闭：隐藏切换按钮与扫码面板 */
.tg-noqr .tg-tabs{display:none}
.tg-noqr #paneQr{display:none!important}

/* —— 登录窗口：光斑 / 品牌渐变 / 细节层次（仅登录页，不影响改密页） —— */
.tg-card-login{
  box-shadow:0 42px 92px rgba(12,38,88,.34),0 0 0 1px rgba(47,127,214,.07),
    0 0 44px rgba(47,127,214,.13),0 2px 8px rgba(12,38,88,.14),inset 0 1px 0 rgba(255,255,255,.98)
}
.tg-card-login::before,.tg-card-login::after{
  content:"";position:absolute;z-index:0;pointer-events:none;border-radius:50%
}
.tg-card-login::before{width:310px;height:310px;left:-120px;top:-160px;
  background:radial-gradient(circle,rgba(88,158,255,.18),transparent 68%)}
.tg-card-login::after{width:290px;height:290px;right:-130px;bottom:-160px;
  background:radial-gradient(circle,rgba(255,176,110,.15),transparent 68%)}
.tg-card-login>.tg-titlebar,.tg-card-login>.tg-inner{position:relative;z-index:1}
.tg-card-login .tg-titlebar:after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:linear-gradient(90deg,#2f7fd6 0%,#5ac8fa 46%,#ff9f0a 100%);opacity:.72
}
.tg-welcome-tag{
  display:inline-flex;align-items:center;gap:5px;margin:0 0 10px;padding:5px 10px;
  border:1px solid rgba(47,127,214,.18);border-radius:20px;
  background:linear-gradient(90deg,rgba(47,127,214,.1),rgba(90,200,250,.06));
  font-size:10.5px;font-weight:600;color:#2f7fd6;letter-spacing:.6px
}
.tg-welcome-tag svg{width:12px;height:12px;fill:none;stroke:#2f7fd6;stroke-width:1.6;stroke-linejoin:round}
.tg-card-login h2{position:relative;padding-bottom:12px}
.tg-card-login h2:after{content:"";position:absolute;left:0;bottom:0;width:40px;height:3px;
  border-radius:2px;background:linear-gradient(90deg,#0a84ff,#5ac8fa)}
.tg-card-login .tg-sub{margin:11px 0 20px}
.tg-card-login .tg-tab{display:flex;align-items:center;justify-content:center;gap:6px}
.tg-card-login .tg-tab svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;opacity:.72}
.tg-card-login .tg-tab.on svg{opacity:1}
.tg-card-login .tg-in>svg{box-sizing:content-box;width:16px;height:16px;margin-left:11px;padding:8px;
  border-radius:9px;background:rgba(47,127,214,.08);stroke:#4e86d4}
.tg-card-login .tg-btn{background:linear-gradient(135deg,#4da3ff,#0a84ff 42%,#0062d6)}
.tg-card-login .tg-btn:after{content:"";position:absolute;left:0;right:0;top:0;height:50%;
  border-radius:11px 11px 0 0;background:linear-gradient(180deg,rgba(255,255,255,.16),transparent);pointer-events:none}
.tg-motto:before,.tg-motto:after{content:"";width:5px;height:5px;transform:rotate(45deg);background:#b8c8de}
.tg-foot{position:relative}
.tg-foot:before{content:"";position:absolute;left:50%;top:-1px;transform:translateX(-50%);width:64px;height:2px;
  border-radius:2px;background:linear-gradient(90deg,rgba(47,127,214,.35),rgba(90,200,250,.35),rgba(255,159,10,.35))}

/* 改密页复用同一窗口：顶部留标题栏 + 三点 */
.tg-card-pwd{padding:58px clamp(24px,5vw,40px) 26px}
.tg-card-pwd:before{
  content:"";position:absolute;left:22px;top:20px;width:52px;height:12px;opacity:.96;
  background:
    radial-gradient(circle 5px at 5px 6px,#ff5f57 5px,transparent 5.6px),
    radial-gradient(circle 5px at 21px 6px,#febc2e 5px,transparent 5.6px),
    radial-gradient(circle 5px at 37px 6px,#28c840 5px,transparent 5.6px)
}
.tg-card-pwd .tg-mini{display:flex;margin-bottom:22px}
.tg-card-pwd .tg-mini .tg-logo{width:40px;height:40px;border-radius:12px;background:#fff;
  box-shadow:0 8px 18px rgba(23,104,245,.18)}
.tg-card-pwd .tg-mini .tg-bn b{color:var(--navy)}
.tg-card-pwd .tg-mini .tg-bn small{color:#93a2ba}
.tg-card-pwd h2{font-size:23px}
.tg-shield{background:rgba(10,132,255,.1)}

/* 矮视口自适应：压缩垂直间距，保证窗口完整显示 */
@media(max-height:780px){
  .tg-card-login .tg-titlebar{height:40px}
  .tg-card-login .tg-inner{padding:18px clamp(22px,4vw,34px) 14px}
  .tg-card-login .tg-brand-c{margin-bottom:14px}
  .tg-card-login .tg-brand-c .tg-logo{width:44px;height:44px;border-radius:13px}
  .tg-card-login .tg-welcome-tag{margin-bottom:8px}
  .tg-card-login h2{padding-bottom:8px;font-size:24px}
  .tg-card-login .tg-sub{margin:8px 0 14px}
  .tg-card-login .tg-f{margin-bottom:10px}
  .tg-card-login .tg-in{height:44px}
  .tg-card-login .tg-btn{height:42px;margin-top:4px}
  .tg-card-login .tg-note{margin-top:10px}
  .tg-card-login .tg-motto{margin-top:10px}
  .tg-card-login .tg-foot{margin-top:8px;padding-top:8px}
}

@media(max-width:900px){
  body.tg-body{padding:14px;justify-content:center;
    background:
      linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.82)),
      url("login-bg.jpg") center top / cover no-repeat fixed}
  .tg-main{justify-content:center;padding-right:0}
  .tg-inner{padding:24px 22px 18px}
  .tg-titlebar{height:42px}
}
@media(prefers-reduced-motion:reduce){body.tg-body::before,body.tg-body::after{animation:none}}
