:root {
  --ink: #17312b;
  --ink-2: #34534b;
  --muted: #71847e;
  --faint: #9aa9a4;
  --paper: #f3f1e9;
  --card: #fffef9;
  --line: #dfe4dc;
  --brand: #194f42;
  --brand-deep: #12392f;
  --brand-soft: #dfece5;
  --lime: #dceaa6;
  --lime-deep: #a9bd57;
  --orange: #d8955c;
  --red: #be645a;
  --blue: #668fa4;
  --shadow: 0 16px 44px rgba(23, 49, 43, .09);
  --radius: 20px;
  --font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 24px; height: 24px; }
.hidden { display: none !important; }

.landing {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 15%, rgba(220, 234, 166, .55), transparent 28%),
    radial-gradient(circle at 95% 10%, rgba(102, 143, 164, .16), transparent 33%),
    linear-gradient(135deg, #f7f5ed 0%, #edf1e9 100%);
}
.landing-nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 88px);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-top: 2px; }
.landing-nav .nav-note { color: var(--muted); font-size: 12px; }
.landing-hero {
  max-width: 1380px;
  margin: 0 auto;
  padding: 42px clamp(24px, 6vw, 88px) 72px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.landing h1 {
  margin: 20px 0 24px;
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(46px, 6.3vw, 88px);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 700;
}
.landing h1 em { font-style: normal; color: var(--brand); }
.landing-copy { max-width: 510px; color: var(--ink-2); font-size: 16px; line-height: 1.9; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.landing-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 50px; color: var(--muted); font-size: 12px; }
.landing-meta strong { color: var(--ink); font-size: 21px; margin-right: 6px; }
.preview-wrap { position: relative; }
.preview-glow {
  position: absolute;
  inset: 11% -7% -12% 9%;
  border-radius: 44%;
  background: rgba(220, 234, 166, .72);
  filter: blur(30px);
}
.desktop-preview {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 36px 90px rgba(23, 49, 43, .19);
  border: 1px solid rgba(255,255,255,.65);
  transform: rotate(1.3deg);
}
.browser-bar { height: 42px; background: #e8ece5; display: flex; align-items: center; gap: 6px; padding: 0 16px; }
.browser-bar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #bdc7bf; }
.preview-body { display: grid; grid-template-columns: 116px 1fr; min-height: 470px; }
.preview-side { background: var(--brand-deep); padding: 18px 13px; color: white; }
.preview-side .brand-mark { width: 32px; height: 32px; margin-bottom: 24px; background: rgba(255,255,255,.08); }
.preview-side div:not(.brand-mark) { height: 31px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.65); font-size: 9px; border-radius: 8px; padding: 0 8px; margin-bottom: 4px; }
.preview-side div.active { color: var(--lime); background: rgba(255,255,255,.08); }
.preview-side span { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 3px; }
.preview-main { padding: 25px; background: #f5f5ef; }
.preview-head { display: flex; justify-content: space-between; align-items: center; }
.preview-head h3 { margin: 0; font-size: 16px; }
.preview-head i { display: block; width: 140px; height: 7px; border-radius: 8px; background: #e1e5dd; }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 14px; }
.preview-card { padding: 14px; background: white; border-radius: 12px; border: 1px solid #e4e8e1; }
.preview-card small { color: var(--muted); font-size: 8px; }
.preview-card strong { display: block; font-size: 24px; margin: 10px 0 6px; }
.preview-card span { display: block; height: 5px; width: 55%; border-radius: 5px; background: var(--lime); }
.preview-panels { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; }
.preview-panel { height: 198px; border-radius: 14px; background: white; border: 1px solid #e4e8e1; padding: 16px; overflow: hidden; }
.preview-panel h4 { margin: 0 0 20px; font-size: 10px; }
.mini-bars { height: 118px; display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid #e2e6df; }
.mini-bars span { flex: 1; border-radius: 6px 6px 0 0; background: var(--brand-soft); }
.mini-bars span:nth-child(5) { background: var(--brand); }
.preview-toast {
  position: absolute;
  right: -26px;
  bottom: 42px;
  background: var(--brand-deep);
  color: white;
  border-radius: 15px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 11px;
  transform: rotate(-2deg);
}
.preview-toast b { color: var(--lime); }

.prototype-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  background: #173b32;
  color: white;
  position: sticky;
  top: 0;
  z-index: 60;
}
.prototype-bar .brand { font-size: 14px; }
.prototype-bar .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
.prototype-bar .brand small { color: rgba(255,255,255,.52); }
.portal-switch { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.09); padding: 4px; border-radius: 11px; }
.portal-switch button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.66);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px;
  cursor: pointer;
}
.portal-switch button.active { background: white; color: var(--ink); font-weight: 700; }
.back-home { color: rgba(255,255,255,.7); text-decoration: none; font-size: 11px; }

.teacher-shell { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 242px 1fr; background: #f2f3ed; }
.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--brand-deep);
  color: white;
  padding: 23px 16px 32px;
}
.sidebar-profile { display: flex; align-items: center; gap: 11px; padding: 12px 10px 22px; border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: 16px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--brand-deep);
  font-weight: 800;
}
.sidebar-profile strong { display: block; font-size: 13px; }
.sidebar-profile small { display: block; color: rgba(255,255,255,.48); margin-top: 3px; font-size: 9px; }
.nav-label { margin: 17px 11px 7px; color: rgba(255,255,255,.32); font-size: 9px; letter-spacing: .16em; font-weight: 700; }
.side-nav button {
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.58);
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 10px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}
.side-nav button:hover { background: rgba(255,255,255,.05); color: white; }
.side-nav button.active { background: rgba(255,255,255,.1); color: var(--lime); font-weight: 700; }
.side-nav button.active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin-left: auto; }
.workspace { min-width: 0; }
.workspace-top {
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.66);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.workspace-top h1 { margin: 0; font-size: 17px; }
.workspace-top p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.teacher-content { padding: 28px 32px 54px; max-width: 1500px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h2 { margin: 0 0 7px; font-family: "STSong", "SimSun", serif; font-size: 28px; letter-spacing: -.04em; }
.page-head p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 12px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background: var(--brand);
  padding: 30px 32px;
  margin-bottom: 18px;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(220,234,166,.25);
  right: -110px;
  top: -170px;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(220,234,166,.12);
  right: 70px;
  bottom: -190px;
}
.hero-card .eyebrow { color: var(--lime); }
.hero-card h2 { font-family: "STSong", "SimSun", serif; font-size: 32px; margin: 13px 0 7px; letter-spacing: -.04em; }
.hero-card p { margin: 0; max-width: 580px; color: rgba(255,255,255,.65); line-height: 1.7; font-size: 12px; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.hero-pills span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.11); border-radius: 999px; padding: 7px 11px; color: rgba(255,255,255,.8); font-size: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 19px;
  min-height: 118px;
  position: relative;
}
.stat-card .stat-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); position: absolute; right: 16px; top: 16px; }
.stat-card small { display: block; color: var(--muted); font-size: 10px; }
.stat-card strong { display: block; font-size: 29px; letter-spacing: -.04em; margin: 8px 0 2px; }
.stat-card p { margin: 0; color: var(--faint); font-size: 9px; }
.stat-card p b { color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.grid-2.equal { grid-template-columns: repeat(2, minmax(0,1fr)); }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.panel + .panel { margin-top: 16px; }
.panel-head { padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eaede7; }
.panel-head h3 { margin: 0 0 4px; font-size: 14px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }
.chart { height: 175px; display: flex; align-items: flex-end; gap: 14px; padding-top: 12px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; height: 135px; }
.chart-bars span { width: 34%; min-height: 8px; background: var(--brand-soft); border-radius: 5px 5px 2px 2px; transition: .25s; }
.chart-bars span:last-child { background: var(--brand); }
.chart-col small { color: var(--faint); font-size: 8px; }
.todo-list { display: grid; gap: 4px; }
.todo-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.todo-item:last-child { border: 0; }
.todo-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f0f2ec; color: var(--brand); }
.todo-item div:nth-child(2) { min-width: 0; flex: 1; }
.todo-item strong { display: block; font-size: 11px; margin-bottom: 3px; }
.todo-item small { color: var(--muted); font-size: 9px; }
.todo-item time { color: var(--faint); font-size: 8px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.data-table th { text-align: left; padding: 11px 16px; color: var(--muted); background: #f7f8f4; font-weight: 500; font-size: 9px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 16px; border-bottom: 1px solid #edf0ea; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcf8; }
.cell-title { font-weight: 700; color: var(--ink); }
.cell-sub { display: block; color: var(--faint); font-size: 8px; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; font-size: 8px; font-weight: 700; background: #f0f2ec; color: var(--muted); }
.badge.green { background: #e3efe7; color: #32705d; }
.badge.lime { background: #eff3d8; color: #66791e; }
.badge.orange { background: #f8ecdf; color: #a8632f; }
.badge.red { background: #f7e5e2; color: #a44f48; }
.badge.blue { background: #e7eef2; color: #4e788d; }
.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; min-height: 36px; min-width: 210px; }
.search input { border: 0; outline: none; background: transparent; width: 100%; font-size: 10px; }
.search svg { width: 15px; height: 15px; color: var(--faint); }
.select, .input, .textarea {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  background: white;
  outline: none;
  font-size: 10px;
}
.textarea { padding: 10px 11px; resize: vertical; min-height: 90px; }
.btn {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-size: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(23,49,43,.08); }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: white; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--brand-deep); }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.13); color: white; }
.btn-sm { min-height: 29px; padding: 0 9px; border-radius: 8px; font-size: 9px; }
.link-btn { border: 0; background: transparent; color: var(--brand); font-weight: 700; cursor: pointer; padding: 4px; font-size: 10px; }
.avatar-cell { display: flex; align-items: center; gap: 9px; }
.avatar-mini { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.course-card { border: 1px solid var(--line); border-radius: 15px; background: var(--card); padding: 17px; position: relative; overflow: hidden; }
.course-card::before { content: ""; position: absolute; width: 4px; inset: 0 auto 0 0; background: var(--course-color, var(--brand)); }
.course-card h4 { margin: 0 0 7px; font-size: 13px; }
.course-card p { margin: 0; color: var(--muted); font-size: 9px; }
.course-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 15px; }
.chip { display: inline-flex; border-radius: 7px; padding: 4px 7px; background: #f1f3ed; color: var(--muted); font-size: 8px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.filter-row button { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 7px 12px; cursor: pointer; font-size: 9px; }
.filter-row button.active { border-color: var(--brand); background: var(--brand); color: white; }
.split-list { display: grid; gap: 10px; }
.list-item { padding: 15px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 12px; }
.list-item .thumb { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.list-item div:nth-child(2) { flex: 1; min-width: 0; }
.list-item strong { display: block; font-size: 11px; margin-bottom: 4px; }
.list-item small { color: var(--muted); font-size: 9px; }
.notice-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #fffef9, #f6f7ed); display: flex; align-items: flex-start; gap: 12px; }
.notice-card .notice-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--lime); display: grid; place-items: center; flex: 0 0 auto; }
.notice-card strong { display: block; line-height: 1.5; font-size: 11px; }
.notice-card p { margin: 5px 0 0; color: var(--muted); line-height: 1.6; font-size: 9px; }
.exam-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.exam-unit { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 17px; }
.exam-unit span.unit-number { font-family: Georgia, serif; font-size: 38px; color: var(--brand-soft); font-weight: 700; display: block; line-height: 1; }
.exam-unit h4 { margin: 12px 0 5px; font-size: 12px; }
.exam-unit p { margin: 0 0 13px; color: var(--muted); font-size: 9px; }
.exam-unit .exam-course { padding: 8px 0; border-top: 1px dashed var(--line); font-size: 9px; line-height: 1.5; }

.student-shell { min-height: calc(100vh - 64px); background: #eef1e9; }
.student-top {
  background: var(--brand-deep);
  color: white;
  padding: 0 32px;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.student-brand { display: flex; align-items: center; gap: 10px; min-width: 150px; font-weight: 800; }
.student-brand .brand-mark { width: 35px; height: 35px; }
.student-nav { display: flex; gap: 5px; flex: 1; }
.student-nav button { border: 0; background: transparent; color: rgba(255,255,255,.55); padding: 10px 14px; border-radius: 9px; cursor: pointer; font-size: 11px; }
.student-nav button.active { color: var(--lime); background: rgba(255,255,255,.08); font-weight: 700; }
.student-account { display: flex; align-items: center; gap: 10px; font-size: 10px; }
.student-account .avatar { width: 33px; height: 33px; border-radius: 10px; }
.student-main { max-width: 1220px; margin: 0 auto; padding: 28px 30px 60px; }
.student-hero {
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 20%, rgba(220,234,166,.23), transparent 25%),
    var(--brand);
  color: white;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 17px;
}
.student-hero h2 { margin: 13px 0 8px; font-family: "STSong", "SimSun", serif; font-size: 34px; letter-spacing: -.05em; }
.student-hero p { margin: 0; color: rgba(255,255,255,.64); font-size: 11px; line-height: 1.8; max-width: 500px; }
.student-hero .eyebrow { color: var(--lime); }
.ring-wrap { display: flex; justify-content: center; }
.progress-ring {
  --p: 62;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255,255,255,.12) 0);
  display: grid;
  place-items: center;
  position: relative;
}
.progress-ring::before { content: ""; position: absolute; width: 118px; height: 118px; border-radius: 50%; background: var(--brand); }
.progress-ring div { position: relative; text-align: center; }
.progress-ring strong { display: block; font-size: 31px; }
.progress-ring small { color: rgba(255,255,255,.55); font-size: 9px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 17px; }
.quick-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 17px; text-align: left; cursor: pointer; transition: .2s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 15px; }
.quick-card strong { display: block; font-size: 12px; margin-bottom: 5px; }
.quick-card small { color: var(--muted); font-size: 9px; }
.student-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 16px; }
.course-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.course-row:last-child { border: 0; }
.course-row .thumb { width: 41px; height: 41px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.course-row div:nth-child(2) { flex: 1; }
.course-row strong { display: block; font-size: 11px; margin-bottom: 3px; }
.course-row small { color: var(--muted); font-size: 8px; }
.inline-progress { height: 5px; width: 110px; border-radius: 5px; background: #e7ebe4; overflow: hidden; }
.inline-progress span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.student-page-head { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.student-page-head h2 { font-family: "STSong", "SimSun", serif; margin: 0 0 5px; font-size: 27px; }
.student-page-head p { margin: 0; color: var(--muted); font-size: 10px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.mode-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); cursor: pointer; }
.mode-card:hover { border-color: var(--brand); }
.mode-card strong { display: block; margin: 10px 0 5px; font-size: 12px; }
.mode-card small { color: var(--muted); font-size: 9px; }
.practice-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 16px; }
.question-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; min-height: 470px; display: flex; flex-direction: column; }
.question-card h3 { margin: 15px 0 23px; font-size: 18px; line-height: 1.7; font-family: "STSong", "SimSun", serif; }
.option-list { display: grid; gap: 10px; }
.option {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: white;
  text-align: left;
}
.option:hover { border-color: #a8bbb2; }
.option.correct { border-color: #6ba087; background: #eef6f0; }
.option.wrong { border-color: #d29a94; background: #fbf0ee; }
.option-key { width: 28px; height: 28px; border-radius: 8px; background: #f0f2ed; display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.option.correct .option-key { background: var(--brand); color: white; }
.option.wrong .option-key { background: var(--red); color: white; }
.question-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 25px; }
.side-panel { background: var(--brand-deep); color: white; border-radius: 20px; padding: 22px; }
.side-panel h3 { margin: 0 0 5px; font-size: 14px; }
.side-panel p { margin: 0; color: rgba(255,255,255,.5); font-size: 9px; }
.question-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 20px 0; }
.question-dots span { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.45); font-size: 9px; }
.question-dots span.current { background: var(--lime); color: var(--brand-deep); font-weight: 800; }
.question-dots span.done { background: rgba(220,234,166,.22); color: var(--lime); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; font-size: 10px; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats-grid .stat-card { min-height: 105px; }
.chart-tall { height: 220px; }
.registration-layout { display: grid; grid-template-columns: 1fr 330px; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; outline: none; background: white; font-size: 10px; }
.field textarea { min-height: 80px; padding-top: 10px; }
.summary-card { background: var(--brand); border-radius: 18px; color: white; padding: 22px; }
.summary-card h3 { margin: 0 0 18px; font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 10px; color: rgba(255,255,255,.6); }
.summary-row strong { color: white; }
.summary-total { margin-top: 16px; display: flex; justify-content: space-between; align-items: flex-end; }
.summary-total span { color: rgba(255,255,255,.55); font-size: 9px; }
.summary-total strong { font-size: 30px; color: var(--lime); }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.profile-card { background: var(--brand); color: white; border-radius: 20px; padding: 28px; text-align: center; }
.profile-card .avatar { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; margin: 0 auto 16px; }
.profile-card h3 { margin: 0 0 5px; font-size: 18px; }
.profile-card p { margin: 0; color: rgba(255,255,255,.55); font-size: 10px; }
.profile-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 22px; }
.profile-meta div { background: rgba(255,255,255,.08); padding: 10px 5px; border-radius: 10px; }
.profile-meta strong { display: block; color: var(--lime); font-size: 17px; }
.profile-meta small { color: rgba(255,255,255,.45); font-size: 8px; }
.setting-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border: 0; }
.setting-row .quick-icon { margin: 0; width: 34px; height: 34px; }
.setting-row div:nth-child(2) { flex: 1; }
.setting-row strong { display: block; font-size: 10px; }
.setting-row small { color: var(--muted); font-size: 8px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11,27,23,.48);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade .18s ease;
}
.modal {
  width: min(670px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: 0 35px 100px rgba(0,0,0,.25);
  padding: 24px;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.modal-head h3 { margin: 0 0 4px; font-size: 18px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 9px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #e9ece6; display: grid; place-items: center; cursor: pointer; }
.modal-body { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.paper-preview { background: white; padding: 18px; border: 1px solid #d8d8d1; font-family: "SimSun", serif; }
.paper-preview h2 { text-align: center; font-size: 16px; margin: 0 0 6px; }
.paper-preview p { text-align: center; margin: 0 0 14px; font-size: 9px; }
.paper-preview div { font-size: 10px; line-height: 2; }
.paper-preview p { text-align: left; margin: 10px 0; line-height: 1.75; }
.paper-question-picker {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf7;
}
.paper-question-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border-bottom: 1px dashed #e3e7e0;
  cursor: pointer;
}
.paper-question-option:last-child { border-bottom: 0; }
.paper-question-option input { margin-top: 3px; }
.paper-question-option span { display: flex; min-width: 0; flex-direction: column; }
.paper-question-option strong { font-size: 9px; color: var(--brand-deep); }
.paper-question-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  background: var(--brand-deep);
  color: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s;
}
.toast.show { opacity: 1; transform: none; }
.empty { padding: 36px; text-align: center; color: var(--muted); font-size: 10px; }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1100px) {
  .landing-hero { grid-template-columns: 1fr; }
  .landing-copy { max-width: 720px; }
  .preview-wrap { max-width: 720px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .student-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
  .student-nav { overflow-x: auto; }
}
@media (max-width: 820px) {
  .prototype-bar { padding: 0 14px; }
  .prototype-bar .back-home { display: none; }
  .teacher-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 12px; display: flex; overflow-x: auto; gap: 6px; }
  .sidebar-profile, .nav-label { display: none; }
  .side-nav { display: flex; gap: 5px; }
  .side-nav button { width: auto; white-space: nowrap; }
  .workspace-top { padding: 0 16px; }
  .teacher-content { padding: 20px 15px 40px; }
  .student-top { padding: 14px; flex-wrap: wrap; gap: 12px; }
  .student-nav { order: 3; flex-basis: 100%; }
  .student-main { padding: 20px 14px 40px; }
  .student-hero { grid-template-columns: 1fr; padding: 26px; }
  .ring-wrap { margin-top: 24px; }
  .quick-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-layout, .registration-layout, .profile-grid { grid-template-columns: 1fr; }
  .side-panel { order: -1; }
  .question-dots { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 560px) {
  .landing-nav { padding: 0 18px; }
  .landing-nav .nav-note { display: none; }
  .landing-hero { padding: 25px 18px 50px; }
  .landing h1 { font-size: 50px; }
  .preview-body { grid-template-columns: 82px 1fr; }
  .preview-main { padding: 15px; }
  .preview-cards { grid-template-columns: 1fr; }
  .preview-card:nth-child(n+2) { display: none; }
  .preview-panels { grid-template-columns: 1fr; }
  .preview-toast { right: 10px; }
  .portal-switch button { padding: 7px 9px; }
  .page-head { flex-direction: column; }
  .stat-grid, .course-grid, .exam-grid, .mode-grid, .quick-grid, .stats-grid { grid-template-columns: 1fr; }
  .student-hero h2 { font-size: 28px; }
  .student-account span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .question-dots { grid-template-columns: repeat(5, 1fr); }
}

/* Functional web application additions */
.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--brand-deep);
  color: white;
}
.teacher-shell { min-height: 100vh; }
.teacher-shell .sidebar { top: 0; height: 100vh; }
.student-shell { min-height: 100vh; }
.loading-card { text-align: center; }
.loading-card .brand-mark { margin: 0 auto 16px; width: 56px; height: 56px; border-radius: 18px; }
.spinner {
  width: 24px;
  height: 24px;
  margin: 18px auto 0;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 1.22fr) minmax(420px, .78fr);
  background: #edf0e8;
}
.login-visual {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 83% 17%, rgba(220,234,166,.15), transparent 25%),
    radial-gradient(circle at 4% 90%, rgba(102,143,164,.16), transparent 28%),
    var(--brand-deep);
  color: white;
  padding: clamp(34px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-visual::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(220,234,166,.14);
  border-radius: 50%;
  right: -250px;
  top: -190px;
}
.login-visual .brand { position: relative; z-index: 1; }
.login-hero { margin: auto 0; position: relative; z-index: 1; max-width: 650px; }
.login-hero .eyebrow { color: var(--lime); }
.login-hero h1 {
  font-family: "STSong", "SimSun", serif;
  font-size: clamp(50px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -.065em;
  margin: 24px 0;
  font-weight: 700;
}
.login-hero h1 em { font-style: normal; color: var(--lime); }
.login-hero > p { max-width: 560px; color: rgba(255,255,255,.56); line-height: 1.9; font-size: 13px; }
.login-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; }
.login-feature {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
}
.login-feature .icon { color: var(--lime); margin-bottom: 18px; }
.login-feature strong { display: block; font-size: 11px; margin-bottom: 6px; }
.login-feature small { color: rgba(255,255,255,.42); font-size: 8px; line-height: 1.6; }
.login-foot { color: rgba(255,255,255,.3); font-size: 9px; position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; }

