:root {
  color-scheme: light;
  font: 15px/1.55 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --ink: #182e48;
  --muted: #4c6278;
  --line: #d4dfe9;
  --navy: #142e4c;
  --teal: #066d62;
  color: var(--ink);
  background: #eff3f7;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(2.05rem, 4.5vw, 3rem); line-height: 1.18; letter-spacing: -.045em; }
h2 { font-size: 1.47rem; line-height: 1.3; }
h3 { font-size: 1.09rem; }
p { color: var(--muted); }
.wrap { width: min(1230px, calc(100% - 52px)); margin-inline: auto; }
.top { background: var(--navy); color: white; }
.top-inner, .identity, .section-head, .actions { display: flex; align-items: center; gap: 12px; }
.top-inner, .section-head { justify-content: space-between; flex-wrap: wrap; }
.top-inner { padding-block: 12px; min-height: 60px; }
.identity { flex-wrap: wrap; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; padding: 35px 0 29px; }
.intro p { margin-top: 8px; }
.section-head { margin-bottom: 12px; }
button, input, textarea, select { font: inherit; }
button {
  cursor: pointer; padding: .48rem .76rem; border: 1px solid #b5c7d9; border-radius: 7px;
  background: #fcfdff; color: var(--ink); font-weight: 650;
}
button:hover { background: #e7f0f8; }
button:disabled { opacity: .62; cursor: wait; }
button.primary { background: var(--teal); color: white; border-color: var(--teal); }
button.primary:hover { background: #05584f; }
input, textarea, select {
  width: 100%; min-width: 0; border: 1px solid #bbcddc; border-radius: 6px; padding: .44rem .54rem;
  background: #fbfdff; color: var(--ink);
}
textarea { resize: vertical; min-height: 70px; }
:focus-visible { outline: 3px solid #167cac; outline-offset: 3px; }
label { display: grid; gap: 4px; min-width: 0; font-size: .9rem; font-weight: 640; }
.inline { display: flex; align-items: center; gap: 6px; }
.inline input[type="search"] { width: min(50vw, 230px); }
.check { font-weight: 500; }
.check input { width: 1rem; height: 1rem; accent-color: var(--teal); }
form { display: grid; gap: 9px; margin-top: 12px; }
form > button { justify-self: start; }
.tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.task,.panel,.guide { border: 1px solid var(--line); border-radius: 9px; background: white; min-width: 0; }
.task { padding: 13px; border-top: 3px solid #9bb3ca; }
.task[data-id="data"] { border-top-color: var(--teal); }
.task-head { display: flex; justify-content: space-between; align-items: start; gap: 5px; }
.task-roles { font-size: .83rem; margin-top: 6px; overflow-wrap: anywhere; }
.badge { white-space: nowrap; border-radius: 12px; padding: 2px 7px; background: #ebf1f6; font-size: .78rem; }
.badge[data-state="练习中"] { background: #e3edfd; color: #234f88; }
.badge[data-state="待验收"] { background: #fff0cb; color: #74470d; }
.badge[data-state="已验收"] { background: #dbf2e9; color: #0a594c; }
dl { margin: 11px 0 0; font-size: .87rem; }
dt { font-weight: 700; padding-top: 5px; }
dd { margin: 2px 0 4px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.task form { border-top: 1px solid var(--line); padding-top: 9px; }
.panel { margin-top: 24px; overflow: hidden; }
.panel-head { padding: 13px 18px; background: #e1eeec; border-bottom: 1px solid var(--line); }
.panel-head p { margin-top: 4px; }
.panel-body { padding: 14px 18px 17px; }
.panel-body h3 { margin-top: 17px; }
.panel-body form { max-width: 680px; }
.account-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 21px; }
.account-body ul { list-style: none; padding: 0; overflow-wrap: anywhere; }
.account-body li { padding: 5px 0; }
.account-body li button { margin-left: 8px; }
#history { margin: 6px 0 0; padding-left: 23px; }
#history li { padding: 7px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
#history li + li { border-top: 1px solid var(--line); }
.empty { margin-top: 6px; }
.guide { margin: 23px 0; padding: 11px 15px; }
.guide summary { cursor: pointer; font-weight: 650; }
.guide p { margin-top: 6px; overflow-wrap: anywhere; }
.feedback { padding: 9px 12px; border-radius: 7px; color: #03584e; background: #dff2ed; margin-bottom: 12px; }
.feedback.error { color: #78283d; background: #fde8eb; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.login-panel { width: min(440px, 100%); border-top: 5px solid var(--teal); border-radius: 10px; background: white; padding: 28px; }
.login-panel .brand-name { font-weight: 700; margin-bottom: 13px; color: var(--navy); }
.login-panel h1 { margin-bottom: 6px; font-size: 2.25rem; }
.login-panel .feedback { margin: 10px 0 0; }
@media (max-width: 1090px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .wrap { width: calc(100% - 28px); }
  .tasks, .account-body { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; }
  .intro { padding: 26px 0 21px; }
}