/* 铭信专升本 · 用户端绿色品牌系统
   仅覆盖视觉令牌、品牌组件与阅读排版；保留各页明暗背景和业务状态色。 */
:root {
  --mx-green-950: #06251b;
  --mx-green-900: #0d382b;
  --mx-green-800: #124d3a;
  --mx-green-700: #146b4c;
  --mx-green-600: #198a60;
  --mx-green-500: #27aa78;
  --mx-green-300: #72dcb0;
  --mx-green-200: #abe8cb;
  --mx-green-100: #dcf4e7;
  --mx-green-50: #eff9f3;
  --brand: var(--mx-green-900);
  --brand-2: var(--mx-green-800);
  --accent: var(--mx-green-500);
  --accent-soft: var(--mx-green-50);
  --brand-name-green: #147a54;
  --brand-name-green-on-dark: #72e0ad;

  /* 刷题备考暗色主题：由蓝紫改为深绿，变量名保持不变以降低侵入。 */
  --prep-bg: #071410;
  --prep-panel: #0f221b;
  --prep-panel2: #153026;
  --prep-line: rgba(164, 213, 190, .17);
  --prep-text: #eff8f3;
  --prep-muted: #9bb3a7;
  --prep-cyan: #58e6a7;
  --prep-green: #7ae7b6;
  --prep-violet: #8ed8ae;
  --prep-orange: #e2c88a;
  --prep-red: #ff8d88;
  --prep-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

/* 学员 / 员工登录入口并列；保留原登录链接定位方式。 */
.login-entry-group { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.login-entry-group .staff-login-link { color: var(--mx-green-700); font-weight: 650; }
@media (max-width: 640px) {
  .login-entry-group { gap: 9px; font-size: 12px; }
}

/* ===== 共用品牌字形与阅读节奏 ===== */
body { text-rendering: optimizeLegibility; }
h1, h2, h3 { font-weight: 750; text-wrap: balance; }
p, li { text-wrap: pretty; }
.brand-text strong,
.student-brand strong,
.prep-app-brand strong,
.qb-page .brand strong { font-weight: 800; }
.brand-text small,
.student-brand small,
.prep-app-brand small,
.qb-page .brand small { font-weight: 600; }
.button,
.student-button,
.prep-button { letter-spacing: .015em; }
:focus-visible { outline-color: var(--mx-green-600); }
.prep-public-body :focus-visible,
.prep-app-body :focus-visible,
.qb-page :focus-visible { outline-color: var(--prep-green); }

/* ===== 官网与学习中心：浅色背景上的绿色层级 ===== */
.service-icon.violet,
.service-icon.blue,
.floating-icon.mentor,
.stat-icon.violet,
.stat-icon.blue,
.course-extra-kind.kind-audio,
.course-extra-kind.kind-ebook,
.course-extra-kind.kind-interactive {
  background: #e7f4ed;
  color: #28775a;
}
.service-icon.amber,
.stat-icon.amber,
.avatar-stack i:nth-child(3) {
  background: #eef5e8;
  color: #5d7d3c;
}
.avatar-stack i:nth-child(2) {
  background: #e5f3ec;
  color: #327b61;
}
.cover-violet {
  background: linear-gradient(135deg, #174b3a, #3b9974);
}
.cover-blue {
  background: linear-gradient(135deg, #1d4d43, #569a7f);
}
.course-bottom strong,
.student-course-price strong,
.price-panel strong,
.course-product-body .course-price strong {
  color: #147a54;
}
.status-late {
  background: #edf3e7;
  color: #5f793d;
}
.status-leave {
  background: #e9f3ef;
  color: #397562;
}

/* 官网正文与辅助信息不再使用过小的字号。 */
.site-nav a { font-size: .94rem; }
.service-card p,
.course-body > p { font-size: .875rem; }
.course-body > p { height: auto; min-height: 60px; }
.course-meta { font-size: .75rem; }
.course-bottom > a,
.policy-note > a { font-size: .8rem; }
.policy-tag,
.policy-row p,
.policy-row time { font-size: .75rem; }
.footer-brand p,
.footer-grid > div > a { font-size: .8rem; }
.footer-bottom { font-size: .7rem; }

/* 学习中心：提高导航、课程、任务、表格与页脚的可读性。 */
.demo-strip {
  height: auto;
  min-height: 30px;
  padding: 4px 12px;
  font-size: 12px;
  text-align: center;
}
.student-brand strong { font-size: 1.12rem; }
.student-brand small { font-size: .68rem; }
.student-nav a { font-size: .875rem; }
.student-account strong { font-size: .8rem; }
.student-account small,
.student-account button { font-size: .7rem; }
.student-button { font-size: .85rem; }
.button-small { font-size: .75rem; }
.student-card-head p,
.student-card-head > a,
.student-stat small,
.enrollment-info p,
.student-page-heading p { font-size: .75rem; }
.student-task h3 { font-size: .8rem; }
.task-type,
.priority-high,
.task-bottom small,
.task-bottom span { font-size: .68rem; }
.student-course-body h2 { font-size: 1.05rem; }
.student-course-body > p {
  height: auto;
  min-height: 56px;
  font-size: .78rem;
}
.student-course-price small { font-size: .68rem; }
.student-table { font-size: .78rem; }
.student-empty { font-size: .8rem; }
.student-footer { font-size: .72rem; }

/* 浅色背景上的辅助文字保持足够对比度。 */
.service-card p,
.course-body > p,
.course-meta,
.policy-row p,
.policy-row time,
.student-brand small,
.student-account small,
.student-card-head p,
.student-stat small,
.enrollment-info p,
.student-page-heading p,
.student-course-price small,
.student-footer,
.task-bottom small,
.task-bottom span,
.upcoming-item p,
.account-modal-head p,
.account-password-form > small,
.login-safe-note,
.login-account-note,
.login-panel-intro { color: #63756b; }

/* 学练测与课程学习：状态保持可辨识，正文和选项提高可读性。 */
.kind-exam { background: #e7f4ed; color: #28775a; }
.learning-page-head p,
.assessment-rule-card ol,
.attempt-notice,
.answer-review { font-size: 13px; }
.learning-filter-tabs a,
.assessment-description,
.assessment-rules,
.last-score,
.attempt-head p,
.attempt-submit-bar > span { font-size: 12px; }
.assessment-kind,
.assessment-card-top > small,
.assessment-meta span,
.assessment-detail-stats small,
.question-knowledge,
.dashboard-learning-metrics small,
.dashboard-assessment-list small,
.wrong-question-card footer { font-size: 11px; }
.question-option { font-size: 14px; }
.dashboard-assessment-list strong { font-size: 12px; }
.report-metric-grid small { font-size: 12px; }
.report-metric-grid span { font-size: 11px; }

/* ===== 刷题备考：保留暗色背景，统一为深绿与薄荷绿 ===== */
.prep-public-body,
.prep-public,
.prep-app-body {
  background: var(--prep-bg);
  color: var(--prep-text);
}
.prep-hero {
  background:
    radial-gradient(circle at 75% 25%, rgba(39, 170, 120, .2), transparent 35%),
    radial-gradient(circle at 12% 65%, rgba(88, 230, 167, .1), transparent 38%),
    linear-gradient(145deg, #071410, #0a1c15 55%, #0c1d16);
}
.prep-hero::after {
  background-image:
    linear-gradient(rgba(114, 224, 173, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 224, 173, .075) 1px, transparent 1px);
}
.prep-orb-one { border-color: rgba(88, 230, 167, .24); }
.prep-orb-two { border-color: rgba(142, 216, 174, .22); }
.prep-command-card {
  border-color: rgba(114, 224, 173, .22);
  background: linear-gradient(145deg, rgba(18, 43, 32, .96), rgba(8, 25, 18, .97));
  box-shadow: var(--prep-shadow), 0 0 80px rgba(39, 170, 120, .1);
}
.prep-command-card::before {
  background: linear-gradient(90deg, transparent, var(--prep-cyan), var(--prep-violet), transparent);
}
.prep-feature-strip { background: #0a1b14; }
.prep-catalog-section {
  background: linear-gradient(180deg, #0a1c15, #07140f);
}
.prep-major-card {
  background: linear-gradient(145deg, rgba(18, 43, 32, .97), rgba(9, 27, 19, .97));
}
.prep-major-card:hover { border-color: rgba(88, 230, 167, .42); }
.prep-major-top > span { color: #3c6954; }
.prep-search { background: #10251b; }
.prep-major-selector-panel,
.prep-major-match {
  background: linear-gradient(145deg, rgba(18, 43, 32, .98), rgba(8, 25, 18, .98));
}
.prep-major-match {
  background:
    radial-gradient(circle at 95% 0, rgba(88, 230, 167, .1), transparent 38%),
    linear-gradient(145deg, rgba(18, 43, 32, .98), rgba(8, 25, 18, .98));
}
.prep-major-select-wrap select,
.prep-major-select-wrap option { background: #0d2118; }
.prep-match-subject { background: rgba(6, 26, 18, .52); }
.prep-match-subject.professional { border-color: rgba(88, 230, 167, .2); }
.prep-match-subject.professional > b { color: var(--prep-green); }
.prep-language-option { background: rgba(88, 230, 167, .06); }
.prep-selector-legend > span { background: rgba(164, 213, 190, .07); }
.prep-app-header {
  border-color: var(--prep-line);
  background: rgba(7, 20, 16, .94);
}
.prep-nav-toggle { background: var(--prep-panel); }
.prep-user > span {
  background: linear-gradient(140deg, var(--prep-green), var(--prep-cyan));
  color: var(--mx-green-950);
}
.prep-welcome,
.prep-page-hero,
.prep-session-head,
.prep-result-hero {
  background:
    radial-gradient(circle at 90% 20%, rgba(39, 170, 120, .16), transparent 35%),
    linear-gradient(120deg, #122a1f, #0d2018);
}
.prep-panel {
  background: linear-gradient(145deg, rgba(17, 39, 29, .98), rgba(10, 28, 20, .98));
}
.prep-mode-card,
.prep-option,
.prep-review-options span,
.prep-review-answer,
.prep-answer-review { background: #0d2018; }
.prep-profile-form select,
.prep-profile-form input,
.prep-practice-form select,
.prep-note textarea { background: #0b1d15; }
.prep-progress { background: #1d382a; }
.prep-daily-ring {
  background: conic-gradient(var(--prep-cyan) calc(var(--progress) * 1%), #1d382a 0);
}
.prep-daily-ring::before { background: var(--prep-panel); }
.prep-resume,
.prep-timer,
.prep-submit-bar {
  border-color: rgba(88, 230, 167, .24);
  background: rgba(88, 230, 167, .065);
}
.prep-submit-bar { background: rgba(11, 30, 21, .97); }
.prep-origin-card {
  background: linear-gradient(145deg, rgba(31, 83, 57, .4), rgba(12, 30, 21, .96));
}
.prep-option.selected {
  border-color: var(--prep-violet);
  background: rgba(88, 230, 167, .08);
}
.prep-option > span { border-color: #3c624e; }
.prep-answer-card nav a.answered {
  border-color: var(--prep-violet);
  background: rgba(88, 230, 167, .12);
}
.prep-saved-note { border-color: rgba(88, 230, 167, .3); }
.prep-toast {
  border-color: rgba(88, 230, 167, .34);
  background: #123426;
  color: #eff8f3;
}

/* 登录后可见的考试结构、主观题与解析组件。 */
.prep-exam-source-note {
  border-color: rgba(88, 230, 167, .16);
  background: rgba(88, 230, 167, .045);
  color: var(--prep-muted);
}
.prep-exam-subject {
  background: linear-gradient(140deg, rgba(18, 43, 32, .9), rgba(8, 25, 18, .9));
}
.prep-exam-coverage > i { background: #1d382a; }
.prep-exam-coverage > span,
.prep-exam-subject.is-missing > p,
.prep-exam-subject.is-missing > small { color: var(--prep-muted); }
.prep-exam-table-wrap th {
  background: rgba(5, 20, 14, .38);
  color: var(--prep-muted);
}
.prep-exam-table-wrap td {
  border-top-color: rgba(164, 213, 190, .14);
  color: #c0d3c8;
}
.prep-exam-table-wrap td:first-child { color: var(--prep-text); }
.prep-exam-table-wrap button {
  border-color: rgba(88, 230, 167, .2);
  background: rgba(88, 230, 167, .07);
}
.prep-text-answer {
  background: #0b1d15;
  color: var(--prep-text);
}
.prep-subjective-review section { background: rgba(5, 20, 14, .42); }
.prep-subjective-review pre { color: #c0d3c8; }
.prep-answer-card nav a.review { border-color: rgba(88, 230, 167, .35) !important; }
.prep-result-review-note { color: var(--prep-violet); }

/* 暗色页面中的文字改为绿灰层级，避免蓝灰文字与绿色背景冲突。 */
.prep-hero-copy > p,
.prep-hero-proof,
.prep-command-top,
.prep-command-grid span,
.prep-command-card p,
.prep-feature-strip p,
.prep-section-heading > p,
.prep-spec-card > span,
.prep-spec-card p,
.prep-source-note span,
.prep-major-top small,
.prep-subject-tags span,
.prep-integrity p,
.prep-major-selector-panel > p,
.prep-selector-legend > span,
.prep-match-head small,
.prep-match-head > span,
.prep-match-subject > small,
.prep-match-subject > p,
.prep-match-footer p,
.prep-app-brand small,
.prep-app-header nav a,
.prep-user small,
.prep-user button,
.prep-app-footer,
.prep-welcome p,
.prep-page-hero p,
.prep-metric-grid article > span,
.prep-metric-grid small,
.prep-panel-head p,
.prep-plan-subjects > span,
.prep-mode-card > small,
.prep-mastery-list small,
.prep-inline-empty,
.prep-trend-chart small,
.prep-trend-values span,
.prep-recent-row > span,
.prep-recent-row time,
.prep-recent-row small,
.prep-breadcrumb,
.prep-session-head p,
.prep-result-hero p,
.prep-session-notice,
.prep-question legend small,
.prep-question-meta,
.prep-answer-review > div span,
.prep-answer-review p,
.prep-answer-card > p,
.prep-card-legend,
.prep-review-options span,
.prep-review-answer p,
.prep-saved-note p,
.prep-empty-state p { color: var(--prep-muted); }

.prep-major-selector-panel > label,
.prep-major-select-wrap select,
.prep-major-select-wrap option,
.prep-match-head h3,
.prep-match-subject h4,
.prep-language-option span,
.prep-review-answer p > b { color: var(--prep-text); }

/* 刷题页品牌与关键阅读字号。 */
.prep-app-brand strong { font-size: 18px; letter-spacing: .04em; }
.prep-app-brand small { font-size: 11px; }
.prep-app-footer { font-size: 12px; }
.prep-match-subject h4 { font-size: 16px; }
.prep-match-subject > p,
.prep-match-footer p { font-size: 12px; }
.prep-match-head small,
.prep-match-head > span { font-size: 11px; }

/* ===== 题库中心：沿用现有深绿视觉，只统一品牌色和辅助组件 ===== */
.qb-page {
  --green: #58e6a7;
  --green-strong: #26c983;
  --cyan: #64d9b0;
  --gold: #d4c78d;
}
.qb-page .sidebar .brand strong,
.qb-page .brand-inline { color: var(--green); }
.qb-page .brand strong { letter-spacing: .06em; }
.qb-page .random-scope,
.qb-page .history-icon,
.qb-page .difficulty { background: rgba(88, 230, 167, .07); }
.qb-page .explanation {
  border-left-color: var(--cyan);
  background: rgba(88, 230, 167, .055);
}

/* 网格与弹性子项允许收缩；宽表格只在自身容器内滚动。 */
.dashboard-main-column,
.dashboard-side-column,
.student-card,
.prep-dashboard-primary,
.prep-dashboard-side,
.prep-panel,
.prep-exam-subject,
.prep-exam-table-wrap,
.prep-profile-form > label,
.prep-practice-form > label { min-width: 0; }
.prep-profile-form select,
.prep-profile-form input,
.prep-practice-form select { min-width: 0; }
.prep-exam-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

/* ===== 小屏阅读与布局 ===== */
@media (max-width: 1000px) {
  .student-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .prep-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .prep-dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .prep-status-dot { flex: 0 0 auto; white-space: nowrap; }
  .student-account-actions { gap: 4px; }
  .student-account-actions button {
    height: 30px;
    padding: 0;
    border-radius: 8px;
    background: #eff6f2;
    color: #2b7659;
  }
  .brand-text strong { letter-spacing: .08em; }
  .student-nav a { font-size: 14px; }
  .student-brand strong { font-size: 17px; }
  .student-footer { line-height: 1.8; }
  .prep-app-brand strong { font-size: 16px; }
  .prep-hero-copy > p { font-size: 14px; }
  .prep-app-footer { font-size: 12px; }
}
@media (max-width: 340px) {
  .student-header-inner { gap: 10px; }
  .student-account > .student-account-name { display: none; }
  .student-brand strong { font-size: 16px; letter-spacing: .03em; white-space: nowrap; }
  .student-brand small { font-size: 10px; white-space: nowrap; }
  .student-brand img { width: 38px; height: 38px; }
}
