:root {
  --primary:#f26b3a; --primary-dark:#8f3f24; --orange:#ff8a3d; --gold:#e3a52f;
  --coral:#d94f70; --ink:#2b1b18; --muted:#735b52; --soft:#987d72;
  --line:#f0ddd1; --bg:#fff8f1; --card:#ffffff; --shadow:0 16px 44px rgba(143,63,36,.10);
  --radius:20px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--bg); font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif; }
a { color:inherit; text-decoration:none; }
img, svg { display:block; }
button, input, select, textarea { font:inherit; }
button { cursor:pointer; border:0; }
h1,h2,h3 { margin:0; letter-spacing:-.03em; }
.shell { width:min(1180px,calc(100% - 36px)); margin:0 auto; }

.nav { position:sticky; top:0; z-index:40; display:flex; align-items:center; justify-content:space-between; gap:22px; padding:10px 16px; margin-bottom:0; background:rgba(255,248,241,.88); border-bottom:1px solid rgba(240,221,209,.8); backdrop-filter:blur(18px); }
.brand { display:flex; align-items:center; gap:11px; min-width:max-content; }
.brand-mark { width:40px; height:40px; border-radius:13px; display:grid; place-items:center; background:linear-gradient(145deg,#ff9b4c,#e95170); box-shadow:0 10px 24px rgba(242,107,58,.28); }
.brand-mark svg { width:100%; height:100%; }
.brand strong { display:block; font-size:17px; font-weight:900; }
.brand small { display:block; color:var(--soft); font-size:11px; margin-top:2px; }
.nav-links { display:flex; gap:24px; color:var(--muted); font-weight:800; }
.nav-links a:hover { color:var(--primary); }

.section { padding:74px 0; }
.tint { background:linear-gradient(180deg,#fff8f1,#fff3e8); }
.section-head { margin-bottom:34px; max-width:760px; }
.section-head.center { margin:0 auto 36px; text-align:center; }
.kicker { color:var(--primary); font-size:13px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; margin-bottom:12px; }
h1 { font-size:clamp(34px,5vw,58px); line-height:1.1; }
h2 { font-size:clamp(28px,3.6vw,42px); line-height:1.14; }
.h2 { font-size:24px; margin:30px 0 16px; }
.section-head p, .lead { color:var(--muted); line-height:1.85; margin-top:14px; }
.muted { color:var(--muted); }

.btn { min-height:46px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:0 20px; border-radius:13px; font-weight:850; transition:.2s ease; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { color:#fff; background:linear-gradient(135deg,var(--primary),var(--coral)); box-shadow:0 12px 26px rgba(242,107,58,.24); }
.btn-secondary { color:var(--primary-dark); background:#fff0e6; border:1px solid rgba(242,107,58,.16); }
.actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.back { color:var(--primary); font-weight:850; margin-bottom:14px; display:inline-block; }

.eyebrow { display:inline-flex; align-items:center; gap:8px; padding:8px 13px; border-radius:999px; background:#fff; border:1px solid rgba(242,107,58,.18); color:var(--primary-dark); font-size:13px; font-weight:850; box-shadow:var(--shadow); }
.dot { width:8px; height:8px; border-radius:999px; background:var(--gold); box-shadow:0 0 0 5px rgba(227,165,47,.14); }
.mark { color:var(--primary); position:relative; }
.mark::after { content:""; position:absolute; left:0; right:0; bottom:2px; height:9px; border-radius:999px; background:rgba(255,216,77,.75); z-index:-1; }

.hero { padding:72px 0 60px; }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:52px; align-items:center; }
.hero-copy h1 { margin-top:20px; }
.lab-card { padding:15px; border-radius:28px; color:#fff; background:linear-gradient(145deg,#21111b,#552836 55%,#2b1420); box-shadow:0 30px 70px rgba(62,27,19,.28); }
.lab-top { display:flex; align-items:center; justify-content:space-between; padding:5px 5px 14px; font-size:13px; }
.dots { display:flex; gap:6px; }
.dots i { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.3); }
.dots i:first-child{background:#ff5c77;} .dots i:nth-child(2){background:#ffd84d;} .dots i:nth-child(3){background:#e3a52f;}
.live { color:#ffe8b5; font-size:12px; }
.live::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:#f0b84a; margin-right:6px; }
.lab-main { height:380px; border-radius:20px; background:rgba(37,17,25,.75); border:1px solid rgba(255,255,255,.1); }
.lab-main svg { width:100%; height:100%; }
.lab-tools { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; text-align:center; font-size:12px; color:rgba(255,255,255,.75); }
.lab-tools span { padding:9px; border-radius:10px; background:rgba(255,255,255,.08); }

.pill-row { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.pill { padding:10px 16px; border-radius:999px; background:#fff; border:1px solid var(--line); font-weight:850; color:var(--primary-dark); box-shadow:0 8px 20px rgba(143,63,36,.06); }
.pill:hover { border-color:var(--primary); }

.course-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:28px; }
.catalog-empty { grid-column:1/-1; padding:30px 20px; border:1px solid var(--line); border-radius:20px; background:#fff; color:var(--muted); line-height:1.8; }
[data-catalog-mode=center] .pill.active{border-color:var(--primary);background:#ffeddc;}
.course-card { display:block; border-radius:var(--radius); background:#fff; border:1px solid var(--line); overflow:hidden; transition:.2s ease; }
.course-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.course-art { height:150px; position:relative; background:linear-gradient(145deg,#f26b3a,#d64a6a); }
.course-art .tag { position:absolute; left:14px; top:13px; padding:5px 9px; border-radius:999px; background:rgba(255,255,255,.92); font-size:11px; font-weight:900; color:var(--primary-dark); }
.course-art .symbol { position:absolute; right:18px; bottom:12px; color:rgba(255,255,255,.95); font-size:46px; font-weight:900; }
.course-body { padding:16px; }
.course-body h3 { font-size:18px; }
.course-body p { color:var(--muted); font-size:13px; line-height:1.6; margin:8px 0 16px; }
.course-foot { display:flex; justify-content:space-between; align-items:center; }
.price { color:var(--coral); font-weight:900; font-size:20px; }
.go { color:var(--primary); font-weight:850; }

.level-track { display:grid; grid-template-columns:repeat(8,1fr); gap:10px; margin-top:28px; }
.level-node { text-align:center; padding:14px 8px; border-radius:16px; background:#fff; border:1px solid var(--line); }
.node-icon { width:40px; height:40px; margin:0 auto 8px; display:grid; place-items:center; border-radius:13px; background:#fff0e6; font-size:20px; }
.level-node b { color:var(--soft); font-size:10px; letter-spacing:.08em; display:block; }
.level-node strong { display:block; margin-top:4px; font-size:12px; }

.auth { min-height:calc(100vh - 120px); display:grid; place-items:center; padding:40px 0; }
.auth-card { width:min(420px,100%); background:#fff; border:1px solid var(--line); border-radius:24px; padding:34px; box-shadow:var(--shadow); }
.auth-card h1 { font-size:32px; margin:18px 0 8px; }
.auth-card p { color:var(--muted); }
.stack { display:grid; gap:14px; margin-top:22px; }
.stack label, .grid-form label { display:grid; gap:7px; color:var(--muted); font-weight:750; font-size:13px; }
input, select, textarea { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:#fffaf6; color:var(--ink); }
textarea { min-height:80px; resize:vertical; }
.hint { font-size:12px; color:var(--soft); margin-top:18px; }
.notice { padding:11px 13px; border-radius:11px; margin-top:16px; font-size:13px; }
.notice.error { background:#fff0ef; color:#a3373f; border:1px solid #f4c4c9; }

.course-detail { display:grid; grid-template-columns:1fr 360px; gap:40px; align-items:start; }
.detail-left h1 { margin:18px 0; }
.detail-left p { color:var(--muted); line-height:1.85; }
.detail-right .price-box { padding:24px; border-radius:20px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.price-box .price { font-size:36px; }
.price-box s { color:var(--soft); margin-left:10px; }
.price-box .meta { color:var(--muted); margin-top:10px; }
.lesson-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.lesson-list li { display:flex; align-items:center; gap:12px; padding:14px 16px; background:#fff; border:1px solid var(--line); border-radius:13px; }
.lesson-list .num { width:30px; height:30px; border-radius:10px; display:grid; place-items:center; background:#fff0e6; color:var(--primary-dark); font-weight:900; }
.lesson-list strong { flex:1; }
.lesson-list small { color:var(--soft); }

.dashboard-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card { padding:20px; border-radius:18px; background:#fff; border:1px solid var(--line); box-shadow:0 10px 26px rgba(143,63,36,.06); }
.card-label { color:var(--soft); font-size:12px; font-weight:800; }
.num { font-size:34px; font-weight:900; margin:10px 0 0; }
.next-level { font-size:15px; color:var(--primary-dark); font-weight:800; margin-top:8px; }
.level-big { display:flex; align-items:center; gap:14px; margin-top:12px; }
.level-big strong { font-size:20px; }
.level-big small { display:block; color:var(--muted); margin-top:4px; }
.mini-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.mini-card { display:flex; justify-content:space-between; gap:10px; padding:16px; border-radius:14px; background:#fff; border:1px solid var(--line); font-weight:800; }
.mini-card span { color:var(--primary); }

.admin-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.form-card { margin:22px 0 30px; }
.grid-form { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:18px; }
.grid-form .full { grid-column:1/-1; }
.table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.table th, .table td { text-align:left; padding:13px 14px; border-bottom:1px solid #f6ebe3; font-size:14px; }
.table th { color:var(--soft); font-size:12px; text-transform:uppercase; letter-spacing:.06em; background:#fff7f0; }
.table a { color:var(--primary); font-weight:800; }

.player { padding:20px 0 40px; }
.player-top { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 18px 12px; color:var(--muted); }
.player-top strong { color:var(--ink); }
.player iframe { width:100%; height:calc(100vh - 220px); min-height:520px; border:1px solid var(--line); border-radius:20px; background:#fff; }
.player-bottom { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 18px 0; color:var(--muted); }

.footer { padding:30px 0; border-top:1px solid var(--line); color:var(--soft); font-size:13px; }
.footer .shell { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

@media (max-width:900px) {
  .hero-grid, .course-detail { grid-template-columns:1fr; }
  .course-grid, .dashboard-grid, .mini-grid { grid-template-columns:1fr 1fr; }
  .level-track { grid-template-columns:repeat(4,1fr); }
  .nav-links { display:none; }
}
@media (max-width:620px) {
  .course-grid, .dashboard-grid, .mini-grid, .grid-form { grid-template-columns:1fr; }
  .level-track { grid-template-columns:repeat(2,1fr); }
  .section { padding:54px 0; }
  .player iframe { height:70vh; min-height:420px; }
}

/* 高保真首页增强 */
.hero.home-hero { position:relative; padding:70px 0 60px; overflow:hidden; }
.home-hero::before { content:""; position:absolute; width:420px; height:420px; right:-160px; top:-160px; border-radius:50%; background:radial-gradient(circle, rgba(255,216,77,.30), transparent 68%); pointer-events:none; }
.home-hero::after { content:""; position:absolute; width:360px; height:360px; left:-140px; bottom:-160px; border-radius:50%; background:radial-gradient(circle, rgba(242,107,58,.18), transparent 68%); pointer-events:none; }
.hero-visual { position:relative; }
.visual-orb { position:absolute; border-radius:50%; pointer-events:none; }
.orb-1 { width:150px; height:150px; right:-10px; top:8px; background:radial-gradient(circle, rgba(255,216,77,.90), transparent 70%); }
.orb-2 { width:190px; height:190px; left:-30px; bottom:-10px; background:radial-gradient(circle, rgba(227,165,47,.22), transparent 70%); }
.graph-label { position:absolute; left:18px; top:16px; padding:10px 13px; border-radius:12px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.10); color:#fff; }
.graph-label small { display:block; color:rgba(255,255,255,.55); font-size:11px; }
.graph-label strong { font-size:16px; }
.floating-badge { position:absolute; z-index:5; display:flex; align-items:center; gap:10px; padding:11px 13px; border-radius:15px; background:rgba(255,255,255,.95); box-shadow:var(--shadow); animation:floaty 5s ease-in-out infinite; }
.floating-badge.one { left:-20px; top:95px; }
.floating-badge.two { right:-14px; bottom:78px; animation-delay:-2s; }
.floating-badge strong { display:block; font-size:13px; }
.floating-badge small { display:block; color:var(--soft); margin-top:3px; font-size:11px; }
.badge-icon { width:34px; height:34px; border-radius:11px; display:grid; place-items:center; background:#fff0e6; color:var(--primary); font-size:16px; }
.badge-icon.green { background:#fff4d9; color:#bb7a00; }
@keyframes floaty { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-9px); } }

.subject-strip { padding:14px 0 60px; }
.subject-line { display:grid; grid-template-columns:repeat(7,1fr); gap:10px; }
.subject-chip { display:flex; align-items:center; justify-content:center; gap:8px; min-height:58px; border-radius:16px; background:#fff; border:1px solid var(--line); box-shadow:0 8px 20px rgba(143,63,36,.06); font-weight:850; font-size:13px; }
.subject-dot { width:10px; height:10px; border-radius:4px; }
.home-course-grid { margin-top:26px; }

.experience { padding:70px 0; color:#fff; background:#21111b; background:linear-gradient(135deg,#21111b,#552836 58%,#2b1420); overflow:hidden; }
.experience-layout { display:grid; grid-template-columns:.9fr 1.1fr; gap:48px; align-items:center; }
.experience h2 { color:#fff; }
.experience .lead { color:rgba(255,255,255,.65); }
.experience .kicker { color:#ffd0b8; }
.feature-list { display:grid; gap:12px; margin-top:24px; }
.feature-item { display:flex; gap:13px; padding:14px; border-radius:15px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.feature-icon { flex:0 0 auto; width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:rgba(255,255,255,.10); font-size:17px; }
.feature-item strong { display:block; font-size:14px; margin-bottom:4px; }
.feature-item small { color:rgba(255,255,255,.55); line-height:1.5; }
.experience-window { padding:14px; border-radius:24px; background:#fff; color:var(--ink); box-shadow:0 30px 70px rgba(0,0,0,.30); transform:rotate(1deg); }
.experience-toolbar { display:flex; justify-content:space-between; gap:12px; padding:5px 5px 12px; font-size:13px; color:var(--soft); }
.experience-toolbar b { color:var(--ink); }
.classroom { display:grid; grid-template-columns:1fr; }
.classroom-center { position:relative; min-height:360px; border-radius:18px; background:radial-gradient(circle at 50% 44%,#fff,#eef4ff 70%,#fde7d8); border:1px solid var(--line); overflow:hidden; }
.classroom-center svg { padding:28px; }
.canvas-caption { position:absolute; left:18px; bottom:15px; padding:8px 11px; border-radius:11px; background:rgba(255,255,255,.92); box-shadow:var(--shadow); font-size:12px; color:var(--muted); font-weight:700; }

.report-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:22px; margin-bottom:20px; }
.report-card { padding:26px; border-radius:22px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.report-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:20px; }
.student { display:flex; align-items:center; gap:11px; }
.student-avatar { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; color:#fff; font-weight:900; background:linear-gradient(135deg,var(--primary),var(--coral)); }
.student b { display:block; font-size:16px; }
.student span { display:block; color:var(--soft); font-size:11px; margin-top:3px; }
.report-badge { padding:7px 10px; border-radius:999px; background:#fff4d9; color:#9a6a00; font-size:11px; font-weight:900; }
.report-hero { padding:16px; border-radius:15px; background:linear-gradient(135deg,#fff3e8,#ffe9f0); }
.report-hero strong { font-size:15px; line-height:1.55; }
.report-hero span { display:block; color:var(--muted); margin-top:7px; font-size:12px; line-height:1.7; }
.metric-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.metric { padding:13px; border-radius:14px; background:#fffaf6; border:1px solid var(--line); }
.metric b { font-size:22px; display:block; }
.metric span { color:var(--soft); font-size:11px; }
.report-note { margin-top:14px; padding:14px; border-radius:14px; border:1px solid var(--line); }
.report-note small { color:var(--primary); font-weight:900; }
.report-note p { margin:7px 0 0; color:var(--muted); line-height:1.7; font-size:13px; }
.feedback-card { padding:26px; border-radius:22px; color:#fff; background:linear-gradient(145deg,#552836,#361824 68%,#321820); box-shadow:0 26px 60px rgba(62,27,19,.22); }
.feedback-card h3 { font-size:23px; margin-bottom:10px; }
.feedback-card > p { color:rgba(255,255,255,.60); line-height:1.75; }
.feedback-list { display:grid; gap:10px; margin-top:20px; }
.feedback-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 13px; border-radius:13px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); }
.feedback-row strong { font-size:13px; }
.feedback-row span span { color:rgba(255,255,255,.48); font-size:11px; }
.feedback-score { color:#fff; font-size:18px; font-weight:900; }
.level-route { margin-top:22px; padding:22px; border-radius:20px; background:#fff; border:1px solid var(--line); box-shadow:0 12px 30px rgba(143,63,36,.06); }
.level-route-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.level-route-head h3 { font-size:20px; }
.level-route-head p { color:var(--muted); font-size:13px; margin:6px 0 0; }
.level-route-head span { color:var(--primary); font-size:12px; font-weight:900; white-space:nowrap; }

@media (max-width:900px) {
  .subject-line { grid-template-columns:repeat(4,1fr); }
  .experience-layout, .report-grid { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .subject-line { grid-template-columns:repeat(2,1fr); }
  .floating-badge { display:none; }
  .experience-window { transform:none; }
  .classroom-center { min-height:300px; }
}

/* 后台管理操作 */
.row-actions { white-space: nowrap; }
.row-actions a { color: var(--primary); font-weight: 800; margin-right: 8px; }
.link-danger { color: #b3373f; font-weight: 800; background: none; padding: 0; }
.link-danger:hover { text-decoration: underline; }
.page-article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.page-article h1 { font-size: 34px; margin-bottom: 20px; }
.page-body { color: var(--muted); line-height: 1.85; }
.page-body h1, .page-body h2, .page-body h3 { color: var(--ink); }
.page-body p { margin: 0 0 14px; }
.page-body ul { padding-left: 22px; }

/* ============================================================
 * 管理后台（创始人）
 * ============================================================ */
.admin-body { background:#f6f1ec; }
.admin-shell { display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.admin-sidebar { background:linear-gradient(180deg,#2b1420,#552836 60%,#33121e); color:#fff; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.admin-brand { display:flex; align-items:center; gap:11px; padding:20px 20px 18px; border-bottom:1px solid rgba(255,255,255,.08); }
.admin-brand .brand-mark.mini { width:38px; height:38px; border-radius:12px; }
.admin-brand strong { display:block; font-size:16px; font-weight:900; }
.admin-brand small { display:block; color:rgba(255,255,255,.5); font-size:11px; margin-top:2px; }
.admin-menu { display:flex; flex-direction:column; gap:3px; padding:14px 12px; flex:1; }
.admin-menu a { display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:11px; color:rgba(255,255,255,.78); font-weight:800; font-size:14px; transition:.15s; }
.admin-menu a:hover { background:rgba(255,255,255,.08); color:#fff; }
.admin-menu a.active { background:linear-gradient(135deg,#f26b3a,#d94f70); color:#fff; box-shadow:0 8px 18px rgba(217,79,112,.35); }
.menu-ico { width:20px; text-align:center; font-size:15px; }
.admin-sidebar-foot { padding:14px 20px 20px; border-top:1px solid rgba(255,255,255,.08); display:flex; flex-direction:column; gap:6px; }
.side-link { color:rgba(255,255,255,.75); font-size:13px; font-weight:800; padding:8px 10px; border-radius:9px; }
.side-link:hover { background:rgba(255,255,255,.08); color:#fff; }
.side-link.danger { color:#ffb3a7; }

.admin-main { min-width:0; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 28px; background:#fff; border-bottom:1px solid #efe4dc; position:sticky; top:0; z-index:20; }
.topbar-title h2 { font-size:20px; }
.topbar-title p { color:var(--soft); font-size:12px; margin-top:3px; }
.topbar-user { display:flex; align-items:center; gap:10px; }
.topbar-user strong { display:block; font-size:14px; }
.topbar-user small { color:var(--soft); font-size:11px; }
.avatar-dot { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:#fff; font-weight:900; background:linear-gradient(135deg,#f26b3a,#d94f70); }
.admin-content { padding:26px 28px 50px; max-width:1240px; }

.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.stat-card { padding:20px; border-radius:18px; background:#fff; border:1px solid #efe4dc; box-shadow:0 8px 20px rgba(143,63,36,.05); }
.stat-card .stat-label { color:var(--soft); font-size:12px; font-weight:800; }
.stat-card .stat-value { font-size:32px; font-weight:900; margin-top:8px; }
.stat-card.stat-orange { background:linear-gradient(135deg,#fff3e8,#ffe9dc); }
.stat-card.stat-rose { background:linear-gradient(135deg,#fff0f0,#ffe3e8); }
.stat-card.stat-gold { background:linear-gradient(135deg,#fff8e2,#fff0c2); }
.stat-card.stat-violet { background:linear-gradient(135deg,#f3edff,#e6dcff); }

.panel { background:#fff; border:1px solid #efe4dc; border-radius:18px; box-shadow:0 8px 20px rgba(143,63,36,.05); margin-bottom:20px; overflow:hidden; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid #f6ebe3; background:#fffaf6; }
.panel-head h3 { font-size:16px; }
.panel-body { padding:20px; }

.admin-cols { display:grid; grid-template-columns:1.6fr 1fr; gap:20px; align-items:start; }
.admin-col-main, .admin-col-side { display:grid; gap:20px; min-width:0; }
.admin-form { display:grid; gap:14px; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.form-grid .full { grid-column:1/-1; }
.admin-form label { display:grid; gap:7px; color:var(--muted); font-weight:750; font-size:13px; }
.admin-form input, .admin-form select, .admin-form textarea { width:100%; padding:11px 12px; border-radius:11px; border:1px solid #e8d8cc; background:#fffdfb; font-size:14px; color:var(--ink); }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(242,107,58,.12); }
.admin-form.mini { gap:10px; padding:8px 0; }
.admin-form.mini label { font-size:12px; gap:5px; }
.form-actions { display:flex; gap:10px; align-items:center; margin-top:4px; flex-wrap:wrap; }

.quick-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.quick-item { display:flex; align-items:center; gap:12px; padding:14px; border-radius:14px; border:1px solid #efe4dc; background:#fffdfb; transition:.15s; }
.quick-item:hover { border-color:var(--primary); box-shadow:0 8px 18px rgba(242,107,58,.12); transform:translateY(-1px); }
.quick-ico { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:#fff0e6; color:var(--primary); font-size:18px; flex-shrink:0; }
.quick-item strong { display:block; font-size:14px; }
.quick-item small { color:var(--soft); font-size:12px; }
.quick-arrow { margin-left:auto; color:var(--soft); }

.level-list { display:grid; gap:6px; }
.level-row { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:11px; background:#fffaf6; border:1px solid #f6ebe3; }
.level-row.current { border-color:var(--primary); background:#fff3e8; }
.lv-ico { width:26px; text-align:center; font-size:16px; }
.lv-name { font-weight:850; min-width:130px; }
.lv-goal { color:var(--muted); font-size:12px; flex:1; }
.lv-xp { color:var(--soft); font-size:12px; font-weight:800; }

.table.compact th, .table.compact td { padding:9px 11px; font-size:13px; }
.badge { display:inline-block; padding:4px 9px; border-radius:999px; font-size:11px; font-weight:850; }
.badge-green { background:#e8f7ec; color:#1f8a4c; }
.badge-gray { background:#f0ece8; color:#8a7a70; }
.cell-sub { display:block; color:var(--soft); font-size:11px; margin-top:2px; font-weight:600; }
.empty-cell { color:var(--soft); text-align:center; padding:22px !important; }
.inline-form { display:inline; }
.link-danger { color:#b3373f; font-weight:800; background:none; padding:0; font-size:13px; }
.link-danger:hover { text-decoration:underline; }
.link-ok { color:var(--primary); font-weight:800; background:none; padding:0; font-size:13px; }
.link-ok:disabled { color:#d3b8a8; cursor:not-allowed; }
.row-actions { white-space:nowrap; }
.row-actions .inline-form { margin-left:8px; }
.row-actions .course-board-entry { padding:8px 10px; border-radius:9px; }
.row-actions a { color:var(--primary); font-weight:800; margin-right:8px; font-size:13px; }
.back-row { margin-bottom:16px; }
.info-list { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.info-item { padding:12px 14px; border-radius:12px; background:#fffaf6; border:1px solid #f6ebe3; }
.info-item span { display:block; color:var(--soft); font-size:11px; }
.info-item strong { display:block; font-size:15px; margin-top:4px; }
.summary-box { white-space:pre-wrap; font-size:13px; line-height:1.7; color:var(--muted); background:#fffaf6; border:1px solid #f6ebe3; border-radius:12px; padding:14px; margin-bottom:14px; }
.wrap-cell { max-width:260px; white-space:normal; line-height:1.5; }
.role-list { display:grid; gap:10px; }
.role-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px; border-radius:13px; border:1px solid #efe4dc; background:#fffdfb; }
.role-row strong { font-size:15px; }
.role-row p { color:var(--muted); font-size:12px; margin:4px 0 0; }
.notice.success { background:#eaf7ef; color:#1f8a4c; border:1px solid #bfe6cc; }
.row-details { display:inline-block; }
.row-details summary { color:var(--primary); font-weight:800; cursor:pointer; font-size:13px; margin-right:8px; list-style:none; display:inline; }
.row-details summary::-webkit-details-marker { display:none; }
.row-details[open] { display:block; width:100%; margin-top:8px; }
.row-details[open] form { background:#fffaf6; border:1px solid #f6ebe3; border-radius:12px; padding:12px; }

@media (max-width:980px) {
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { position:static; height:auto; }
  .admin-menu { flex-direction:row; flex-wrap:wrap; }
  .admin-menu a { flex:1 1 40%; }
  .admin-cols, .stat-grid, .quick-grid, .form-grid, .info-list { grid-template-columns:1fr; }
  .admin-topbar { padding:14px 16px; }
  .admin-content { padding:18px 16px 40px; }
}

.mount-list { display:grid; gap:4px; padding:10px; background:#fffaf6; border:1px solid #f6ebe3; border-radius:12px; min-width:220px; max-height:260px; overflow:auto; }
.mount-list a { display:block; padding:8px 10px; border-radius:8px; color:var(--primary-dark); font-weight:800; font-size:13px; }
.mount-list a:hover { background:#fff0e6; }

/* ============================================================
 * 练习卷（试卷）系统
 * ============================================================ */
.badge-rose { background:#ffe9ec; color:#c03956; }

.paper-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:14px; }
.paper-item { display:flex; align-items:center; gap:12px; padding:16px; border-radius:14px; background:#fff; border:1px solid var(--line); box-shadow:0 8px 20px rgba(143,63,36,.06); transition:.15s; }
.paper-item:hover { border-color:var(--primary); transform:translateY(-2px); }
.paper-ico { font-size:24px; }
.paper-item strong { display:block; font-size:15px; }
.paper-item small { color:var(--soft); font-size:12px; }

.exam-section { padding:0; background:#f6f1ec; min-height:calc(100vh - 60px); }
.exam-shell { display:grid; grid-template-columns:300px 1fr; min-height:calc(100vh - 60px); }
.exam-aside { background:#fff; border-right:1px solid #efe4dc; padding:18px 16px; display:flex; flex-direction:column; gap:14px; position:sticky; top:0; height:100vh; overflow:auto; }
.exam-meta strong { display:block; font-size:16px; }
.exam-meta small { color:var(--soft); font-size:12px; }
.exam-status { display:flex; gap:10px; flex-wrap:wrap; }
.exam-status-item { padding:8px 11px; border-radius:10px; background:#fff7f0; font-size:12px; color:var(--muted); }
.exam-status-item b { color:var(--primary); }
.exam-legend { font-size:12px; color:var(--soft); display:flex; gap:12px; align-items:center; }
.lg-dot { width:10px; height:10px; border-radius:3px; background:#ead8cc; display:inline-block; }
.lg-dot.done { background:#4bb87a; }
.exam-group-head { font-size:13px; font-weight:850; color:var(--ink); margin-bottom:8px; }
.exam-numbers { display:flex; flex-wrap:wrap; gap:8px; }
.exam-num { width:36px; height:36px; border-radius:10px; background:#fff; border:1.5px solid #ead8cc; font-weight:800; font-size:14px; color:var(--ink); transition:.15s; }
.exam-num:hover { border-color:var(--primary); }
.exam-num.current { background:linear-gradient(135deg,#f26b3a,#d94f70); color:#fff; border-color:transparent; box-shadow:0 6px 14px rgba(217,79,112,.3); }
.exam-num.done { background:#e8f7ec; border-color:#a8dfb9; color:#1f8a4c; }
.exam-submit { margin-top:auto; width:100%; }
.exam-main { display:flex; flex-direction:column; min-width:0; }
.exam-q-bar { padding:14px 20px; background:#fff; border-bottom:1px solid #efe4dc; font-weight:800; font-size:15px; }
.exam-main iframe { flex:1; width:100%; border:0; min-height:calc(100vh - 60px); background:#fff; }

.result-hero { display:flex; align-items:center; gap:28px; flex-wrap:wrap; padding:26px 30px; border-radius:20px; background:linear-gradient(135deg,#fff3e8,#ffe9f0); border:1px solid var(--line); box-shadow:var(--shadow); }
.result-score { font-size:56px; font-weight:900; line-height:1; }
.result-score span { font-size:22px; color:var(--soft); }
.result-pct { font-size:20px; font-weight:900; color:var(--primary); }
.result-msg { color:var(--muted); }

.question-template { margin-top:14px; padding:14px; border-radius:12px; background:#fffaf6; border:1px dashed #ead8cc; }
.question-template pre { white-space:pre-wrap; font-size:12px; line-height:1.6; color:var(--muted); background:#fff; border:1px solid #f6ebe3; border-radius:10px; padding:12px; overflow:auto; }
.question-template code { color:#c03956; }

@media (max-width:900px) {
  .exam-shell { grid-template-columns:1fr; }
  .exam-aside { position:static; height:auto; }
  .paper-grid { grid-template-columns:1fr; }
}

/* ============ 学员课程学习页（重新设计） ============ */
.learn-course { padding-top: 40px; }
.learn-hero {
  display:grid; grid-template-columns:1.15fr .85fr; gap:26px; align-items:stretch;
  margin:8px 0 6px;
}
.learn-hero-main {
  background:#fff; border:1px solid var(--line); border-radius:24px;
  padding:32px 34px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; justify-content:center;
}
.learn-hero-main h1 { font-size:clamp(28px,4vw,44px); margin:18px 0 12px; }
.learn-hero-main p { color:var(--muted); line-height:1.8; }

.learn-progress {
  background:linear-gradient(145deg,#2b1712,#5a2c22); color:#fff;
  border-radius:24px; padding:26px 28px; display:flex; flex-direction:column;
  justify-content:center; gap:18px; box-shadow:var(--shadow);
}
.lp-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.lp-head span { color:#ffdfc4; font-size:13px; font-weight:800; }
.lp-head strong { font-size:22px; }
.lp-bar { height:12px; border-radius:999px; background:rgba(255,255,255,.18); overflow:hidden; }
.lp-bar i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#ffd84d,#ff8a3d); transition:width .5s ease; }
.lp-meta { display:flex; flex-wrap:wrap; gap:8px 20px; font-size:12px; color:#ffd9bd; }
.lp-meta b { color:#fff; font-size:14px; margin-left:4px; }

.lesson-cards { display:grid; gap:10px; margin-top:6px; }
.lesson-card {
  display:flex; align-items:center; gap:16px; padding:15px 18px;
  background:#fff; border:1px solid var(--line); border-radius:16px;
  box-shadow:0 8px 20px rgba(143,63,36,.05); transition:.15s;
}
.lesson-card:hover { border-color:var(--primary); transform:translateY(-2px); box-shadow:0 14px 30px rgba(143,63,36,.10); }
.lc-status {
  width:40px; height:40px; flex:none; border-radius:12px; display:grid; place-items:center;
  font-weight:900; font-size:16px;
}
.lc-new .lc-status { background:#fff3ea; color:var(--primary-dark); }
.lc-started .lc-status { background:linear-gradient(135deg,var(--primary),var(--coral)); color:#fff; }
.lc-done .lc-status { background:#e5f6ef; color:#1f9d6b; font-size:18px; }
.lc-main { flex:1; min-width:0; }
.lc-main strong { display:block; font-size:16px; }
.lc-main small { display:block; color:var(--soft); font-size:12px; margin-top:4px; }
.lc-right { display:flex; align-items:center; gap:12px; flex:none; }
.lc-score { color:#1f9d6b; font-weight:900; font-size:13px; }
.lc-tag { color:var(--soft); font-size:12px; font-weight:800; }
.lc-start { color:var(--primary); font-weight:850; font-size:13px; }
.lc-arrow { color:var(--soft); font-weight:800; }
.lc-mini { display:flex; align-items:center; gap:8px; }
.lc-bar { width:80px; height:8px; border-radius:999px; background:#f6ebe3; overflow:hidden; }
.lc-bar i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--orange),var(--primary)); }
.lc-pct { color:var(--primary-dark); font-size:12px; font-weight:800; min-width:34px; text-align:right; }

@media (max-width:900px) {
  .learn-hero { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .lc-right .lc-mini { display:none; }
  .learn-hero-main { padding:26px 22px; }
  .learn-progress { padding:22px 20px; }
}

/* 题目管理页 */
.filter-form { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.filter-form label { display:grid; gap:7px; color:var(--muted); font-weight:750; font-size:13px; }
.filter-form select { min-width:260px; }
.row-sub { display:block; color:var(--soft); font-size:11px; font-weight:500; margin-top:3px; }

/* 学员列表筛选栏 */
.filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; padding:14px; margin-bottom:16px; background:#fffaf6; border:1px solid #f6ebe3; border-radius:12px; }
.filter-bar label { display:grid; gap:6px; color:var(--muted); font-weight:750; font-size:12px; }
.filter-bar input { min-width:170px; }
.filter-bar select { min-width:150px; }
.btn-link { color:var(--primary); font-weight:850; font-size:13px; align-self:center; margin-left:2px; }
.btn-link:hover { color:var(--primary-dark); }

/* 课件库：常规浏览只显示一页六份，编辑表单按需展开。 */
.admin-content.courseware-content { max-width:none; padding:14px 18px 20px; }
.courseware-admin .panel { margin-bottom:12px; }
.courseware-admin .panel-head { padding:11px 16px; }
.courseware-admin .panel-body { padding:12px 16px; }
.cw-filter { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-bottom:11px; }
.cw-filter label { display:grid; gap:4px; color:var(--muted); font-size:12px; font-weight:800; }
.cw-filter input, .cw-filter select, .cw-directory-form select { height:36px; border:1px solid #e8d8cc; border-radius:9px; background:#fffdfb; color:var(--ink); padding:5px 9px; font:inherit; }
.cw-filter input { width:210px; }
.cw-filter select { min-width:250px; }
.cw-filter .btn { min-height:36px; padding:7px 15px; }
.cw-filter > a { color:var(--primary); font-size:13px; font-weight:800; padding:8px 2px; }
.cw-filter-count { margin-left:auto; color:var(--soft); font-size:12px; white-space:nowrap; }
.cw-table-wrap { overflow-x:auto; }
.cw-table { table-layout:fixed; min-width:750px; }
.cw-table th, .cw-table td { padding:8px 10px; vertical-align:middle; font-size:12px; }
.cw-table th:nth-child(1) { width:37%; }
.cw-table th:nth-child(2) { width:29%; }
.cw-table th:nth-child(3) { width:9%; }
.cw-table th:nth-child(4) { width:14%; }
.cw-table th:nth-child(5) { width:11%; }
.cw-row-name, .cw-row-path { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.cw-row-name { font-size:13px; }
.cw-row-path { margin-top:3px; color:var(--soft); font-size:10px; }
.cw-directory-form { display:flex; align-items:center; gap:5px; }
.cw-directory-form select { width:min(100%, 220px); min-width:0; font-size:12px; }
.cw-directory-form button, .cw-audio-actions button { color:var(--primary); font-size:12px; font-weight:800; white-space:nowrap; }
.cw-table .row-details summary { font-size:12px; white-space:nowrap; }
.cw-table .mount-list { margin-top:7px; }
.cw-audio-actions { display:grid; gap:8px; margin-top:8px; }
.cw-audio-actions form { display:grid; gap:5px; }
.cw-audio-actions input[type=file] { max-width:180px; font-size:11px; }
.cw-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:12px; font-size:12px; color:var(--muted); }
.cw-pagination > div { display:flex; flex-wrap:wrap; gap:5px; }
.cw-pagination a { display:inline-flex; justify-content:center; min-width:31px; padding:6px 8px; border:1px solid #ead8cc; border-radius:8px; color:var(--primary); font-weight:800; }
.cw-pagination a.current { background:var(--primary); border-color:var(--primary); color:white; }
.cw-create { border:1px solid #efe4dc; border-radius:12px; background:#fff; }
.cw-create > summary { padding:10px 16px; cursor:pointer; color:var(--primary); font-size:13px; font-weight:850; }
.cw-create-grid { display:grid; gap:16px; padding:16px; border-top:1px solid #f6ebe3; }
.cw-create-grid section { padding-bottom:16px; border-bottom:1px solid #f6ebe3; }
.cw-create-grid h3 { margin-bottom:12px; font-size:14px; }
.cw-new-directory { display:flex; align-items:end; gap:10px; }
.cw-new-directory label { display:grid; gap:5px; min-width:min(100%,320px); font-size:12px; font-weight:800; color:var(--muted); }
.cw-new-directory input { padding:9px; border:1px solid #e8d8cc; border-radius:9px; }
@media(max-width:900px) { .cw-filter-count { width:100%; margin-left:0; } }
@media(max-width:900px) {
  .courseware-body .admin-shell { grid-template-columns:minmax(0,1fr); }
  .courseware-body .admin-main { width:100%; min-width:0; }
  .courseware-body .admin-brand { padding:7px 12px; }
  .courseware-body .admin-menu { flex-wrap:nowrap; overflow-x:auto; gap:4px; padding:6px 9px; }
  .courseware-body .admin-menu a { flex:0 0 auto; padding:6px 9px; font-size:12px; white-space:nowrap; }
  .courseware-body .admin-sidebar-foot { flex-direction:row; padding:2px 12px 5px; }
  .courseware-body .admin-sidebar-foot a { padding:4px 8px; font-size:11px; }
  .courseware-body .admin-topbar { padding:9px 14px; }
  .courseware-body .admin-content { padding:10px 12px 16px; }
  .cw-filter input { width:min(210px, 43vw); }
  .cw-filter select { min-width:0; width:min(240px, 46vw); }
  .cw-pagination { flex-wrap:wrap; }
}

/* 做题界面：原生题目渲染 + 可视化分析 */
.exam-content { flex:1; overflow:auto; padding:16px 20px; display:flex; flex-direction:column; min-height:0; }
.q-body { background:#fff; border:1px solid #ead8cc; border-radius:14px; padding:18px 20px; margin-bottom:14px; max-height:58vh; overflow:auto; flex:0 0 auto; }
.q-title { font-size:16px; font-weight:800; color:var(--ink); line-height:1.7; margin-bottom:16px; }
.q-opts { display:grid; gap:10px; }
.q-opt { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1.5px solid #ead8cc; border-radius:11px; cursor:pointer; font-size:15px; color:var(--ink); transition:.15s; }
.q-opt:hover { border-color:var(--primary); background:#fff7f0; }
.q-opt input { width:auto; }
.q-option-content{display:block;min-width:0;width:100%;}
.q-option-image{display:block;width:100%;max-width:230px;max-height:190px;object-fit:contain;margin-top:6px;border:1px solid #ead8cc;border-radius:8px;background:#fffaf4;}
.q-input { width:100%; max-width:420px; min-height:44px; padding:10px 12px; border:1.5px solid #ead8cc; border-radius:11px; font-size:15px; background:#fffaf6; }
.q-textarea { min-height:120px; resize:vertical; }
.q-analysis { background:#fff; border:1px solid #ead8cc; border-radius:14px; overflow:hidden; flex:1 0 auto; display:flex; flex-direction:column; min-height:300px; }
.qa-head { padding:11px 16px; font-size:13px; font-weight:800; color:var(--primary-dark); background:#fff7f0; border-bottom:1px solid #ead8cc; }
.q-analysis iframe { display:block; width:100%; flex:1; min-height:200px; border:0; background:#fff; }

/* 题目录入：选项组 */
.opt-group { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:14px; border:1px dashed #ead8cc; border-radius:12px; background:#fffaf6; }
.opt-group .opt-head { grid-column:1/-1; font-size:12px; color:var(--soft); font-weight:700; }
.opt-group label { display:grid; gap:6px; color:var(--muted); font-weight:750; font-size:12px; }
.opt-group input { width:100%; }
.admin-form.mini .opt-group { grid-template-columns:1fr; }

/* ============ 学习工作台 ============ */
.wk{display:grid; grid-template-columns:240px 1fr; min-height:100vh;}
.wk-side{background:linear-gradient(180deg,#2b1712,#3a1f18); color:#fff; padding:22px 14px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; gap:18px; overflow:auto;}
.wk-side-top{display:flex; align-items:center; gap:10px; padding:0 8px; border-bottom:1px solid rgba(255,255,255,.1); padding-bottom:16px;}
.wk-logo{width:38px; height:38px; border-radius:12px; background:linear-gradient(145deg,#ff9b4c,#e95170); display:grid; place-items:center; flex:none;}
.wk-logo svg{width:100%; height:100%;}
.wk-side-top b{display:block; font-size:14px;}
.wk-side-top small{display:block; color:#d9b9a8; font-size:11px; margin-top:3px;}
.wk-menu{display:grid; gap:4px;}
.wk-menu a{display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:11px; color:#e6d2c4; font-weight:700; font-size:14px;}
.wk-menu a .ic{width:24px; text-align:center; font-size:16px; flex:none;}
.wk-menu a:hover{background:rgba(255,255,255,.06); color:#fff;}
.wk-menu a.on{background:linear-gradient(135deg,#f26b3a,#d94f70); color:#fff; box-shadow:0 8px 18px rgba(217,79,112,.3);}
.wk-menu a .n{margin-left:auto; font-size:11px; background:rgba(255,255,255,.16); padding:2px 7px; border-radius:999px;}
.wk-menu a.wk-subdir{margin-left:25px;padding:7px 10px;font-size:12px;gap:8px;}
.wk-directory-list{display:grid;gap:14px;}
.wk-paper-directory{border:1px solid var(--line);border-radius:15px;background:#fff;min-width:0;overflow:hidden;}
.wk-paper-directory[hidden]{display:none;}
.wk-paper-directory summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;font-weight:800;background:#fff3e7;}
.wk-paper-directory summary::before{content:'▸';color:var(--primary);}
.wk-paper-directory[open] summary::before{content:'▾';}
.wk-paper-directory summary span{flex:1;}
.wk-paper-directory summary small{font-size:12px;color:var(--muted);}
.wk-directory-body{padding:14px;}
.wk-directory-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;}
.wk-directory-body .wk-empty{padding:22px;}
@media(max-width:600px){.wk-menu a.wk-subdir{margin-left:0;}.wk-directory-actions .btn{font-size:12px;}#wk-practice .wk-directory-body .wk-paper-list,#wk-exam .wk-directory-body .wk-paper-list{grid-template-columns:minmax(0,1fr);}}
.wk-side-foot{margin-top:auto; padding-top:14px; border-top:1px solid rgba(255,255,255,.1);}
.wk-side-foot a{color:#e6d2c4; font-size:13px; padding:8px 10px; border-radius:9px; display:block;}
.wk-side-foot a:hover{background:rgba(255,255,255,.06); color:#fff;}

.wk-main{min-width:0; padding:24px 30px 60px;}
.wk-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:22px;}
.wk-head .crumb{font-size:12px; color:var(--soft); font-weight:700;}
.wk-head .crumb a{color:var(--primary);}
.wk-head h1{font-size:30px; letter-spacing:-.02em; margin-top:7px;}
.wk-head .sub{color:var(--muted); font-size:13px; margin-top:6px;}
.wk-progress{min-width:230px; padding:13px 16px; border-radius:15px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow);}
.wk-progress .pb-top{display:flex; justify-content:space-between; font-size:12px; color:var(--muted); font-weight:700; margin-bottom:8px;}
.wk-progress .pb-top b{color:var(--ink); font-size:14px;}
.wk-progress .pb{height:10px; border-radius:999px; background:#f6ebe3; overflow:hidden;}
.wk-progress .pb i{display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#ffd84d,#ff8a3d,#f26b3a);}

.wk-tab{display:none; animation:fade .25s ease;}
.wk-tab.on{display:block;}
.wk-grid4{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px;}
.wk-grid2{display:grid; grid-template-columns:repeat(2,1fr); gap:16px;}
.wk-stat{background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px; box-shadow:var(--shadow); display:flex; align-items:center; gap:13px;}
.wk-stat .s-ic{width:44px; height:44px; border-radius:13px; display:grid; place-items:center; font-size:21px; flex:none;}
.wk-stat .s-ic.o{background:#fff0e6;} .wk-stat .s-ic.g{background:#e8f6ef;} .wk-stat .s-ic.r{background:#fdecef;} .wk-stat .s-ic.p{background:#fff3e0;}
.wk-stat b{display:block; font-size:22px; line-height:1;}
.wk-stat span{display:block; color:var(--muted); font-size:12px; margin-top:5px;}
.wk-continue{display:flex; align-items:center; gap:16px; padding:20px; border-radius:18px; background:linear-gradient(135deg,#2b1712,#5a2c22); color:#fff; box-shadow:var(--shadow); margin-bottom:20px;}
.wk-continue .c-ic{font-size:32px;}
.wk-continue b{font-size:16px; display:block;}
.wk-continue p{color:#ffd9bd; font-size:12px; margin-top:6px;}
.wk-h2{font-size:18px; margin:22px 0 12px;}
.wk-quick{display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
.wk-quick a{display:flex; align-items:center; gap:10px; padding:15px; border-radius:14px; background:#fff; border:1px solid var(--line); font-weight:800; font-size:13px;}
.wk-quick a:hover{border-color:var(--primary); transform:translateY(-2px); box-shadow:var(--shadow);}
.wk-quick .q-ic{font-size:21px;}

/* 知识地图 */
.wk-map-shell{display:grid; grid-template-columns:320px 1fr; gap:18px; align-items:start;}
.wk-map-tree{background:#fff; border:1px solid var(--line); border-radius:16px; padding:12px; box-shadow:0 8px 22px rgba(143,63,36,.05);}
.wk-group{margin-bottom:6px;}
.wk-group-head{display:flex; align-items:center; gap:8px; padding:10px; border-radius:10px; font-weight:850; font-size:14px; cursor:pointer; user-select:none;}
.wk-group-head:hover{background:#fff7f0;}
.wk-group-head .arr{transition:.2s; color:var(--soft); font-size:12px;}
.wk-group-head.fold .arr{transform:rotate(-90deg);}
.wk-group-body{display:block;}
.wk-group-body.hide{display:none;}
.wk-kp{display:flex; align-items:center; gap:8px; padding:9px 8px 9px 16px; border-radius:10px; cursor:pointer; font-weight:750; font-size:13px; color:var(--muted); user-select:none;}
.wk-kp:hover{background:#fff7f0; color:var(--ink);}
.wk-kp .arr{font-size:11px; color:var(--soft); transition:.2s; width:14px;}
.wk-kp.open .arr{transform:rotate(90deg);}
.wk-kp .kp-name{flex:1; padding:3px 0;}
.wk-kp .kp-n{font-size:11px; color:var(--soft); background:#fff3ea; padding:2px 8px; border-radius:999px;}
.wk-kp.wk-depth-1{background:#fffaf6; color:var(--ink); font-weight:850;}
.wk-kp.wk-depth-2{font-size:12.5px;}
.wk-kp.wk-depth-3{font-size:12px;}
.wk-kids .wk-kids{margin-left:14px; padding-left:12px;}
.wk-kids .wk-kp{padding-top:8px; padding-bottom:8px;}
.wk-kids{display:none; padding:4px 0 6px 14px; border-left:2px solid #f6ebe3; margin-left:20px;}
.wk-kids.show{display:block;}
.wk-mother{display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:9px; cursor:pointer; font-size:13px; color:var(--muted);}
.wk-mother:hover{background:#fff7f0; color:var(--ink);}
.wk-mother.on{background:linear-gradient(135deg,#f26b3a,#d94f70); color:#fff;}
.wk-mother .m-ic{font-size:14px; flex:none;}
.wk-ex{display:flex; align-items:center; gap:8px; padding:7px 10px 7px 26px; border-radius:9px; cursor:pointer; font-size:12px; color:var(--primary); font-weight:800;}
.wk-ex:hover{background:#fff7f0;}
.wk-ex .ex-ic{font-size:13px;}
.wk-ex .ex-go{margin-left:auto; color:var(--soft);}
.wk-empty{padding:30px; text-align:center; color:var(--soft); font-size:13px;}
.wk-map-view{position:sticky; top:16px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column; height:calc(100vh - 88px);}
.wk-mv-head{display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line);}
.wk-mv-head .mv-dots{display:flex; gap:5px;}
.wk-mv-head .mv-dots i{width:9px; height:9px; border-radius:50%; background:#f0ddd1;}
.wk-mv-head .mv-dots i:first-child{background:#ff5c77;} .wk-mv-head .mv-dots i:nth-child(2){background:#ffd84d;} .wk-mv-head .mv-dots i:nth-child(3){background:#2fa36b;}
.wk-mv-head .mv-title{font-size:14px; font-weight:800; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.wk-map-view iframe{display:block; width:100%; flex:1 1 auto; height:auto; min-height:0; border:0; background:#fff;}
.mv-close{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff7f0;color:var(--primary-dark);font:inherit;font-size:12px;font-weight:800;border-radius:9px;padding:6px 10px;cursor:pointer;flex:none;}
.mv-close:hover{border-color:var(--primary);color:var(--primary);}
.mv-close[hidden]{display:none!important;}
.wk-map-view.fullscreen{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none;background:#fff;}
.wk-map-view.fullscreen .wk-mv-head{flex:0 0 auto;padding:8px 12px;background:#fff;}
.wk-map-view.fullscreen .wk-mv-head .mv-dots{display:none;}
.wk-map-view.fullscreen .wk-mv-foot{display:none;}
.wk-map-view.fullscreen iframe{flex:1 1 auto;width:100%;height:auto;min-height:0;}
body.paper-open{overflow:hidden;}
.wk-mv-foot{padding:11px 16px; border-top:1px solid var(--line); font-size:12px; color:var(--soft);}

/* 历年试卷 */
#wk-practice .wk-map-shell,#wk-exam .wk-map-shell{display:block;}
#wk-practice .wk-map-view:not(.fullscreen),#wk-exam .wk-map-view:not(.fullscreen){display:none;}
.wk-paper-list{display:grid; gap:10px;}
#wk-practice .wk-paper-list,#wk-exam .wk-paper-list{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px;}
#wk-practice .wk-paper-row,#wk-exam .wk-paper-row{min-height:88px;padding:15px 16px;align-items:center;}
#wk-practice .wk-paper-row .p-year,#wk-exam .wk-paper-row .p-year{width:48px;height:48px;border-radius:12px;font-size:13px;}
#wk-practice .wk-paper-row .p-body b,#wk-exam .wk-paper-row .p-body b{font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
#wk-practice .wk-paper-row .p-body p,#wk-exam .wk-paper-row .p-body p,#wk-practice .wk-paper-row .p-go,#wk-exam .wk-paper-row .p-go{display:none;}
.wk-paper-row{display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:15px; background:#fff; border:1px solid var(--line); box-shadow:0 6px 16px rgba(143,63,36,.04); cursor:pointer; transition:.15s;}
.wk-paper-row:hover{border-color:var(--primary); transform:translateY(-2px);}
.wk-paper-row.on{border-color:var(--primary);}
.wk-paper-row .p-year{width:54px; height:54px; border-radius:13px; display:grid; place-items:center; font-weight:900; font-size:15px; color:#fff; flex:none; background:linear-gradient(135deg,#f26b3a,#d94f70);}
.wk-paper-row .p-body{flex:1;}
.wk-paper-row .p-body b{display:block; font-size:15px;}
.wk-paper-row .p-body p{color:var(--muted); font-size:12px; margin-top:4px;}
.wk-paper-row .p-go{color:var(--primary); font-weight:800; font-size:13px; flex:none;}

/* 错题 */
.wk-wrong-list{display:grid; gap:10px;}
.wk-wrong{display:flex; gap:14px; padding:16px 18px; border-radius:15px; background:#fff; border:1px solid var(--line); box-shadow:0 6px 16px rgba(143,63,36,.04);}
.wk-wrong .w-badge{width:34px; height:34px; border-radius:10px; background:#fdecef; color:var(--coral); font-weight:900; display:grid; place-items:center; flex:none;}
.wk-wrong .w-body{flex:1; min-width:0;}
.wk-wrong .w-body b{font-size:14px;}
.wk-wrong .w-body p{color:var(--muted); font-size:12px; margin-top:5px;}
.wk-wrong .w-ans{display:flex; gap:8px; margin-top:8px; flex-wrap:wrap;}
.wk-wrong .w-ans span{padding:4px 10px; border-radius:8px; font-size:12px; font-weight:700;}
.wk-wrong .w-ans .bad{background:#fdecef; color:var(--coral);}
.wk-wrong .w-ans .good{background:#e8f6ef; color:var(--green);}
.wk-card{background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; box-shadow:0 8px 22px rgba(143,63,36,.05);}
.wk-card h3{font-size:16px; margin-bottom:14px;}
.wk-dim{display:grid; gap:12px;}
.wk-dim .d-row{display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:10px; background:#fffaf6;}
.wk-dim .d-name{font-size:13px; color:var(--muted); font-weight:700;}
.wk-dim .d-val{font-size:14px; font-weight:800; color:var(--primary-dark);}
.wk-muted{color:var(--muted); line-height:1.8; font-size:13px;}

@media(max-width:900px){
  .wk{grid-template-columns:1fr;}
  .wk-side{position:static; height:auto; flex-direction:row; align-items:center; padding:12px; overflow-x:auto;}
  .wk-side-top,.wk-side-foot{display:none;}
  .wk-menu{display:flex; flex-wrap:nowrap;}
  .wk-menu a{padding:9px 12px; white-space:nowrap;}
  .wk-menu a .n{display:none;}
  .wk-main{padding:18px 16px 50px;}
  .wk-grid4{grid-template-columns:1fr 1fr;}
  .wk-map-shell{grid-template-columns:1fr;}
  .wk-map-view{position:static; height:auto;}
  .wk-map-view iframe{height:72vh; min-height:420px;}
}
@media(max-width:560px){
  .wk-grid4,.wk-grid2,.wk-quick{grid-template-columns:1fr;}
}

/* 工作台看板编辑器 */
.wen-tree { display:grid; gap:6px; }
.wen-node { display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:12px; background:#fff; border:1px solid var(--line); }
.wen-node.child { margin-left:26px; }
.wen-node.mother { margin-left:52px; background:#fffaf6; }
.wen-node .wen-name { flex:1; font-weight:800; font-size:14px; color:var(--ink); }
.wen-node .wen-ops { display:flex; align-items:center; gap:8px; flex:none; }
.wen-children { display:grid; gap:6px; margin-top:6px; }
.wen-children .row-details { margin-left:0; }

/* ============ 后台看板（可视化直接操作） ============ */
.wb-shell{display:grid; grid-template-columns:1fr 360px; gap:18px; align-items:start;}
.wb-tree{background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 22px rgba(143,63,36,.05); overflow:hidden;}
.wb-tree-head{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); background:#fffaf6;}
.wb-tree-head span{font-weight:850; font-size:15px;}
.wb-tree-head .btn{min-height:36px; padding:0 14px; font-size:12px;}
.wb-tree-body{padding:12px;}
.wb-node{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:11px; cursor:pointer; transition:.12s;}
.wb-node:hover{background:#fff7f0;}
.wb-node.sel{background:#fff0e6; outline:1.5px solid rgba(242,107,58,.4);}
.wb-node .wb-name{flex:1; font-weight:750; font-size:13px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.wb-node.mother .wb-name{color:var(--muted); font-weight:650;}
.wb-node .wb-btns{display:flex; gap:6px; flex:none; opacity:0; transition:.12s;}
.wb-node:hover .wb-btns{opacity:1;}
.wb-add, .wb-del{width:26px; height:26px; border-radius:8px; font-weight:900; font-size:16px; line-height:1; display:grid; place-items:center; transition:.12s;}
.wb-add{background:#fff0e6; color:var(--primary-dark);}
.wb-add:hover{background:var(--primary); color:#fff;}
.wb-del{background:#fdecef; color:var(--coral);}
.wb-del:hover{background:var(--coral); color:#fff;}
.wb-children{margin:2px 0 4px 18px; padding-left:12px; border-left:2px solid #f6ebe3; display:grid; gap:2px;}
.wb-children-empty{padding:6px 12px; font-size:12px; color:var(--soft);}

.wb-detail{background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 22px rgba(143,63,36,.05); padding:20px; position:sticky; top:20px;}
.dp-empty{color:var(--soft); font-size:13px; line-height:1.8; text-align:center; padding:30px 10px;}
.dp-title{font-size:15px; margin-bottom:14px;}

.wb-modal{position:fixed; inset:0; background:rgba(43,23,18,.45); display:none; align-items:center; justify-content:center; z-index:100;}
.wb-modal.show{display:flex;}
.wb-modal-box{width:min(360px,calc(100% - 40px)); background:#fff; border-radius:18px; padding:24px; box-shadow:0 30px 70px rgba(43,23,18,.3);}
.wb-modal-box h3{font-size:17px; margin-bottom:16px;}
.wb-modal-box input{width:100%; margin-bottom:18px;}
.wb-modal-actions{display:flex; gap:10px; justify-content:flex-end;}

@media(max-width:900px){
  .wb-shell{grid-template-columns:1fr;}
  .wb-detail{position:static;}
}

/* ============ 后台看板（学员工作台编辑模式） ============ */
.wk-admin .wk-side { background:linear-gradient(180deg,#2b1712,#4a241a); }
.wk-admin .adm-node { position:relative; }
.wk-admin .adm-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wk-admin .adm-btns { display:none; gap:5px; flex:none; align-items:center; }
.wk-admin .adm-node:hover .adm-btns { display:flex; }
.wk-admin .adm-node.sel { background:#fff0e6; outline:1.5px solid rgba(242,107,58,.35); }
.wk-admin .adm-node.sel .adm-btns { display:flex; }
.wk-admin .wb-add, .wk-admin .wb-del { width:24px; height:24px; border-radius:7px; font-weight:900; font-size:14px; line-height:1; display:grid; place-items:center; }
.wk-admin .wb-add { background:#fff0e6; color:var(--primary-dark); }
.wk-admin .wb-add:hover { background:var(--primary); color:#fff; }
.wk-admin .wb-del { background:#fdecef; color:var(--coral); }
.wk-admin .wb-del:hover { background:var(--coral); color:#fff; }
.wk-admin .wk-mv-foot { padding:12px 14px; }
.wk-admin .adm-form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.wk-admin .adm-form input[type=text] { flex:1; min-width:140px; }
.wk-admin .adm-form select { min-width:160px; }
.wk-admin .adm-form .btn { min-height:38px; }

/* 挂入试卷弹窗列表 */
.hang-list{display:grid; gap:8px; max-height:320px; overflow:auto; margin-bottom:14px;}
.hang-item{padding:12px 14px; border-radius:11px; border:1px solid var(--line); cursor:pointer; transition:.12s;}
.hang-item:hover{border-color:var(--primary); background:#fff7f0;}
.hang-item b{display:block; font-size:14px;}
.hang-item small{display:block; color:var(--soft); font-size:12px; margin-top:3px;}

/* 单题预览页 */
.qp-shell{max-width:820px;}
.qp-head{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px;}
.qp-title{font-size:19px; font-weight:800; line-height:1.7; margin-bottom:20px; padding:18px 20px; background:#fff; border:1px solid var(--line); border-radius:14px;}
.qp-opts{display:grid; gap:10px; margin-bottom:20px;}
.qp-opt{display:flex; align-items:center; gap:12px; padding:13px 16px; border-radius:12px; border:1px solid var(--line); background:#fff; font-size:15px;}
.qp-opt .qp-key{width:26px; height:26px; border-radius:8px; background:#fff0e6; color:var(--primary-dark); display:grid; place-items:center; font-weight:900; flex:none;}
.qp-opt.correct{border-color:#2fa36b; background:#e8f6ef;}
.qp-opt.correct .qp-key{background:#2fa36b; color:#fff;}
.qp-opt em{margin-left:auto; color:#2fa36b; font-style:normal; font-weight:800; font-size:12px;}
.qp-fill{padding:14px 16px; background:#fff; border:1px solid var(--line); border-radius:12px; font-size:15px; margin-bottom:20px;}
.qp-h2{font-size:17px; margin:8px 0 12px;}
.qp-frame{display:block; width:100%; height:380px; border:1px solid var(--line); border-radius:14px; background:#fff;}

/* 题库管理页：左窄（新建试卷）右宽（题目列表） */
.admin-cols-tk { display:grid; grid-template-columns:500px 1fr; gap:20px; align-items:start; }
.admin-cols-tk .admin-col-main, .admin-cols-tk .admin-col-side { display:grid; gap:20px; min-width:0; }
/* 试卷多选 checkbox 列表 */
.paper-check-list { display:grid; gap:6px; max-height:180px; overflow:auto; padding:4px; }
.pc-item { display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:9px; border:1px solid var(--line); font-size:13px; cursor:pointer; }
.pc-item:hover { background:#fff7f0; }
.pc-item input { width:auto; }
.pc-item span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:900px){
  .admin-cols-tk { grid-template-columns:1fr; }
}

/* 题库卡片（直接预览） */
.tk-grid { display:grid; gap:12px; }
.tk-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; box-shadow:0 6px 16px rgba(143,63,36,.04); transition:.12s; }
.tk-card:hover { border-color:var(--primary); }
.tk-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.tk-id { font-size:12px; color:var(--soft); font-weight:800; margin-right:2px; }
.tk-papers { margin-left:auto; font-size:12px; color:var(--soft); }
.tk-title { font-size:16px; font-weight:800; line-height:1.6; color:var(--ink); }
.tk-opts { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:10px; font-size:14px; color:var(--muted); }
.tk-foot { display:flex; align-items:center; gap:14px; margin-top:12px; padding-top:12px; border-top:1px dashed #f0ddd1; flex-wrap:wrap; }
.tk-ans { font-size:13px; color:var(--green); font-weight:700; }
.tk-actions { margin-left:auto; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.tk-actions a { color:var(--primary); font-weight:800; font-size:13px; }
.tk-actions .row-details summary { color:var(--primary); font-weight:800; font-size:13px; }

/* 放入试卷：紧凑横向小标签 */
.paper-chips { display:flex; flex-wrap:wrap; gap:6px; }
.pc-chip { display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:999px; border:1px solid var(--line); font-size:11px; font-weight:650; cursor:pointer; color:var(--muted); transition:.12s; background:#fff; }
.pc-chip:hover { border-color:var(--primary); color:var(--primary-dark); }
.pc-chip input { width:auto; margin:0; accent-color:var(--primary); }
.pc-chip:has(input:checked) { background:#fff0e6; border-color:var(--primary); color:var(--primary-dark); font-weight:750; }
.hint-inline { font-size:11px; color:var(--soft); font-weight:500; }

/* 放入试卷：每行一个试卷，名称左、勾选框右 */
.paper-rows { display:grid; gap:4px; }
.pr-row { display:flex !important; flex-direction:row; align-items:center; justify-content:space-between; gap:10px; padding:5px 12px; border-radius:8px; border:1px solid var(--line); font-size:12px; cursor:pointer; color:var(--muted); transition:.12s; }
.pr-row:hover { background:#fff7f0; border-color:var(--primary); }
.pr-row:has(input:checked) { background:#fff0e6; border-color:var(--primary); color:var(--primary-dark); }
.pr-row input { width:13px; height:13px; margin:0; accent-color:var(--primary); flex:none; cursor:pointer; }
.pr-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 公告与活动 */
.notice-list { display:grid; gap:10px; }
.notice-card { display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:14px; background:#fff; border:1px solid var(--line); box-shadow:0 6px 16px rgba(143,63,36,.04); transition:.15s; }
.notice-card:hover { border-color:var(--primary); transform:translateY(-2px); }
.nc-tag { padding:3px 10px; border-radius:8px; font-size:11px; font-weight:800; background:#fff0e6; color:var(--primary-dark); flex:none; }
.nc-tag.act { background:#e8f6ef; color:#1f9d6b; }
.nc-title { flex:1; font-size:14px; font-weight:750; }
.nc-go { color:var(--primary); font-weight:800; font-size:13px; flex:none; }

/* 课程补充内容 */
.wk-sup-list { display:grid; gap:10px; }
.wk-sup { display:flex; align-items:center; gap:12px; padding:13px 16px; border-radius:13px; background:#fff; border:1px solid var(--line); transition:.15s; }
.wk-sup:hover { border-color:var(--primary); transform:translateY(-2px); }
.sup-ic { font-size:18px; flex:none; }
.sup-title { flex:1; font-size:14px; font-weight:750; }
.sup-go { color:var(--primary); font-weight:800; font-size:13px; flex:none; }

/* 题目配图 */
.form-img-preview { display:block; max-width:200px; max-height:140px; border-radius:10px; border:1px solid var(--line); margin-top:8px; }
.tk-img { display:inline-block; max-width:170px; max-height:110px; border-radius:10px; border:1px solid var(--line); margin:10px 8px 0 0; vertical-align:top; }
.qp-img { display:inline-block; max-width:200px; max-height:140px; border-radius:10px; border:1px solid var(--line); margin:0 10px 14px 0; vertical-align:top; }
.q-img { display:inline-block; max-width:200px; max-height:150px; border-radius:10px; border:1px solid var(--line); margin:0 10px 12px 0; vertical-align:top; }

/* 科目标签 */
.tag.subj { background:#eef1ff; color:#3f57d6; }

/* ==== 做题页：最外层框架拉满整个视口 ==== */
body:has(.exam-section) { display:flex; flex-direction:column; height:100vh; overflow:hidden; }
body:has(.exam-section) main { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
body:has(.exam-section) .footer { display:none; }
body:has(.exam-section) .exam-section { flex:1 1 auto; min-height:0; }
body:has(.exam-section) .exam-shell { height:100%; min-height:0; }
body:has(.exam-section) .exam-aside { height:100%; }
body:has(.exam-section) .exam-main { min-height:0; }
body:has(.exam-section) .exam-content { min-height:0; }
body:has(.exam-section) .q-body { max-height:60%; }
body:has(.exam-section) .q-analysis { min-height:0; }

/* ==== 做题页全屏（不依赖 :has()，一定生效） ==== */
.exam-body { display:flex; flex-direction:column; height:100vh; overflow:hidden; }
.exam-body main { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.exam-body .exam-section { flex:1 1 auto; min-height:0; display:flex; }
.exam-body .exam-shell { flex:1 1 auto; min-height:0; height:100%; }
.exam-body .exam-aside { height:100%; }
.exam-body .exam-main { min-height:0; }
.exam-body .exam-content { flex:1; min-height:0; display:flex; flex-direction:column; overflow:auto; gap:12px; padding:14px 18px; }
.exam-body .q-body { min-height:0; overflow:auto; margin:0; max-height:none; flex:1 1 auto; }
.exam-body .q-analysis { min-height:0; flex:0 0 auto; }

/* ==== 做题页：题目按内容自适应 + 内容压缩，尽量一眼装下 ==== */
.exam-body .exam-content { padding:10px 14px; gap:10px; }
.exam-body .q-body { flex:0 1 auto; max-height:60%; overflow:auto; margin:0; padding:14px 16px; }
.exam-body .q-analysis { flex:1 1 auto; min-height:0; }
.exam-body .q-title { font-size:15px; line-height:1.6; margin-bottom:10px; }
.exam-body .q-opt { padding:9px 12px; font-size:14px; }
.exam-body .q-img { max-width:150px; max-height:110px; margin:0 8px 8px 0; }
.exam-body .q-analysis iframe { min-height:0; }

/* ==== 做题页：进一步压缩，一屏装下 ==== */
.exam-body .exam-q-bar { padding:8px 16px; font-size:13px; }
.exam-body .exam-content { padding:8px 12px; gap:8px; }
.exam-body .q-body { padding:12px 14px; max-height:58%; }
.exam-body .q-title { font-size:14px; line-height:1.55; margin-bottom:8px; }
.exam-body .q-img { max-width:125px; max-height:95px; margin:0 6px 6px 0; }
.exam-body .q-analysis .qa-head { padding:8px 14px; font-size:12px; }

/* 做题页图片：缩略图 + 点击看大图 */
.exam-body .q-img-link { display:inline-block; margin:0 6px 6px 0; }
.exam-body .q-img { max-width:220px; max-height:180px; margin:0; }
.exam-body .q-img[src$=".svg"] { display:block; width:100%; max-width:520px; max-height:none; height:auto; }

/* 试卷导出/导入 */
.exp-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border:1px solid var(--line); border-radius:11px; margin-bottom:8px; }
.exp-row span { font-size:14px; font-weight:700; }
.exp-row .btn { min-height:34px; padding:0 14px; font-size:12px; }

/* 题库分页 */
.pager { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:16px; }
.pg-btn { padding:8px 16px; border-radius:10px; border:1px solid var(--line); background:#fff; color:var(--primary-dark); font-weight:800; font-size:13px; }
.pg-btn:hover { border-color:var(--primary); }
.pg-btn.off { opacity:.4; pointer-events:none; }
.pg-info { font-size:13px; color:var(--muted); font-weight:700; }

/* 试卷列表操作按钮 */
.exp-ops { display:flex; align-items:center; gap:10px; flex:none; }

/* 试卷预览页 */
.pv-q { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin-bottom:14px; }
.pv-head { font-size:12px; color:var(--soft); font-weight:800; margin-bottom:8px; }
.pv-title { font-size:15px; font-weight:800; line-height:1.7; }
.pv-imgs { margin-top:10px; }
.pv-img { display:inline-block; max-width:180px; max-height:140px; border-radius:8px; border:1px solid var(--line); margin:0 8px 8px 0; vertical-align:top; }
.pv-opts { display:grid; gap:6px; margin-top:10px; }
.pv-opt { padding:8px 12px; border:1px solid var(--line); border-radius:9px; font-size:14px; }
.pv-opt.correct { border-color:#2fa36b; background:#e8f6ef; }
.pv-ans { margin-top:10px; font-size:13px; font-weight:800; color:#1f9d6b; }

/* 工作台看板：课程列表 */
.ws-course-list { display:grid; gap:12px; }
.ws-course { display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:14px; background:#fff; border:1px solid var(--line); box-shadow:0 6px 16px rgba(143,63,36,.04); transition:.15s; }
.ws-course:hover { border-color:var(--primary); transform:translateY(-2px); }
.ws-ico { font-size:24px; flex:none; }
.ws-info { flex:1; }
.ws-info b { display:block; font-size:15px; }
.ws-info small { display:block; color:var(--soft); font-size:12px; margin-top:3px; }
.ws-go { color:var(--primary); font-weight:800; font-size:13px; flex:none; }

/* 工作台看板筛选 */
.ws-filter { display:flex; gap:8px; margin-bottom:16px; }
.ws-filter a { padding:7px 14px; border-radius:999px; border:1px solid var(--line); font-size:13px; font-weight:750; color:var(--muted); background:#fff; }
.ws-filter a.on { background:#fff0e6; border-color:var(--primary); color:var(--primary-dark); }

/* ===== 专业内容页（品牌故事 / 法律条款） ===== */
.doc-hero { padding:60px 0 46px; background:linear-gradient(160deg,#2b1712,#5a2c22 70%,#7a3a24); color:#fff; }
.doc-badge { display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); font-size:12px; font-weight:800; color:#ffe0c4; }
.db-dot { width:7px; height:7px; border-radius:50%; background:#f0b84a; box-shadow:0 0 0 4px rgba(240,184,74,.18); }
.doc-hero h1 { font-size:clamp(30px,4vw,44px); margin:18px 0 12px; letter-spacing:-.02em; }
.doc-meta { color:#ffd9bd; font-size:13px; }
.doc-wrap { padding:44px 0 70px; background:#fffaf6; }
.doc-grid { display:grid; grid-template-columns:250px 1fr; gap:36px; align-items:start; }
.doc-toc { position:sticky; top:20px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; box-shadow:0 8px 22px rgba(143,63,36,.05); }
.doc-toc-head { font-size:12px; font-weight:900; color:var(--soft); letter-spacing:.06em; margin-bottom:12px; }
.doc-toc a { display:block; color:var(--muted); font-size:13px; padding:7px 0; border-bottom:1px dashed #f2e4d9; }
.doc-toc a:last-child { border-bottom:0; }
.doc-toc a:hover { color:var(--primary); }
.doc-article { background:#fff; border:1px solid var(--line); border-radius:20px; padding:38px 42px; box-shadow:0 12px 34px rgba(143,63,36,.06); }
.doc-article h2 { font-size:24px; margin:0 0 18px; }
.doc-article h3 { font-size:17px; margin:30px 0 12px; padding-left:14px; border-left:4px solid var(--primary); }
.doc-article p { color:#4a3a34; line-height:1.95; font-size:15px; margin:12px 0; }
@media(max-width:900px){ .doc-grid { grid-template-columns:1fr; } .doc-toc { position:static; } .doc-article { padding:26px 22px; } }

/* ===== 免费试学页 ===== */
.trial-hero { padding:56px 0 40px; background:linear-gradient(160deg,#2b1712,#5a2c22 70%,#7a3a24); color:#fff; }
.trial-hero h1 { font-size:clamp(28px,4vw,42px); margin:18px 0 12px; letter-spacing:-.02em; }
.trial-sub { color:#ffd9bd; font-size:15px; line-height:1.8; max-width:640px; }
.trial-sub b { color:#ffd84d; }
.trial-wrap { padding:40px 0 70px; background:#fffaf6; }
.trial-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:30px; align-items:start; }
.trial-lab { background:linear-gradient(145deg,#21111b,#341a24); border-radius:24px; padding:15px; box-shadow:0 26px 60px rgba(62,27,19,.28); }
.trial-lab .lab-top { display:flex; align-items:center; justify-content:space-between; padding:5px 5px 14px; font-size:13px; }
.trial-lab .lab-title { color:#fff; font-weight:800; }
.trial-canvas { border-radius:18px; overflow:hidden; background:rgba(37,17,25,.75); border:1px solid rgba(255,255,255,.1); }
.trial-canvas svg { display:block; width:100%; height:auto; }
.trial-controls { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.trial-controls .control { background:rgba(255,255,255,.06); padding:12px 14px; border-radius:14px; }
.trial-controls .control-head { display:flex; justify-content:space-between; color:#ffe8b5; font-size:13px; font-weight:750; margin-bottom:8px; }
.trial-controls input[type=range] { width:100%; }
.trial-info { background:#fff; border:1px solid var(--line); border-radius:20px; padding:28px 30px; box-shadow:0 12px 34px rgba(143,63,36,.06); }
.trial-info h3 { font-size:16px; margin:20px 0 10px; }
.trial-info h3:first-child { margin-top:0; }
.trial-info p { color:#4a3a34; line-height:1.9; font-size:14px; }
.trial-list { margin:0; padding-left:20px; color:#4a3a34; line-height:2; font-size:14px; }
.trial-actions { display:flex; flex-direction:column; gap:10px; margin:22px 0 12px; }
.trial-note { color:var(--soft); font-size:12px; }
@media(max-width:900px){ .trial-grid { grid-template-columns:1fr; } .trial-controls { grid-template-columns:1fr; } }

/* 免费试学按钮 + 试学题目容器 */
.link-muted { color: var(--soft); font-weight: 800; font-size: 13px; }
.link-muted:hover { color: var(--primary); }
.trial-qs { display: grid; gap: 12px; }
.tq-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #fffaf6; }
.tq-head { font-size: 11px; color: var(--soft); font-weight: 800; margin-bottom: 6px; }
.tq-title { font-size: 14px; font-weight: 750; line-height: 1.6; }
.tq-imgs { margin-top: 8px; }
.tq-img { display: inline-block; max-width: 130px; max-height: 100px; border-radius: 8px; border: 1px solid var(--line); margin: 0 6px 6px 0; }
.tq-opts { display: grid; gap: 6px; margin-top: 10px; }
.tq-opt { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; cursor: pointer; background: #fff; }
.tq-opt input { width: auto; }
.tq-input { width: 100%; min-height: 40px; }


/* 可视化分析：内嵌标题栏 */
.qa-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.exam-body .qa-head { padding:4px 10px; font-size:11px; line-height:1.25; }
.qa-head .qa-ic { font-size:14px; line-height:1; }

/* 可视化分析：改为链接卡片 */
.qa-link { display:flex; align-items:center; gap:12px; margin-top:12px; padding:14px 16px; border-radius:14px; background:linear-gradient(135deg,#fff7f0,#fff0e6); border:1px solid rgba(242,107,58,.22); }
.qa-link:hover { border-color:var(--primary); }
.qa-ic { font-size:20px; flex:none; }
.qa-txt { flex:1; }
.qa-txt b { display:block; font-size:14px; color:var(--primary-dark); }
.qa-txt small { display:block; font-size:12px; color:var(--soft); margin-top:3px; }
.qa-go { color:var(--primary); font-weight:800; font-size:13px; flex:none; }

/* 错题重做页 */
.redo-wrap { max-width:820px; }
.redo-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:28px 30px; box-shadow:0 12px 30px rgba(143,63,36,.06); }
.redo-head { display:inline-block; padding:5px 12px; border-radius:999px; background:#fdecef; color:var(--coral); font-size:12px; font-weight:850; margin-bottom:14px; }
.redo-title { font-size:17px; font-weight:800; line-height:1.8; margin-bottom:14px; }
.redo-imgs { margin-bottom:12px; }
.redo-img { display:inline-block; max-width:240px; max-height:180px; border-radius:10px; border:1px solid var(--line); margin:0 10px 10px 0; vertical-align:top; }
.redo-opts { display:grid; gap:10px; }
.redo-opt { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:11px; cursor:pointer; font-size:15px; }
.redo-opt:hover { border-color:var(--primary); background:#fff7f0; }
.redo-opt input { width:auto; }
.redo-input { width:100%; max-width:420px; min-height:44px; }
.redo-actions { display:flex; gap:12px; margin-top:18px; }
.redo-result { margin-top:16px; font-weight:800; }
.redo-result .ok { color:#1f9d6b; }
.redo-result .bad { color:var(--coral); }
.redo-result .warn { color:var(--gold); }
.redo-analysis { margin-top:18px; height:420px; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; }
.redo-analysis iframe { display:block; flex:1 1 auto; width:100%; min-height:0; border:0; background:#fff; }

/* 错题集说明条 */
.wk-tip { padding:12px 16px; border-radius:12px; background:#fff7f0; border:1px solid #f6ebe3; color:var(--muted); font-size:13px; line-height:1.7; margin-bottom:14px; }
.wk-tip b { color:var(--primary-dark); }

/* 学员工作台：课程抬头合并到顶部，内容整体上移 */
.wk-student{min-height:calc(100vh - 59px);}
.wk-student .wk-side{padding-top:14px;gap:10px;height:calc(100vh - 59px);}
.wk-student .wk-side-top{display:none;}
.wk-student .wk-main{padding:12px 22px 28px;}
.wk-student .wk-head{display:none;}
.wk-student .wk-main{padding:10px 12px 24px;}
.wk-student .wk-map-view{height:calc(100vh - 70px);}

/* 后台工作台看板：同步紧凑结构，适配后台顶部栏 */
.wk-admin.wk-student{min-height:calc(100vh - 130px);}
.wk-admin.wk-student .wk-side{height:calc(100vh - 130px);}
.wk-admin.wk-student .wk-main{padding:0 10px 20px 0;}
.wk-admin.wk-student .wk-map-view{height:calc(100vh - 150px);}
@media(max-width:900px){
  .wk-student:has(.wk-subdir) .wk-side{height:auto;align-items:stretch;overflow:visible;padding:12px;}
  .wk-student:has(.wk-subdir) .wk-menu{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));}
  .wk-student:has(.wk-subdir) .wk-menu a:not(.wk-subdir){grid-column:1/-1;}
  .wk-student:has(.wk-subdir) .wk-menu a.wk-subdir{margin-left:0;justify-content:center;}
  .wk-admin.wk-student:has(.wk-subdir) .wk-main{padding:12px;}
}

/* 历史记录与题目搜索 */
.wk-history-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 8px 22px rgba(143,63,36,.05);}
.wk-map-shell.paper-active > .wk-directory-list,.wk-map-shell.paper-active > .wk-paper-list{display:none;}
#wk-practice .wk-map-shell.paper-active .wk-map-view,#wk-exam .wk-map-shell.paper-active .wk-map-view{display:flex;height:calc(100vh - 150px);min-height:580px;position:static;}
#wk-practice .paper-active iframe,#wk-exam .paper-active iframe{flex:1;width:100%;height:auto;min-height:0;}
.wk-tab:has(.paper-active) > .wk-paper-toolbar{display:none!important;}
.exam-num.correct,.exam-num.done{background:#e9f2ff;border-color:#90b8f3;color:#2466b8;}
.exam-num.wrong{background:#ffebeb;border-color:#ee8b8b;color:#c93636;}
.exam-num.pending{background:#fff5da;border-color:#dec26a;color:#896516;}
.exam-num.current{outline:3px solid #f5ad6f;outline-offset:2px;}
.exam-num.correct.current,.exam-num.wrong.current,.exam-num.pending.current{background-image:none;box-shadow:none;}
.exam-num small{font-size:10px;margin-left:2px;}
.lg-dot.correct,.lg-dot.done{background:#2466b8;}.lg-dot.wrong{background:#c93636;}.lg-dot.pending{background:#bf951d;}
.exam-legend{flex-wrap:wrap;gap:7px;line-height:1.7;}
.exam-instruction,.exam-notice{font-size:12px;color:var(--soft);line-height:1.7;}
.exam-timer-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px;}
.exam-timer-controls .btn{padding:6px 10px;font-size:12px;}
.exam-timer-controls small{font-size:11px;color:var(--soft);}
.exam-notice:empty{display:none;}
.exam-score-card{padding:16px;border:1px solid #f0d7bd;background:#fff6ea;border-radius:14px;}
.exam-score-card small{display:block;color:var(--soft);}
.exam-score-card strong{display:block;font-size:34px;color:var(--primary-dark);margin:8px 0;}
.exam-score-card strong span{font-size:14px;color:var(--muted);}
.exam-score-card p{font-size:12px;line-height:1.7;color:var(--muted);}
.exam-page-actions{display:flex;gap:8px;flex:none;}.exam-page-actions .btn{font-size:12px;min-height:30px;padding:6px 10px;}
.exam-q-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.exam-body .exam-shell{grid-template-columns:210px minmax(0,1fr);}
.exam-body .exam-content{display:grid;grid-template-columns:minmax(260px,2fr) minmax(220px,3fr);grid-template-rows:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);align-items:stretch;overflow:hidden;}
.exam-body.exam-review .exam-content{grid-template-rows:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);overflow:hidden;}
.exam-body .q-body{max-height:none;overflow:auto;white-space:normal;}
body.exam-body .q-body{max-height:none;}
.exam-aside .exam-submit{position:sticky;bottom:0;flex-shrink:0;box-shadow:0 -6px 16px #ffffffd9;}
.exam-body .q-title{white-space:pre-wrap;}
.exam-body .q-analysis{min-height:0;overflow:hidden;}
.exam-body .q-analysis iframe{height:100%;min-height:0;}
.exam-body .q-analysis[hidden]{display:none;}
.exam-body #qAnalysis{grid-column:1/-1;min-height:420px;}
.exam-body.exam-review #qAnalysis{min-height:260px;}
.exam-visual-empty{display:grid;place-items:center;flex:1;padding:24px;color:var(--soft);font-size:13px;text-align:center;}
.exam-body #qVisualization{position:relative;}
.exam-visual-status{position:absolute;inset:32px 0 0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px;background:#fff8f1f2;color:#8f3f24;text-align:center;font-size:13px;}
.exam-visual-status[hidden]{display:none;}
.exam-visual-status button{padding:8px 12px;border:1px solid #e4c8b5;border-radius:8px;background:#ffe9d4;color:#54382f;cursor:pointer;}
.q-answer-label{display:grid;gap:8px;font-size:13px;font-weight:700;margin-top:12px;}
.exam-feedback{padding:14px;border-radius:12px;line-height:1.8;font-size:13px;margin-top:16px;overflow-wrap:anywhere;}
.exam-feedback.correct{background:#e9f2ff;color:#2466b8;}.exam-feedback.wrong{background:#ffebeb;color:#c93636;}.exam-feedback.pending{background:#fff5da;color:#896516;}
.exam-answer-reveal{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px 14px;border:1px solid #b9dfc6;border-radius:12px;background:#edf9f1;color:#1d7047;font-size:13px;}
.exam-answer-reveal span{font-weight:800;}.exam-answer-reveal strong{font-size:16px;color:#155f39;overflow-wrap:anywhere;text-align:right;}
.exam-inline-analysis{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:13px;line-height:1.8;overflow-wrap:anywhere;}
.exam-inline-analysis h1,.exam-inline-analysis h2{font-size:18px;margin:0 0 10px;color:var(--primary-dark);}
.exam-inline-analysis p{margin:0;white-space:pre-wrap;}
.paper-grading-question{border:1px solid var(--line);padding:16px;border-radius:12px;display:grid;gap:10px;white-space:pre-wrap;overflow-wrap:anywhere;}
@media(max-width:680px){.exam-body .exam-content{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(180px,.8fr) minmax(260px,1.2fr);grid-auto-rows:minmax(0,1fr);overflow:hidden;}.exam-body .q-body{overflow:auto;}.exam-body .q-analysis{min-height:0;}.exam-body .q-analysis iframe{min-height:0;}}
@media(max-width:600px){.exam-body{height:auto;min-height:100vh;overflow:auto;}.exam-body .exam-shell{display:flex;flex-direction:column;}.exam-body .exam-aside{height:auto;position:static;overflow:visible;}.exam-body .exam-content{grid-template-rows:auto;grid-auto-rows:auto;overflow:visible;}.exam-body .q-body{overflow:visible;}.exam-body .q-analysis{min-height:360px;}.exam-body .q-analysis iframe{min-height:300px;}.exam-body .exam-q-bar{flex-wrap:wrap;}.exam-body .exam-group{padding-bottom:4px;}.exam-body .exam-submit{margin-top:8px;}}
@media(max-width:600px){body.exam-body{height:auto;min-height:100vh;overflow:auto;}body.exam-body main,body.exam-body .exam-section,body.exam-body .exam-shell{height:auto;flex:0 0 auto;}body.exam-body .exam-aside{height:auto;}}
@media(max-width:600px){body.exam-body .exam-section{display:block;}body.exam-body .exam-shell,body.exam-body .exam-aside,body.exam-body .exam-main{width:100%;min-width:0;}body.exam-body .exam-content,body.exam-body .q-body{min-width:0;}body.exam-body .q-title{overflow-wrap:anywhere;}body.exam-body .q-analysis{min-height:520px;}body.exam-body .q-analysis iframe{min-height:480px;}}
.wk-history-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px;}
.wk-history-head h2{font-size:20px;}
.wk-history-head p{color:var(--soft);font-size:12px;margin-top:5px;}
.wk-history-search{display:flex;align-items:center;gap:8px;min-width:300px;padding:0 12px;border:1.5px solid #e8d8cc;border-radius:12px;background:#fffaf6;}
.wk-history-search span{font-size:15px;color:var(--soft);}
.wk-history-search input{border:0;background:transparent;padding:11px 0;width:100%;outline:none;color:var(--ink);font-size:13px;}
.wk-history-list{display:grid;gap:10px;}
.wk-history-row{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(190px,.8fr) 70px;align-items:center;gap:14px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fffaf6;transition:.18s;}
.wk-history-row:hover{border-color:var(--primary);transform:translateY(-1px);box-shadow:0 8px 18px rgba(143,63,36,.08);}
.h-state{display:grid;place-items:center;min-height:34px;border-radius:10px;font-size:12px;font-weight:900;}
.h-state.ok{background:#e8f6ef;color:#1f8a4c;}
.h-state.bad{background:#fdecef;color:var(--coral);}
.h-state.none{background:#f0ece8;color:#8a7a70;}
.h-body{min-width:0;}
.h-body b{display:block;font-size:14px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.h-body small{display:block;color:var(--soft);font-size:11px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.h-answer{color:var(--muted);font-size:12px;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.h-go{text-align:right;color:var(--primary);font-size:12px;font-weight:900;white-space:nowrap;}
@media(max-width:900px){
  .wk-history-search{min-width:0;width:100%;}
  .wk-history-row{grid-template-columns:58px 1fr;gap:9px 12px;}
  .h-answer{grid-column:2;}.h-go{grid-column:2;text-align:left;}
}
.h-state.viewed{background:#e8f4ff;color:#2588cc;}

/* 顶部题目搜索 */
.nav-search{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;height:38px;padding:0 12px;border-radius:999px;background:#fff4ea;border:1px solid #f0ddd1;transition:.18s;}
.nav-search:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(242,107,58,.10);}
.nav-search span{display:flex;align-items:center;justify-content:center;flex:0 0 18px;font-size:14px;line-height:1;color:var(--soft);}
.nav-search input{flex:1 1 190px;min-width:0;width:190px;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;outline:0;box-shadow:none;appearance:none;background:transparent;color:var(--ink);font-size:13px;font-family:inherit;}
.nav-search input:focus-visible{outline:none;}
.nav-search input::placeholder{color:#b09a90;}

/* 后台顶部栏搜索 */
.admin-top-tools{display:flex;align-items:center;gap:16px;}
.admin-top-search input{width:220px;}
@media(max-width:900px){
  .admin-top-tools{gap:8px;}
  .admin-top-search{display:none;}
}

.q-step-answers{display:grid;gap:14px;margin-top:20px;}
.q-step-answers .q-answer-label{display:grid;gap:8px;}
.exam-step-feedback{display:grid;gap:8px;}
.exam-step-feedback .exam-feedback{margin-top:0;}

/* 全平台内容水印设置 */
.wm-settings-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:22px;align-items:start;}
.wm-settings-layout>div{min-width:0;}
.wm-settings-layout .panel{margin-bottom:20px;}
.wm-settings-layout .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.wm-unit-input{display:flex;align-items:center;border:1px solid var(--border,#ead7cb);border-radius:10px;background:#fff;overflow:hidden;}
.wm-unit-input input{min-width:0;width:100%;border:0!important;border-radius:0!important;box-shadow:none!important;}
.wm-unit-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(242,107,58,.1);}
.wm-unit-input span{padding:0 10px;color:#967368;font-size:12px;}
.wm-settings-layout input[type=color]{width:100%;height:44px;padding:5px;cursor:pointer;}
.wm-settings-layout textarea{resize:vertical;min-height:100px;}
.wm-placeholders{padding:12px 14px;border:1px solid #f0d9c7;border-radius:12px;background:#fff7ee;color:#886050;font-size:12px;line-height:2;}
.wm-placeholders code{color:#ac4c29;font-size:12px;white-space:nowrap;}
.wm-preview{position:relative;isolation:isolate;overflow:hidden;border:1px solid #ecd4c3;border-radius:16px;background:#fff3e4;padding:22px 18px 50px;min-height:420px;}
.wm-preview-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#8f3f24;font-size:13px;font-weight:700;margin-bottom:18px;}
.wm-preview-top span{font-size:11px;font-weight:500;color:#a07765;}
.wm-preview-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:14px;}
.wm-preview-graph,.wm-preview-question{min-width:0;background:#fffdf9;border:1px solid #f0decf;border-radius:14px;padding:17px 14px;}
.wm-preview h3{margin:0 0 14px;font-size:16px;}
.wm-preview p{font-size:12px;line-height:1.9;color:#856255;}
.wm-preview-graph svg{display:block;width:100%;height:auto;}
.wm-preview-question h3{margin-top:15px;}
.wm-example-answer{border:1px solid #e8d8cd;border-radius:10px;padding:12px;font-size:12px;color:#b8a294;margin-top:24px;}
.wm-example-button{background:#f26b3a;color:white;text-align:center;padding:10px;border-radius:10px;margin-top:15px;font-size:13px;font-weight:600;}
#watermarkPreviewLayer{position:absolute;inset:0;z-index:3;pointer-events:none;background-repeat:repeat;}
.wm-preview-trace{position:absolute;bottom:12px;right:12px;left:12px;z-index:4;text-align:right;font:10px/1.5 sans-serif;color:#aa7864;pointer-events:none;}
#watermarkPreviewNote{margin-bottom:0;}
@media(max-width:1150px){.wm-settings-layout{grid-template-columns:1fr;}.wm-preview{min-height:400px;}}
@media(max-width:600px){.wm-preview-grid{grid-template-columns:1fr;}.wm-preview{padding:18px 12px 45px;}.wm-settings-layout .form-grid{gap:12px;}.wm-preview-graph svg{max-height:250px;}.wm-settings-layout{gap:0;}}

/* 学员中心：已购课程优先，账号与学习记录使用同一套导航 */
.student-center{padding:26px 0 54px;}
.student-center h1{font-size:34px;line-height:1.2;}
.student-center h2{font-size:22px;line-height:1.4;}
.student-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px;}
.student-tabs a{padding:10px 16px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:750;color:var(--muted);background:#fff;}
.student-tabs a:hover{border-color:var(--primary);color:var(--primary-dark);}
.student-tabs a.on{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff;}
.student-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px;}
.student-section-heading p{margin:8px 0 0;color:var(--soft);font-size:13px;line-height:1.7;}
.student-section-heading .kicker{margin:0 0 10px;color:var(--primary);font-size:12px;}
.student-section-heading>span{color:var(--muted);font-size:13px;}
.student-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:34px;}
.student-course-card{min-width:0;padding:24px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,#fff,#fffaf5);box-shadow:0 8px 26px rgba(143,63,36,.05);}
.student-course-head{display:flex;align-items:center;gap:12px;}
.student-course-head>div:nth-child(2){min-width:0;}
.student-course-head h2{font-size:21px;overflow-wrap:anywhere;}
.student-course-head p{margin:4px 0 0;color:var(--soft);font-size:12px;}
.student-course-icon{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:14px;background:#fff0dd;color:var(--primary-dark);font-size:28px;font-weight:800;}
.student-status{margin-left:auto;flex:none;padding:5px 10px;border-radius:999px;background:#f4eee8;color:var(--soft);font-size:11px;font-weight:750;}
.student-status.active{background:#ffedd6;color:#a65120;}
.student-term-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin:24px 0 22px;}
.student-term-grid dt,.student-account-meta dt{font-size:12px;color:var(--soft);margin-bottom:7px;}
.student-term-grid dd{margin:0;font-size:14px;font-weight:700;overflow-wrap:anywhere;}
.student-progress>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:8px;}
.student-progress strong{color:var(--primary-dark);}
.student-progress progress{display:block;width:100%;height:8px;border:0;border-radius:999px;overflow:hidden;background:#f4e6db;appearance:none;}
.student-progress progress::-webkit-progress-bar{background:#f4e6db;border-radius:999px;}
.student-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#ffad4a,#f26b3a);border-radius:999px;}
.student-progress progress::-moz-progress-bar{background:#f26b3a;border-radius:999px;}
.student-last{font-size:12px;color:var(--soft);line-height:1.7;margin:12px 0;overflow-wrap:anywhere;}
.student-expiry{font-size:12px;line-height:1.7;color:#ac522a;background:#fff0df;padding:9px 12px;border-radius:10px;}
.student-course-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:18px;}
.student-course-actions .btn{font-size:13px;min-height:42px;}
.student-text-link{font-size:13px;font-weight:750;color:var(--primary-dark);}
.student-text-link:hover{text-decoration:underline;}
.student-terms{margin-top:18px;border-top:1px solid var(--line);padding-top:12px;font-size:12px;color:var(--muted);}
.student-terms summary{cursor:pointer;}
.student-terms>div{display:grid;gap:5px;margin-top:12px;}
.student-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.student-stat-grid .card{padding:21px;min-width:0;}
.student-stat-value{display:block;font-size:25px;color:var(--primary-dark);margin:12px 0 8px;line-height:1.4;overflow-wrap:anywhere;}
.student-stat-grid small{font-size:11px;line-height:1.6;color:var(--soft);}
.student-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0;}
.student-quick-grid>a{display:flex;align-items:center;gap:14px;padding:19px;border-radius:16px;border:1px solid var(--line);background:#fff;}
.student-quick-grid>a:hover{border-color:var(--primary);}
.student-quick-grid>a>span{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:#fff0e2;color:var(--primary-dark);font-size:23px;}
.student-quick-grid strong{display:block;font-size:15px;}
.student-quick-grid small{display:block;font-size:11px;color:var(--soft);margin-top:5px;}
.student-quick-grid b{margin-left:auto;color:var(--primary);}
.student-growth,.student-recent,.student-block{margin:22px 0;padding:24px;}
.student-growth>p{font-size:13px;color:var(--muted);line-height:1.8;}
.student-growth .student-next{color:var(--primary-dark);font-weight:700;}
.student-growth h4{font-size:14px;}.student-growth ul{font-size:13px;line-height:2;color:var(--muted);padding-left:22px;}
.student-section-heading>.student-level{background:#fff0df;border-radius:999px;padding:8px 13px;color:var(--primary-dark);font-weight:750;}
.student-record-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px;}
.student-record-row:last-child{border-bottom:0;}
.student-record-row strong{display:block;line-height:1.8;overflow-wrap:anywhere;}
.student-record-row small{display:block;margin-top:5px;font-size:11px;color:var(--soft);line-height:1.7;}
.student-score{color:var(--primary-dark);font-weight:800;white-space:nowrap;}
.student-record-muted{color:var(--soft);font-size:12px;}
.student-record-row .btn{font-size:12px;min-height:36px;padding:0 14px;}
.student-empty{padding:30px 20px;color:var(--muted);line-height:1.8;font-size:14px;}
.student-course-grid>.student-empty{grid-column:1/-1;}.student-empty p{color:var(--soft);}.student-empty .btn{margin-top:8px;}
.student-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;padding-top:22px;}
.student-week>div{text-align:center;min-width:0;}
.student-week span{display:block;min-height:35px;font-size:11px;color:var(--muted);overflow-wrap:anywhere;}
.student-week-track{display:flex;align-items:end;justify-content:center;height:110px;margin:10px 0;background:#fff6ec;border-radius:10px;}
.student-week-track i{display:block;width:54%;background:linear-gradient(180deg,#ffb94d,#f26b3a);border-radius:7px 7px 0 0;}
.student-week small{font-size:12px;color:var(--soft);}
.student-pagination{display:flex;justify-content:center;gap:20px;margin-top:20px;font-size:13px;color:var(--primary-dark);}
.student-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start;}
.student-account-grid>.card{padding:26px;}
.student-account-grid .muted{font-size:13px;line-height:1.8;}
.student-account-meta{display:grid;gap:20px;margin:24px 0;}
.student-account-meta dd{margin:0;font-size:14px;font-weight:700;overflow-wrap:anywhere;}
.student-table-wrap{overflow-x:auto;}.student-table-wrap .table{min-width:1080px;}.student-table-wrap td:nth-last-child(-n+2){white-space:nowrap;}
.student-center .notice:not(.error):not(.success){background:#fff0df;color:var(--primary-dark);margin:0 0 18px;line-height:1.8;}
@media(max-width:900px){.student-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.student-account-grid{grid-template-columns:1fr;}.student-quick-grid{gap:10px;}.student-quick-grid>a{padding:15px;gap:10px;}}
@media(max-width:680px){.student-center{padding:20px 0 36px;}.student-center h1{font-size:29px;}.student-tabs{gap:6px;margin-bottom:24px;}.student-tabs a{padding:9px 12px;font-size:12px;}.student-section-heading{align-items:flex-start;gap:12px;}.student-section-heading>.btn{font-size:12px;min-height:38px;padding:0 12px;}.student-course-grid,.student-quick-grid{grid-template-columns:1fr;}.student-course-card{padding:20px;}.student-course-head h2{font-size:19px;}.student-course-icon{width:40px;height:40px;}.student-term-grid dd{font-size:13px;}.student-stat-grid{gap:12px;}.student-stat-grid .card{padding:16px;}.student-stat-value{font-size:21px;}.student-growth,.student-recent,.student-block{padding:20px;}.student-record-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;}.student-record-row>.student-text-link,.student-record-row>.student-record-muted{grid-column:1/-1;}.student-week{gap:6px;}.student-week span{font-size:10px;}.student-week-track{height:90px;}.student-account-grid>.card{padding:22px;}}

.student-editor-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;margin:20px 0}.student-rights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}.student-right-card{min-width:0}.student-right-card .panel-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.student-edit-check{display:flex!important;align-items:center;gap:10px}.student-edit-check input{width:18px!important;height:18px;accent-color:#ef7541}.student-edit-history{border-top:1px solid #efddd1;margin-top:16px;padding-top:14px}.student-edit-history summary{cursor:pointer;color:#8f573b;font-weight:700}.student-edit-history>div{display:grid;grid-template-columns:1fr auto;gap:6px;padding:12px 0}.student-edit-history small{grid-column:1/-1;color:#80685d}.student-edit-error{background:#ffeded;color:#a32323}.student-editor-grid .panel{margin:0}.student-rights-grid .panel{margin:0}@media(max-width:900px){.student-editor-grid,.student-rights-grid{grid-template-columns:1fr}}
.student-editor-grid .admin-form,.student-right-card .admin-form{padding:20px}.student-right-card .student-edit-history{padding:16px 20px;margin-top:0}.student-right-card>p.hint{padding:20px}.student-editor-grid h2,.student-right-card h2{font-size:18px;margin:0}.student-editor-grid .panel-head h2{font-size:18px;margin:0}

.student-editor-back{display:flex;align-items:center;flex-wrap:wrap;gap:18px}.admin-main .student-section-heading h2{font-size:22px}.admin-main .student-section-heading p{font-size:13px}
.student-right-card .form-grid{grid-template-columns:minmax(0,1fr)}.student-right-card input{min-width:0;width:100%;box-sizing:border-box}.admin-main .panel-head h2{font-size:18px;margin:0}

/* 试卷统一框架与解析入口 */
.paper-framework-note{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:12px 15px;border:1px solid #f0d0ad;border-radius:13px;background:linear-gradient(135deg,#fff7ea,#fff1e7);color:#73503f;font-size:12px;line-height:1.7;}
.paper-framework-note b{color:#c45127;white-space:nowrap;}
.paper-field-section{display:grid;gap:12px;margin-top:2px;padding:15px;border:1.5px solid #efd2bd;border-radius:13px;background:#fffaf5;}
.paper-field-section .paper-field-head{display:grid;gap:4px;}
.paper-field-section .paper-field-head b{font-size:14px;color:var(--primary-dark);}
.paper-field-section .paper-field-head span{font-size:12px;color:var(--soft);line-height:1.65;}
.paper-field-section label{display:grid;gap:6px;font-size:12px;font-weight:800;color:var(--muted);}
.paper-field-section textarea,.paper-field-section input[type=file]{width:100%;}
.analysis-state{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;text-decoration:none;}
.analysis-state.ok{color:#237a4c;background:#e8f7ee;border:1px solid #afe0c3;}
.analysis-state.missing{color:#b64b25;background:#fff0e6;border:1px solid #f1c3a8;}
.analysis-state.missing:hover{border-color:var(--primary);color:var(--primary-dark);}
.tk-analysis{display:flex;align-items:center;margin:9px 0 2px;}
/* Nested exam directories share the existing course menu and paper cards. */
.wk-paper-subtree{min-width:0}.wk-paper-subtree>summary{display:flex;align-items:center;cursor:pointer;list-style:none}.wk-paper-subtree>summary::before{content:'▸';color:var(--primary);font-size:13px;margin-left:16px}.wk-paper-subtree[open]>summary::before{content:'▾'}.wk-paper-subtree>summary .wk-subdir{margin-left:0;flex:1;min-width:0}.wk-paper-subtree .wk-subdir{margin-left:calc(16px + var(--paper-depth,0)*12px);white-space:normal;overflow-wrap:anywhere}.wk-paper-subtree .n{margin-left:auto;flex-shrink:0}.wk-directory-body>.wk-paper-directory{margin:10px;border-radius:10px}.wk-paper-directory>summary{overflow-wrap:anywhere}.wk-paper-directory>summary small{flex-shrink:0}
@media(max-width:900px){.wk-student:has(.wk-subdir) .wk-menu>.wk-paper-subtree{grid-column:1/-1}.wk-paper-subtree .wk-subdir{justify-content:flex-start!important}}

/* Untrusted analysis stays in an opaque sandbox, including direct navigation. */
iframe.exam-inline-analysis{display:block;width:100%;min-height:480px;padding:0;}

/* Compact course folders and independently paged student records. */
.student-course-directories{display:grid;gap:16px;margin-bottom:32px;}
.student-course-directory{min-width:0;padding:0;}
.student-course-directory>summary,.student-growth>summary{display:flex;align-items:center;gap:16px;cursor:pointer;list-style:none;}
.student-course-directory>summary{padding:22px 24px;}
.student-course-directory>summary::-webkit-details-marker,.student-growth>summary::-webkit-details-marker{display:none;}
.student-directory-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:var(--surface);color:var(--primary);font-size:30px;}
.student-directory-name{display:grid;gap:6px;min-width:0;}
.student-directory-name strong{font-size:24px;}
.student-directory-name small{font-size:16px;color:var(--muted);line-height:1.6;}
.student-directory-toggle,.student-growth-toggle{margin-left:auto;flex:none;color:var(--primary);font-size:17px;}
.student-directory-toggle::after,.student-growth-toggle::after{content:'展开 ＋';}
.student-course-directory[open]>summary .student-directory-toggle::after,.student-growth[open]>summary .student-growth-toggle::after{content:'收起 −';}
.student-directory-content{padding:0 24px 24px;border-top:1px solid var(--line);}
.student-directory-content .student-course-grid{margin:24px 0 0;}
.student-growth>summary h2{margin:0;font-size:24px;line-height:1.5;}
.student-growth>summary .student-level{font-size:16px;color:var(--primary);line-height:1.5;}
.student-growth-content{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);}
.student-growth-content>p{font-size:18px;line-height:1.8;color:var(--muted);}
.student-center .student-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;font-size:16px;line-height:1.6;}
.student-pagination a,.student-pagination>[aria-disabled]{padding:8px 12px;min-height:42px;border:1px solid var(--line);border-radius:10px;}
.student-pagination a:hover{border-color:var(--primary);}
.student-pagination>[aria-disabled]{color:var(--muted);opacity:.6;}
#studentRecent,#studentReflections,#studentScores{scroll-margin-top:24px;}
@media(max-width:680px){
  .student-course-directory>summary{padding:18px 16px;gap:10px;flex-wrap:wrap;}
  .student-directory-icon{width:36px;height:40px;}
  .student-directory-name{flex:1;}
  .student-directory-name strong{font-size:22px;}
  .student-directory-name small{font-size:16px;}
  .student-directory-toggle{font-size:16px;}
  .student-directory-content{padding:0 12px 16px;}
  .student-growth>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;}
  .student-growth>summary h2{grid-column:1/-1;font-size:22px;}
  .student-growth>summary .student-level{font-size:16px;}
  .student-center .student-pagination>span:not([aria-disabled]){order:-1;flex-basis:100%;text-align:center;}
}
