:root {
  color-scheme: light;
  --ink: #1d252c;
  --muted: #60717d;
  --line: #dfe6e2;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --green: #64a0c8;
  --logo-green: #8ec3dc;
  --logo-purple: #3f6797;
  --teal: #8ec3dc;
  --brick: #a84f3c;
  --ochre: #c18a36;
  --blue: #476f9f;
  --shadow: 0 18px 45px rgba(32, 42, 38, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(100, 160, 200, 0.18), transparent 36%),
    linear-gradient(240deg, rgba(142, 195, 220, 0.16), transparent 34%),
    var(--paper);
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

button:hover,
button.active {
  border-color: rgba(100, 160, 200, 0.55);
  background: #edf7fb;
}

.primary {
  border-color: #477f9f;
  color: #fff;
  background: #477f9f;
}

.shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  overflow: auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #7eb5d4, #b55b4b);
  font-weight: 800;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(35, 58, 82, 0.12),
    0 10px 22px rgba(35, 58, 82, 0.18);
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
small,
.eyebrow,
.note,
.lesson span,
.roadmap-grid span {
  color: var(--muted);
}

.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.student-list {
  display: grid;
  gap: 10px;
}

.student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
  padding: 12px;
  text-align: left;
}

.student-item span,
.student-item strong,
.student-item small {
  display: block;
}

.student-item em {
  color: #477f9f;
  font-style: normal;
  font-weight: 800;
}

.workspace {
  padding: 28px;
}

.topbar,
.panel-title,
.approval-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

h2 {
  font-size: 28px;
}

h3 {
  margin-top: 4px;
  font-size: 18px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  min-height: 260px;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(94, 155, 195, 0.96), rgba(135, 194, 220, 0.9)),
    url("/微信图片_20260722205520_128_4.jpg") center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual {
  padding: 28px;
}

.student-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.student-heading p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-stats div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.quick-stats div:nth-child(2) {
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.78);
}

.quick-stats div:nth-child(3) {
  box-shadow: inset 0 -3px 0 rgba(63, 103, 151, 0.58);
}

.quick-stats strong {
  display: block;
  font-size: 30px;
}

.quick-stats span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-visual {
  display: grid;
  align-content: center;
  justify-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
}

.trend {
  width: min(100%, 270px);
  color: #fff2cc;
}

.trend circle {
  fill: #fff;
}

.visual-caption {
  display: grid;
  gap: 4px;
  text-align: center;
}

