/* ============================================================
   mAtlas BizLab 2.0 · 创业实训系统
   ============================================================ */
:root {
  --primary: #4F46E5; --primary-dark: #3730A3; --primary-light: #EEF2FF;
  --accent: #F59E0B; --accent-light: #FEF3C7;
  --success: #059669; --danger: #DC2626; --warn: #D97706;
  --bg: #F8FAFC; --surface: #FFFFFF; --border: #E2E8F0;
  --text: #1E293B; --text-2: #475569; --text-3: #94A3B8;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.05);
  --shadow-lg: 0 4px 12px rgba(15,23,42,.08), 0 16px 40px rgba(15,23,42,.10);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font);
  transition: all .18s ease; text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,70,229,.3); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: #fff; color: var(--text); }
.btn-danger { background: #fff; color: var(--danger); border-color: #FECACA; }
.btn-danger:hover { background: #FEF2F2; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); cursor: pointer; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), #7C6CF0); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.logo small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); line-height: 1.2; }
.topbar-links { display: flex; gap: 4px; margin-left: 8px; }
.topbar-links a { padding: 7px 13px; border-radius: 9px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.topbar-links a:hover { background: var(--primary-light); color: var(--primary); }
.topbar-links a.active { background: var(--primary); color: #fff; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.role-chip { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.role-chip.teacher { background: var(--accent-light); color: #92400E; }
.role-chip.student { background: var(--primary-light); color: var(--primary-dark); }
.user-name { font-size: 14px; font-weight: 600; }

/* ---------- 登录/注册页 ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
  background: radial-gradient(900px 420px at 85% -10%, rgba(124,108,240,.16), transparent 60%), radial-gradient(700px 380px at 5% 110%, rgba(245,158,11,.12), transparent 60%), var(--primary-light); }
.auth-card { width: 100%; max-width: 430px; padding: 36px; }
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--text-3); font-size: 13.5px; margin-bottom: 26px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-pick button {
  padding: 14px 10px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff;
  font-family: var(--font); cursor: pointer; transition: all .15s; text-align: center;
}
.role-pick button .ric { font-size: 24px; display: block; margin-bottom: 4px; }
.role-pick button .rt { font-size: 15px; font-weight: 700; color: var(--text); display: block; }
.role-pick button .rd { font-size: 11.5px; color: var(--text-3); }
.role-pick button.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(79,70,229,.10); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: var(--font); background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.field textarea { resize: vertical; min-height: 100px; }
.form-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-size: 13.5px; padding: 9px 14px; border-radius: 9px; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--text-3); margin-top: 18px; }
.auth-features { margin-top: 22px; border-top: 1px dashed var(--border); padding-top: 16px; }
.auth-features p { font-size: 12.5px; color: var(--text-3); text-align: center; }

/* ---------- 页面头 ---------- */
.page-head { padding: 34px 0 26px; }
.page-head h1 { font-size: 26px; margin-bottom: 6px; }
.page-head .desc { color: var(--text-2); font-size: 14.5px; max-width: 720px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-3); cursor: pointer; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 通用网格 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 课程卡片 ---------- */
.course-card { padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .18s, box-shadow .18s; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.course-card h3 { font-size: 18px; }
.course-card .meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.course-card p { font-size: 13.5px; color: var(--text-2); }
.pbar { height: 8px; background: #EEF2F7; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.pbar > div { height: 100%; background: linear-gradient(90deg, var(--primary), #7C6CF0); border-radius: 99px; transition: width .4s; }
.pbar-label { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; justify-content: space-between; }

/* ---------- 加入课程 ---------- */
.join-box { padding: 22px; margin-bottom: 26px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.join-box .field { margin: 0; flex: 1; min-width: 200px; }

/* ---------- 阶段列表（学员学习页） ---------- */
.stage-list-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; margin-bottom: 12px; cursor: pointer; transition: all .15s;
}
.stage-list-item:hover { border-color: var(--primary); background: #FAFBFF; }
.stage-list-item .snum { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; }
.stage-list-item .stitle { flex: 1; }
.stage-list-item .stitle h4 { font-size: 16px; }
.stage-list-item .stitle p { font-size: 12.5px; color: var(--text-3); }
.stage-badge { font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.stage-badge.none { background: #F1F5F9; color: var(--text-3); }
.stage-badge.submitted { background: var(--accent-light); color: #92400E; }
.stage-badge.pending { background: #FEF9C3; color: #854D0E; }
.stage-badge.approved { background: #D1FAE5; color: #065F46; }
.stage-badge.revise { background: #FEE2E2; color: #991B1B; }

/* ---------- 阶段学习页 ---------- */
.stage-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .stage-layout { grid-template-columns: 1fr; } }
.stage-nav { padding: 16px; position: sticky; top: 80px; }
.stage-nav .sn-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 13.5px; color: var(--text-2); margin-bottom: 3px; }
.stage-nav .sn-item:hover { background: var(--primary-light); }
.stage-nav .sn-item.active { background: var(--primary); color: #fff; }
.stage-nav .sn-item .dot { width: 22px; height: 22px; border-radius: 50%; background: #E2E8F0; color: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.stage-nav .sn-item.active .dot { background: rgba(255,255,255,.25); color: #fff; }
.stage-content .card { padding: 26px; margin-bottom: 20px; }
.stage-content h2 { font-size: 21px; display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.stage-content h2 .tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.content-h { font-size: 15px; margin: 18px 0 10px; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.knowledge-list { list-style: none; }
.knowledge-list li { padding: 9px 0 9px 24px; position: relative; font-size: 14.5px; color: var(--text-2); border-bottom: 1px dashed #EEF2F7; }
.knowledge-list li::before { content: "◆"; position: absolute; left: 2px; color: var(--primary); font-size: 11px; top: 12px; }
.tool-box { background: #F8FAFC; border: 1px solid var(--border); border-radius: 12px; padding: 15px 18px; font-size: 14px; color: var(--text-2); }

/* ---------- 测验 ---------- */
.quiz-q { font-weight: 600; font-size: 14.5px; margin: 16px 0 8px; }
.quiz-opt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--text-2); background: #fff; margin-bottom: 7px; transition: all .15s; }
.quiz-opt:hover { border-color: var(--primary); background: var(--primary-light); }
.quiz-opt.correct { border-color: var(--success); background: #ECFDF5; color: #065F46; }
.quiz-opt.wrong { border-color: var(--danger); background: #FEF2F2; color: #991B1B; }
.quiz-opt input { margin-top: 4px; accent-color: var(--primary); }
.quiz-explain { display: none; margin-top: 8px; padding: 10px 14px; border-radius: 9px; background: #F8FAFC; border-left: 3px solid var(--primary); font-size: 13.5px; color: var(--text-2); }
.quiz-explain.show { display: block; }
.quiz-score { font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 10px; display: none; margin-top: 10px; }
.quiz-score.show { display: block; }

/* ---------- 提交表单 ---------- */
.task-block { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #FDFDFF; }
.task-block .tt { font-size: 13.5px; font-weight: 700; color: #92400E; margin-bottom: 8px; }
.submission-status-box { border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; font-size: 14px; }
.submission-status-box.approved { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.submission-status-box.revise { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.submission-status-box.submitted { background: var(--accent-light); border: 1px solid #FDE68A; color: #92400E; }

/* ---------- 画布 ---------- */
.bmc-grid { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: auto auto; gap: 10px; min-width: 860px; }
.bmc-block { background: #F8FAFC; border: 1px solid var(--border); border-radius: 11px; padding: 11px; display: flex; flex-direction: column; min-height: 150px; }
.bmc-block h5 { font-size: 12.5px; margin-bottom: 7px; }
.bmc-block .count { float: right; font-size: 10.5px; color: var(--text-3); font-weight: 500; }
.bmc-note { background: #FFF9E6; border: 1px solid #F5E6A8; border-radius: 8px; padding: 6px 9px; font-size: 12px; line-height: 1.5; color: #57470A; margin-bottom: 6px; display: flex; gap: 6px; }
.bmc-note .note-actions { margin-left: auto; flex-shrink: 0; }
.bmc-note .note-actions button { border: none; background: transparent; cursor: pointer; font-size: 11px; color: #92843B; padding: 0 2px; font-family: var(--font); }
.bmc-add { border: 1.5px dashed #CBD5E1; background: transparent; border-radius: 8px; padding: 5px; font-size: 12px; color: var(--text-3); cursor: pointer; font-family: var(--font); margin-top: 2px; }
.bmc-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.bmc-wrap { border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; background: #fff; }
.readonly-note { background: #FFF9E6; border: 1px solid #F5E6A8; border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #57470A; margin-bottom: 6px; }
.vpc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 720px; }
.vpc-col { display: flex; flex-direction: column; gap: 10px; }
.vpc-square { background: #F8FAFC; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.dt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.dt th { text-align: left; font-size: 12.5px; color: var(--text-3); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--border); white-space: nowrap; }
table.dt td { padding: 11px 12px; border-bottom: 1px solid #EEF2F7; color: var(--text-2); vertical-align: middle; }
table.dt tr:hover td { background: #FAFBFF; }
table.dt td b { color: var(--text); }

/* ---------- 标签 ---------- */
.chip { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-block; }
.chip.gray { background: #F1F5F9; color: var(--text-3); }
.chip.blue { background: var(--primary-light); color: var(--primary-dark); }
.chip.amber { background: var(--accent-light); color: #92400E; }
.chip.green { background: #D1FAE5; color: #065F46; }
.chip.red { background: #FEE2E2; color: #991B1B; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.kpi .label { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.kpi .value { font-size: 26px; font-weight: 800; margin-top: 4px; color: var(--primary-dark); }
.kpi .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- 柱状图 ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 12.5px; }
.bar-row .bl { width: 120px; color: var(--text-2); text-align: right; flex-shrink: 0; }
.bar-row .bar { height: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), #7C6CF0); min-width: 2px; transition: width .4s; }
.bar-row .bar.amber { background: linear-gradient(90deg, #FBBF24, #D97706); }
.bar-row .bv { color: var(--text-2); font-weight: 600; font-size: 12px; white-space: nowrap; }

/* ---------- 邀请码 ---------- */
.invite-box { display: flex; align-items: center; gap: 14px; background: var(--primary-light); border: 1px dashed #C7D2FE; border-radius: 12px; padding: 16px 20px; flex-wrap: wrap; }
.invite-box .code { font-size: 28px; font-weight: 800; letter-spacing: 6px; color: var(--primary-dark); font-family: Consolas, monospace; }

/* ---------- 评阅 ---------- */
.review-layout { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
@media (max-width: 980px) { .review-layout { grid-template-columns: 1fr; } }
.review-list { max-height: 74vh; overflow-y: auto; padding: 8px; }
.review-item { padding: 12px 14px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; margin-bottom: 6px; }
.review-item:hover { background: #F8FAFC; }
.review-item.active { border-color: var(--primary); background: var(--primary-light); }
.review-item .ri-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review-item .ri-name { font-weight: 700; font-size: 14px; }
.review-item .ri-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- 评阅中心：按学员姓名分组 ---------- */
.review-student { border: 1px solid var(--border); border-radius: 11px; margin-bottom: 8px; overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.review-student:hover { border-color: var(--primary); }
.rs-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; transition: background .15s; }
.rs-head:hover { background: #F8FAFC; }
.rs-head.open { background: var(--primary-light); }
.rs-name { font-weight: 700; font-size: 14.5px; color: var(--text); flex-shrink: 0; min-width: 80px; }
.rs-acc { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.rs-counts { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.rs-arrow { color: var(--text-3); font-size: 18px; transition: transform .2s; flex-shrink: 0; }
.rs-head.open .rs-arrow { transform: rotate(90deg); color: var(--primary); }
.rs-subs { padding: 0 14px 10px; border-top: 1px dashed var(--border); background: #FAFBFF; }
.rs-sub { padding: 10px 12px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; background: #fff; border: 1px solid var(--border); transition: all .15s; }
.rs-sub:hover { border-color: var(--primary); background: var(--primary-light); }
.rs-sub.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px rgba(79,70,229,.12); }
.rss-stage { font-size: 13px; font-weight: 600; color: var(--text); min-width: 140px; }
.rss-meta { font-size: 12px; color: var(--text-3); margin-left: auto; }
.grade-panel { padding: 26px; }
.grade-panel h3 { font-size: 18px; margin-bottom: 2px; }
.score-input { display: flex; align-items: center; gap: 10px; }
.score-input input { width: 90px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 16px; font-weight: 700; text-align: center; }
.grade-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- 财务快照 ---------- */
.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 700px) { .fin-grid { grid-template-columns: 1fr; } }
.fin-cell { background: #F8FAFC; border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; }
.fin-cell .fl { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.fin-cell .fv { font-size: 16px; font-weight: 800; color: var(--primary-dark); margin-top: 2px; }

/* ---------- Toast & Modal ---------- */
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px); background: #0F172A; color: #fff; font-size: 14px; padding: 11px 22px; border-radius: 999px; opacity: 0; transition: all .3s ease; z-index: 999; pointer-events: none; box-shadow: var(--shadow-lg); }
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 28px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); max-height: 88vh; overflow-y: auto; }
.modal h3 { font-size: 18px; margin-bottom: 16px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--text-3); font-size: 14px; }
.empty .eic { font-size: 40px; display: block; margin-bottom: 10px; }

/* ---------- 计划书展示 ---------- */
.plan-doc h4 { font-size: 14.5px; margin: 14px 0 6px; color: var(--primary-dark); }
.plan-doc p { font-size: 14px; color: var(--text-2); white-space: pre-wrap; background: #F8FAFC; border-radius: 8px; padding: 10px 14px; }
.plan-doc p.empty-p { color: var(--text-3); font-style: italic; background: none; }

.section-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.section-tabs button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; font-family: var(--font); }
.section-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 机会评估矩阵 ---------- */
.mx-table select { padding: 6px 8px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-family: var(--font); }
.mx-table input.mx-name { width: 100%; padding: 7px 10px; font-size: 13.5px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); }
table.dt tr.mx-chosen td { background: #ECFDF5; }
table.dt tr.mx-chosen td:first-child { border-left: 3px solid #10B981; }

/* ---------- 假设清单 ---------- */
.dt textarea { width: 100%; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-family: var(--font); resize: vertical; }
.dt select { padding: 6px 8px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-family: var(--font); }

/* ---------- 案例库 ---------- */
.case-list { display: flex; flex-direction: column; gap: 26px; }
.case-card-2 h2 { font-size: 21px; margin-bottom: 6px; }
.case-card-2 h2 .model-tag { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; vertical-align: 3px; margin-left: 8px; }
.case-card-2 > h3 { font-size: 15.5px; margin: 20px 0 10px; color: var(--primary-dark); }
.case-head { display: flex; gap: 16px; align-items: flex-start; }
.case-ic { font-size: 34px; width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(135deg, #EEF2FF, #F0F9FF); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.case-head p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.case-canvas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 900px) { .case-canvas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .case-canvas { grid-template-columns: 1fr; } }
.cc { background: #F8FAFC; border: 1px solid #E4E9F2; border-radius: 10px; padding: 10px 13px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.cc b { display: block; color: var(--text); font-size: 12.5px; margin-bottom: 3px; }
.insight-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 820px) { .insight-list { grid-template-columns: 1fr; } }
.insight-list li { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 11px 14px; font-size: 13px; color: #57470A; line-height: 1.65; }
.insight-list li b { color: #92400E; }
.think-box { margin-top: 16px; background: linear-gradient(120deg, #EEF2FF, #F0F9FF); border: 1px solid #DDE3F8; border-radius: 12px; padding: 16px 20px; }
.think-box b { font-size: 13.5px; color: var(--primary-dark); display: block; margin-bottom: 8px; }
.think-box ol { margin-left: 18px; }
.think-box li { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 4px; }

/* ---------- 头像 ---------- */
.avatar { display: inline-block; border-radius: 50%; object-fit: cover; background: var(--primary-light); flex-shrink: 0; vertical-align: middle; }
.avatar-sm { width: 30px; height: 30px; }
.avatar-lg { width: 104px; height: 104px; border: 3px solid #fff; box-shadow: var(--shadow); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid transparent; color: var(--text); }
.user-chip:hover { background: var(--primary-light); color: var(--primary-dark); }
.user-chip.active { background: var(--primary-light); border-color: #C7D2FE; }
.stu-cell { display: flex; align-items: center; gap: 9px; }
.stu-cell .avatar { width: 28px; height: 28px; }

/* ---------- 认证页补充 ---------- */
.auth-note { background: #F8FAFC; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 9px; padding: 11px 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }

/* ---------- 个人中心 ---------- */
.profile-alert { display: flex; flex-direction: column; gap: 2px; background: #FFFBEB; border: 1px solid #FDE68A; border-left: 3px solid var(--warn); border-radius: 11px; padding: 13px 18px; margin-bottom: 20px; }
.profile-alert b { font-size: 14px; color: #92400E; }
.profile-alert span { font-size: 13px; color: #78560B; }
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-side { padding: 28px 22px; text-align: center; }
.profile-side .avatar-lg { margin-bottom: 14px; }
.pf-name { font-size: 19px; font-weight: 800; }
.pf-sub { margin: 6px 0 16px; }
.pf-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pf-tip { font-size: 12px; color: var(--text-3); line-height: 1.65; margin-top: 12px; text-align: left; }
.profile-main { display: flex; flex-direction: column; gap: 18px; }
.profile-card { padding: 22px 24px; }
.profile-card h3 { font-size: 16.5px; margin-bottom: 14px; }
.pf-rows { display: flex; flex-direction: column; gap: 2px; }
.pf-row { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed #EEF2F7; font-size: 14px; }
.pf-row:last-child { border-bottom: none; }
.pf-row > span { width: 76px; flex-shrink: 0; color: var(--text-3); font-size: 13px; }
.pf-row > b { color: var(--text); font-weight: 600; }
.pf-row > b small { color: var(--text-3); font-weight: 500; }
.pf-code-box { background: var(--primary-light); border: 1px dashed #C7D2FE; border-radius: 11px; padding: 14px 18px; margin: 12px 0; }
.pf-code { font-family: Consolas, monospace; font-size: 24px; font-weight: 800; letter-spacing: 3px; color: var(--primary-dark); text-align: center; }

/* ---------- 登录页：动效背景 + 左侧品牌区 ---------- */
.auth-page { display: block; padding: 0; overflow: hidden; background: #EEF0FB; }

.auth-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.auth-bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.auth-blob { position: absolute; border-radius: 50%; opacity: .55; }
.auth-blob.b1 { width: 560px; height: 560px; left: -160px; top: -180px;
  background: radial-gradient(circle at 35% 35%, #C9BDFA 0%, #DED9FB 45%, rgba(238,240,251,0) 72%);
  animation: authDrift1 26s ease-in-out infinite alternate; }
.auth-blob.b2 { width: 460px; height: 460px; right: -140px; bottom: -160px;
  background: radial-gradient(circle at 60% 40%, #C4E3F7 0%, #DDEFFB 50%, rgba(238,240,251,0) 72%);
  animation: authDrift2 32s ease-in-out infinite alternate; }
.auth-blob.b3 { width: 300px; height: 300px; right: 22%; top: -120px; opacity: .5;
  background: radial-gradient(circle at 50% 50%, #F6E3C8 0%, rgba(246,238,218,0) 70%);
  animation: authDrift2 24s 3s ease-in-out infinite alternate; }
@keyframes authDrift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(70px,50px) scale(1.12); } }
@keyframes authDrift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,-40px) scale(1.08); } }

.auth-deco { position: absolute; opacity: .5; animation: authFloat 7s ease-in-out infinite; }
.auth-deco.d1 { width: 14px; height: 14px; border-radius: 4px; background: #C9BDFA; left: 14%; top: 62%; }
.auth-deco.d2 { width: 10px; height: 10px; border-radius: 50%; background: #F0B429; left: 44%; top: 16%; animation-delay: 1.6s; }
.auth-deco.d3 { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #A5D8F3; left: 60%; top: 78%; animation-delay: 3s; }
.auth-deco.d4 { width: 9px; height: 9px; border-radius: 50%; background: #C9BDFA; left: 78%; top: 34%; animation-delay: 2.2s; }
@keyframes authFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.auth-home { position: fixed; z-index: 20; left: 28px; top: 26px;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 14px;
  background: rgba(255,255,255,.82); border: 1px solid #D9D6F2; border-radius: 999px;
  color: #4C4A68; font-size: 14px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.auth-home:hover { color: #4C4A68; transform: translateX(-3px); border-color: #B7AEF0; box-shadow: 0 4px 14px rgba(79,70,181,.12); }
.auth-home .arw { transition: transform .18s ease; }
.auth-home:hover .arw { transform: translateX(-3px); }

.auth-stage { position: relative; z-index: 1; width: 100%; max-width: 1180px; min-height: 100vh; margin: 0 auto;
  padding: 72px 48px 48px; display: grid; grid-template-columns: minmax(0,1.15fr) 460px; gap: 72px; align-items: center; }

.auth-brand { padding-bottom: 24px; }
.brand-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  background: rgba(124,58,237,.09); color: #5B3DB8; font-size: 13px; letter-spacing: 1px; font-weight: 600;
  border: 1px solid rgba(124,58,237,.16); }
.brand-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #7C3AED; }
.auth-brand h1 { margin-top: 22px; font-size: 34px; line-height: 1.32; font-weight: 700; color: #23263A; text-align: left; }
.auth-brand h1 em { font-style: normal; color: #6D3AE8; }
.auth-brand .brand-sub { margin-top: 14px; font-size: 15px; line-height: 1.8; color: #6B6F85; max-width: 460px; }
.brand-stats { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.brand-stats span { padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid #E2E0F3; color: #55586E; }
.brand-stats span b { color: #5B3DB8; font-weight: 600; }
.brand-illus { margin-top: 30px; }
.brand-illus svg { width: 100%; max-width: 560px; height: auto; display: block; }
.auth-dash { stroke-dasharray: 7 9; animation: authDash 22s linear infinite; }
@keyframes authDash { to { stroke-dashoffset: -320; } }
.auth-f1 { animation: authFloat 6s ease-in-out infinite; }
.auth-f2 { animation: authFloat 6s 1.2s ease-in-out infinite; }
.auth-f3 { animation: authFloat 6s 2.4s ease-in-out infinite; }

.auth-card-col { display: flex; flex-direction: column; align-items: center; }

@media (max-width: 980px) {
  .auth-stage { grid-template-columns: 1fr; gap: 32px; padding: 92px 24px 40px; }
  .auth-brand { text-align: center; }
  .auth-brand h1 { text-align: center; }
  .auth-brand .brand-sub { margin-left: auto; margin-right: auto; }
  .brand-stats { justify-content: center; }
  .brand-illus svg { margin: 0 auto; max-width: 480px; }
}
@media (max-width: 700px) {
  .brand-illus { display: none; }
  .auth-brand h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-blob, .auth-deco { animation: none !important; }
  .auth-dash, .auth-f1, .auth-f2, .auth-f3 { animation: none !important; }
  .auth-home, .auth-home .arw { transition: none !important; }
}


/* ============================================================
   阶段 1 · AI 陪练（可选加速器）
   ============================================================ */
.modal.modal-wide { max-width: 780px; }
.ai-sub { font-size: 13px; color: var(--text-3); margin: -8px 0 16px; line-height: 1.7; }
.ai-step { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--primary-dark); background: var(--primary-light); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.ai-notice { font-size: 12px; color: var(--text-3); background: #F8FAFC; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 14px; line-height: 1.65; }
.ai-loading { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); padding: 28px 0; }
.ai-spin { width: 18px; height: 18px; flex: none; border: 2.5px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: aiSpin .8s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-q { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #FDFDFF; }
.ai-q .qq { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.75; }
.ai-q .qw { font-size: 12.5px; color: var(--text-3); line-height: 1.75; margin: 8px 0 0 2px; padding-left: 10px; border-left: 3px solid var(--primary-light); }
.ai-dir { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.ai-dir:hover { border-color: #A5B4FC; }
.ai-dir.on { border-color: var(--primary); background: #FBFAFF; box-shadow: 0 0 0 3px rgba(79,70,229,.09); }
.ai-dir > input[type=checkbox] { margin-top: 4px; flex: none; width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.ai-dir-body { flex: 1; min-width: 0; }
.ai-dir-stmt { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.65; margin-bottom: 8px; }
.ai-dir-row { font-size: 13px; color: var(--text-2); line-height: 1.75; }
.ai-dir-row b { display: inline-block; min-width: 74px; color: var(--text-3); font-weight: 700; font-size: 12px; }
.ai-dir-tags { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.ai-reason { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.ai-reason label { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); display: block; margin-bottom: 6px; }
.ai-slot { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.ai-slot .sh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.ai-slot .sissue { font-size: 13px; color: var(--text-2); line-height: 1.75; }
.ai-slot .sq { font-size: 13px; color: #5B21B6; background: #F5F3FF; border-radius: 8px; padding: 9px 12px; margin-top: 8px; line-height: 1.75; }
.ai-panel { margin-top: 18px; border: 1px dashed #C4B5FD; background: #FBFAFF; border-radius: 12px; padding: 16px 18px; }
.ai-panel h4 { font-size: 14px; color: var(--primary-dark); margin-bottom: 5px; }
.ai-panel p { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.ai-panel .ai-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 13px; align-items: center; }
.ai-quota { font-size: 12px; color: var(--text-3); }
.mx-src-ai { font-size: 11px; font-weight: 700; color: #5B21B6; background: #EDE9FE; border-radius: 999px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; }
.ai-adopt { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #FDFDFF; }
.ai-adopt .as-stmt { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.7; }
.ai-adopt .as-meta { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-top: 5px; }
.ai-adopt .as-reason { font-size: 13px; color: #5B21B6; background: #F5F3FF; border-radius: 8px; padding: 8px 11px; margin-top: 9px; line-height: 1.75; }
.ai-stat-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
@media (max-width: 640px) {
  .ai-dir-row b { display: block; min-width: 0; }
}
