:root {
  --primary: #2E74B5;
  --primary-dark: #245E94;
  --primary-soft: #E8EEF5;
  --ink: #0B2545;
  --green: #2E7D5B;
  --green-soft: #E7F1EC;
  --gold: #B57A00;
  --gold-soft: #FBF3E3;
  --red: #9B1C1C;
  --red-soft: #F9E9E9;
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --border: #E1E7EF;
  --border-strong: #C9D4E2;
  --text: #1F2D3D;
  --text-2: #5B6B7F;
  --text-3: #8A97A8;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .05);
  --shadow-md: 0 4px 14px rgba(11, 37, 69, .08);
  --radius: 8px;
  --topbar-h: 56px;
  --sidebar-w: 224px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }
.hidden { display: none !important; }

/* ---------- 布局 ---------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.brand { display: flex; align-items: center; gap: 8px; padding: 0 8px; color: var(--ink); }
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-mark img { display: block; width: 30px; height: 30px; object-fit: contain; border-radius: 7px; }
.login-brand .brand-mark img { width: 42px; height: 42px; border-radius: 10px; }
.brand-tag {
  font-size: 11px; color: var(--primary); background: var(--primary-soft);
  padding: 1px 8px; border-radius: 999px; font-weight: 600;
}
.topnav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.topnav-item {
  border: 0; background: none; padding: 7px 14px; border-radius: 7px;
  font-size: 14px; color: var(--text-2); font-weight: 500;
  display: flex; align-items: center; gap: 7px;
}
.topnav-item:hover { background: var(--bg); color: var(--ink); }
.topnav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.topnav-item svg { flex: none; }
.topbar-item {
  position: relative; border: 0; background: none; border-radius: 7px;
  padding: 7px 9px; color: var(--text-2); display: flex; align-items: center; gap: 7px; font-size: 13px;
}
.topbar-item:hover { background: var(--bg); color: var(--ink); }
.topbar-item.online-off { color: var(--gold); }
.topbar-item .badge-dot {
  position: absolute; top: 5px; right: 5px; width: 7px; height: 7px;
  background: var(--red); border-radius: 50%; border: 1.5px solid #fff;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #2E74B5, #3E92D1);
  color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.avatar.lg { width: 38px; height: 38px; font-size: 16px; }
.account-menu-wrap { position: relative; }
.notice-wrap { position: relative; }
.notice-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px; z-index: 60;
}
.notice-menu-head { font-size: 14px; font-weight: 700; color: var(--ink); padding: 8px 10px 8px; border-bottom: 1px solid var(--border); }
.notice-menu-foot { font-size: 11.5px; color: var(--text-3); padding: 8px 10px 6px; }
#notice-list .notice-item { padding: 9px 10px; border-bottom: 1px dashed var(--border); }
#notice-list .notice-item:last-child { border-bottom: 0; }
.ai-chip { color: var(--green) !important; }
.ai-chip .off { color: var(--text-3); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px; z-index: 60;
}
.account-menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.account-menu-name { font-weight: 600; color: var(--ink); }
.account-menu-role { font-size: 12px; color: var(--text-3); }
.account-menu-item { padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.account-menu-item:hover { background: var(--bg); }
.account-menu-item.danger { color: var(--red); }
.account-menu-sep { height: 1px; background: var(--border); margin: 4px 6px; }

.body-wrap { display: flex; flex: 1; min-height: calc(100vh - var(--topbar-h)); align-items: stretch; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: #fff; border-right: 1px solid var(--border);
  padding: 16px 10px 24px; overflow-y: auto;
  transition: margin-left .2s ease;
}
.sidebar-section { margin-bottom: 18px; }
.sidebar-label { font-size: 12px; color: var(--text-3); padding: 0 10px 6px; font-weight: 600; letter-spacing: .5px; }
.sidebar-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin-bottom: 2px;
  border-radius: 7px; color: var(--text-2); font-size: 13.5px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
}
.sidebar-item svg { flex: none; color: var(--text-3); }
.sidebar-item:hover { background: var(--bg); color: var(--ink); }
.sidebar-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sidebar-item.active svg { color: var(--primary); }
.sidebar-item .side-count { margin-left: auto; font-size: 11px; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 0 7px; }

.main { flex: 1; min-width: 0; padding: 24px; }
.page { max-width: 1440px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.page-sub { font-size: 13px; color: var(--text-3); margin: 0; }
.section-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; background: none; color: var(--text); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); box-shadow: 0 2px 8px rgba(46, 116, 181, .35); }
.btn-outline { border-color: var(--border-strong); color: var(--primary); background: #fff; }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--ink); }
.btn-danger { border-color: var(--red); color: var(--red); background: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 15px; }
.icon-btn { border: 0; background: none; padding: 6px; border-radius: 6px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }

/* ---------- 卡片 / 标签 / 徽标 ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(46, 116, 181, .18); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 8px; border-radius: 5px; font-weight: 500; white-space: nowrap; }
.tag-blue { background: var(--primary-soft); color: var(--primary); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-gold { background: var(--gold-soft); color: var(--gold); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-gray { background: #EEF1F5; color: var(--text-2); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.status-dot.green { background: var(--green); }
.status-dot.gold { background: var(--gold); }
.status-dot.red { background: var(--red); }
.status-dot.blue { background: var(--primary); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--border-strong);
  border-radius: 7px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46, 116, 181, .15); }
.input.error { border-color: var(--red); }
.input:disabled { background: #F1F3F6; color: var(--text-3); }
.field-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: none; }
.search-box { position: relative; }
.search-box .input { padding-left: 34px; }
.search-box .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  background: var(--primary-soft); color: var(--ink); font-weight: 600; text-align: left;
  padding: 0 14px; height: 40px; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.tbl td { padding: 0 14px; height: 44px; border-bottom: 1px solid var(--border); color: var(--text); }
.tbl tbody tr:hover { background: #F7FAFD; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl .num { font-variant-numeric: tabular-nums; }

/* ---------- 登录页 ---------- */
.login-view {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0B2545 0%, #16345F 48%, #2E74B5 130%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 14px;
  padding: 34px 34px 28px; box-shadow: 0 18px 50px rgba(6, 22, 46, .35);
}
.login-card-modern { width:min(1180px,100%); max-width:none; min-height:min(720px,calc(100vh - 48px)); padding:0; overflow:hidden; display:grid; grid-template-columns:minmax(0,1.35fr) 390px; background:#07152e; box-shadow:0 30px 100px rgba(0,0,0,.4); }
.login-splash { --mx:50%;--my:45%;--px:0px;--py:0px; min-height:640px; position:relative; overflow:hidden; padding:clamp(48px,7vw,104px); display:flex; align-items:center; background:radial-gradient(500px circle at var(--mx) var(--my),rgba(89,224,255,.28),transparent 58%),radial-gradient(700px circle at 18% 80%,rgba(102,78,255,.34),transparent 65%),linear-gradient(135deg,#06122c 0%,#0b2855 55%,#111b4b 100%); color:#fff; }
.login-splash:before { content:"";position:absolute;inset:-20%;background:conic-gradient(from 210deg at 68% 44%,transparent 0 22%,rgba(94,225,255,.18) 26%,transparent 33% 55%,rgba(126,94,255,.18) 60%,transparent 68%);filter:blur(20px);animation:splash-pulse 12s ease-in-out infinite;transform:translate3d(var(--px),var(--py),0);transition:transform .25s ease; }
.splash-copy { position:relative;z-index:2;max-width:500px;transform:translate3d(calc(var(--px)*.35),calc(var(--py)*.35),0);transition:transform .25s ease; }.splash-kicker { display:inline-flex;gap:10px;align-items:center;font-size:12px;letter-spacing:.16em;color:#9feaff; }.splash-kicker:before { content:"";width:28px;height:1px;background:#65ddff; }.splash-copy h1 { font-size:clamp(46px,6vw,78px);line-height:1.05;margin:24px 0 22px;letter-spacing:-.075em; }.splash-copy em { color:#a5f0ff;font-style:normal;text-shadow:0 0 30px rgba(101,221,255,.45); }.splash-copy p { max-width:400px;color:rgba(235,248,255,.68);font-size:16px;line-height:1.9;margin-bottom:34px; }.splash-skip { display:inline-block;margin:28px 18px 0 0;border:0;background:none;color:rgba(255,255,255,.58);font-size:12px;cursor:pointer; }.splash-camera-status { display:block;margin-top:10px;color:rgba(255,255,255,.45);font-size:11px;max-width:360px;line-height:1.5; }.splash-orbit { position:absolute;border:1px solid rgba(139,231,255,.34);border-radius:50%;animation:splash-spin 18s linear infinite;transform:translate3d(var(--px),var(--py),0) rotate(0);transition:transform .25s ease;box-shadow:0 0 30px rgba(101,221,255,.08),inset 0 0 30px rgba(101,221,255,.06); }.orbit-a { width:clamp(400px,46vw,650px);height:clamp(400px,46vw,650px);right:-12%;top:6%; }.orbit-b { width:clamp(250px,28vw,390px);height:clamp(250px,28vw,390px);right:11%;top:22%;animation-direction:reverse; }.splash-particles,.splash-particles:before,.splash-particles:after { position:absolute;width:4px;height:4px;border-radius:50%;background:#8be7ff;box-shadow:80px 80px #fff,160px 20px #8be7ff,210px 150px #fff,40px 220px #8be7ff,280px 250px #fff,330px 80px #8be7ff,120px 300px #fff;opacity:.8;animation:splash-float 7s ease-in-out infinite; }.splash-particles { right:25%;top:20%; }.login-panel { padding:clamp(28px,4vw,48px);background:rgba(255,255,255,.98);display:flex;flex-direction:column;justify-content:center; }.login-role-picker { display:flex;align-items:center;gap:6px;margin:16px 0 12px;font-size:12px;color:var(--text-3); }.login-role-picker button { border:1px solid var(--border);background:#fff;border-radius:999px;padding:6px 10px;color:var(--text-2); }.login-role-picker button.active { color:var(--primary);background:var(--primary-soft);border-color:var(--primary); }.third-party-title { font-size:12px;color:var(--text-2);margin:12px 0 8px; }.third-party-title small { color:var(--text-3); }.third-party-grid { display:grid;grid-template-columns:repeat(5,1fr);gap:6px; }.third-party-btn { border:1px solid var(--border);background:#fff;border-radius:8px;padding:7px 3px;color:var(--text-2);font-size:12px; }.third-party-btn small { display:block;font-size:9px;color:var(--text-3);margin-top:2px; }@keyframes splash-spin { to { transform:rotate(360deg); } }@keyframes splash-float { 50% { transform:translateY(-14px); } }@keyframes splash-pulse { 50% { opacity:.5;transform:scale(1.08) rotate(12deg); } }.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
.login-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 6px; }
.login-brand .brand-text { font-size: 21px; }
.login-sub { text-align: center; color: var(--text-3); font-size: 13px; margin: 0 0 26px; }
.login-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; }
.code-btn { flex: none; width: 108px; font-size: 13px; }
.role-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.role-chip {
  border: 1px solid var(--border-strong); background: #fff; border-radius: 8px; padding: 10px 8px;
  font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
}
.role-chip small { font-size: 11px; color: var(--text-3); }
.role-chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; box-shadow: 0 0 0 3px rgba(46, 116, 181, .12); }
.login-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 18px; }
.login-note { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: #B9C6D8; margin-top: 20px; }

/* ---------- Toast / Dialog ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13.5px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px; animation: toast-in .2s ease;
  max-width: 360px;
}
.toast.success { background: #1E5B43; }
.toast.error { background: var(--red); }
.toast.info { background: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transition: opacity .3s; }

.dialog-mask { position: fixed; inset: 0; background: rgba(11, 37, 69, .45); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dialog {
  background: #fff; border-radius: 12px; width: 100%; max-width: 420px; padding: 22px;
  box-shadow: 0 20px 60px rgba(6, 22, 46, .3); animation: toast-in .18s ease;
}
.dialog-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.dialog-body { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 首页 ---------- */
.home-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.quick-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.quick-entry {
  display: flex; align-items: center; gap: 14px; padding: 20px 18px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all .18s; box-shadow: var(--shadow-sm);
}
.quick-entry:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.quick-icon.blue { background: linear-gradient(135deg, #2E74B5, #55A3DC); }
.quick-icon.green { background: linear-gradient(135deg, #2E7D5B, #54B08A); }
.quick-icon.gold { background: linear-gradient(135deg, #B57A00, #E0A63B); }
.quick-entry .qe-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.quick-entry .qe-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.quick-entry .qe-arrow { margin-left: auto; color: var(--text-3); flex: none; }

.todo-card { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.todo-card:last-child { border-bottom: 0; padding-bottom: 0; }
.todo-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.todo-icon.blue { background: var(--primary-soft); color: var(--primary); }
.todo-icon.gold { background: var(--gold-soft); color: var(--gold); }
.todo-icon.green { background: var(--green-soft); color: var(--green); }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.todo-desc { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.todo-count { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-item { text-align: center; padding: 12px 4px; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mini-chart { margin-top: 8px; }
.notice-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.notice-item:last-child { border-bottom: 0; }
.notice-date { color: var(--text-3); font-size: 12px; flex: none; }

/* ---------- 命题组卷：三栏 ---------- */
.paper-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.paper-col { display: flex; flex-direction: column; gap: 12px; }
.col-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.col-panel-head { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); }
.tab-btn { flex: 1; border: 0; background: none; padding: 6px 4px; border-radius: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.tab-btn.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.paper-ctx { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); background: #FBFCFE; }
.paper-ctx .select { width: 100%; height: 30px; font-size: 12.5px; padding: 0 8px; }
.tree { padding: 8px 10px 12px; max-height: 460px; overflow-y: auto; }
.tree-node { padding: 6px 4px 6px 0; }
.tree-node .node-row { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.tree-node .node-row:hover { background: var(--bg); }
.tree-node .node-row .node-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node .node-row .count { font-size: 11px; color: var(--text-3); background: #EEF1F5; border-radius: 999px; padding: 0 6px; }
.tree-children { margin-left: 22px; border-left: 1px dashed var(--border-strong); padding-left: 8px; }
.node-check { appearance: none; width: 15px; height: 15px; border: 1.5px solid var(--border-strong); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; background: #fff; }
.node-check:checked { background: var(--primary); border-color: var(--primary); }
.node-check:checked::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.paper-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.paper-toolbar .select { width: auto; height: 34px; }
.paper-toolbar .grow { flex: 1; }
.gen-modes { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: 8px; width: fit-content; }
.gen-mode-tab { border: 0; background: none; padding: 6px 16px; border-radius: 6px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.gen-mode-tab.active { background: var(--primary-soft); color: var(--primary); }
.gen-progress { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.gen-progress .gp-bar { flex: 1; height: 7px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.gen-progress .gp-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #55A3DC); border-radius: 99px; transition: width .3s; }
.gen-progress #gp-text { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.q-proc { background: var(--primary-soft); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; color: var(--ink); line-height: 1.8; }
.q-list { display: flex; flex-direction: column; gap: 12px; }
.q-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.q-card.checked { border-color: var(--green); }
.q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.q-no { font-size: 13px; font-weight: 700; color: var(--ink); }
.q-stem { font-size: 14px; color: var(--text); margin: 0 0 10px; line-height: 1.75; }
.q-figure { display: flex; justify-content: center; margin: 6px 0 10px; }
.q-figure svg { background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.q-figure canvas { width: 100%; max-width: 320px; height: 240px; }
.q-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin-bottom: 12px; }
.q-option { font-size: 13.5px; color: var(--text-2); }
.q-option .opt-key { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--text-2); align-items: center; justify-content: center; font-size: 12px; margin-right: 7px; font-weight: 600; }
.q-answer { font-size: 13px; color: var(--green); margin-bottom: 12px; }
.q-explain { margin-bottom: 10px; border: 1px dashed var(--border-strong); border-radius: 7px; background: #FBFCFE; }
.q-explain summary { cursor: pointer; font-size: 13px; color: var(--primary); padding: 7px 10px; display: flex; align-items: center; gap: 6px; user-select: none; }
.q-explain-body { padding: 4px 12px 12px; font-size: 13px; color: var(--text); white-space: pre-line; line-height: 1.85; border-top: 1px dashed var(--border); }
.q-actions { display: flex; gap: 6px; border-top: 1px dashed var(--border); padding-top: 10px; flex-wrap: wrap; }
.q-edit-area { margin: 10px 0; }
.paper-panel { position: sticky; top: 80px; }
.paper-panel .p-name { width: 100%; height: 36px; margin-bottom: 12px; }
.p-stats { display: flex; gap: 10px; margin-bottom: 12px; }
.p-stat { flex: 1; background: var(--bg); border-radius: 8px; padding: 10px 8px; text-align: center; }
.p-stat .v { font-size: 20px; font-weight: 700; color: var(--ink); }
.p-stat .k { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.diff-bar { margin: 10px 0; }
.diff-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 7px; }
.diff-row .bar { flex: 1; height: 7px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.diff-row .fill { height: 100%; border-radius: 99px; background: var(--primary); }
.diff-row .fill.easy { background: var(--green); }
.diff-row .fill.hard { background: var(--red); }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #EEF1F5 25%, #F7F9FB 50%, #EEF1F5 75%); background-size: 200% 100%; animation: sk 1.1s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- 批改中心 ---------- */
.upload-zone {
  border: 1.5px dashed var(--border-strong); border-radius: 10px; padding: 28px 20px;
  text-align: center; background: #fff; cursor: pointer; transition: all .18s;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone .uz-icon { color: var(--primary); margin-bottom: 8px; }
.upload-zone .uz-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.upload-zone .uz-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.queue-groups { display: flex; flex-direction: column; gap: 20px; }
.queue-group-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.queue-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.queue-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer; transition: all .16s; box-shadow: var(--shadow-sm); }
.queue-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.queue-card .thumb { height: 74px; border-radius: 6px; background: linear-gradient(135deg, #EEF1F5, #F7F9FB); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 12px; border: 1px solid var(--border); }
.queue-card .qc-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.queue-card .qc-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.queue-card .qc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.queue-card .progress { height: 5px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.queue-card .progress .fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .5s; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--text-3); }
.empty-state .es-icon { font-size: 38px; margin-bottom: 8px; opacity: .55; }

/* ---------- 批改结果 ---------- */
.grading-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.answer-sheet {
  background: #FDFDFB; border: 1px solid var(--border); border-radius: 6px; min-height: 560px; padding: 22px;
  box-shadow: inset 0 0 24px rgba(11, 37, 69, .03); position: relative;
  background-image: linear-gradient(rgba(46,116,181,.045) 1px, transparent 1px);
  background-size: 100% 30px;
}
.answer-sheet .sheet-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.sheet-q { margin-bottom: 18px; }
.sheet-q .sq-title { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.handwrite { font-family: "Kaiti SC", "KaiTi", "STKaiti", serif; font-size: 15px; color: #2B3A55; line-height: 1.9; }
.handwrite .hl-gold { color: var(--gold); }
.handwrite .hl-red { color: var(--red); }
.ai-float-tag { position: absolute; top: 14px; right: 14px; }
.score-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.score-ring { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; position: relative; }
.score-ring .ring-num { font-size: 22px; font-weight: 700; color: var(--ink); }
.score-ring .ring-den { font-size: 12px; color: var(--text-3); }
.score-meta { flex: 1; }
.score-row { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); margin: 3px 0; }
.reason-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.reason-item { display: flex; gap: 9px; font-size: 13.5px; color: var(--text); background: var(--bg); padding: 9px 11px; border-radius: 7px; border-left: 3px solid var(--gold); }
.reason-item.good { border-left-color: var(--green); }
.audit-list { display: flex; flex-direction: column; gap: 0; }
.audit-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.audit-item:last-child { border-bottom: 0; }
.audit-item .time { color: var(--text-3); font-size: 12px; flex: none; width: 74px; }
.audit-item .op { color: var(--text-2); }
.audit-item .op b { color: var(--ink); }

/* ---------- 资源库 ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar .select { width: auto; }
.filter-bar .search-box { flex: 1; min-width: 200px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.res-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .16s; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.res-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.res-cover { height: 118px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 700; position: relative; }
.res-cover .type-flag { position: absolute; top: 8px; left: 8px; font-size: 11px; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 4px; padding: 1px 7px; font-weight: 600; }
.res-cover .fav { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); border: 0; color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.res-cover .fav.on { color: var(--gold); }
.res-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.res-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.res-meta { font-size: 12px; color: var(--text-3); }
.res-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.res-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.res-preview { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.res-preview .pv-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.res-preview .pv-body { flex: 1; padding: 30px; display: flex; align-items: center; justify-content: center; color: var(--text-3); flex-direction: column; gap: 10px; }

/* ---------- 学情报告 ---------- */
.ana-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.ana-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.ana-card .ac-label { font-size: 12.5px; color: var(--text-3); }
.ana-card .ac-num { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.25; font-variant-numeric: tabular-nums; }
.ana-card .ac-delta { font-size: 12px; margin-top: 2px; }
.delta-up { color: var(--green); }
.delta-down { color: var(--red); }
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.matrix-cell { border-radius: 8px; padding: 12px 10px; color: #fff; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.matrix-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.matrix-cell .mc-name { font-size: 12.5px; font-weight: 600; opacity: .95; }
.matrix-cell .mc-val { font-size: 19px; font-weight: 700; margin-top: 3px; }
.matrix-cell .mc-sub { font-size: 11px; opacity: .85; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-right: 4px; vertical-align: -2px; }
.weak-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.weak-item:last-child { border-bottom: 0; }
.weak-item .wk-name { width: 180px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.weak-item .wk-bar { flex: 1; height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.weak-item .wk-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.weak-item .wk-val { width: 56px; text-align: right; font-size: 13px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }

/* ---------- 学生明细 ---------- */
.stu-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stu-head .avatar { width: 52px; height: 52px; font-size: 20px; }
.stu-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.stu-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.chart-box { width: 100%; }
.wrong-list { display: flex; flex-direction: column; gap: 10px; }
.wrong-item { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: #fff; }
.wrong-item .wi-stem { font-size: 13.5px; color: var(--text); margin-bottom: 6px; }
.wrong-item .wi-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.setting-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--border-strong); border: 0; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }

/* ---------- 学校管理 ---------- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.admin-tab { border: 0; background: none; padding: 9px 16px; font-size: 14px; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.class-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.class-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.class-card .cc-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.class-card .cc-meta { font-size: 12.5px; color: var(--text-3); margin: 6px 0 12px; }
.sub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sub-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.sub-card.active { border-color: var(--green); }
.sub-card .sc-name { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sub-card .sc-desc { font-size: 12.5px; color: var(--text-3); margin: 6px 0 12px; min-height: 38px; }
.sub-card .sc-price { font-size: 20px; font-weight: 700; color: var(--primary); }
.sub-card .sc-price small { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* ---------- 帮助中心 ---------- */
.guide-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.guide-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow-sm); position: relative; }
.guide-step .gs-num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.guide-step .gs-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.guide-step .gs-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; background: none; border: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.faq-a { padding: 0 2px 14px; font-size: 13.5px; color: var(--text-2); display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.material-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.material-item:hover { border-color: var(--primary); }
.material-item .mi-icon { color: var(--primary); flex: none; }
.material-item .mi-name { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; }
.material-item .mi-size { font-size: 12px; color: var(--text-3); }

/* ---------- 面包屑 / 其他 ---------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); margin-bottom: 12px; flex-wrap: wrap; }
.crumb a { color: var(--primary); }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offline-banner {
  position: sticky; top: var(--topbar-h); z-index: 30; background: var(--gold-soft); color: var(--gold);
  border-bottom: 1px solid #EBD9AC; padding: 7px 24px; font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.sidebar-mask {
  position: fixed; inset: 0; top: var(--topbar-h); background: rgba(11, 37, 69, .38);
  z-index: 44; opacity: 1; transition: opacity .2s ease;
}
.tree-foot { display: none; }
.panel-jump { display: none; }

/* ---------- 学习计划书 ---------- */
.plan-doc { max-width: 860px; }
.plan-weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-week { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: #fff; }
.plan-week .pw-head { display: flex; align-items: center; gap: 8px; }
.plan-week ul li { line-height: 1.7; }
@media (max-width: 768px) { .plan-weeks { grid-template-columns: 1fr; } }

/* ---------- 打印 ---------- */
@media print {
  body { background: #fff; }
  .topbar, .sidebar, .offline-banner, .toast-wrap, .mobile-hint, #dialog-root { display: none !important; }
  .body-wrap { display: block; }
  .main { padding: 0; }
  .page, .card { max-width: none; box-shadow: none; }
  .page-head .btn, .page-head > div:last-child { display: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .sidebar { position: fixed; top: var(--topbar-h); bottom: 0; left: 0; z-index: 45; margin-left: calc(-1 * var(--sidebar-w)); box-shadow: var(--shadow-md); }
  .sidebar.open { margin-left: 0; }
  .main { margin-left: 0; }
  .paper-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .paper-panel { grid-column: 1 / -1; position: static; }
  .grading-detail, .res-detail { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .ana-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main { padding: 14px; }
  .topnav { display: none; }
  .brand-text { font-size: 15px; }
  .quick-entries { grid-template-columns: 1fr; }
  .paper-layout { grid-template-columns: 1fr; }
  .q-options, .grid-2 { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: 1fr; }
  .ana-cards { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
}

/* ---------- 内置教学语料库 ---------- */
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 99px; font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; background: #fff; transition: all .15s; }
.chip-check.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.corpus-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.corpus-tab { border: 1px solid var(--border); background: #fff; color: var(--text-2); border-radius: 99px; padding: 6px 14px; font-size: 13px; cursor: pointer; transition: all .15s; }
.corpus-tab.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.corpus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.corpus-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.corpus-card .corpus-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.corpus-card .corpus-head { flex-wrap: wrap; }
.corpus-card .corpus-head b { color: var(--ink); font-size: 15px; }

/* ---------- 阅读题 / 知识点讲解 / 网络检索 ---------- */
.q-passage, .q-kp { margin-top: 8px; font-size: 13px; }
.q-passage summary, .q-kp summary { cursor: pointer; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.q-passage-body { margin-top: 6px; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 12px; line-height: 1.9; color: var(--text); font-size: 13px; }
.q-srcnote { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border); color: var(--text-3); font-size: 12px; }
.q-kp-body { margin-top: 6px; background: var(--primary-soft); border-radius: 8px; padding: 10px 12px; line-height: 1.9; color: var(--ink); font-size: 13px; }
.q-answer.missing { color: var(--red); font-weight: 600; }
.read-ctl { display: flex; gap: 8px; align-items: center; }
.read-results { margin: 8px 0; padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); }
.read-results .reason-item { margin-bottom: 6px; }
.read-results .reason-item:last-child { margin-bottom: 0; }

/* ================= 灵动 UI（纯 CSS，不改变任何交互） ================= */
html { scroll-behavior: smooth; }
body { animation: fh-fade .35s ease both; }
@keyframes fh-fade { from { opacity: 0; } to { opacity: 1; } }

.page { animation: fh-rise .42s cubic-bezier(.22, .9, .35, 1) both; }
@keyframes fh-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.card, .q-card, .col-panel, .res-card, .class-card, .corpus-card, .ana-card, .queue-card, .guide-step {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover, .q-card:hover, .col-panel:hover { box-shadow: 0 8px 24px rgba(11, 37, 69, .08); }
.res-card:hover, .class-card:hover, .ana-card:hover, .queue-card:hover, .guide-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(11, 37, 69, .10);
}

.btn {
  position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #2E74B5, #3E92D1); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 16px rgba(46, 116, 181, .35); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .45s ease; pointer-events: none;
}
.btn-primary:hover:not(:disabled)::after { left: 130%; }

.tag { transition: all .2s ease; }

.sidebar-item { position: relative; transition: background .18s ease, color .18s ease, transform .18s ease; }
.sidebar-item:hover { transform: translateX(2px); }
.sidebar-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  border-radius: 2px; background: var(--primary); animation: fh-grow .25s ease both;
}
@keyframes fh-grow { from { transform: scaleY(.3); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.status-dot.gold, .status-dot.green, .status-dot.red, .status-dot.blue { animation: fh-pulse 2s ease infinite; }
@keyframes fh-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 116, 181, .28); }
  50% { box-shadow: 0 0 0 4px rgba(46, 116, 181, 0); }
}

.q-figure svg { transition: transform .3s ease; }
.q-figure svg:hover { transform: scale(1.02); }

.topbar {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.login-view {
  background: linear-gradient(160deg, #0B2545 0%, #16345F 48%, #2E74B5 130%);
  background-size: 160% 160%; animation: fh-grad 14s ease infinite;
}
@keyframes fh-grad { 0%, 100% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } }
.login-card { animation: fh-pop .5s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes fh-pop {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.skeleton {
  background: linear-gradient(90deg, #EEF1F5 25%, #F7FAFD 50%, #EEF1F5 75%);
  background-size: 200% 100%; animation: fh-shimmer 1.4s infinite;
}
.gen-progress .gp-fill {
  background: linear-gradient(90deg, var(--primary), #55A3DC, var(--green));
  background-size: 200% 100%; animation: fh-shimmer 1.6s infinite;
}
@keyframes fh-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.matrix-cell { transition: transform .18s ease, box-shadow .18s ease; }
.matrix-cell:hover { transform: translateY(-3px) scale(1.02); }

.toast { animation: toast-in .25s cubic-bezier(.2, .9, .3, 1.15); }
.dialog { animation: fh-pop .3s cubic-bezier(.2, .9, .3, 1.15) both; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb {
  background: #C9D4E2; border-radius: 99px; border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #9FB3CB; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 会员中心 / 付费版大模型 ---------- */
.paid-lock {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: linear-gradient(135deg, #FBF3E3, #FDF6E9);
  border: 1px dashed #E0B45A; color: #7A5A00; border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px;
}
.paid-lock svg { flex: none; color: var(--gold); }
.paid-lock .btn { margin-left: auto; }
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tier-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  background: #fff; transition: all .2s ease;
}
.tier-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46, 116, 181, .12); }
.tier-card.tier-max { background: linear-gradient(160deg, #FBF3E3, #FFFDF6); border-color: #E0B45A; }
.tier-name { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); font-size: 14px; }
.tier-price { font-size: 18px; font-weight: 700; color: var(--primary); margin: 6px 0 2px; }
.tier-desc { font-size: 12px; color: var(--text-2); min-height: 52px; }
@media (max-width: 640px) { .tier-cards { grid-template-columns: 1fr; } }

/* ---------- 学生端：知识点讲解 / 错题本 ---------- */
.quick-icon.red { background: linear-gradient(135deg, #9B1C1C, #C96161); }
.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.knowledge-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.knowledge-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11, 37, 69, .10); border-color: var(--primary); }
.kc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kc-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.kc-en { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 2px; }
.kc-brief { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 10px 0 0; }
.kc-origin { margin-top: 10px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.kc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

.knowledge-detail { max-width: 860px; }
.kd-block { margin-bottom: 14px; }
.kd-block h4 { font-size: 14.5px; color: var(--ink); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.kd-block h4 .kd-num { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kd-step { display: flex; gap: 10px; padding: 8px 12px; background: var(--bg); border-radius: 8px; margin-bottom: 8px; font-size: 13.5px; line-height: 1.7; }
.kd-step b { color: var(--primary); flex: none; }
.kd-example { background: var(--primary-soft); border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.8; }
.kd-why { background: linear-gradient(135deg, #FBF3E3, #FFFDF6); border-left: 3px solid var(--gold); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.8; }
.kd-tip { background: var(--green-soft); border-left: 3px solid var(--green); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.8; }
.kd-pit { background: var(--red-soft); border-left: 3px solid var(--red); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.8; }

.wrong-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.wrong-q { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.wrong-ans { font-size: 13px; padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; line-height: 1.7; }
.wrong-ans.mine { background: var(--red-soft); color: var(--red); }
.wrong-ans.right { background: var(--green-soft); color: var(--green); }
.wrong-kp { background: var(--primary-soft); border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.8; margin-top: 8px; }
.wrong-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-3); }

.learn-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.learn-stat { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.learn-stat .ls-num { font-size: 24px; font-weight: 700; color: var(--primary); }
.learn-stat .ls-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
@media (max-width: 640px) { .learn-strip { grid-template-columns: 1fr 1fr; } .knowledge-grid { grid-template-columns: 1fr; } }

/* ---------- 平板适配（≤1024px） ---------- */
@media (max-width: 1024px) {
  .topnav { display: none; }
  .main { padding: 18px; }
  .paper-layout { grid-template-columns: minmax(0, 1fr); }
  .paper-panel { position: static; }
  .paper-col { min-width: 0; }
  .home-grid { grid-template-columns: 1fr; }
  .grading-detail, .res-detail { grid-template-columns: 1fr; }
  .tree-foot { display: block; padding: 8px 10px; border-top: 1px solid var(--border); }
  .tree-foot .btn { width: 100%; }
  #tree-box.collapsed { display: none; }
  .login-card { width: min(420px, 92vw); }
}

/* ---------- 手机适配（≤640px） ---------- */
@media (max-width: 640px) {
  .topbar { padding: 0 8px 0 6px; }
  .brand { gap: 5px; padding: 0 2px; }
  .brand-text { font-size: 14.5px; }
  .brand-tag { display: none; }
  .topbar-item { padding: 6px; }
  #ai-chip-label, #offline-text, #account-name { display: none; }
  .sidebar-toggle { padding: 7px; }
  .main { padding: 12px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-title { font-size: 17px; }
  .page-sub { font-size: 12.5px; }
  .page-head .btn { width: 100%; }
  .page-head > div:last-child { width: 100%; }
  .quick-entry { padding: 14px 12px; gap: 10px; }
  .stat-grid { gap: 8px; }
  .q-card { padding: 12px; }
  .q-head { gap: 6px; }
  .q-stem { font-size: 13.5px; }
  .q-options { gap: 6px 10px; }
  .q-actions { gap: 6px; }
  .q-actions .btn { flex: 1 1 42%; }
  .q-actions .btn[data-act="check"] { flex-basis: 100%; }
  .paper-toolbar { flex-direction: column; align-items: stretch; }
  .paper-toolbar .select { width: 100%; }
  .paper-toolbar .btn { width: 100%; }
  .gen-modes { width: 100%; }
  .gen-mode-tab { flex: 1; justify-content: center; }
  .diff-anchor { white-space: normal; line-height: 1.55; height: auto; display: inline-block; }
  #gen-progress { flex-wrap: wrap; }
  #gen-progress #gp-text { white-space: normal; }
  .read-ctl { flex-direction: column; align-items: stretch; }
  .read-ctl .btn, .read-ctl .search-box { width: 100%; }
  .filter-bar .select { width: 100%; }
  .filter-bar .btn { flex: 1; }
  .filter-bar .search-box { min-width: 100%; }
  .tabs { width: 100% !important; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .tbl th, .tbl td { white-space: nowrap; }
  .notice-menu, .account-menu { position: fixed; left: 10px; right: 10px; top: calc(var(--topbar-h) + 8px); width: auto; }
  .toast-wrap { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
  .dialog-mask { padding: 12px; align-items: flex-end; }
  .dialog { max-width: none; border-radius: 14px 14px 0 0; padding: 20px 16px 16px; max-height: 84vh; overflow-y: auto; }
  .login-view { padding: 14px; }
  .login-card { padding: 24px 18px 20px; }
  .code-row { flex-wrap: wrap; }
  .code-btn { width: 100%; }
  .role-chips { gap: 6px; }
  .reason-item { flex-wrap: wrap; }
  .ana-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ana-card { padding: 12px; }
  .ana-card .ac-num { font-size: 24px; }
  .matrix { gap: 6px; }
  .offline-banner { padding: 6px 12px; font-size: 12px; }
  .q-figure svg { max-width: 100%; }
  .q-figure canvas { max-width: 100%; }
  .plan-doc { font-size: 13.5px; }
  .plan-week { padding: 10px 12px; }
  .res-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .panel-jump {
    display: inline-flex; position: fixed; right: 14px; bottom: 16px; z-index: 55;
    align-items: center; gap: 6px; background: var(--primary); color: #fff; border: 0;
    border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600;
    box-shadow: 0 6px 18px rgba(46, 116, 181, .35);
  }
  .panel-jump:active { transform: scale(.97); }
  .sidebar { width: min(82vw, 272px); margin-left: calc(-1 * min(82vw, 272px)); }
  .sidebar.open { margin-left: 0; }
  .sidebar-item { padding: 11px 12px; }
  .account-menu-item { padding: 11px 10px; font-size: 14px; }
  .corpus-grid { grid-template-columns: 1fr; }
  /* ---------- 手机通用防溢出 ---------- */
  html, body { max-width: 100%; overflow-x: hidden; }
  .card, .col-panel, .q-card, .res-card, .class-card, .knowledge-card, .wrong-card,
  .corpus-card, .ana-card, .queue-card, .guide-step, .paper-col, .paper-panel, .field, .dialog-body { min-width: 0; }
  .home-grid, .grid-2, .filter-bar, .page-head, .tabs, .paper-ctx { min-width: 0; }
  .page-head h1, .kc-title, .wrong-q, .node-label { word-break: break-word; }
  .crumb { flex-wrap: wrap; }
  .upload-zone { padding: 18px 12px; }
  .input, .textarea, .select { max-width: 100%; }
  .dialog { width: 100%; }
  .dialog-body { overflow-wrap: break-word; }
}

/* 布局收口：避免工具栏、卡片操作和弹窗在窄屏互相挤压 */
*, *::before, *::after { box-sizing: border-box; }
.page-head, .filter-bar, .dialog-actions, .res-foot, .quick-entries { min-width: 0; }
.page-head { align-items: flex-start; }
.page-head > div { min-width: 0; }
.filter-bar { flex-wrap: wrap; }
.filter-bar .input, .filter-bar .select, .search-box { min-width: 0; }
.res-foot { flex-wrap: wrap; gap: 6px; }
.dialog-body .field:last-of-type { margin-bottom: 0; }
@media (max-width: 768px) {
  .page-head { flex-direction: column; gap: 10px; }
  .page-head > .btn, .page-head > div + .btn { align-self: stretch; }
  .quick-entries, .home-grid, .grid-2, .res-grid, .class-cards { grid-template-columns: 1fr !important; }
  .filter-bar > * { flex: 1 1 100%; width: 100%; }
  .filter-bar .btn { min-height: 42px; }
  .dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-actions .btn:first-child { grid-column: 1 / -1; }
  .dialog-actions .btn { min-width: 0; padding-left: 10px; padding-right: 10px; }
  .today-plan-form { align-items: stretch; }
  .today-plan-form .input { min-width: 0; }
  .todo-card { align-items: flex-start; flex-wrap: wrap; }
  .todo-card .todo-main { min-width: 0; }
}

/* 组卷：已选知识点便捷添加 / 删除 */
.kp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary-soft); border: 1px solid var(--primary);
  color: var(--ink); border-radius: 99px; padding: 3px 10px;
  font-size: 12.5px; line-height: 1.5; cursor: pointer;
  transition: background .15s, color .15s;
}
.kp-chip:hover { background: #fff; color: var(--primary); }
.kp-chip svg { flex: none; opacity: .7; }

/* ========================================================================== 
   iOS 风格视觉系统·v3
   ========================================================================== */
:root {
  --primary: #007AFF;
  --primary-dark: #0062CC;
  --primary-soft: #E9F3FF;
  --ink: #111827;
  --green: #248A3D;
  --green-soft: #EAF7ED;
  --gold: #B25D00;
  --gold-soft: #FFF4E5;
  --red: #D70015;
  --red-soft: #FFF0F1;
  --bg: #F2F2F7;
  --card: rgba(255, 255, 255, .94);
  --border: rgba(60, 60, 67, .12);
  --border-strong: rgba(60, 60, 67, .22);
  --text: #1C1C1E;
  --text-2: #636366;
  --text-3: #8E8E93;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .03), 0 5px 18px rgba(0, 0, 0, .035);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .14);
  --radius: 16px;
  --topbar-h: 60px;
}

body {
  background:
    radial-gradient(circle at 6% 0%, rgba(0, 122, 255, .08), transparent 27rem),
    var(--bg);
  letter-spacing: -.01em;
}

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .quick-entry, .sidebar-item, .mobile-nav-item, .chip-check { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0, 122, 255, .28);
  outline-offset: 2px;
}

.topbar {
  background: rgba(249, 249, 249, .78);
  border-bottom-color: rgba(60, 60, 67, .1);
  padding-left: 16px;
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: none;
}
.brand-mark svg circle, .login-brand .brand-mark svg circle { fill: var(--primary); }
.brand-text { font-weight: 750; letter-spacing: -.02em; }
.topnav-item, .topbar-item { border-radius: 10px; }
.topnav-item.active { background: rgba(0, 122, 255, .1); }
.global-search-btn {
  min-width: 106px; justify-content: space-between; background: rgba(118, 118, 128, .08);
  border: 1px solid rgba(60, 60, 67, .08); color: var(--text-2);
}
.search-shortcut { display: flex; align-items: center; gap: 7px; }
kbd {
  min-width: 22px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; border: 1px solid rgba(60, 60, 67, .16); background: rgba(255, 255, 255, .82);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05); color: var(--text-3); font: 11px/1 var(--font);
}

.sidebar { background: rgba(255, 255, 255, .7); border-right-color: rgba(60, 60, 67, .1); }
.sidebar-label { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.sidebar-item { border-radius: 10px; min-height: 38px; }
.sidebar-item.active::before { display: none; }
.sidebar-item.active { background: rgba(0, 122, 255, .11); }

.main { padding: 28px; }
.body-wrap { width: 100%; }
.main > * { min-width: 0; }
.page-title { font-size: 24px; font-weight: 750; letter-spacing: -.035em; }
.card, .q-card, .res-card, .class-card, .knowledge-card, .wrong-card, .corpus-card, .queue-card, .guide-step,
.col-panel, .paper-panel, .learn-stat, .plan-week {
  border-color: rgba(60, 60, 67, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card { padding: 18px; }
.btn { height: 36px; border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--primary); box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); box-shadow: 0 5px 14px rgba(0, 122, 255, .2); }
.btn-primary::after { display: none; }
.btn-outline { background: rgba(255, 255, 255, .72); }
.input, .select, .textarea {
  height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .88); font-size: 16px;
}
.textarea { height: auto; }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 3px rgba(0, 122, 255, .14); }
.ai-readonly { display: flex; align-items: center; color: var(--text-2); background: rgba(118, 118, 128, .08); }
.setting-status { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; color: var(--green); font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 199, 89, .12); }
.tag { border-radius: 999px; padding: 2px 9px; }
.quick-entry { border-radius: var(--radius); border-color: rgba(60, 60, 67, .1); box-shadow: var(--shadow-sm); }
.quick-icon { border-radius: 12px; }
.quick-icon.blue { background: linear-gradient(145deg, #0A84FF, #007AFF); }
.quick-icon.green { background: linear-gradient(145deg, #34C759, #248A3D); }
.quick-icon.gold { background: linear-gradient(145deg, #FFB340, #FF9500); }
.quick-icon.red { background: linear-gradient(145deg, #FF453A, #D70015); }
.quick-entry:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.tbl th { background: rgba(0, 122, 255, .07); }
.dialog-mask { background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dialog { border-radius: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .2); }
.notice-menu, .account-menu { border-radius: 16px; box-shadow: var(--shadow-md); }

/* 今日计划 */
.today-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.plan-progress {
  min-width: 48px; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-weight: 700; font-size: 12px;
}
.today-plan-form { display: flex; gap: 8px; margin-bottom: 10px; }
.today-plan-form .input { flex: 1; min-width: 0; }
.today-plan-item { min-height: 44px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); }
.today-plan-item > span { flex: 1; line-height: 1.45; }
.today-plan-item.done > span { color: var(--text-3); text-decoration: line-through; }
.plan-check {
  width: 23px; height: 23px; flex: none; padding: 0; border-radius: 50%; border: 1.5px solid var(--border-strong);
  background: #fff; color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.today-plan-item.done .plan-check { background: var(--primary); border-color: var(--primary); }
.plan-delete { width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; }
.plan-delete:hover { color: var(--red); background: var(--red-soft); }
.plan-empty { padding: 12px 2px 2px; color: var(--text-3); font-size: 13px; }

/* 全局搜索 */
.command-mask {
  position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start;
  padding: min(14vh, 120px) 18px 20px; background: rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.command-palette {
  width: min(620px, 100%); overflow: hidden; border-radius: 20px; background: rgba(249, 249, 249, .96);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
}
.command-search { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.command-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 18px var(--font); color: var(--text); }
.command-search button { border: 0; background: none; color: var(--primary); font-size: 14px; padding: 7px; }
.command-results { max-height: min(58vh, 470px); overflow-y: auto; padding: 8px; }
.command-item { width: 100%; min-height: 54px; border: 0; background: none; border-radius: 12px; padding: 8px 10px; display: flex; align-items: center; gap: 11px; text-align: left; color: var(--text); }
.command-item:hover, .command-item.selected { background: rgba(0, 122, 255, .09); }
.command-icon { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.command-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.command-copy b { font-size: 14px; }
.command-copy small { color: var(--text-3); font-size: 12px; }
.command-enter { color: var(--text-3); font-size: 11px; opacity: 0; }
.command-item:hover .command-enter { opacity: 1; }
.command-empty { padding: 34px 16px; text-align: center; color: var(--text-3); }
.command-foot { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 11px; }

/* 移动端原生感底部导航 */
.mobile-nav { display: none; }

@media (max-width: 640px) {
  :root { --topbar-h: 54px; }
  body { background: var(--bg); }
  .topbar { padding: env(safe-area-inset-top) 8px 0; height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .topbar-left, .topbar-right { gap: 2px; }
  .brand { padding: 0 4px; gap: 6px; }
  .brand-text { font-size: 15px; }
  .brand-tag, .topnav, #ai-chip, #notice-btn + .notice-menu { display: none; }
  .account-btn { padding: 4px; }
  .account-btn > span:not(.avatar), .account-btn > svg { display: none; }
  .brand-mark svg { width: 24px; height: 24px; }
  .global-search-btn { min-width: 36px; width: 36px; height: 36px; padding: 0; justify-content: center; }
  .search-shortcut { display: none; }
  #offline-toggle { display: none; }
  .main { padding: 14px 12px calc(86px + env(safe-area-inset-bottom)); }
  .page-title { font-size: 28px; line-height: 1.18; }
  .page-head { margin-bottom: 16px; }
  .card { padding: 16px; }
  .quick-entries { gap: 10px; }
  .quick-entry { min-height: 70px; }
  .today-plan-form .btn { width: 42px; padding: 0; font-size: 0; }
  .today-plan-form .btn svg { width: 18px; height: 18px; }
  .dialog-mask { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .login-card-modern { display:block; max-width:420px; min-height:0; }.login-splash { min-height:500px; padding:42px 26px; align-items:flex-end; }.splash-copy h1 { font-size:42px; }.splash-copy p { font-size:14px; }.orbit-a { right:-50%; top:4%; }.orbit-b { right:-8%; top:18%; }.login-panel { padding:24px 20px; }.third-party-grid { grid-template-columns:repeat(5,1fr); }
  .dialog { border-radius: 20px; }
  .dialog .field { margin-bottom: 14px; }
  .dialog .input, .dialog .select { min-height: 44px; }
  .toast-wrap { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .panel-jump { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .sidebar { top: calc(var(--topbar-h) + env(safe-area-inset-top)); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .sidebar-mask { top: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .mobile-nav {
    position: fixed; display: grid; grid-template-columns: repeat(5, 1fr); left: 0; right: 0; bottom: 0; z-index: 50;
    min-height: calc(62px + env(safe-area-inset-bottom)); padding: 6px 4px env(safe-area-inset-bottom);
    background: rgba(249, 249, 249, .86); border-top: 1px solid rgba(60, 60, 67, .13);
    -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  }
  .mobile-nav-item { min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; color: var(--text-3); font-size: 10px; line-height: 1.1; }
  .mobile-nav-item svg { stroke-width: 2; }
  .mobile-nav-item.active { color: var(--primary); font-weight: 600; }
  .command-mask { padding: calc(8px + env(safe-area-inset-top)) 8px 8px; align-items: flex-start; }
  .command-palette { border-radius: 18px; }
  .command-results { max-height: 64vh; }
  .command-foot { display: none; }
}

/* 触控设备与窄屏：让长表单、工具栏和卡片按阅读顺序自然堆叠 */
@media (max-width: 480px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .page-title { font-size: 24px; }
  .page-sub { line-height: 1.45; }
  .page-head .btn, .page-head > div:last-child .btn { width: 100%; }
  .inline-form, .filter-bar, .paper-ctx { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .inline-form .field, .filter-bar > * { width: 100%; min-width: 0; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tbl { min-width: 620px; }
  .card { padding: 14px; }
  .dialog-actions { grid-template-columns: 1fr !important; }
  .dialog-actions .btn:first-child { grid-column: auto; }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .main { padding: 22px; }
  .topnav { margin-left: 4px; }
  .topnav-item { padding-left: 10px; padding-right: 10px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .global-search-btn { min-width: 38px; }
  .search-shortcut { display: none; }
}

/* 最终沉浸式开屏：场景覆盖整个视口，登录仅作为轻量浮层 */
.login-view { padding: 0; align-items: stretch; justify-content: stretch; }
.login-card-modern { position: relative; width: 100%; min-height: 100vh; border-radius: 0; display:block; background:#06122c; box-shadow:none; }
.login-splash { position:absolute; inset:0; min-height:100vh; padding:clamp(56px,9vw,140px) clamp(34px,10vw,160px); }
.login-splash { background-image:linear-gradient(90deg,rgba(3,12,34,.72) 0%,rgba(3,12,34,.22) 58%,rgba(3,12,34,.5) 100%),url('../brand/generated/splash-education.png'); background-size:cover; background-position:center; }
.login-splash:after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,rgba(2,10,28,.25),transparent 45%,rgba(2,10,28,.18)); }
.login-splash:after { background:radial-gradient(42% 36% at 72% 38%,rgba(113,224,255,.18),transparent 70%),linear-gradient(90deg,rgba(2,10,28,.28),transparent 45%,rgba(2,10,28,.2)); background-size:120% 120%,100% 100%; animation:light-drift 16s ease-in-out infinite alternate; }
.login-splash:before { opacity:.72;mix-blend-mode:normal;background-size:115% 115%;animation:light-sweep 18s ease-in-out infinite alternate;will-change:opacity,background-position;transform:none;backface-visibility:hidden; }
.splash-orbit:before,.splash-orbit:after { content:""; position:absolute; width:8px; height:8px; border-radius:50%; background:#b9f6ff; box-shadow:0 0 18px 5px rgba(101,221,255,.8); top:8%; left:50%; transform:translate(-50%,-50%); animation:orbit-ping 3.8s ease-in-out infinite; }
.splash-orbit:after { top:auto; left:auto; right:12%; bottom:18%; width:5px; height:5px; animation-delay:-1.6s; }
.splash-particles:before { animation-delay:-2.2s; transform:translate(18px,20px) scale(.7); }
.splash-particles:after { animation-delay:-4.4s; transform:translate(-24px,42px) scale(.5); }
@keyframes light-drift { 0% { background-position:18% 40%,0 0; opacity:.72; } 100% { background-position:78% 58%,0 0; opacity:1; } }
@keyframes light-sweep { 0% { background-position:8% 18%;opacity:.58; } 50% { opacity:.82; } 100% { background-position:88% 72%;opacity:.68; } }
@keyframes orbit-ping { 0%,100% { opacity:.55; transform:translate(-50%,-50%) scale(.7); } 50% { opacity:1; transform:translate(-50%,-50%) scale(1.35); } }
.login-panel { position:absolute; z-index:5; right:clamp(28px,7vw,110px); top:50%; transform:translateY(-50%); width:min(390px,calc(100% - 48px)); max-height:calc(100vh - 56px); overflow:auto; border:1px solid rgba(255,255,255,.28); border-radius:24px; background:rgba(8,20,46,.62); color:#fff; box-shadow:0 24px 80px rgba(0,0,0,.35); backdrop-filter:blur(24px) saturate(140%); -webkit-backdrop-filter:blur(24px) saturate(140%); }
.login-panel .login-brand .brand-text,.login-panel .login-title { color:#fff; }.login-panel .login-sub,.login-panel .login-foot,.login-panel .login-note { color:rgba(255,255,255,.58); }.login-panel .field label,.login-panel .third-party-title { color:rgba(255,255,255,.78); }.login-panel .input { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.25); color:#fff; }.login-panel .form-hint { color:rgba(255,255,255,.5); }.login-panel .login-role-picker button,.login-panel .third-party-btn { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.2); color:rgba(255,255,255,.75); }.login-panel .third-party-btn small { color:rgba(255,255,255,.45); }.login-panel .login-role-picker button.active { background:rgba(101,221,255,.18); color:#9feaff; border-color:#65ddff; }
.login-panel .third-party-login { border-top:1px solid rgba(255,255,255,.13); padding-top:10px; }
.brand-mark img { mix-blend-mode:normal;filter:drop-shadow(0 0 7px rgba(104,225,255,.5)); }
.login-panel .login-brand .brand-mark { width:46px;height:46px;overflow:visible;border-radius:0;background:transparent;border:0;box-shadow:none; }.login-panel .login-brand .brand-mark img { display:block;width:46px;height:46px;border-radius:0;mix-blend-mode:normal;filter:drop-shadow(0 0 9px rgba(113,229,255,.62)); }
.login-splash,.login-splash:before,.login-splash:after,.splash-orbit,.splash-particles { -webkit-transform-style:preserve-3d;backface-visibility:hidden; }
.login-panel .input { min-height:48px;background:rgba(20,42,84,.72);border-color:rgba(153,196,255,.42);color:#f7fbff;caret-color:#91eaff;box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 10px 30px rgba(0,8,28,.12);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease; }
.login-panel .input::placeholder { color:rgba(214,230,255,.5); }
.login-panel .input:hover { background:rgba(27,52,99,.78);border-color:rgba(159,211,255,.58); }
.login-panel .input:focus { background:rgba(24,48,96,.9);border-color:#79ddff;box-shadow:0 0 0 3px rgba(87,202,255,.16),0 12px 34px rgba(0,8,28,.18);outline:none; }
.login-panel input.input:-webkit-autofill,.login-panel input.input:-webkit-autofill:hover,.login-panel input.input:-webkit-autofill:focus { -webkit-text-fill-color:#f7fbff !important;caret-color:#91eaff;box-shadow:0 0 0 1000px rgb(23,46,91) inset,0 0 0 3px rgba(87,202,255,.12) !important;border-color:rgba(121,221,255,.72) !important;transition:background-color 9999s ease-out 0s; }
@media (max-width:640px) { .login-splash { position:relative; inset:auto; min-height:100vh; padding:38px 24px 330px; align-items:flex-start; background-position:62% center; background-image:linear-gradient(180deg,rgba(3,12,34,.58) 0%,rgba(3,12,34,.18) 35%,rgba(3,12,34,.84) 78%,rgba(3,12,34,.96) 100%),url('../brand/generated/splash-education.png'); }.login-panel { position:absolute; top:auto; bottom:18px; left:12px; right:12px; transform:none; width:auto; max-height:58vh; border-radius:20px; padding:20px; } }

/* ===== 登录后全端工作台：学习、教学与研究一体化 ===== */
.app-shell { background:radial-gradient(900px 520px at 12% -10%,rgba(69,195,255,.11),transparent 60%),radial-gradient(800px 540px at 94% 8%,rgba(126,99,255,.1),transparent 64%),#f3f6fb; }
.app-shell .topbar { background:rgba(7,20,47,.94);border-bottom-color:rgba(149,211,255,.16);box-shadow:0 12px 32px rgba(5,17,43,.14);color:#fff; }
.app-shell .brand,.app-shell .brand-text { color:#f6fbff; }
.app-shell .brand-mark img { filter:drop-shadow(0 0 7px rgba(104,225,255,.52)); }
.app-shell .brand-tag { color:#8beaff;background:rgba(101,221,255,.12);border:1px solid rgba(101,221,255,.2); }
.app-shell .topnav-item,.app-shell .topbar-item { color:rgba(231,241,255,.68); }
.app-shell .topnav-item:hover,.app-shell .topbar-item:hover { color:#fff;background:rgba(255,255,255,.08); }
.app-shell .topnav-item.active { color:#a5f3ff;background:rgba(101,221,255,.14);box-shadow:0 0 0 1px rgba(101,221,255,.16) inset; }
.app-shell .global-search-btn { color:rgba(231,241,255,.66);background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1); }
.app-shell .global-search-btn kbd { color:rgba(255,255,255,.56);background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14); }
.app-shell .sidebar { background:linear-gradient(180deg,#0a1c43 0%,#0d2852 60%,#102c59 100%);border-right-color:rgba(121,195,255,.14);box-shadow:12px 0 40px rgba(7,24,55,.08); }
.app-shell .sidebar-label { color:rgba(187,213,245,.48); }
.app-shell .sidebar-item { color:rgba(224,238,255,.7); }
.app-shell .sidebar-item svg { color:rgba(142,198,255,.56); }
.app-shell .sidebar-item:hover { color:#fff;background:rgba(255,255,255,.07); }
.app-shell .sidebar-item.active { color:#b8f5ff;background:linear-gradient(90deg,rgba(67,184,255,.2),rgba(116,101,255,.1));box-shadow:0 0 0 1px rgba(119,214,255,.13) inset; }
.app-shell .main { background:transparent; }
.app-shell .page { max-width:1500px; }
.app-shell .card,.app-shell .q-card,.app-shell .res-card,.app-shell .class-card,.app-shell .knowledge-card,.app-shell .wrong-card,.app-shell .corpus-card,.app-shell .queue-card,.app-shell .col-panel,.app-shell .paper-panel { background:rgba(255,255,255,.86);border-color:rgba(69,99,145,.12);box-shadow:0 14px 40px rgba(16,48,91,.06);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px); }
.app-shell .card:hover,.app-shell .res-card:hover,.app-shell .knowledge-card:hover { border-color:rgba(47,141,224,.28); }
.app-shell .page-title { color:#10284c;font-size:clamp(24px,2.3vw,34px); }
.app-shell .section-title { color:#18345d; }
.app-shell .tbl th { background:linear-gradient(180deg,rgba(231,242,255,.95),rgba(239,246,255,.9));color:#18365f; }
.app-shell .tbl tbody tr:hover { background:rgba(224,241,255,.58); }
.app-shell .input,.app-shell .select,.app-shell .textarea { border-color:rgba(54,93,147,.18);box-shadow:0 1px 0 rgba(255,255,255,.72) inset; }
.app-shell .input:focus,.app-shell .select:focus,.app-shell .textarea:focus { border-color:#4ca8ea;box-shadow:0 0 0 3px rgba(76,168,234,.13); }

.workspace-hero { position:relative;min-height:310px;overflow:hidden;border-radius:30px;padding:clamp(30px,5vw,64px);display:flex;align-items:center;background:linear-gradient(118deg,#071d47 0%,#123d76 50%,#403582 116%);color:#fff;box-shadow:0 24px 60px rgba(12,42,91,.2);isolation:isolate; }
.workspace-hero:before { content:"";position:absolute;inset:0;background:radial-gradient(560px circle at 72% 38%,rgba(83,221,255,.24),transparent 58%),linear-gradient(125deg,transparent 28%,rgba(130,116,255,.18));z-index:-1; }
.workspace-hero:after { content:"";position:absolute;inset:-45% -15%;background:conic-gradient(from 220deg at 72% 45%,transparent 0 30%,rgba(101,221,255,.12) 36%,transparent 43% 70%,rgba(137,104,255,.12) 78%,transparent 84%);animation:workspace-glow 16s ease-in-out infinite alternate;z-index:-1; }
.workspace-hero.role-student { background:linear-gradient(118deg,#072b4e,#0a5b78 56%,#3b3f91); }
.workspace-hero.role-admin { background:linear-gradient(118deg,#151e47,#28376d 58%,#5a3c7d); }
.workspace-hero-copy { position:relative;z-index:2;max-width:760px; }
.workspace-eyebrow { display:inline-flex;align-items:center;gap:8px;color:#9febff;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase; }
.workspace-eyebrow:before { content:"";width:30px;height:1px;background:#75ddff;box-shadow:0 0 10px rgba(117,221,255,.8); }
.workspace-hero h1 { max-width:720px;margin:18px 0 12px;font-size:clamp(32px,4.2vw,58px);line-height:1.12;letter-spacing:-.055em; }
.workspace-hero p { max-width:640px;margin:0;color:rgba(232,244,255,.7);font-size:15px;line-height:1.8; }
.workspace-actions { display:flex;gap:10px;flex-wrap:wrap;margin-top:26px; }
.workspace-actions .btn { min-height:44px;padding:0 19px; }
.workspace-primary { color:#052448;background:linear-gradient(135deg,#a9f5ff,#73dcff);border:0;box-shadow:0 10px 30px rgba(64,206,255,.2); }
.workspace-secondary { color:#e7f7ff;background:rgba(255,255,255,.08);border:1px solid rgba(191,235,255,.28);backdrop-filter:blur(12px); }
.workspace-orbit { position:absolute;right:clamp(30px,8vw,140px);top:50%;width:190px;height:190px;transform:translateY(-50%);border:1px solid rgba(151,231,255,.22);border-radius:50%;box-shadow:0 0 70px rgba(76,214,255,.15),inset 0 0 45px rgba(83,132,255,.08); }
.workspace-orbit:before,.workspace-orbit:after { content:"";position:absolute;border:1px solid rgba(157,190,255,.17);border-radius:50%;inset:20px;transform:rotate(38deg); }
.workspace-orbit:after { inset:48px;transform:rotate(-28deg); }
.workspace-orbit span { position:absolute;width:9px;height:9px;border-radius:50%;background:#a7f3ff;box-shadow:0 0 18px rgba(89,222,255,.9);animation:workspace-pulse 3.2s ease-in-out infinite; }
.workspace-orbit span:nth-child(1) { left:24px;top:42px; }.workspace-orbit span:nth-child(2) { right:22px;bottom:48px;animation-delay:-1.1s; }.workspace-orbit span:nth-child(3) { left:88px;bottom:-4px;animation-delay:-2s; }
.workspace-orbit b { position:absolute;inset:0;display:grid;place-items:center;color:#bdf8ff;font-size:34px;letter-spacing:-.08em;text-shadow:0 0 24px rgba(101,221,255,.7); }
@keyframes workspace-glow { from { transform:translate3d(-1%,0,0) rotate(-2deg);opacity:.65; } to { transform:translate3d(2%,-1%,0) rotate(4deg);opacity:1; } }
@keyframes workspace-pulse { 0%,100% { transform:scale(.75);opacity:.55; } 50% { transform:scale(1.2);opacity:1; } }

.workspace-status { display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-18px 22px 22px;position:relative;z-index:3; }
.workspace-status > span { min-height:36px;padding:0 13px;display:inline-flex;align-items:center;gap:8px;border-radius:999px;color:#49637f;background:rgba(255,255,255,.94);border:1px solid rgba(73,115,164,.12);box-shadow:0 8px 22px rgba(16,52,97,.08);font-size:12px;font-weight:600; }
.workspace-metrics { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:30px; }
.metric-card { min-height:104px;padding:20px;border-radius:20px;background:rgba(255,255,255,.82);border:1px solid rgba(65,105,157,.11);box-shadow:0 12px 32px rgba(19,54,99,.05);display:flex;flex-direction:column;justify-content:center; }
.metric-card strong { color:#122d57;font-size:30px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.04em; }
.metric-card span { margin-top:9px;color:#718199;font-size:12px; }
.workspace-section-head { display:flex;justify-content:space-between;align-items:end;gap:18px;margin:8px 0 16px; }
.workspace-section-head span,.card-heading span { color:#3986c5;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase; }
.workspace-section-head h2,.card-heading h2 { margin:3px 0 0;color:#15325a;font-size:clamp(20px,2vw,28px);letter-spacing:-.035em; }
.workspace-section-head p { margin:0;color:#8793a5;font-size:12px; }
.capability-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px; }
.capability-card { position:relative;min-height:226px;overflow:hidden;padding:22px;border-radius:22px;background:rgba(255,255,255,.88);border:1px solid rgba(64,101,152,.11);box-shadow:0 14px 34px rgba(20,54,99,.05);cursor:pointer;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.capability-card:before { content:"";position:absolute;width:150px;height:150px;right:-70px;top:-70px;border-radius:50%;background:var(--tone-soft);filter:blur(5px);opacity:.75; }
.capability-card:hover { transform:translateY(-5px);border-color:var(--tone-border);box-shadow:0 22px 48px rgba(20,54,99,.11); }
.capability-card.tone-cyan { --tone-soft:rgba(58,207,255,.18);--tone-border:rgba(35,170,223,.38); }.capability-card.tone-emerald { --tone-soft:rgba(67,210,160,.18);--tone-border:rgba(41,166,121,.34); }.capability-card.tone-violet { --tone-soft:rgba(126,107,255,.17);--tone-border:rgba(111,89,223,.34); }.capability-card.tone-amber { --tone-soft:rgba(255,186,67,.2);--tone-border:rgba(222,149,24,.35); }.capability-card.tone-rose { --tone-soft:rgba(255,102,136,.16);--tone-border:rgba(221,79,112,.34); }
.capability-top { position:relative;display:flex;justify-content:space-between;align-items:center; }
.capability-icon { width:46px;height:46px;border-radius:14px;display:grid;place-items:center;color:#fff;box-shadow:0 10px 22px rgba(33,72,124,.16); }.capability-icon.tone-cyan { background:linear-gradient(145deg,#24bff0,#3384e8); }.capability-icon.tone-emerald { background:linear-gradient(145deg,#33c692,#1d8f73); }.capability-icon.tone-violet { background:linear-gradient(145deg,#8b79ff,#6650d9); }.capability-icon.tone-amber { background:linear-gradient(145deg,#ffb843,#e98a20); }.capability-icon.tone-rose { background:linear-gradient(145deg,#ff718f,#d94668); }
.capability-stage { color:#718199;font-size:11px;font-weight:700; }
.capability-card h3 { position:relative;margin:20px 0 8px;color:#17355d;font-size:18px; }
.capability-card p { position:relative;min-height:48px;margin:0;color:#6f8097;font-size:13px;line-height:1.7; }
.capability-link { position:absolute;left:22px;bottom:20px;display:inline-flex;align-items:center;gap:5px;color:#347fbf;font-size:12px;font-weight:700; }
.evidence-flow { display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:14px;margin-bottom:22px;padding:20px 24px;border-radius:22px;color:#ddecff;background:linear-gradient(105deg,#0c224a,#143968 58%,#333873);box-shadow:0 16px 36px rgba(12,38,80,.12); }
.evidence-flow > div { display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center; }.evidence-flow > div span { grid-row:1/3;color:#74dcff;font-size:12px;font-weight:800; }.evidence-flow b { font-size:14px; }.evidence-flow small { color:rgba(222,237,255,.57);font-size:11px; }.evidence-flow > i { color:rgba(153,220,255,.4);font-style:normal; }
.research-layout { display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.7fr);gap:16px;align-items:start; }.research-layout main,.research-layout aside { display:grid;gap:16px;min-width:0; }
.card-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px; }.card-heading h2 { font-size:20px; }.card-heading > small { color:#8492a6;font-size:11px; }
.task-card { margin:0; }.research-card,.notice-card { margin:0; }
.research-item { width:100%;display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:10px;padding:14px 0;border:0;border-top:1px solid rgba(72,102,145,.1);background:none;text-align:left;color:#17355d; }.research-item > span { color:#5ebfe8;font-size:11px;font-weight:800; }.research-item div { display:flex;flex-direction:column;gap:3px; }.research-item b { font-size:13px; }.research-item small { color:#79899f;font-size:11px;line-height:1.55; }.research-item > svg { color:#8aa0b9; }

@media (max-width:1180px) { .workspace-orbit { opacity:.55;right:30px; }.workspace-hero-copy { max-width:70%; }.capability-grid { grid-template-columns:repeat(2,1fr); }.research-layout { grid-template-columns:1fr; }.topnav-item { padding-left:9px;padding-right:9px; } }
@media (max-width:760px) { .workspace-hero { min-height:330px;border-radius:24px;padding:30px 22px;align-items:flex-end; }.workspace-hero-copy { max-width:none; }.workspace-hero h1 { font-size:34px; }.workspace-hero p { font-size:13px; }.workspace-orbit { width:150px;height:150px;top:26%;right:-28px;opacity:.42; }.workspace-actions { display:grid;grid-template-columns:1fr; }.workspace-actions .btn { width:100%; }.workspace-status { margin:-13px 10px 18px;gap:6px; }.workspace-status > span { min-height:32px;padding:0 10px;font-size:10.5px; }.workspace-metrics { grid-template-columns:repeat(2,1fr);gap:8px; }.metric-card { min-height:88px;padding:15px;border-radius:17px; }.metric-card strong { font-size:25px; }.workspace-section-head { align-items:flex-start;flex-direction:column;gap:4px; }.capability-grid { grid-template-columns:1fr;gap:10px; }.capability-card { min-height:190px;padding:18px; }.capability-card p { min-height:auto;max-width:88%; }.capability-link { left:18px;bottom:16px; }.evidence-flow { grid-template-columns:1fr;padding:18px;gap:10px; }.evidence-flow > i { transform:rotate(90deg);justify-self:center; }.research-layout { grid-template-columns:1fr; }.app-shell .sidebar { background:linear-gradient(180deg,#091b41,#102d59); }.app-shell .mobile-nav { background:rgba(249,252,255,.95);border-top-color:rgba(44,92,146,.1);box-shadow:0 -12px 30px rgba(12,42,82,.08); }.app-shell .mobile-nav-item.active { color:#247bbd; }.app-shell .topbar { background:rgba(7,20,47,.96); } }
@media (prefers-reduced-motion:reduce) { .workspace-hero:after,.workspace-orbit span { animation:none !important; } }

/* ===== 高级色彩校准：石墨海军蓝 + 冰青金属点缀 ===== */
:root { --primary:#246ea8;--primary-dark:#174f7d;--primary-soft:#e6f0f7;--ink:#10243f;--bg:#eef2f6;--card:#fbfcfe;--border:#dce4ec;--border-strong:#c8d5e2;--text:#1c2d42;--text-2:#5e6f82;--text-3:#8795a5;--shadow-sm:0 1px 2px rgba(12,28,51,.04),0 8px 24px rgba(23,48,79,.035);--shadow-md:0 20px 48px rgba(17,38,69,.11); }
.app-shell { background:radial-gradient(760px 440px at 8% -8%,rgba(61,164,196,.075),transparent 64%),radial-gradient(700px 460px at 92% 2%,rgba(87,96,151,.06),transparent 68%),linear-gradient(180deg,#f2f5f8 0%,#edf1f5 100%); }
.app-shell .topbar { background:linear-gradient(90deg,rgba(7,20,41,.98),rgba(10,29,55,.97));border-bottom:1px solid rgba(171,218,229,.13);box-shadow:0 10px 32px rgba(8,22,43,.12); }
.app-shell .brand-tag { color:#a8e5ed;background:rgba(124,213,225,.09);border-color:rgba(144,225,233,.14); }
.app-shell .topnav-item.active { color:#c5f3f5;background:linear-gradient(180deg,rgba(125,220,228,.13),rgba(83,169,187,.08));box-shadow:0 0 0 1px rgba(163,232,236,.12) inset,0 6px 18px rgba(0,0,0,.08); }
.app-shell .sidebar { background:linear-gradient(180deg,#0b1b34 0%,#102a48 56%,#122f4d 100%);border-right-color:rgba(150,208,218,.1); }
.app-shell .sidebar-item.active { color:#d0f5f3;background:linear-gradient(90deg,rgba(94,190,199,.17),rgba(91,129,172,.08));box-shadow:inset 2px 0 #79d1d4,inset 0 0 0 1px rgba(143,216,222,.09); }
.app-shell .card,.app-shell .q-card,.app-shell .res-card,.app-shell .class-card,.app-shell .knowledge-card,.app-shell .wrong-card,.app-shell .corpus-card,.app-shell .queue-card,.app-shell .col-panel,.app-shell .paper-panel { background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(249,251,253,.92));border-color:rgba(42,70,105,.1);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 14px 38px rgba(20,43,70,.055); }
.app-shell .btn-primary { background:linear-gradient(135deg,#286f9e,#235f91);box-shadow:0 8px 20px rgba(29,91,137,.18); }
.app-shell .btn-primary:hover:not(:disabled) { background:linear-gradient(135deg,#2f7ba9,#1f5b8b);box-shadow:0 10px 24px rgba(29,91,137,.24); }
.workspace-hero { background:linear-gradient(118deg,#0a1931 0%,#102b4c 50%,#283b59 100%);border:1px solid rgba(174,225,229,.12);box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 28px 65px rgba(8,26,51,.2); }
.workspace-hero.role-student { background:linear-gradient(118deg,#081d35 0%,#10384b 54%,#294455 100%); }
.workspace-hero.role-admin { background:linear-gradient(118deg,#111a30 0%,#25324a 56%,#3b3b51 100%); }
.workspace-hero:before { background:radial-gradient(520px circle at 75% 37%,rgba(93,207,211,.15),transparent 62%),linear-gradient(125deg,transparent 34%,rgba(113,137,174,.09)); }
.workspace-hero:after { background:conic-gradient(from 220deg at 72% 45%,transparent 0 32%,rgba(116,210,212,.08) 38%,transparent 44% 72%,rgba(129,143,182,.07) 79%,transparent 86%); }
.workspace-eyebrow { color:#a9e2e2; }.workspace-eyebrow:before { background:#75c9ca;box-shadow:0 0 8px rgba(117,201,202,.45); }
.workspace-hero p { color:rgba(225,237,244,.68); }
.workspace-primary { color:#0a2934;background:linear-gradient(135deg,#b7e8e7,#75cfd3);box-shadow:0 10px 28px rgba(78,177,185,.16); }
.workspace-secondary { color:#e6f0f4;background:rgba(255,255,255,.055);border-color:rgba(191,221,226,.2); }
.workspace-orbit { border-color:rgba(158,222,224,.18);box-shadow:0 0 70px rgba(82,188,192,.1),inset 0 0 45px rgba(109,146,175,.07); }
.workspace-orbit span { background:#a7dfe0;box-shadow:0 0 16px rgba(101,206,209,.65); }.workspace-orbit b { color:#c8eceb;text-shadow:0 0 22px rgba(103,197,198,.45); }
.workspace-status > span { color:#526779;background:rgba(251,253,254,.96);border-color:rgba(57,89,119,.1);box-shadow:0 8px 22px rgba(19,43,69,.055); }
.metric-card { background:linear-gradient(150deg,rgba(255,255,255,.96),rgba(246,249,251,.94));border-color:rgba(51,82,115,.09);box-shadow:0 1px 0 rgba(255,255,255,.92) inset,0 12px 32px rgba(21,45,70,.045); }
.metric-card:before { content:"";display:block;width:28px;height:2px;margin-bottom:14px;border-radius:3px;background:linear-gradient(90deg,#65b9bd,#7d8fae); }
.metric-card strong { color:#142b45; }.metric-card span { color:#7b8997; }
.workspace-section-head span,.card-heading span { color:#438c96; }.workspace-section-head h2,.card-heading h2 { color:#183049; }
.capability-card { background:linear-gradient(155deg,rgba(255,255,255,.97),rgba(247,250,252,.94));border-color:rgba(48,77,107,.09);box-shadow:0 1px 0 #fff inset,0 14px 34px rgba(20,43,69,.045); }
.capability-card:hover { transform:translateY(-4px);box-shadow:0 1px 0 #fff inset,0 22px 46px rgba(20,43,69,.09); }
.capability-icon.tone-cyan { background:linear-gradient(145deg,#4baab0,#307f91); }.capability-icon.tone-emerald { background:linear-gradient(145deg,#55a38a,#357764); }.capability-icon.tone-violet { background:linear-gradient(145deg,#7787aa,#566583); }.capability-icon.tone-amber { background:linear-gradient(145deg,#c49b54,#9b7335); }.capability-icon.tone-rose { background:linear-gradient(145deg,#b97880,#8f5965); }
.capability-link { color:#367b8c; }.evidence-flow { background:linear-gradient(105deg,#0d2139,#17344e 58%,#2e4054);border:1px solid rgba(155,213,218,.11);box-shadow:0 18px 40px rgba(10,31,54,.12); }.evidence-flow > div span { color:#83cdd0; }
.research-item > span { color:#4f9ca4; }
@media (max-width:760px) { .workspace-hero { background:linear-gradient(155deg,#0a1a32,#143650 62%,#293e52); }.workspace-hero.role-admin { background:linear-gradient(155deg,#121b30,#29364b 62%,#3d3d4f); } }

/* ===== 全浅色调：暖白、雾蓝、浅青、低饱和灰紫 ===== */
.app-shell { background:radial-gradient(860px 500px at 5% -6%,rgba(104,207,220,.16),transparent 64%),radial-gradient(760px 500px at 96% 3%,rgba(170,163,220,.12),transparent 68%),linear-gradient(180deg,#f7fafc 0%,#eef4f7 100%); }
.app-shell .topbar { background:rgba(251,253,255,.92);border-bottom:1px solid rgba(63,105,135,.1);box-shadow:0 8px 28px rgba(34,70,97,.07);color:#17344d; }
.app-shell .brand,.app-shell .brand-text { color:#18344d; }.app-shell .brand-mark img { filter:drop-shadow(0 0 5px rgba(68,174,193,.26)); }
.app-shell .brand-tag { color:#327a87;background:#e6f5f6;border-color:#ccebee; }
.app-shell .topnav-item,.app-shell .topbar-item { color:#627487; }
.app-shell .topnav-item:hover,.app-shell .topbar-item:hover { color:#173b55;background:rgba(91,169,184,.09); }
.app-shell .topnav-item.active { color:#236d7c;background:linear-gradient(180deg,#e1f5f6,#eaf5f8);box-shadow:0 0 0 1px rgba(70,156,171,.13) inset,0 6px 16px rgba(66,129,145,.07); }
.app-shell .global-search-btn { color:#6a7e8e;background:rgba(87,125,151,.07);border-color:rgba(70,105,132,.09); }
.app-shell .global-search-btn kbd { color:#7b8c9b;background:#fff;border-color:#dce6ec; }
.app-shell .sidebar { background:linear-gradient(180deg,rgba(249,253,254,.96),rgba(237,247,249,.96));border-right-color:rgba(56,105,131,.1);box-shadow:10px 0 34px rgba(31,72,98,.045); }
.app-shell .sidebar-label { color:#91a2af; }.app-shell .sidebar-item { color:#617587; }.app-shell .sidebar-item svg { color:#7d9aaa; }
.app-shell .sidebar-item:hover { color:#1b5261;background:rgba(90,172,184,.09); }
.app-shell .sidebar-item.active { color:#246f7e;background:linear-gradient(90deg,#dff3f4,#e9f3f7);box-shadow:inset 2px 0 #66bdc4,inset 0 0 0 1px rgba(85,163,175,.08); }
.workspace-hero,.workspace-hero.role-student,.workspace-hero.role-admin { color:#17334b;background:linear-gradient(118deg,#ecf8f8 0%,#dceff3 48%,#ececf6 100%);border:1px solid rgba(80,145,160,.13);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 22px 56px rgba(57,103,127,.1); }
.workspace-hero.role-student { background:linear-gradient(118deg,#e8faf5,#d9f0ef 52%,#e8edf8); }.workspace-hero.role-admin { background:linear-gradient(118deg,#f0f7fb,#e1edf5 55%,#eeeaf5); }
.workspace-hero:before { background:radial-gradient(520px circle at 75% 37%,rgba(83,192,199,.2),transparent 62%),linear-gradient(125deg,transparent 34%,rgba(137,139,190,.08)); }
.workspace-hero:after { background:conic-gradient(from 220deg at 72% 45%,transparent 0 32%,rgba(91,190,196,.1) 38%,transparent 44% 72%,rgba(153,145,199,.08) 79%,transparent 86%); }
.workspace-eyebrow { color:#347f89; }.workspace-eyebrow:before { background:#58aeb6;box-shadow:none; }.workspace-hero h1 { color:#153249; }.workspace-hero p { color:#60778a; }
.workspace-primary { color:#fff;background:linear-gradient(135deg,#4fa7b0,#347f93);box-shadow:0 10px 24px rgba(63,143,156,.18); }.workspace-secondary { color:#405e73;background:rgba(255,255,255,.68);border-color:rgba(80,125,150,.18); }
.workspace-orbit { border-color:rgba(67,153,166,.2);box-shadow:0 0 60px rgba(84,183,190,.1),inset 0 0 45px rgba(112,143,183,.06); }.workspace-orbit:before,.workspace-orbit:after { border-color:rgba(96,151,168,.15); }.workspace-orbit span { background:#55abb2;box-shadow:0 0 14px rgba(80,171,179,.45); }.workspace-orbit b { color:#488b96;text-shadow:0 0 20px rgba(88,177,183,.22); }
.workspace-status > span { background:rgba(255,255,255,.9); }.evidence-flow { color:#24465b;background:linear-gradient(105deg,#e7f4f5,#dcecf1 58%,#e9e9f4);border-color:rgba(72,139,153,.12);box-shadow:0 14px 34px rgba(45,91,113,.07); }.evidence-flow > div span { color:#3e9099; }.evidence-flow small { color:#718695; }.evidence-flow > i { color:#8caeb8; }

.module-toolkit { margin:0 0 20px;padding:16px;border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(239,249,250,.88));border:1px solid rgba(69,124,143,.11);box-shadow:0 12px 30px rgba(34,78,101,.055);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px); }
.workspace-status + .module-toolkit { margin-top:0; }
.module-toolkit-head { display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px; }.module-toolkit-head > div:first-child { display:flex;align-items:baseline;gap:9px; }.module-toolkit-head span { color:#4c8e98;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase; }.module-toolkit-head b { color:#24455a;font-size:14px; }
.module-productivity { display:flex;gap:7px;flex-wrap:wrap; }.module-productivity button { min-height:32px;padding:0 11px;display:inline-flex;align-items:center;gap:6px;border-radius:10px;border:1px solid rgba(72,129,146,.13);background:rgba(255,255,255,.78);color:#496879;font-size:11px;font-weight:700; }.module-productivity button:hover { color:#216b78;border-color:rgba(66,153,165,.28);background:#f3fbfb; }
.module-shortcuts { display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none; }.module-shortcuts::-webkit-scrollbar { display:none; }.module-shortcuts button { flex:1;min-width:130px;min-height:46px;padding:0 12px;display:flex;align-items:center;justify-content:flex-start;gap:9px;border-radius:13px;border:1px solid rgba(64,111,137,.1);background:rgba(255,255,255,.82);color:#466277;font-size:12px;font-weight:700;white-space:nowrap;transition:.18s ease; }.module-shortcuts button span { width:28px;height:28px;display:grid;place-items:center;border-radius:9px;color:#347f8e;background:#e3f3f4; }.module-shortcuts button:hover { color:#1f6572;transform:translateY(-2px);border-color:rgba(65,150,162,.25);box-shadow:0 9px 20px rgba(43,104,118,.07); }
.module-note-dialog { max-width:620px; }.module-note-dialog .textarea { min-height:220px; }.note-meta { display:flex;justify-content:space-between;gap:10px;margin:7px 0 18px;color:#8797a5;font-size:11px; }
.focus-dialog { max-width:460px;text-align:center; }.focus-clock { margin:12px 0 18px;color:#245c72;font-size:56px;font-weight:750;letter-spacing:-.06em;font-variant-numeric:tabular-nums; }.focus-presets { display:flex;justify-content:center;gap:8px;margin-bottom:22px; }.focus-presets button { min-width:82px;height:34px;border-radius:10px;border:1px solid #d7e5eb;background:#f6fafb;color:#587184; }
.module-meta-actions { display:flex;justify-content:flex-end;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(75,126,143,.09); }.module-meta-actions button { min-height:30px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border:0;border-radius:9px;background:transparent;color:#718592;font-size:10.5px;font-weight:700; }.module-meta-actions button:hover { color:#256d78;background:#edf8f8; }
.checklist-dialog { max-width:560px; }.checklist-form { display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:12px; }.checklist-list { max-height:340px;overflow-y:auto;border-top:1px solid #e5edf1; }.checklist-item { min-height:48px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #edf2f4; }.checklist-item > span { flex:1;color:#3c5668; }.checklist-item.done > span { color:#95a2aa;text-decoration:line-through; }.checklist-check { width:24px;height:24px;display:grid;place-items:center;border-radius:50%;border:1px solid #bed4dc;background:#fff;color:#fff; }.checklist-item.done .checklist-check { background:#52a5ac;border-color:#52a5ac; }.checklist-delete { width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;background:none;color:#a0abb2; }.checklist-delete:hover { color:#b65d68;background:#fff0f2; }.checklist-summary { margin-right:auto;color:#81919c;font-size:11px; }
.recent-dialog { max-width:760px; }.recent-columns { display:grid;grid-template-columns:1fr 1fr;gap:14px; }.recent-columns section { min-width:0;padding:14px;border-radius:15px;background:#f7fafb;border:1px solid #e5edf1; }.recent-columns h3 { display:flex;align-items:center;gap:7px;margin:0 0 8px;color:#3b6171;font-size:13px; }.recent-row { width:100%;min-height:48px;display:grid;grid-template-columns:22px 1fr;align-items:center;gap:7px;border:0;border-top:1px solid #e8eef1;background:none;text-align:left; }.recent-row > span { color:#6da9b1; }.recent-row div { display:flex;flex-direction:column; }.recent-row b { color:#385367;font-size:12px; }.recent-row small { color:#93a0a9;font-size:10px; }
.source-dialog { max-width:980px;max-height:92vh;overflow-y:auto; }.source-platforms { display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:16px; }.source-platforms > button { min-height:126px;padding:14px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;border-radius:15px;border:1px solid #dce9ed;background:linear-gradient(155deg,#f9fcfd,#edf8f8);text-align:left; }.source-platforms b { color:#31576a;font-size:13px; }.source-platforms small { flex:1;color:#7b8f9b;font-size:10.5px;line-height:1.55; }.source-platforms span { display:flex;align-items:center;gap:4px;color:#3c8791;font-size:10.5px;font-weight:700; }.source-form { padding:15px;border-radius:15px;background:#f7fafb;border:1px solid #e3ecef; }.source-form-head,.source-list-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px; }.source-form-head b,.source-list-head b { color:#38596a;font-size:13px; }.source-form-head span,.source-list-head span { color:#8a9aa4;font-size:10.5px; }.source-form-grid { display:grid;grid-template-columns:1.4fr 1.4fr .7fr 1fr;gap:8px; }.source-ai-box { margin-top:10px;padding:12px;border-radius:13px;border:1px solid #d8e7ec;background:linear-gradient(145deg,#fafdfe,#edf7f8); }.source-ai-head { display:flex;align-items:center;justify-content:space-between;gap:12px; }.source-ai-head > div { display:flex;min-width:0;flex-direction:column;gap:3px; }.source-ai-head b { color:#32606f;font-size:12px; }.source-ai-head small { color:#7b919d;font-size:10.5px;line-height:1.5; }.source-ai-head .btn { flex:0 0 auto;display:inline-flex;align-items:center;gap:6px; }.source-ai-head .btn:disabled { opacity:.62;cursor:wait; }.source-ai-box .textarea { min-height:96px;margin:9px 0 5px; }.source-ai-status { min-height:18px;color:#728b96;font-size:10.5px;line-height:1.55; }.source-form > .textarea { margin:8px 0; }.source-list-head { margin:18px 0 8px; }.source-list { max-height:300px;overflow-y:auto; }.source-item { display:grid;grid-template-columns:1fr auto;gap:12px;padding:13px;border-top:1px solid #e6edef;background:#fff; }.source-item.done { opacity:.62; }.source-item > div:first-child { display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 8px; }.source-item b { color:#365469;font-size:12.5px; }.source-item small { grid-column:1/3;color:#758895;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }.source-item em { grid-column:1/3;color:#9aa6ad;font-size:10px;font-style:normal; }.source-actions { display:flex;align-items:center;gap:5px; }.source-actions button { min-height:29px;padding:0 8px;border-radius:8px;border:1px solid #dce7eb;background:#f9fbfc;color:#66808f;font-size:10px; }

/* 公告发布与全角色阅读 */
.notice-menu { width:360px;max-height:min(560px,78vh);overflow:auto; }.notice-menu-foot { padding:6px; }.notice-menu-foot button { width:100%;min-height:34px;border:0;border-radius:9px;background:#edf7f8;color:#347786;font-size:11px;font-weight:750; }.notice-menu-item { position:relative;width:100%;min-height:58px;padding:9px 8px;display:grid;grid-template-columns:40px 1fr auto;align-items:start;gap:7px;border:0;border-bottom:1px solid #edf1f3;background:#fff;text-align:left; }.notice-menu-item:hover { background:#f5fafb; }.notice-menu-item > span:nth-child(2) { min-width:0;display:flex;flex-direction:column;gap:3px; }.notice-menu-item b { color:#334f61;font-size:11.5px; }.notice-menu-item small { overflow:hidden;color:#7a8c98;font-size:10.5px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis; }.notice-menu-item i { min-width:20px;height:20px;display:grid;place-items:center;border-radius:7px;background:#e2f2f4;color:#317a86;font-size:9px;font-style:normal;font-weight:800; }.notice-menu-item.unread { background:#f4fbfb; }.notice-menu-item.important { border-left:3px solid #e4a448; }.notice-menu-item.urgent { border-left:3px solid #d66773; }
.notice-view-all { min-height:28px;padding:0 9px;border:0;border-radius:9px;background:#eaf6f7;color:#3c808a;font-size:10px;font-weight:750; }.notice-preview { width:100%;min-height:56px;padding:9px 0;display:grid;grid-template-columns:40px 1fr;gap:6px;border:0;border-bottom:1px dashed #e4ecef;background:transparent;text-align:left; }.notice-preview > span:last-child { min-width:0;display:flex;flex-direction:column;gap:3px; }.notice-preview b { color:#36566a;font-size:11.5px; }.notice-preview small { overflow:hidden;color:#7b8d99;font-size:10.5px;line-height:1.45;white-space:nowrap;text-overflow:ellipsis; }.notice-preview.unread b:after { content:'新';margin-left:5px;padding:1px 4px;border-radius:5px;background:#dff1f3;color:#337a85;font-size:8px;vertical-align:1px; }.notice-preview.important { border-left:3px solid #e3aa55;padding-left:7px; }.notice-preview.urgent { border-left:3px solid #d96c78;padding-left:7px; }.notice-admin-entry { width:100%;min-height:36px;margin-top:9px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed #cfe2e7;border-radius:10px;background:#f6fbfb;color:#43808b;font-size:10.5px;font-weight:750; }
.announcement-center { max-width:780px;max-height:90vh;overflow:auto; }.announcement-center-list { display:flex;flex-direction:column;gap:10px; }.announcement-reader { padding:16px;border:1px solid #e0eaed;border-radius:15px;background:#fbfdfd;box-shadow:0 8px 20px rgba(35,78,98,.04); }.announcement-reader.focused { border-color:#8ecbd1;box-shadow:0 0 0 3px rgba(84,165,176,.1); }.announcement-reader.important { border-left:4px solid #e4ad5d; }.announcement-reader.urgent { border-left:4px solid #d86a77; }.announcement-reader-head,.announcement-reader-foot { display:flex;align-items:center;justify-content:space-between;gap:12px; }.announcement-reader-head > div { min-width:0;display:flex;align-items:center;gap:8px; }.announcement-reader-head span { padding:3px 7px;border-radius:7px;background:#eaf4f5;color:#4a7b83;font-size:9px;font-weight:800; }.announcement-reader-head b { color:#294b60;font-size:14px; }.announcement-reader-head small,.announcement-reader-foot { color:#85949e;font-size:10.5px; }.announcement-reader p { margin:12px 0;color:#516b7b;font-size:12px;line-height:1.75;white-space:pre-wrap; }.announcement-reader-foot button { min-height:28px;padding:0 8px;border:0;border-radius:8px;background:#eaf6f7;color:#347984;font-size:10px;font-weight:700; }.announcement-reader-foot em { color:#6c9b88;font-style:normal;font-weight:700; }
.announcement-admin-hero { min-height:150px;margin-bottom:14px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #d7e8eb;border-radius:20px;background:linear-gradient(130deg,#eef9f9,#f8fbfd 58%,#f1eff9);box-shadow:0 12px 32px rgba(39,88,108,.06); }.announcement-admin-hero span { color:#438993;font-size:10px;font-weight:800;letter-spacing:.12em; }.announcement-admin-hero h2 { margin:4px 0 6px;color:#24475b;font-size:24px; }.announcement-admin-hero p { margin:0;color:#6d8390;font-size:12px; }.announcement-admin-hero .btn { display:inline-flex;align-items:center;gap:7px;white-space:nowrap; }.announcement-stats { margin-bottom:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px; }.announcement-stats > div { min-height:86px;padding:16px;display:flex;flex-direction:column;justify-content:center;border:1px solid #e0e9ec;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(38,78,96,.04); }.announcement-stats strong { color:#315d70;font-size:25px; }.announcement-stats span { color:#83939c;font-size:10.5px; }.announcement-admin-list { display:flex;flex-direction:column;gap:9px; }.announcement-admin-item { padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;border:1px solid #e0e9ec;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(38,78,96,.04); }.announcement-admin-item.important { border-left:4px solid #e3aa55; }.announcement-admin-item.urgent { border-left:4px solid #d96b78; }.announcement-admin-main { min-width:0; }.announcement-admin-title { display:flex;align-items:center;gap:7px;min-width:0; }.announcement-admin-title b { overflow:hidden;color:#2d5064;font-size:13px;white-space:nowrap;text-overflow:ellipsis; }.announcement-status,.announcement-priority { flex:none;padding:3px 7px;border-radius:7px;font-size:9px;font-weight:800; }.announcement-status.status-published { background:#e8f5ee;color:#3d8667; }.announcement-status.status-draft { background:#edf0f4;color:#6f7e89; }.announcement-status.status-withdrawn,.announcement-status.status-expired { background:#faecee;color:#a45b64; }.announcement-priority { background:#eff5f7;color:#67808c; }.announcement-admin-main p { display:-webkit-box;overflow:hidden;margin:9px 0 7px;color:#607783;font-size:11px;line-height:1.6;-webkit-line-clamp:2;-webkit-box-orient:vertical; }.announcement-admin-main small { color:#91a0a8;font-size:9.5px; }.announcement-admin-actions { display:flex;align-items:center;gap:6px; }.danger-text { color:#b45f69 !important; }.announcement-editor { max-width:720px;max-height:92vh;overflow:auto; }.announcement-form-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:10px; }.announcement-count { margin-top:4px;color:#93a1a9;font-size:10px;text-align:right; }.announcement-safety { margin-top:4px;padding:10px;display:flex;align-items:flex-start;gap:7px;border-radius:10px;background:#f0f7f8;color:#68808b;font-size:10.5px;line-height:1.55; }
@media (max-width:760px) { .workspace-hero,.workspace-hero.role-student,.workspace-hero.role-admin { background:linear-gradient(155deg,#eef9fa,#dceff1 62%,#ececf5); }.module-toolkit { padding:13px;border-radius:17px; }.module-toolkit-head { align-items:flex-start;flex-direction:column; }.module-productivity { width:100%;display:grid;grid-template-columns:repeat(3,1fr); }.module-productivity button { justify-content:center;padding:0 6px;font-size:10px; }.module-shortcuts button { min-width:118px; }.focus-clock { font-size:48px; }.recent-columns { grid-template-columns:1fr; }.source-dialog { max-height:96vh;padding:16px; }.source-platforms { grid-template-columns:1fr 1fr; }.source-form-grid { grid-template-columns:1fr; }.source-ai-head { align-items:stretch;flex-direction:column; }.source-ai-head .btn { width:100%;justify-content:center; }.source-item { grid-template-columns:1fr; }.source-actions { flex-wrap:wrap; }.module-meta-actions { justify-content:flex-start; }.notice-menu { width:auto; }.announcement-center,.announcement-editor { max-height:96vh;padding:16px; }.announcement-reader-head,.announcement-reader-foot { align-items:flex-start;flex-direction:column; }.announcement-admin-hero { min-height:0;padding:18px;align-items:flex-start;flex-direction:column; }.announcement-admin-hero .btn { width:100%;justify-content:center; }.announcement-stats { gap:7px; }.announcement-stats > div { min-height:72px;padding:12px; }.announcement-admin-item { grid-template-columns:1fr; }.announcement-admin-actions { flex-wrap:wrap; }.announcement-form-grid { grid-template-columns:1fr; } }

/* AI 协作能力：工作台、行动清单、研究记录与公告 */
.module-productivity .module-ai-entry { color:#fff;border-color:transparent;background:linear-gradient(135deg,#5aaeb8,#607fc3);box-shadow:0 8px 18px rgba(68,129,159,.18); }
.module-productivity .module-ai-entry:hover { color:#fff;border-color:transparent;background:linear-gradient(135deg,#499ca8,#5372b5);box-shadow:0 11px 24px rgba(68,129,159,.24); }
.ai-workspace-dialog { width:min(980px,calc(100vw - 32px));max-width:980px;max-height:92vh;overflow:auto;padding:0;background:linear-gradient(145deg,#fbfefe,#f3f8fb);border:1px solid rgba(64,121,145,.14); }
.ai-workspace-head { padding:24px 26px 18px;display:flex;align-items:flex-start;gap:14px;border-bottom:1px solid #e2edf0;background:radial-gradient(520px 160px at 10% 0,rgba(91,190,198,.14),transparent 66%),linear-gradient(115deg,#f2fbfb,#f5f5fc); }
.ai-workspace-mark { width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(145deg,#57aeb5,#6479bd);box-shadow:0 10px 24px rgba(63,124,153,.22); }
.ai-workspace-head span { color:#4f8c98;font-size:10px;font-weight:850;letter-spacing:.08em; }.ai-workspace-head .dialog-title { margin:2px 0 3px;color:#25475c;font-size:22px; }.ai-workspace-head p { margin:0;color:#728895;font-size:11.5px; }
.ai-workspace-layout { padding:22px 26px;display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px; }.ai-workspace-layout aside > b { display:block;margin-bottom:9px;color:#405e70;font-size:12px; }
.ai-task-options { display:flex;flex-direction:column;gap:7px; }.ai-task-option { width:100%;padding:11px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:1px solid #dce8ec;border-radius:12px;background:rgba(255,255,255,.76);text-align:left;transition:.18s ease; }.ai-task-option strong { color:#415f70;font-size:11.5px; }.ai-task-option small { color:#84949e;font-size:9.5px;line-height:1.5; }.ai-task-option:hover { transform:translateY(-1px);border-color:#a9d2d7;background:#fff; }.ai-task-option.active { border-color:#7abcc4;background:linear-gradient(145deg,#eaf8f8,#eef2fb);box-shadow:0 7px 18px rgba(61,121,144,.08); }.ai-task-option.active strong { color:#277781; }
.ai-workspace-layout section { min-width:0; }.ai-workspace-layout .field { margin-bottom:8px; }.ai-workspace-layout .textarea { width:100%;resize:vertical; }.ai-privacy-tip { margin:8px 0;padding:10px 11px;display:flex;align-items:flex-start;gap:7px;border-radius:10px;color:#67808e;background:#edf6f7;font-size:10.5px;line-height:1.5; }.ai-privacy-tip svg { flex:none;margin-top:1px;color:#4a919a; }.ai-workspace-status { min-height:20px;margin:8px 0;color:#6e8793;font-size:10.5px;line-height:1.55; }
.ai-result-panel { margin-top:14px;padding:14px;border:1px solid #d9e7eb;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(36,81,102,.05); }.ai-result-panel > label { display:block;margin-bottom:7px;color:#3d6072;font-size:11px;font-weight:750; }.ai-result-actions { margin-top:9px;display:flex;gap:7px;flex-wrap:wrap; }.ai-result-actions .btn { min-height:32px;font-size:10px; }.ai-generate-btn { display:inline-flex;align-items:center;gap:7px; }.ai-workspace-dialog > .dialog-actions { margin:0;padding:0 26px 22px; }
.checklist-ai-bar { margin:0 0 12px;padding:10px;display:flex;align-items:center;gap:10px;border:1px solid #dce9ed;border-radius:12px;background:linear-gradient(135deg,#f4fbfb,#f5f6fc); }.checklist-ai-bar .btn { flex:none;display:inline-flex;align-items:center;gap:6px; }.checklist-ai-bar span { color:#758c98;font-size:10px;line-height:1.45; }.checklist-item > span { min-width:0;display:flex;flex-direction:column;gap:2px; }.checklist-item > span small { color:#6b9ba2;font-size:8.5px;font-weight:700; }
.note-ai-panel { margin:2px 0 16px;padding:13px;border:1px solid #dce9ed;border-radius:14px;background:linear-gradient(145deg,#f7fbfc,#eef7f8); }.note-ai-panel > div:first-child { display:flex;align-items:center;justify-content:space-between;gap:8px; }.note-ai-panel b { display:flex;align-items:center;gap:6px;color:#3b6877;font-size:11.5px; }.note-ai-panel b svg { color:#4b9ba3; }.note-ai-panel small { color:#81949e;font-size:9.5px; }.note-ai-panel > .btn { margin-top:10px; }.note-ai-status { min-height:18px;margin-top:7px;color:#708a96;font-size:10px;line-height:1.5; }.note-ai-preview { margin-top:11px;padding-top:11px;border-top:1px solid #dbe7ea; }.note-ai-preview label { display:block;margin-bottom:6px;color:#496a79;font-size:10.5px;font-weight:700; }.note-ai-preview .textarea { min-height:170px; }.note-ai-preview .btn { margin-top:8px; }
.announcement-ai-panel { margin:2px 0 14px;padding:13px;border:1px solid #d8e7eb;border-radius:14px;background:linear-gradient(145deg,#f7fcfc,#f0f5fb); }.announcement-ai-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px; }.announcement-ai-head > div { min-width:0;display:flex;flex-direction:column;gap:3px; }.announcement-ai-head b { display:flex;align-items:center;gap:6px;color:#386473;font-size:11.5px; }.announcement-ai-head b svg { color:#4c99a3; }.announcement-ai-head small { color:#7f919c;font-size:9.7px;line-height:1.45; }.announcement-ai-head .btn { flex:none; }.announcement-ai-status { min-height:18px;margin-top:7px;color:#718995;font-size:10px;line-height:1.5; }
@media (max-width:760px) {
  .ai-workspace-dialog { width:100%;max-height:96vh;border-radius:18px 18px 0 0; }.ai-workspace-head { padding:18px 16px 14px; }.ai-workspace-mark { width:40px;height:40px;border-radius:13px; }.ai-workspace-head .dialog-title { font-size:19px; }.ai-workspace-layout { padding:15px 16px;grid-template-columns:1fr;gap:15px; }.ai-task-options { display:grid;grid-template-columns:1fr 1fr; }.ai-task-option { min-height:86px;padding:10px; }.ai-workspace-dialog > .dialog-actions { padding:0 16px 16px; }.ai-result-actions { display:grid;grid-template-columns:1fr 1fr; }.ai-result-actions .btn { width:100%;padding:0 7px; }
  .checklist-ai-bar { align-items:stretch;flex-direction:column; }.checklist-ai-bar .btn { width:100%;justify-content:center; }.note-ai-panel > div:first-child { align-items:flex-start;flex-direction:column; }.announcement-ai-head { align-items:stretch;flex-direction:column; }.announcement-ai-head .btn { width:100%;justify-content:center; }
}