.visual-caption span {
  color: rgba(255, 255, 255, 0.7);
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.monthly {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(32, 42, 38, 0.06);
}

.editor-panel {
  margin-bottom: 18px;
}

.import-panel {
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, #f3f9fc);
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-top: 18px;
}

.import-help {
  padding: 16px;
  border: 1px solid #d7e7ee;
  border-radius: 8px;
  background: #eef7fb;
}

.import-help p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.import-help pre {
  margin: 14px 0 0;
  overflow: auto;
  border-radius: 8px;
  padding: 12px;
  color: #24495f;
  background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.bulk-form {
  display: grid;
  gap: 12px;
}

.bulk-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bulk-form input,
.bulk-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfdcde;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.bulk-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.bulk-form .check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bulk-form .check input {
  width: 18px;
  min-height: 18px;
  accent-color: #477f9f;
}

.save-state {
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #326f90;
  background: #e7f4fa;
  font-size: 13px;
  font-weight: 700;
}

.readonly-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.readonly-note span {
  color: var(--muted);
}

.record-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.record-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.record-form legend {
  padding: 0 8px;
  color: #326f90;
  font-weight: 800;
}

.record-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.record-form label.wide {
  grid-column: 1 / -1;
}

.record-form input,
.record-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfdcde;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.record-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.record-form input:focus,
.record-form textarea:focus {
  border-color: #64a0c8;
  outline: 3px solid rgba(100, 160, 200, 0.18);
}

.record-form .check {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
}

.record-form .check input {
  width: 18px;
  min-height: 18px;
  accent-color: #477f9f;
}

.file-input {
  padding: 7px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score-row {
  margin-top: 18px;
}

.score-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.score-track {
  height: 10px;
  border-radius: 999px;
  background: #edf1ef;
  overflow: hidden;
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #477f9f, #64a0c8, #f0c36c);
}

.note {
  margin-top: 18px;
  line-height: 1.7;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.status.ok {
  color: #326f90;
  background: #e7f4fa;
}

.status.warn {
  color: #9a5d15;
  background: #fff3dc;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.artwork {
  min-width: 0;
}

.art-paper {
  position: relative;
  height: 142px;
  margin-bottom: 10px;
  border: 1px solid #d6ddd8;
  border-radius: 8px;
  background: #f6f3ec;
  overflow: hidden;
}

.work-photo {
  display: block;
  width: 100%;
  height: 142px;
  margin-bottom: 10px;
  border: 1px solid #d6ddd8;
  border-radius: 8px;
  object-fit: cover;
  background: #eef4f7;
}

.art-paper span,
.art-paper i,
.art-paper b {
  position: absolute;
  display: block;
}

.art-paper.sketch span {
  inset: 24px 42px 28px;
  border: 5px solid rgba(29, 37, 44, 0.5);
  border-top-width: 12px;
  border-radius: 48% 48% 44% 44%;
}

.art-paper.sketch i {
  left: 34px;
  right: 34px;
  bottom: 20px;
  height: 24px;
  border-top: 5px solid rgba(29, 37, 44, 0.36);
  transform: rotate(-4deg);
}

.art-paper.color {
  background: linear-gradient(135deg, #e8d5b5, #477c86 45%, #b54e3e 46%, #eac276);
}

.art-paper.color span {
  left: 20px;
  bottom: 20px;
  width: 60px;
  height: 42px;
  border-radius: 50%;
  background: rgba(82, 116, 68, 0.9);
}

.art-paper.color i {
  right: 20px;
  top: 24px;
  width: 44px;
  height: 58px;
  background: rgba(255, 248, 224, 0.8);
  transform: rotate(8deg);
}

.art-paper.speed span {
  left: 42px;
  top: 22px;
  width: 42px;
  height: 42px;
  border: 5px solid rgba(29, 37, 44, 0.55);
  border-radius: 50%;
}

.art-paper.speed i {
  left: 62px;
  top: 64px;
  width: 48px;
  height: 58px;
  border-left: 6px solid rgba(29, 37, 44, 0.55);
  border-bottom: 6px solid rgba(29, 37, 44, 0.55);
  transform: skew(-12deg);
}

.artwork strong,
.artwork small {
  display: block;
  overflow-wrap: anywhere;
}

blockquote {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid #64a0c8;
  border-radius: 6px;
  background: #f1f8fb;
  line-height: 1.7;
}

.lesson-list,
.task-list,
.report-columns,
.roadmap-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.lesson {
  padding: 14px;
  border-radius: 8px;
  background: #f7f7f2;
}

.lesson strong,
.lesson span {
  display: block;
}

.lesson span {
  margin-top: 5px;
}

.task-list {
  padding: 0;
  list-style: none;
}

.task-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
}

.task-list span {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brick);
}

.issue-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  color: #5a2d23;
  background: #fbede8;
}

.issue-box p {
  margin-top: 8px;
  line-height: 1.7;
}

.report-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-columns div,
.roadmap-grid div {
  padding: 16px;
  border-radius: 8px;
  background: #f8faf7;
}

.report-columns p,
.approval-bar span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.approval-bar {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.phone-preview {
  display: grid;
  place-items: center;
}

.phone-shell {
  width: min(100%, 318px);
  min-height: 620px;
  padding: 18px;
  border: 10px solid #1f262a;
  border-radius: 36px;
  background: #f4f6f2;
  box-shadow: var(--shadow);
}

.mini-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 18px;
  font-weight: 800;
}

.mini-header img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 2px solid #ffffff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(35, 58, 82, 0.18);
}

.mini-card,
.mini-section {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 42, 38, 0.07);
}

.mini-card {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.mini-card span,
.mini-section p {
  color: var(--muted);
}

.mini-scores {
  padding: 1px 0 10px;
}

.mini-section {
  margin-top: 12px;
}

.mini-section p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.roadmap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roadmap-grid strong,
.roadmap-grid span {
  display: block;
}

.roadmap-grid span {
  margin-top: 8px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .student-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.two,
  .grid.monthly,
  .import-layout,
  .roadmap-grid,
  .record-form fieldset,
  .report-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .panel-title,
  .approval-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .top-actions button,
  .form-actions,
  .form-actions button,
  .approval-bar button {
    width: 100%;
  }

  .readonly-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .quick-stats,
  .art-grid,
  .student-list {
    grid-template-columns: 1fr;
  }

  .phone-shell {
    min-height: auto;
  }
}