.login-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background:
    radial-gradient(circle at 100% 0%, rgba(220,234,166,.38), transparent 33%),
    #f4f3ec;
}
.login-card { width: min(430px, 100%); }
.login-card h2 { font-family: "STSong", "SimSun", serif; font-size: 32px; letter-spacing: -.045em; margin: 0 0 8px; }
.login-card > p { color: var(--muted); line-height: 1.7; margin: 0 0 25px; font-size: 11px; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #e9ece5; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.login-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 10px; cursor: pointer; font-size: 10px; }
.login-tabs button.active { background: white; color: var(--ink); font-weight: 800; box-shadow: 0 4px 12px rgba(23,49,43,.06); }
.login-form { display: grid; gap: 14px; }
.login-form .field label { color: var(--ink-2); }
.login-form .field input { min-height: 46px; font-size: 11px; background: rgba(255,255,255,.75); }
.login-form .btn { min-height: 46px; font-size: 11px; margin-top: 4px; }
.login-error { min-height: 18px; color: var(--red); font-size: 9px; }
.demo-accounts { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.demo-accounts > span { color: var(--muted); font-size: 9px; }
.account-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.account-chip { border: 1px solid var(--line); background: white; color: var(--ink-2); border-radius: 8px; padding: 7px 9px; cursor: pointer; font-size: 9px; }
.account-chip:hover { border-color: var(--brand); color: var(--brand); }
.demo-banner {
  background: #eef3db;
  color: #61711e;
  border: 1px solid #dde6ba;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 9px;
  line-height: 1.6;
  margin-bottom: 17px;
}

.top-account { display: flex; align-items: center; gap: 10px; }
.top-account-copy { text-align: right; }
.top-account-copy strong { display: block; font-size: 10px; }
.top-account-copy small { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }
.top-avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 10px; }
.logout-button { border: 0; background: transparent; color: var(--muted); width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.logout-button:hover { background: #edf0e9; color: var(--red); }
.student-top .top-account-copy small { color: rgba(255,255,255,.45); }
.student-top .top-account-copy strong { color: white; }
.student-top .logout-button { color: rgba(255,255,255,.5); }
.student-top .logout-button:hover { background: rgba(255,255,255,.08); color: var(--red); }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.section-gap { margin-top: 16px; }
.toolbar .btn { flex: 0 0 auto; }
.search.wide { min-width: 310px; }
.table-empty { padding: 38px; text-align: center; color: var(--muted); font-size: 10px; }
.mono { font-family: "Cascadia Code", Consolas, monospace; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.danger { color: var(--red); }
.success { color: #32705d; }
.course-title-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.question-stem { max-width: 500px; white-space: normal; line-height: 1.55; font-weight: 650; }
.options-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option.selected { border-color: var(--brand); background: #f3f8f4; box-shadow: inset 0 0 0 1px var(--brand); }
.option-input { min-height: 42px; }
.answer-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #f2f5ef;
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.8;
}
.answer-box strong { color: var(--brand); }
.exam-unit-list { display: grid; gap: 8px; margin-top: 10px; }
.exam-course-chip {
  padding: 8px 9px;
  background: #f6f7f2;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 9px;
  line-height: 1.5;
}
.notice-list { display: grid; gap: 10px; }
.notice-link { border: 0; cursor: pointer; text-align: left; width: 100%; }
.notice-link:hover { border-color: #a4b9ae; transform: translateY(-1px); }
.registration-history { display: grid; gap: 9px; }
.registration-history .list-item { background: white; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.student-logout { margin-left: 2px; }
.mini-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.mini-title h3 { margin: 0; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-legend { display: flex; gap: 15px; color: var(--muted); font-size: 8px; }
.chart-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin-right: 5px; background: var(--brand-soft); }
.chart-legend span:last-child::before { background: var(--brand); }
.practice-question-index { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.question-card .option { user-select: none; }
.record-result-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 15px; }
.record-result-grid div { background: #f3f5ef; padding: 12px; border-radius: 10px; text-align: center; }
.record-result-grid strong { display: block; font-size: 20px; }
.record-result-grid small { color: var(--muted); font-size: 8px; }
.form-error { color: var(--red); font-size: 9px; min-height: 16px; margin-top: 8px; }
.fatal-box { max-width: 660px; margin: 40px auto; padding: 30px; background: white; border-radius: 18px; border: 1px solid var(--line); text-align: center; }
.fatal-box h2 { font-family: "STSong", "SimSun", serif; }
.fatal-box p { color: var(--muted); line-height: 1.8; }
.major-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f8f9f5;
}
.major-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--ink-2);
  padding: 6px;
  border-radius: 7px;
}
.major-check:hover { background: #eef2ea; }
.major-manager {
  display: grid;
  gap: 7px;
  max-height: 55vh;
  overflow-y: auto;
}
.major-manager-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
}
.major-manager-row > div { flex: 1; min-width: 0; }
.major-manager-row strong { display: block; font-size: 10px; }
.major-manager-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.assignment-course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}
.assignment-course-row {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: white;
  cursor: pointer;
}
.assignment-course-row:hover { border-color: #9fb5a9; }
.assignment-course-row span { min-width: 0; }
.assignment-course-row strong { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assignment-course-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }

@media (max-width: 1050px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: auto; padding: 34px; }
  .login-hero { margin: 60px 0; }
  .login-panel { min-height: auto; padding: 55px 25px; }
}
@media (max-width: 760px) {
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 26px 18px; }
  .profile-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .options-input-grid { grid-template-columns: 1fr; }
  .major-check-grid, .assignment-course-list { grid-template-columns: 1fr; }
  .top-account-copy { display: none; }
  .student-top .student-account { margin-left: auto; }
}
