* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --blue: #2563eb;
  --green: #0d9488;
  --ink: #1f2329;
  --muted: #9aa0a6;
  --line: #eef1f6;
  --bg: #f4f6fb;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
button, input, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; }
.page { min-height: 100vh; padding-bottom: 90px; }
.plus { color: #16a34a !important; font-weight: 700; font-style: normal; }
.minus { color: #dc2626 !important; font-weight: 700; font-style: normal; }

/* ---------- 按钮 ---------- */
.btn { border-radius: 12px; padding: 12px 20px; font-size: 14px; font-weight: 600; transition: opacity .15s; }
.btn:active { opacity: .75; }
.btn.block { display: block; width: 100%; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.ghost { background: #eef3ff; color: var(--blue); }
.btn.danger { background: #fef2f2; color: #dc2626; }
.btn.danger.sm, .btn.ghost.sm { padding: 7px 14px; font-size: 12px; border-radius: 9px; }
.manage-row .btn + .btn { margin-left: 8px; }

/* ---------- 入口 ---------- */
.entry-page { background: linear-gradient(180deg, #2563eb 0%, #3b82f6 220px, var(--bg) 380px); padding: 0 22px 40px; }
.entry-hero { position: relative; padding: 76px 6px 52px; color: #fff; }
.entry-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 13px; font-weight: 600; }
.entry-title { display: block; margin-top: 20px; font-size: 40px; font-weight: 800; letter-spacing: 1px; }
.entry-sub { display: block; margin-top: 10px; color: rgba(255,255,255,.82); font-size: 15px; }
.entry-decor { position: absolute; right: 8px; top: 84px; color: rgba(255,255,255,.45); font-size: 22px; }
.role-list { margin-top: 6px; }
.role-card {
  display: flex; align-items: center; width: 100%; text-align: left;
  padding: 20px; margin-bottom: 14px; border-radius: 20px; background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.10); transition: transform .15s;
}
.role-card:active { transform: scale(.98); }
.role-icon { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.role-card.teacher .role-icon { background: #eef3ff; }
.role-card.parent .role-icon { background: #fff3e8; }
.role-body { flex: 1; margin-left: 16px; display: flex; flex-direction: column; }
.role-body b { font-size: 19px; }
.role-body small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.role-arrow { color: #c3cad6; font-size: 30px; }
.entry-foot { margin-top: 28px; text-align: center; color: #a7b0c0; font-size: 12px; line-height: 1.6; }

/* ---------- 顶部 ---------- */
.header { display: flex; align-items: center; justify-content: space-between; padding: 26px 20px 18px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; }
.header.parent { background: linear-gradient(135deg, #0ea5a4, #14b8a6); }
.header h1 { font-size: 22px; font-weight: 800; }
.header p { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.82); }
.switch { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; }

/* ---------- Tab ---------- */
.tabs { display: flex; position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 14px 0; text-align: center; color: #6b7280; font-size: 14px; position: relative; }
.tabs button.active { color: var(--blue); font-weight: 700; }
.tabs button.green.active { color: var(--green); }
.tabs button.active::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 28px; height: 3px; border-radius: 3px; background: currentColor; }

/* ---------- 内容卡片 ---------- */
.content { padding: 14px 14px 0; }
.card { background: #fff; border-radius: 18px; padding: 18px; margin-bottom: 14px; box-shadow: 0 4px 18px rgba(15,23,42,.05); }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-title { font-size: 16px; font-weight: 700; }
.sec-hint { font-size: 12px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0; }
.link { font-size: 13px; color: var(--green); cursor: pointer; }
.notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.notice a { color: #b45309; text-decoration: underline; }

/* ---------- 学生选择 ---------- */
.student-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.chip { padding: 3px; border-radius: 12px; border: 2px solid transparent; background: none; }
.chip.sel { border-color: var(--blue); }
.chip-avatar { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 600; line-height: 1.05; text-align: center; }

/* ---------- 维度 ---------- */
.dim-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.dim { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; background: #f4f6fb; color: #4b5563; font-size: 14px; border: 1px solid transparent; }
.dim span { font-size: 17px; }
.dim.sel { background: #eef3ff; color: var(--blue); font-weight: 700; border-color: var(--blue); }

/* ---------- 分值 ---------- */
.delta-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.delta { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.delta.minus { background: #fef2f2; color: #dc2626; }
.delta.plus { background: #f0fdf4; color: #16a34a; }
.delta.active { outline: 2px solid currentColor; outline-offset: 1px; }
.delta-label { font-size: 11px; color: var(--muted); margin: 2px 0 6px; }
.delta-center { display: flex; justify-content: center; margin: 10px 0 12px; }
.delta-cur { display: inline-block; font-size: 15px; font-weight: 800; padding: 5px 16px; border-radius: 20px; background: #f4f6fb; }
.delta-cur.plus { color: #16a34a; }
.delta-cur.minus { color: #dc2626; }
.delta-custom { display: flex; gap: 8px; margin-top: 12px; }
.custom-input { flex: 1; min-width: 0; background: #f4f6fb; border: 1px solid transparent; border-radius: 11px; padding: 10px 12px; font-size: 14px; outline: none; }
.custom-input:focus { border-color: var(--blue); }
.reason-input { width: 100%; margin-top: 12px; background: #f4f6fb; border-radius: 11px; padding: 12px 14px; font-size: 14px; border: 1px solid transparent; outline: none; }
.reason-input:focus { border-color: var(--blue); }
#submitBtn { margin-top: 14px; }

/* ---------- 记录 ---------- */
.rec { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: none; }
.rec-avatar { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; }
.rec-dot { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rec-main { flex: 1; margin-left: 12px; min-width: 0; }
.rec-l1 { display: flex; align-items: center; gap: 8px; }
.rec-l1 b { font-size: 14px; }
.rec-l1 em { font-style: normal; font-size: 12px; color: var(--muted); }
.rec-l1 i { margin-left: auto; font-size: 16px; }
.rec-l2 { display: flex; align-items: center; margin-top: 3px; }
.rec-reason { font-size: 12px; color: #6b7280; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-time { font-size: 11px; color: #b0b7c3; margin-left: 8px; flex-shrink: 0; }
.rec-photo { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; margin-left: 10px; flex-shrink: 0; cursor: zoom-in; border: 1px solid var(--line); }
.rec-ops { display: flex; flex-direction: column; gap: 4px; margin-left: 8px; flex-shrink: 0; }
.rec-ops button { padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; line-height: 1.2; }
.rec-ops .op-edit { background: #eef3ff; color: var(--blue); }
.rec-ops .op-del { background: #fef2f2; color: #dc2626; }
.rec-edit-select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #f8fafc; font-size: 14px; margin-bottom: 10px; outline: none; }
.rec-edit-select:focus { border-color: var(--blue); }
.rec-edit-delta { letter-spacing: 1px; margin-bottom: 10px; }

/* ---------- 拍照凭证 ---------- */
.photo-pick { margin-top: 14px; border: 1px dashed #c9d3e4; border-radius: 12px; padding: 12px; background: #fafbfe; }
.photo-pick-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 10px; }
.photo-pick-head .sec-hint { font-size: 11px; font-weight: 400; }
.photo-pick-body { min-height: 72px; display: flex; align-items: center; }
.photo-add { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); cursor: pointer; color: #64748b; font-size: 13px; }
.photo-add:active { background: #f1f5f9; }
.photo-add-icon { font-size: 22px; }
.photo-preview { position: relative; display: inline-block; }
.photo-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line); }
.photo-del { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: none; background: #ef4444; color: #fff; font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* ---------- 照片大图 ---------- */
.photo-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 120; padding: 20px; }
.lightbox-inner { position: relative; max-width: 100%; max-height: 100%; }
.lightbox-inner img { max-width: 100%; max-height: 86vh; border-radius: 8px; display: block; }
.lightbox-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- 排名 ---------- */
.rank-card { padding-top: 8px; }
.rank-row { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row.mine { background: #f0fdfa; border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.rank-no { width: 26px; text-align: center; font-size: 16px; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.rank-no.top { color: #ea580c; }
.rank-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; }
.rank-main { flex: 1; margin-left: 12px; min-width: 0; }
.rank-line { display: flex; align-items: center; justify-content: space-between; }
.rank-line b { font-size: 14px; font-weight: 600; }
.rank-line i { font-size: 16px; }
.me { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--green); color: #fff; font-size: 10px; font-style: normal; }
.bar-bg { display: block; margin-top: 7px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #2563eb); }
.rank-row.mine .bar-fill { background: linear-gradient(90deg, #5eead4, #0d9488); }
.rank-arrow { color: #c3cad6; font-size: 22px; margin-left: 6px; }

/* ---------- 走势排行 ---------- */
.trend-card .seg { display: flex; gap: 4px; padding: 4px; background: #f4f6fb; border-radius: 12px; margin-bottom: 10px; }
.trend-card .seg button { flex: 1; padding: 8px 0; border-radius: 9px; font-size: 13px; color: #6b7280; transition: all .15s; }
.trend-card .seg button.active { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.trend-note { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.trend-row { align-items: center; }
.trend-row .rank-line { margin-bottom: 3px; }
.trend-row-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 5px; }
.trend-row-sub small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.trend-spark { display: block; height: 30px; flex: 1; min-width: 50px; }
.trend-more { display: block; width: 100%; margin-top: 10px; padding: 10px; border-radius: 10px; background: #f4f6fb; color: var(--blue); font-size: 13px; font-weight: 600; }

/* ---------- 管理 ---------- */
.add-row { display: flex; gap: 8px; }
.add-input { flex: 1; background: #f4f6fb; border-radius: 11px; padding: 11px 14px; border: 1px solid transparent; outline: none; min-width: 0; }
.manage-row { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.manage-row:last-child { border-bottom: none; }
.manage-info { flex: 1; margin-left: 12px; display: flex; flex-direction: column; }
.manage-info b { font-size: 14px; }
.manage-info small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.share-box { background: linear-gradient(135deg, #eef3ff, #f0f9ff); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.share-title { font-size: 15px; font-weight: 700; color: var(--blue); }
.share-desc { font-size: 12px; color: #6b7280; margin: 6px 0 12px; line-height: 1.6; }
.share-desc b { color: #2563eb; }
.rebind-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #475569; margin: 2px 0 12px; cursor: pointer; }
.rebind-check input { accent-color: #2563eb; width: 15px; height: 15px; }
.share-note { font-size: 12px; line-height: 1.6; color: #0f766e; background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 10px; padding: 9px 11px; margin: 0 0 12px; }
.share-note b { color: #0f766e; }
.share-note.warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.share-note.warn b { color: #b45309; }
.bind-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.bind-actions .btn { margin: 0; font-size: 13px; }
.bind-actions .btn:last-child { grid-column: 1 / -1; }
.bind-help { background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin-top: 10px; line-height: 1.8; }
.data-actions { display: flex; gap: 10px; }
.data-actions .btn { flex: 1; }
.tip { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 14px; }

/* ---------- 家长绑定身份验证闸门 ---------- */
.verify-card { text-align: center; padding: 26px 20px; }
.verify-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.verify-card h2 { font-size: 19px; margin: 0 0 8px; color: #1e293b; }
.verify-desc { font-size: 13px; color: #64748b; line-height: 1.7; margin: 0 0 18px; text-align: left; }
.verify-desc b { color: #2563eb; }
.verify-label { display: block; text-align: left; font-size: 12px; color: #475569; font-weight: 600; margin: 12px 0 6px; }
.verify-input { width: 100%; box-sizing: border-box; }
.verify-code { width: 100%; box-sizing: border-box; letter-spacing: 10px; font-size: 22px; padding-left: 24px; }
.verify-err { min-height: 18px; color: #dc2626; font-size: 12px; margin: 8px 0 2px; text-align: left; }
.verify-foot { font-size: 11px; color: #94a3b8; line-height: 1.6; margin: 14px 0 0; }

/* ---------- 学生绑定密码管理 ---------- */
.code-status { font-size: 11px; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.code-status.set { color: #0f766e; background: #f0fdfa; }
.code-status.unset { color: #b45309; background: #fffbeb; }
.code-modal h3 { color: #1e293b; }
.code-preview { max-height: 150px; overflow-y: auto; font-size: 12px; color: #475569; background: #f8fafc; border-radius: 10px; padding: 10px; margin: 10px 0; line-height: 1.7; }

/* ---------- 家长孩子卡 ---------- */
.child-card { padding: 0; overflow: hidden; }
.child-top { display: flex; align-items: center; padding: 18px; background: linear-gradient(135deg, #f0fdfa, #ecfeff); }
.child-avatar { width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; }
.child-info { flex: 1; margin-left: 14px; display: flex; flex-direction: column; }
.child-info b { font-size: 21px; }
.child-info small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.child-rank { text-align: right; display: flex; flex-direction: column; }
.child-rank small { font-size: 12px; color: var(--muted); }
.child-rank b { font-size: 18px; color: var(--green); margin-top: 3px; }
.child-score { display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px; }
.child-score > span:first-child { display: flex; flex-direction: column; }
.child-score small { font-size: 12px; color: var(--muted); }
.child-score b { font-size: 36px; font-weight: 800; line-height: 1.1; }
.score-meta { text-align: right; font-size: 12px; color: var(--muted); }
.score-meta a { color: #dc2626; }

/* ---------- 图表 ---------- */
.chart-wrap { width: 100%; height: 190px; position: relative; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }

/* ---------- 维度条 ---------- */
.dim-row { margin-bottom: 13px; }
.dim-row:last-child { margin-bottom: 0; }
.dim-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }

/* ---------- 空态 ---------- */
.empty-card { text-align: center; padding: 46px 24px; }
.empty-icon { font-size: 54px; }
.empty-card h2 { font-size: 19px; margin-top: 14px; }
.empty-card p { font-size: 13px; color: var(--muted); margin: 10px 0 22px; line-height: 1.6; }

/* ---------- 绑定 ---------- */
.bind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bind-chip { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; border: 2px solid transparent; }
.bind-chip.sel { background: #f0fdfa; border-color: var(--green); }
.bind-avatar { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; }
.bind-name { font-size: 13px; margin-top: 6px; }
.bind-check { font-size: 10px; color: var(--green); margin-top: 3px; }

/* ---------- 详情 ---------- */
.hero { padding: 22px 18px 20px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; }
.hero-top { display: flex; align-items: center; }
.hero-avatar { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; font-weight: 700; border: 2px solid rgba(255,255,255,.5); }
.hero-info { flex: 1; margin-left: 14px; display: flex; flex-direction: column; }
.hero-info b { font-size: 22px; }
.hero-info small { font-size: 12px; color: rgba(255,255,255,.82); margin-top: 4px; }
.hero-rank { text-align: right; display: flex; flex-direction: column; }
.hero-rank small { font-size: 11px; color: rgba(255,255,255,.75); }
.hero-rank b { font-size: 17px; margin-top: 3px; }
.hero-stats { display: flex; margin-top: 20px; }
.hero-stats > div { flex: 1; text-align: center; }
.hero-stats b { display: block; font-size: 19px; font-weight: 800; }
.hero-stats small { display: block; margin-top: 4px; font-size: 11px; color: rgba(255,255,255,.75); }
.detail-back { padding: 4px 14px 20px; }

/* ---------- 底部导航 ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; display: flex; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(15,23,42,.05); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 9px 0 7px; color: #9aa0a6; }
.tabbar button span { font-size: 20px; line-height: 1; }
.tabbar button small { font-size: 11px; margin-top: 3px; }
.tabbar button.active { color: var(--blue); }
body:has(.header.parent) .tabbar button.active { color: var(--green); }

/* ---------- Toast / 弹窗 ---------- */
.toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.9); background: rgba(0,0,0,.8); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal { background: #fff; border-radius: 20px; padding: 24px; width: 100%; max-width: 420px; }
.modal h3 { font-size: 18px; margin-bottom: 10px; }
.modal p { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 14px; }
.modal textarea { width: 100%; height: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 11px; word-break: break-all; resize: none; background: #f8fafc; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions .btn { flex: 1; }
.modal-tip { font-size: 11px !important; color: var(--muted) !important; margin: 12px 0 0 !important; }
.pin-input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 17px; letter-spacing: 4px; text-align: center; background: #f8fafc; outline: none; }
.pin-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.pin-hint { font-size: 11px !important; color: var(--muted) !important; text-align: center; margin: 10px 0 0 !important; }
.readonly-tag { color: var(--green) !important; font-size: 12px; background: rgba(13,148,136,.1); padding: 3px 9px; border-radius: 20px; }
.pin-modal h3 { color: #1e293b; }

/* 班级设置行 */
.class-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.class-badge { font-size: 15px; color: var(--blue); }
.class-badge b { font-weight: 600; }
.imp-btn { margin-top: 10px; }
.class-input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; background: #f8fafc; outline: none; }
.class-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* 批量导入弹窗 */
.import-modal { max-width: 460px; }
.import-textarea { width: 100%; height: 150px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 14px; line-height: 1.6; background: #f8fafc; outline: none; resize: vertical; word-break: break-all; }
.import-textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.import-preview { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: #eff6ff; color: #475569; font-size: 12px; line-height: 1.6; max-height: 78px; overflow-y: auto; }
.import-preview b { color: var(--blue); }
.import-opts { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.radio-row { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: #334155; cursor: pointer; }
.radio-row input { margin-top: 3px; accent-color: var(--blue); }
.radio-row small { color: var(--muted); font-size: 11px; }

/* 批量加减分 */
.batch-card { border: 1px solid #fde68a; background: linear-gradient(135deg,#fffbeb,#fff); }
.batch-toolbar { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.batch-toolbar .btn { width:auto; flex:0 0 auto; }
.batch-count { font-size:12px; color:#b45309; margin-left:auto; font-weight:600; }
.batch-grid { max-height:220px; overflow-y:auto; }
.batch-chip { position:relative; }
.batch-tick { position:absolute; top:-4px; right:-4px; width:16px; height:16px; border-radius:50%; background:var(--blue); color:#fff; font-size:10px; line-height:16px; text-align:center; font-weight:700; }
.batch-label { font-size:13px; font-weight:600; color:#374151; margin:14px 0 6px; }
.batch-select { width:100%; border:1px solid var(--line); border-radius:11px; padding:10px 12px; background:#f8fafc; outline:none; font-size:14px; }
.batch-select:focus { border-color:var(--blue); }
.batch-inputs { display:flex; gap:8px; margin-top:10px; }
.batch-inputs .add-input { width:50%; }
.batch-actions { margin-top:12px; }
.edit-item-form { display:flex; flex-direction:column; gap:10px; }

/* 积分项目库 */
.item-lib { margin-top:10px; max-height:260px; overflow-y:auto; border-top:1px solid var(--line); }
.item-lib-row { display:flex; align-items:center; gap:8px; padding:8px 2px; border-bottom:1px solid var(--line); font-size:13px; }
.item-name { flex:1; color:#334155; }
.item-pts { font-weight:700; min-width:46px; text-align:right; }
.item-lib-row button { width:auto; flex:0 0 auto; }

/* 统一链接 */
.warn-text { color:#dc2626; font-weight:600; }
.rebind-check { display:flex; align-items:flex-start; gap:8px; font-size:13px; color:#475569; line-height:1.5; margin:12px 0; cursor:pointer; }
.rebind-check input { margin-top:3px; accent-color:var(--blue); flex:0 0 auto; }
.import-errors { margin-top:12px; padding:10px 12px; border-radius:10px; background:#fef2f2; color:#b91c1c; font-size:12px; line-height:1.6; white-space:pre-wrap; max-height:180px; overflow-y:auto; }
