/* WP 运维刷题 · 阿里云版补充样式（沿用主题深色运维视觉） */
[hidden] { display: none !important; }
.site-header { position: relative; z-index: 30; }
:root {
  --app-card: rgba(8, 20, 32, .78);
  --app-card-strong: rgba(10, 25, 39, .92);
  --app-line: rgba(148, 204, 224, .14);
  --app-cyan: #5eead4;
  --app-warn: #fbbf24;
  --app-bad: #fb7185;
  --app-good: #86efac;
}

body { background-color: var(--bg); }
.main-nav ul li a.is-active { color: var(--accent); }
.main-nav ul li a.is-active::after { right: 0; }
.account-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, .8); }
.account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-danger {
  color: #fff; background: rgba(251, 113, 133, .18); border-color: rgba(251, 113, 133, .42);
}
.btn-danger:hover { color: #fff; background: rgba(251, 113, 133, .28); border-color: rgba(251, 113, 133, .62); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.page-hero { position: relative; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-actions .btn { text-decoration: none; }

/* ---------- 通用面板 ---------- */
.panel {
  border: 1px solid var(--app-line);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(11, 26, 40, .9), rgba(5, 13, 22, .94));
  padding: 24px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .18);
}
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted-2); }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric {
  border: 1px solid var(--app-line); border-radius: 14px; padding: 18px 16px;
  background: rgba(7, 19, 30, .72);
}
.metric-value { display: block; font-family: var(--mono); font-size: 27px; line-height: 1.25; color: #8ff7e8; }
.metric-value small { font-size: 11px; color: var(--muted-2); margin-left: 4px; font-weight: 400; }
.metric-label { display: block; margin-top: 5px; font-size: 12.5px; color: #7f9bae; }
.metric.is-warn .metric-value { color: #fda4af; }
.metric.is-good .metric-value { color: #86efac; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .field-inline { display: inline-flex; align-items: center; gap: 8px; }
.toolbar label { font-size: 12.5px; color: #8fa9bb; }
.toolbar .input, .toolbar .select { width: auto; min-width: 140px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #b7cbd9; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid rgba(148, 204, 224, .1); text-align: left; vertical-align: middle; }
.data-table th { color: #8ff7e8; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; background: rgba(45, 212, 191, .055); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(45, 212, 191, .03); }
.data-table .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-empty { text-align: center; padding: 28px 10px; color: var(--muted-2); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--app-line); font-size: 11px; color: #9fb7c7; background: rgba(148, 204, 224, .04); white-space: nowrap; }
.badge.good { color: #86efac; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }
.badge.warn { color: #fbbf24; border-color: rgba(250, 204, 21, .3); background: rgba(250, 204, 21, .08); }
.badge.bad { color: #fda4af; border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .08); }
.badge.cyan { color: #5eead4; border-color: rgba(45, 212, 191, .3); background: rgba(45, 212, 191, .08); }

.empty-state {
  padding: 36px 20px; border: 1px dashed rgba(148, 204, 224, .22); border-radius: 14px;
  text-align: center; color: #91aabd; background: rgba(45, 212, 191, .025);
}
.empty-state .empty-mark { font-family: var(--mono); color: #5eead4; font-size: 24px; margin-bottom: 8px; letter-spacing: .08em; }
.empty-state p { margin: 0 0 12px; }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: #9fb7c7; }
.field-hint { font-size: 11.5px; color: var(--muted-2); margin-top: -2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid rgba(120, 190, 220, .24); border-radius: 9px;
  background: rgba(3, 10, 18, .78); color: #eaf6fb; padding: 10px 12px; font-size: 14px;
  outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.select { cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .field.full { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 38px; color: #a9c2d3; font-size: 13px; }
.check-row input { accent-color: var(--accent); }

/* ---------- 首页 ---------- */
.home-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-card {
  display: flex; flex-direction: column; gap: 8px; min-height: 128px;
  padding: 18px 18px 16px; border: 1px solid var(--app-line); border-radius: 14px;
  background: rgba(7, 18, 29, .7); color: var(--text); transition: border-color .2s ease, transform .2s ease;
}
.quick-card:hover { color: var(--text); border-color: rgba(45, 212, 191, .3); transform: translateY(-2px); }
.quick-card strong { font-size: 16px; }
.quick-card span { color: #819bb0; font-size: 12.5px; line-height: 1.65; }
.quick-card em { margin-top: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: #5eead4; }
.quick-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(45, 212, 191, .25); background: rgba(45, 212, 191, .07); color: #5eead4; font-family: var(--mono); font-size: 12px; }

.bank-card .bank-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bank-card .bank-actions .btn { flex: 1 1 auto; }
.bank-card .bank-progress { height: 4px; margin: 8px 0 2px; border-radius: 4px; background: rgba(148, 204, 224, .1); overflow: hidden; }
.bank-card .bank-progress span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2dd4bf, #38bdf8); width: 0; }
.bank-card .bank-status { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: #86efac; }
.bank-card .bank-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; vertical-align: middle; border-radius: 50%; background: var(--ok); box-shadow: 0 0 7px rgba(52, 211, 153, .8); }

.recent-list { display: grid; gap: 8px; }
.recent-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--app-line); border-radius: 11px; background: rgba(7, 18, 29, .62); }
.recent-item .recent-main { min-width: 0; }
.recent-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.recent-item small { color: var(--muted-2); font-size: 11.5px; }
.recent-item .recent-score { font-family: var(--mono); font-size: 18px; color: #8ff7e8; white-space: nowrap; }

/* ---------- 刷题 ---------- */
.quiz-setup { display: grid; gap: 0; max-width: 860px; margin: 0 auto; }
.quiz-setup-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.quiz-setup-side { padding: 18px; border: 1px solid var(--app-line); border-radius: 14px; background: rgba(7, 18, 29, .7); }
.quiz-setup-side h3 { font-size: 15px; margin-bottom: 8px; }
.quiz-setup-side p { font-size: 12.5px; line-height: 1.75; }
.quiz-setup-side ul { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.9; color: #8fa9bb; }
.quiz-setup .btn { margin-top: 6px; }

.quiz-shell { max-width: 940px; margin: 0 auto; }
.quiz-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.quiz-topbar h2 { margin: 0 0 4px; font-size: 22px; }
.quiz-topbar p { margin: 0; font-size: 12.5px; color: var(--muted-2); }
.quiz-meta-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 14px; }
.quiz-timer {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(250, 204, 21, .26); background: rgba(250, 204, 21, .06); color: #fde68a;
  font-family: var(--mono); font-size: 13px;
}
.quiz-timer.is-urgent { border-color: rgba(251, 113, 133, .45); color: #fda4af; animation: quizPulse 1s ease-in-out infinite; }
@keyframes quizPulse { 50% { opacity: .6; } }
.quiz-progress { height: 8px; margin: 10px 0 6px; border-radius: 4px; background: rgba(148, 204, 224, .1); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, #2dd4bf, #38bdf8); border-radius: 4px; transition: width .2s ease; }
.quiz-progress-meta { display: flex; justify-content: space-between; gap: 10px; color: #7f9bae; font-size: 12px; margin-bottom: 14px; }
.quiz-card { background: rgba(7, 18, 29, .6); border: 1px solid var(--app-line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.quiz-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.quiz-card-head strong { font-size: 12.5px; color: #c3d7e5; }
.quiz-card-head span { font-size: 11.5px; color: var(--muted-2); }
.quiz-answer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 7px; }
.quiz-dot {
  min-height: 36px; border: 1px solid rgba(148, 204, 224, .22); border-radius: 8px;
  background: rgba(255, 255, 255, .015); color: #9fb7c7; font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.quiz-dot:hover { border-color: rgba(45, 212, 191, .45); color: #dffcf9; }
.quiz-dot.is-answered { border-color: rgba(45, 212, 191, .4); background: rgba(45, 212, 191, .1); color: #86efac; }
.quiz-dot.is-current { box-shadow: 0 0 0 2px rgba(45, 212, 191, .55) inset; color: #fff; }

.quiz-question { padding: 22px 22px 18px; border: 1px solid var(--app-line); border-radius: 15px; background: linear-gradient(160deg, rgba(12, 28, 41, .88), rgba(6, 16, 26, .94)); }
.quiz-question-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; color: var(--muted-2); }
.quiz-question-no { font-family: var(--mono); color: #5eead4; font-size: 12px; }
.quiz-question-text { margin: 0 0 18px; color: #e7f1fb; font-size: 17px; line-height: 1.8; font-weight: 600; }
.quiz-options { display: grid; gap: 9px; }
.quiz-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid rgba(148, 204, 224, .15);
  border-radius: 10px; background: rgba(255, 255, 255, .018); color: #c3d7e5; cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.quiz-option:hover { border-color: rgba(45, 212, 191, .36); background: rgba(45, 212, 191, .055); }
.quiz-option:has(input:checked) { border-color: var(--accent); background: rgba(45, 212, 191, .1); color: #efffff; }
.quiz-option input { margin-top: 4px; accent-color: var(--accent); }
.quiz-option-key { flex: 0 0 22px; font-family: var(--mono); color: #5eead4; font-size: 13px; }
.quiz-option-text { flex: 1 1 auto; font-size: 14px; line-height: 1.7; }
.quiz-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.quiz-tool { border: 1px solid rgba(148, 204, 224, .16); background: rgba(255, 255, 255, .02); color: #8fa9bb; border-radius: 999px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; }
.quiz-tool:hover, .quiz-tool.is-on { border-color: rgba(250, 204, 21, .35); color: #fde68a; }
.quiz-check-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px; border: 1px dashed rgba(45, 212, 191, .28); border-radius: 10px; background: rgba(45, 212, 191, .055); }
.quiz-check-row span { color: #9fb7c7; font-size: 12px; line-height: 1.6; }
.quiz-check-row .btn { flex: 0 0 auto; }
.quiz-feedback { margin-top: 14px; padding: 15px 16px; border: 1px solid rgba(148, 204, 224, .2); border-radius: 12px; background: rgba(7, 18, 29, .72); }
.quiz-feedback.is-right { border-color: rgba(52, 211, 153, .38); background: linear-gradient(135deg, rgba(52, 211, 153, .1), rgba(7, 18, 29, .74)); }
.quiz-feedback.is-wrong { border-color: rgba(248, 113, 113, .42); background: linear-gradient(135deg, rgba(248, 113, 113, .1), rgba(7, 18, 29, .74)); }
.quiz-feedback.is-pending { border-color: rgba(250, 204, 21, .32); background: rgba(250, 204, 21, .06); }
.quiz-feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiz-feedback-head strong { color: #e7f1fb; font-size: 15px; }
.quiz-feedback.is-right .quiz-feedback-head strong { color: #86efac; }
.quiz-feedback.is-wrong .quiz-feedback-head strong { color: #fca5a5; }
.quiz-feedback-status { color: #8fa9bb; font-size: 11px; }
.quiz-feedback-answer { display: grid; gap: 4px; margin-top: 8px; color: #a9c1d0; font-size: 12.5px; line-height: 1.7; }
.quiz-feedback-answer span:last-child { color: #dffcf9; }
.quiz-feedback-explain { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(148, 204, 224, .2); color: #a9c1d0; font-size: 13px; line-height: 1.8; }
.quiz-feedback-explain strong { margin-right: 8px; color: #5eead4; font-weight: 600; }
.quiz-option.is-correct { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); }
.quiz-option.is-picked-wrong { border-color: rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .1); }
.quiz-option.is-correct:has(input:checked) { border-color: rgba(52, 211, 153, .65); background: rgba(52, 211, 153, .13); }
.quiz-option.is-picked-wrong:has(input:checked) { border-color: rgba(248, 113, 113, .68); background: rgba(248, 113, 113, .13); }
.quiz-option.is-correct .quiz-option-key { color: #86efac; }
.quiz-option.is-picked-wrong .quiz-option-key { color: #fca5a5; }
.quiz-option input:disabled { opacity: .65; }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.quiz-nav .btn { min-width: 100px; }
.quiz-nav-tip { font-size: 11.5px; color: var(--muted-2); text-align: center; }
.quiz-submit-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.quiz-autosave { font-size: 11.5px; color: var(--muted-2); margin-top: 10px; }

.quiz-result-head { text-align: center; padding: 28px 18px 22px; }
.quiz-score-ring {
  display: grid; place-items: center; width: 150px; height: 150px; margin: 0 auto 16px;
  border-radius: 50%; border: 1px solid rgba(45, 212, 191, .35);
  background: radial-gradient(circle, rgba(45, 212, 191, .12), rgba(3, 10, 18, .4) 68%);
  box-shadow: 0 0 0 10px rgba(45, 212, 191, .035), 0 0 60px rgba(45, 212, 191, .12);
}
.quiz-score-ring strong { font-family: var(--mono); font-size: 52px; line-height: 1; color: #8ff7e8; }
.quiz-score-ring small { font-size: 11px; color: #7f9bae; margin-top: 5px; }
.quiz-result-head h2 { margin: 0 0 6px; }
.quiz-result-head p { margin: 0 auto; max-width: 600px; }
.quiz-result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- 错题 / 统计 / 作业 ---------- */
.wrong-card { border: 1px solid var(--app-line); border-radius: 13px; padding: 16px 18px; background: rgba(7, 18, 29, .62); }
.wrong-card + .wrong-card { margin-top: 10px; }
.wrong-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrong-head h3 { margin: 0; font-size: 16px; line-height: 1.65; }
.wrong-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.wrong-options { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.wrong-options li { color: #a9c2d3; font-size: 13px; line-height: 1.65; }
.wrong-options li b { font-family: var(--mono); color: #5eead4; margin-right: 5px; }
.wrong-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.stat-bars { display: grid; gap: 9px; }
.stat-bar-row { display: grid; grid-template-columns: 116px 1fr 88px; align-items: center; gap: 10px; font-size: 12.5px; color: #9fb7c7; }
.stat-bar-track { height: 7px; border-radius: 5px; background: rgba(148, 204, 224, .1); overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2dd4bf, #38bdf8); }
.stat-bar-fill.mid { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.stat-bar-fill.bad { background: linear-gradient(90deg, #fb7185, #f43f5e); }
.stat-bar-row strong { text-align: right; font-family: var(--mono); font-size: 12px; color: #8ff7e8; }

.assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.assignment-card { border: 1px solid var(--app-line); border-radius: 15px; padding: 20px; background: linear-gradient(160deg, rgba(12, 28, 41, .86), rgba(6, 16, 26, .92)); display: flex; flex-direction: column; }
.assignment-card .assignment-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.assignment-card h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.assignment-card p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; }
.assignment-meta { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0; }
.assignment-card .assignment-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
.assignment-card .assignment-score { font-family: var(--mono); color: #8ff7e8; font-size: 20px; }

/* ---------- 登录 ---------- */
body.login { margin: 0; }
body.login #loginform p { margin: 0 0 16px; }
body.login #loginform label { display: block; }
body.login #loginform .input { width: 100%; margin: 0; }
body.login #loginform .submit { margin-top: 8px; }
body.login #wp-submit { cursor: pointer; width: 100%; }
body.login .login-error { display: none; margin: 0 0 16px; }
body.login .login-error.show { display: block; }
body.login #nav a { color: #93abc0; }
body.login .wp-ops-login-foot { position: relative; z-index: 1; text-align: center; color: #5e7a93; font-size: 11.5px; margin-top: 26px; }
body.login .login-brand-foot { display: flex; justify-content: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: #4d6a80; }

/* ---------- 管理员 ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tab { padding: 8px 13px; border: 1px solid rgba(148, 204, 224, .16); border-radius: 8px; background: rgba(10, 24, 36, .7); color: #9fb7c7; font-size: 12.5px; cursor: pointer; }
.admin-tab:hover { border-color: rgba(45, 212, 191, .35); color: #dffcf9; }
.admin-tab.active { background: linear-gradient(135deg, #2dd4bf, #38bdf8); border-color: transparent; color: #041018; font-weight: 700; }
.admin-section[hidden] { display: none; }
.admin-import-box { border: 1px dashed rgba(148, 204, 224, .24); border-radius: 12px; padding: 18px; background: rgba(45, 212, 191, .025); }
.admin-import-box input[type=file] { color: #a9c2d3; font-size: 12.5px; }
.admin-import-box p { font-size: 12.5px; margin: 8px 0; }
.assignment-report-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; color: #9fb7c7; font-size: 12px; }
.report-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.report-summary > div { padding: 10px 12px; border: 1px solid rgba(148, 204, 224, .14); border-radius: 10px; background: rgba(255, 255, 255, .018); }
.report-summary strong { display: block; color: #8ff7e8; font-family: var(--mono); font-size: 20px; line-height: 1.2; }
.report-summary span { display: block; margin-top: 3px; color: #8fa9bb; font-size: 11.5px; }
.import-file-list { display: grid; gap: 6px; margin: 12px 0; }
.import-file-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 11px; border: 1px solid rgba(148, 204, 224, .12); border-radius: 8px; background: rgba(4, 15, 23, .5); font-size: 12.5px; color: #8fa9bb; }
.import-file-row b { min-width: 0; flex: 1 1 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dffcf9; font-weight: 600; }
.import-errors { margin: 8px 0 0; padding: 9px 12px; list-style: none; border: 1px solid rgba(251, 113, 133, .18); border-radius: 8px; background: rgba(251, 113, 133, .04); color: #ffc8d1; font-size: 12px; line-height: 1.7; }
.import-summary { color: #b6d9df; font-size: 12.5px; }
.import-summary b { color: #5eead4; }
.template-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.template-links a { color: #5eead4; font-weight: 600; }

/* ---------- 个人中心 ---------- */
.header-account { text-decoration: none; color: inherit; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; }
.account-grid .panel, .account-section { margin: 0 0 18px; }
.account-profile .panel-head, .account-security .panel-head { margin-bottom: 14px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.profile-stats > div { padding: 13px 10px; border: 1px solid var(--app-line); border-radius: 10px; background: rgba(45, 212, 191, .03); }
.profile-stats b { display: block; color: #eaffff; font-size: 22px; line-height: 1.15; }
.profile-stats span { display: block; margin-top: 4px; color: #7f9bae; font-size: 11.5px; }
.account-form { display: grid; gap: 10px; }
.account-form label { display: grid; gap: 6px; color: #a9c2d3; font-size: 12.5px; }
.account-form input { width: 100%; padding: 10px 12px; border: 1px solid rgba(148, 204, 224, .18); border-radius: 8px; background: rgba(3, 12, 20, .8); color: #e9fbff; font: inherit; }
.account-form input:focus { outline: none; border-color: rgba(45, 212, 191, .58); box-shadow: 0 0 0 3px rgba(45, 212, 191, .1); }
.form-hint { margin: 0; color: #7f9bae; font-size: 11.5px; line-height: 1.6; }
.account-section .panel-head { margin-bottom: 12px; }
.account-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(148, 204, 224, .1); }
.account-item:first-child { border-top: 0; padding-top: 0; }
.account-item-main { min-width: 0; flex: 1; }
.account-item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.account-item h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.55; color: #e7f8ff; }
.account-options { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; }
.account-options li { color: #91a9ba; font-size: 12.5px; line-height: 1.6; }
.account-options b { color: #5eead4; margin-right: 4px; }
.account-note { margin: 9px 0 0; padding: 8px 10px; border-left: 2px solid rgba(45, 212, 191, .5); background: rgba(45, 212, 191, .04); color: #b6d9df; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; }

/* ---------- 错题筛选 ---------- */
.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 14px; }
.filter-bar input, .filter-bar select { min-height: 36px; padding: 8px 11px; border: 1px solid rgba(148, 204, 224, .18); border-radius: 8px; background: rgba(3, 12, 20, .8); color: #e9fbff; font: inherit; font-size: 12.5px; }
.filter-bar input { min-width: 220px; flex: 1 1 260px; }
.filter-bar select { min-width: 140px; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: rgba(45, 212, 191, .58); }
.filter-count { color: #7f9bae; font-size: 11.5px; }

/* ---------- 弹层 / 提示 ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 36px)); }
.toast { padding: 11px 14px; border: 1px solid rgba(45, 212, 191, .3); border-radius: 10px; background: rgba(4, 15, 23, .96); color: #c9f6ff; font-size: 13px; box-shadow: 0 12px 36px rgba(0, 0, 0, .35); transition: opacity .3s ease, transform .3s ease; }
.toast.error { border-color: rgba(251, 113, 133, .4); color: #ffd5dd; }
.toast.is-out { opacity: 0; transform: translateY(6px); }

.modal-overlay { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(2, 7, 12, .82); }
.modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid rgba(45, 212, 191, .25); border-radius: 16px; background: linear-gradient(165deg, rgba(11, 27, 41, .98), rgba(4, 12, 20, .99)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal-card.wide { width: min(800px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(148, 204, 224, .12); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close { border: 0; background: none; color: #8fa9bb; font-size: 24px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 20px; }
.modal-text { color: #a9c2d3; line-height: 1.8; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- 表格滚动 ---------- */
.table-wrap { overflow-x: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assignment-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .panel { padding: 18px 15px; border-radius: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.full { grid-column: auto; }
  .quiz-setup-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .home-quick-grid { grid-template-columns: 1fr; }
  .quiz-question { padding: 16px 14px; }
  .quiz-question-text { font-size: 15.5px; }
  .quiz-topbar h2 { font-size: 19px; }
  .quiz-answer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .quiz-dot { min-height: 34px; font-size: 11.5px; }
  .quiz-nav { position: sticky; bottom: 8px; z-index: 5; padding: 8px; border: 1px solid var(--app-line); border-radius: 10px; background: rgba(5, 13, 22, .96); }
  .quiz-nav-tip { display: none; }
  .quiz-nav .btn { min-width: 0; flex: 1 1 auto; }
  .stat-bar-row { grid-template-columns: 92px 1fr 64px; }
  .data-table th, .data-table td { padding: 8px 9px; }
  .recent-item { align-items: flex-start; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 14px 16px; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-item { flex-direction: column; gap: 10px; }
  .account-options { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 14px 12px; }
  .metric-value { font-size: 22px; }
  .quiz-answer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .quiz-result-head { padding: 20px 8px; }
  .quiz-score-ring { width: 120px; height: 120px; }
  .quiz-score-ring strong { font-size: 42px; }
  .bank-card .bank-actions .btn { width: 100%; }
}
