:root {
  color-scheme: light;
  --nav: #111b31;
  --blue: #3461ee;
  --blue-2: #edf3ff;
  --green: #16885f;
  --amber: #b87300;
  --orange: #ff8a00;
  --purple: #6654d9;
  --text: #151d33;
  --muted: #758096;
  --line: #dfe6f6;
  --bg: #f5f7fc;
  --panel: #ffffff;
  --shadow: 0 20px 60px rgba(24, 38, 74, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 258px;
  background: var(--nav);
  color: #f7f9ff;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 8px 28px;
}

.brandMark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3,
.panel p,
.reviewPanel p,
.reviewPanel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 22px;
}

.brand p {
  margin-top: 4px;
  color: #97a3bb;
}

.navList {
  display: grid;
  gap: 8px;
}

.navItem {
  min-height: 54px;
  border-radius: 10px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  color: #a9b4ca;
}

.navItem.active {
  background: var(--blue);
  color: #fff;
}

.navItem span {
  font-size: 18px;
}

.navItem strong {
  font-size: 17px;
}

.navItem em {
  font-size: 12px;
  font-style: normal;
  opacity: 0.7;
}

.sidebarFoot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 8px 2px;
}

.meter {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--blue);
}

.sidebarFoot p {
  color: #9ca8bf;
  margin: 0 0 14px;
}

.codeBtn,
.ghostBtn,
.primaryBtn,
.linkBtn,
.notice button {
  border: 0;
  cursor: pointer;
}

.codeBtn {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #d8deee;
  font-size: 18px;
  font-weight: 700;
}

.appShell {
  margin-left: 258px;
  min-height: 100vh;
}

.topbar {
  height: 118px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 30px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow,
.panelHead p,
.reviewPanel p {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h2 {
  margin-top: 8px;
  font-size: 30px;
}

.topActions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ghostBtn,
.primaryBtn {
  min-height: 42px;
  border-radius: 13px;
  padding: 0 18px;
  background: var(--blue-2);
  color: var(--blue);
  font-weight: 800;
}

.ghostBtn.bordered {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.primaryBtn {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(52, 97, 238, 0.22);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111827;
  font-weight: 900;
}

.notice,
.uploadPanel,
.statsGrid,
.contentGrid,
.reviewPanel {
  margin-left: 52px;
  margin-right: 52px;
}

.notice {
  margin-top: 22px;
  min-height: 52px;
  border: 1px solid #bcd0ff;
  border-radius: 10px;
  background: #edf3ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-weight: 700;
}

.notice button {
  background: transparent;
  color: var(--blue);
  font-size: 24px;
}

.uploadPanel {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #c7d7ff;
  border-radius: 18px;
  min-height: 150px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  box-shadow: var(--shadow);
}

.uploadIcon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 800;
}

.uploadCopy p {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.uploadCopy h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.uploadCopy span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
}

.fileButton {
  min-width: 172px;
  height: 54px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(52, 97, 238, 0.24);
  cursor: pointer;
}

.fileButton input {
  display: none;
}

.statsGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.statCard {
  position: relative;
  min-height: 142px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.statCard span {
  color: #657187;
  font-weight: 800;
}

.statCard strong {
  display: block;
  margin-top: 24px;
  color: var(--blue);
  font-size: 46px;
  line-height: 0.9;
}

.statCard p {
  margin: 16px 0 0;
  color: #8a94a8;
  font-weight: 650;
}

.statCard i {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #e9efff;
}

.statCard.green strong {
  color: var(--green);
}

.statCard.green i {
  background: #def4eb;
}

.statCard.amber strong {
  color: var(--amber);
}

.statCard.amber i {
  background: #fff0cc;
}

.statCard.dark strong {
  color: #253150;
}

.statCard.dark i {
  background: #edf0f7;
}

.contentGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  gap: 22px;
}

.panel,
.reviewPanel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 26px;
}

.panelHead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.panelHead h3,
.reviewPanel h3 {
  margin-top: 10px;
  font-size: 22px;
}

.linkBtn {
  background: transparent;
  color: var(--blue);
  font-size: 17px;
  font-weight: 900;
}

.lessonList {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.lessonRow {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0 16px;
  border-bottom: 1px solid #edf1f7;
}

.lessonRow:last-child {
  border-bottom: 0;
}

.fileBadge,
.docIcon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e9efff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.fileBadge.blue {
  background: #e7f6ff;
  color: #168fc1;
}

.fileBadge.orange {
  background: #fff1df;
  color: var(--orange);
}

.fileBadge.purple {
  background: #f0edff;
  color: var(--purple);
}

.lessonRow h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.lessonRow p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
}

.progress {
  height: 4px;
  border-radius: 999px;
  background: #e9edf6;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.status {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status.ok {
  background: #dff5eb;
  color: var(--green);
}

.status.wait {
  background: #fff3d8;
  color: var(--amber);
}

.downloadList {
  margin-top: 24px;
  display: grid;
}

.downloadList a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #edf1f7;
}

.downloadList a:last-child {
  border-bottom: 0;
}

.docIcon {
  font-size: 22px;
}

.docIcon.pdf {
  background: #ffe9ee;
  color: #e24a68;
}

.docIcon.answer {
  background: #e7f8ef;
  color: var(--green);
}

.downloadList strong {
  font-size: 17px;
}

.downloadList p {
  margin-top: 6px;
  color: var(--muted);
}

.downloadList em {
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.reviewPanel {
  margin-top: 22px;
  margin-bottom: 48px;
  padding: 26px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.reviewPanel ul {
  margin: 0;
  padding-left: 22px;
  color: #344057;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 650;
}

@media (max-width: 1024px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .appShell {
    margin-left: 0;
  }

  .topbar,
  .uploadPanel,
  .reviewPanel {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }

  .statsGrid,
  .contentGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .notice,
  .uploadPanel,
  .statsGrid,
  .contentGrid,
  .reviewPanel {
    margin-left: 18px;
    margin-right: 18px;
  }

  .topbar {
    padding: 24px 18px;
  }

  .topActions {
    width: 100%;
    flex-wrap: wrap;
  }

  .uploadPanel {
    padding: 24px;
  }

  .uploadCopy h3 {
    font-size: 23px;
  }

  .lessonRow,
  .downloadList a {
    grid-template-columns: 44px 1fr;
  }

  .status,
  .downloadList em {
    grid-column: 2;
    justify-self: start;
  }
}
