
:root {
  color-scheme: light;
  --ink: #263238;
  --muted: #54616c;
  --accent: #21618e;
  --nav-bg: #233746;
  --paper: #fff;
  --line: #d9dfe3;
  --white: #fff;
  --sidebar: 84px;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 14px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: 20px; }
p { line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #21618e; outline-offset: 4px; }
main:focus { outline: none; }
svg { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 5; padding: 10px; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: white;
  background: var(--nav-bg);
}
.brand { display: grid; place-items: center; min-height: 80px; }
.brand-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #ffffff75; border-radius: 7px; color: white;
}
.brand-icon svg { width: 28px; height: 28px; }
.sidebar nav a {
  display: grid; justify-items: center; align-content: center;
  gap: 5px; min-height: 64px; padding: 8px 3px; font-size: 11px; line-height: 1.35;
}
.sidebar nav a:hover { background: #173f61; }
.sidebar nav a[aria-current] { color: var(--accent); background: white; }
.sidebar nav svg { width: 24px; height: 24px; }
.sidebar a:focus-visible { outline-color: #a3d1ff; outline-offset: -4px; }
.workspace { margin-left: var(--sidebar); min-height: 100svh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 2; min-height: 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px clamp(20px, 3.25vw, 54px); border-bottom: 1px solid var(--line); background: white;
}
.breadcrumbs { display: flex; gap: 11px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumbs strong { color: var(--ink); font-weight: 500; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; }
.crumb-slash { color: #77828b; font-size: 19px; }
.role-switch { display: flex; gap: 0; border: 1px solid #c7cdd1; border-radius: 4px; white-space: nowrap; }
.role-switch button { min-height: 34px; padding: 3px 13px; border: 0; background: #f5f6f7; color: var(--ink); font-size: 12px; }
.role-switch button + button { border-left: 1px solid #c7cdd1; }
.role-switch button:hover { background: #e9eef1; }
.role-switch button[aria-pressed="true"] { background: #e8f2fb; color: #164a75; font-weight: 700; }
.menu-toggle { display: none; }
main, .footer { width: min(100%, 1440px); margin-inline: auto; padding-inline: clamp(20px, 3.25vw, 54px); }
main { flex: 1; padding-block: 26px 42px; }
.footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; padding-block: 4px 20px; }
.dashboard-heading { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dashboard-heading h1 { font-size: clamp(29px, 3vw, 41px); font-weight: 400; }
.dashboard-heading p { margin-top: 3px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px;
  border: 1px solid transparent; border-radius: 4px; padding: 7px 13px;
  font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center;
}
.button svg { width: 15px; height: 15px; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #17466f; }
.secondary { color: var(--ink); background: #f5f6f7; border-color: #c7cdd1; }
.secondary:hover { background: #e9edf0; }
.text { color: var(--accent); padding-inline: 0; min-height: 32px; }
.text:hover { text-decoration: underline; text-underline-offset: 3px; }
.overview-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(244px, 292px);
  gap: clamp(23px, 3vw, 44px); align-items: start;
}
.section-head {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding-bottom: 8px; margin-bottom: 17px; border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 18px; font-weight: 500; }
.section-head a { white-space: nowrap; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 305px)); gap: 19px; }
.case-card {
  --course-color: #226598;
  min-width: 0; background: white; border: 1px solid #d9dfe3; border-radius: 4px;
  box-shadow: 0 2px 6px #182d3b1f;
}
.case-card.sand { --course-color: #765393; }
.course-cover { display: block; height: 139px; border-radius: 3px 3px 0 0; background: var(--course-color); }
.course-cover:hover { box-shadow: inset 0 0 0 3px #ffffff52; }
.course-cover:focus-visible { outline-offset: -5px; outline-color: white; }
.case-details { padding: 15px 13px 11px; }
.case-details h3 { color: var(--course-color); font-size: 15px; }
.case-details h3 a:hover { text-decoration: underline; }
.case-details p { margin-top: 3px; color: var(--ink); }
.case-details small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 4px 12px; border-top: 1px solid #e5e9ec; }
.course-quick-links { display: flex; gap: 4px; }
.course-quick-links a { display: grid; place-items: center; width: 33px; height: 34px; color: var(--muted); border-radius: 4px; }
.course-quick-links a:hover { background: #e9f1f8; color: var(--accent); }
.course-quick-links svg { width: 18px; height: 18px; }
.progress-card h2 {
  font-size: 16px; font-weight: 650; margin-bottom: 10px; padding-block: 7px 11px;
  border-bottom: 1px solid #adb6bd;
}
.progress-card h2:not(:first-child) { margin-top: 24px; }
.progress-card p { font-size: 13px; color: var(--muted); }
.progress-card ul { list-style: none; margin: 0; padding: 0; }
.progress-card li { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; }
.progress-card li > svg { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }
.progress-card li a { color: var(--accent); font-size: 13px; font-weight: 600; }
.progress-card li a:hover { text-decoration: underline; }
.progress-card small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 4px; }
.case-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; flex: 0 0 auto; }
.case-icon svg { width: 23px; height: 23px; }
.tag { display: inline-flex; align-items: center; border-radius: 3px; font-weight: 650; padding: 4px 8px; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.case-icon.green, .tag.green { background: #e9f2f9; color: #1a5685; }
.case-icon.sand, .tag.sand { background: #f1ecf7; color: #60447b; }
.course-layout { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 23px; }
.course-body { min-width: 0; }
.course-nav p { color: var(--muted); font-size: 12px; margin: 0 8px 9px; }
.course-nav a { display: block; padding: 8px 10px; border-left: 2px solid transparent; color: var(--accent); line-height: 1.4; }
.course-nav a:hover { text-decoration: underline; }
.course-nav a[aria-current] { border-left-color: var(--ink); color: var(--ink); font-weight: 700; }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { font-size: clamp(26px, 3vw, 38px); }
.page-heading p, .panel p { color: var(--muted); margin-top: 9px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--accent); font-weight: 700; font-size: 13px; }
.back svg { width: 16px; }
.filters { display: flex; gap: 7px; margin-bottom: 17px; }
.filters button {
  padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.filters button[aria-pressed="true"] { background: #e8f2fa; border-color: #a3c3dc; color: var(--accent); font-weight: 700; }
.listing-grid { max-width: 900px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(224px, 1fr); gap: 17px; align-items: start; }
.panel { padding: clamp(15px, 2vw, 24px); min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-actions { margin-top: 20px; }
.vertical-actions { display: grid; justify-items: stretch; gap: 10px; margin-top: 15px; }
.objectives { margin: 0; padding: 0 0 0 24px; }
.objectives li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.objectives li:last-child { border: 0; padding-bottom: 0; }
.objectives p { margin-top: 3px; }
.callout { padding: 14px 15px; border-left: 3px solid #6593b8; background: #edf4fa; border-radius: 5px; margin-top: 17px; line-height: 1.7; }
.callout p { margin-top: 4px; }
.table-scroll { overflow: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; }
table { border-collapse: collapse; width: 100%; min-width: 445px; text-align: left; }
th, td { padding: 10px; border-bottom: 1px solid #e3e8ed; white-space: nowrap; }
thead { background: #f4f6f8; color: #354550; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr:has(:checked) { background: #e9f3fb; }
.record-id { color: var(--accent); font-variant-numeric: tabular-nums; }
.instruction { font-size: 13px; }
.steps { padding: 0; margin: 12px 0 0; list-style: none; }
.steps button, .step-label {
  display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; font-size: 13px;
  padding: 8px; background: none; color: var(--muted); border: 0; border-radius: 7px;
}
.steps button:hover, .steps [aria-current] { background: #e8f1f8; color: var(--accent); }
.steps [aria-current] { font-weight: 700; }
.steps button > span, .step-label > span { display: grid; place-items: center; width: 25px; height: 25px; background: #edf0f2; border-radius: 50%; font-size: 11px; }
.steps [aria-current] > span { background: #dcebf6; }
.steps svg { width: 15px; }
.hint { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; }
.hint h3 { font-size: 14px; }
.hint h3 svg { width: 16px; color: var(--accent); }
.hint .muted { margin: 4px 0 9px; font-size: 12px; }
.hint .button { min-height: 34px; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { font-weight: 700; font-size: 18px; padding: 0 0 14px; }
input:is([type="checkbox"], [type="radio"]) { accent-color: var(--accent); width: 17px; height: 17px; flex: 0 0 auto; cursor: pointer; }
.choice { display: flex; align-items: flex-start; gap: 7px; padding: 10px; margin-bottom: 7px; color: #263238; background: #f6f8fa; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; line-height: 1.65; }
.choice:has(:checked) { background: #eaf3fa; border-color: #a3c3dc; }
.field { display: grid; gap: 9px; margin-top: 14px; font-weight: 700; }
textarea { padding: 11px; background: #fff; border: 1px solid #b9c4cc; border-radius: 7px; color: var(--ink); line-height: 1.6; font-weight: 400; resize: vertical; width: 100%; }
.error { color: #a32725 !important; font-size: 13px; }
.error:empty { display: none; }
.error + .button { margin-top: 12px; }
.answer-list { margin: 8px 0 0; }
.answer-list > div { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 6px; padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.65; }
.answer-list dt { font-weight: 700; color: var(--muted); }
.answer-list dd { margin: 0; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0; }
.result-grid > div { background: #edf4fa; padding: 11px; border-radius: 6px; }
.result-grid small, .result-grid strong { display: block; }
.result-grid small { color: var(--muted); }
.result-grid strong { color: var(--accent); font-size: 20px; margin-top: 5px; }
.empty { display: grid; justify-items: center; text-align: center; padding: 35px 15px; }
.empty h2, .empty .button { margin-top: 12px; }
.review-list > div { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.review-list > div:last-child { border: 0; }
.review-list h2 { font-size: 15px; }
.review-list p { margin-top: 3px; font-size: 12px; }
.review-list .button { margin-left: auto; }
#notice:not(:empty) { position: fixed; bottom: 16px; right: 16px; z-index: 4; max-width: calc(100% - 32px); border-radius: 8px; padding: 13px 16px; background: #233746; color: white; box-shadow: 0 6px 20px #23374630; }
@media (max-width: 1120px) {
  .course-layout { grid-template-columns: 115px minmax(0, 1fr); gap: 15px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; }
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: minmax(0, 1fr) 174px; }
}
@media (max-width: 740px) {
  .workspace { margin-left: 0; }
  .sidebar { display: none; inset-block-start: 57px; box-shadow: 4px 0 14px #0003; }
  .sidebar.expanded { display: flex; }
  .topbar { min-height: 57px; padding-inline: 16px; }
  .menu-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 4px; background: #edf3f7; color: var(--accent); }
  main { padding-block-start: 20px; }
  .overview-grid { grid-template-columns: 1fr; }
  .course-layout { display: block; }
  .course-nav { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
  .course-nav p { display: none; }
  .course-nav a { border-left: 0; border-bottom: 2px solid transparent; }
  .course-nav a[aria-current] { border-bottom-color: var(--ink); }
}
@media (max-width: 520px) {
  main, .footer { padding-inline: 16px; }
  .crumb-base, .crumb-slash { display: none; }
  .case-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .course-cover { height: 112px; }
  .detail-grid:has(.hint) { display: flex; flex-direction: column-reverse; }
  .detail-grid:has(.hint) > * { width: 100%; }
  .steps { display: flex; flex-wrap: wrap; gap: 4px; }
  .steps button, .step-label { padding: 5px 4px; }
  .hint { margin-top: 8px; padding-top: 8px; }
  .hint .muted { display: inline-block; margin: 3px 4px 3px 0; }
  table { min-width: 0; font-size: 11px; }
  th, td { padding: 8px 4px; white-space: normal; }
  td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .record-id { white-space: nowrap; }
  .panel { padding: 14px; }
  .role-switch button { padding-inline: 8px; }
}
