:root {
  --ink: #18352f;
  --muted: #71817d;
  --paper: #f6f4ed;
  --paper-deep: #eae7dc;
  --card: rgba(255, 255, 255, 0.88);
  --green: #176b5b;
  --green-dark: #0e4f43;
  --green-soft: #e4f1ed;
  --amber: #c78635;
  --amber-soft: #fbefdd;
  --red: #ba514f;
  --red-soft: #fbeceb;
  --blue: #3e6f9e;
  --line: rgba(24, 53, 47, 0.12);
  --shadow: 0 18px 50px rgba(31, 58, 51, 0.1);
  --radius: 20px;
  --el-color-primary: #176b5b;
  --el-color-primary-light-3: #559488;
  --el-color-primary-light-5: #8bb7ae;
  --el-color-primary-light-7: #bfd8d2;
  --el-color-primary-light-8: #d6e7e3;
  --el-color-primary-light-9: #edf5f2;
  --el-color-primary-dark-2: #125649;
  --el-color-success: #4c8a66;
  --el-color-warning: #c78635;
  --el-color-danger: #ba514f;
  --el-border-radius-base: 10px;
  --el-font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(199, 134, 53, 0.1), transparent 28rem),
    radial-gradient(circle at 94% 92%, rgba(23, 107, 91, 0.1), transparent 32rem),
    var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--green);
  text-decoration: none;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
}

.boot-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: var(--green);
  font: 700 30px/1 "KaiTi", "STKaiti", serif;
  box-shadow: var(--shadow);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(420px, 0.95fr);
  overflow: hidden;
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 7vw, 96px);
  color: white;
  background:
    linear-gradient(145deg, rgba(8, 64, 54, 0.94), rgba(23, 107, 91, 0.89)),
    repeating-linear-gradient(
      -20deg,
      transparent 0 38px,
      rgba(255, 255, 255, 0.04) 39px 40px
    );
}

.login-story::after {
  content: "∑  △  x²";
  position: absolute;
  inset: auto 5% 10% auto;
  color: rgba(255, 255, 255, 0.06);
  font: 700 clamp(80px, 12vw, 180px)/1 "Times New Roman", serif;
  transform: rotate(-8deg);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.brand-seal {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
  font: 700 25px/1 "KaiTi", "STKaiti", serif;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.story-main {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.story-kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  letter-spacing: 0.22em;
}

.story-title {
  margin: 0;
  font: 600 clamp(36px, 4.6vw, 66px)/1.24 "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  letter-spacing: 0.03em;
}

.story-copy {
  margin: 26px 0 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.9;
}

.story-points {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.story-point {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
}

.login-side {
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(430px, 100%);
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-subtitle {
  margin: 0 0 32px;
  color: var(--muted);
  line-height: 1.7;
}

.login-card .el-input__wrapper {
  min-height: 48px;
  background: white;
}

.login-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-foot {
  margin: 24px 0 0;
  color: #96a19e;
  font-size: 12px;
  text-align: center;
}

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

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  color: #eaf4f1;
  background:
    linear-gradient(165deg, rgba(17, 71, 62, 0.98), rgba(10, 48, 42, 0.99)),
    var(--green-dark);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 26px;
}

.admin-brand .brand-seal {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 21px;
}

.admin-brand-name {
  font: 700 19px/1.2 "KaiTi", "STKaiti", serif;
  letter-spacing: 0.12em;
}

.admin-brand-sub {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 0.17em;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav button {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 0.2s ease;
}

.side-nav button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.side-nav button.active {
  color: white;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 3px 0 0 #e7b976;
}

.nav-glyph {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.sidebar-user {
  margin-top: auto;
  padding: 18px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user strong {
  display: block;
  font-size: 14px;
}

.sidebar-user span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 11px;
}

.sidebar-user button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  cursor: pointer;
}

.admin-workspace {
  min-width: 0;
  padding: 30px clamp(22px, 3.5vw, 54px) 48px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 26px;
}

.page-eyebrow {
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--ink);
  font: 600 30px/1.25 "KaiTi", "STKaiti", "Microsoft YaHei", serif;
}

.page-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.surface {
  border: 1px solid rgba(24, 53, 47, 0.08);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 30px rgba(31, 58, 51, 0.05);
}

.surface-pad {
  padding: 22px;
}

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

.metric-card {
  min-height: 132px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -52px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--metric-soft, var(--green-soft));
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-value {
  margin-top: 13px;
  color: var(--metric-color, var(--green));
  font: 700 34px/1 "Times New Roman", serif;
}

.metric-note {
  margin-top: 10px;
  color: #98a39f;
  font-size: 11px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

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

.card-head h3 {
  margin: 0;
  font-size: 16px;
}

.card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.soft-empty {
  min-height: 170px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #99a6a2;
  text-align: center;
}

.soft-empty-mark {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 15px;
  color: var(--green);
  background: var(--green-soft);
  font: 700 22px/1 "KaiTi", serif;
}

.attempt-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.attempt-line:last-child {
  border-bottom: 0;
}

.attempt-line strong {
  display: block;
  max-width: 390px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attempt-line span {
  color: var(--muted);
  font-size: 11px;
}

.score-badge {
  min-width: 54px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--green-soft);
  font: 700 16px/1 "Times New Roman", serif;
  text-align: center;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 14px;
}

.filter-bar .grow {
  flex: 1;
  min-width: 190px;
}

.data-surface {
  overflow: hidden;
}

.data-surface .el-table {
  --el-table-header-bg-color: #f4f5ef;
  --el-table-row-hover-bg-color: #f7faf7;
  --el-table-border-color: rgba(24, 53, 47, 0.07);
  --el-table-text-color: var(--ink);
  --el-table-header-text-color: #687b75;
}

.stem-cell {
  display: -webkit-box;
  max-width: 600px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-pills {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  color: #526a63;
  background: #edf1eb;
  font-size: 10px;
  line-height: 1.2;
}

.tag-pill.green {
  color: var(--green-dark);
  background: var(--green-soft);
}

.tag-pill.amber {
  color: #8e5b1c;
  background: var(--amber-soft);
}

.question-options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.option-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px;
}

.option-letter {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 700;
}

.dialog-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.dialog-form-grid .span-2 {
  grid-column: span 2;
}

.option-editor {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
}

.option-editor-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.option-editor-row span {
  display: grid;
  place-items: center;
  font-weight: 700;
}

.assembly-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 140px 150px minmax(180px, 1fr);
  gap: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.assembly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(350px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.assembly-panel {
  min-width: 0;
}

.assembly-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}

.assembly-panel-head strong {
  font-size: 14px;
}

.assembly-panel-head span {
  color: var(--muted);
  font-size: 11px;
}

.assembly-list {
  max-height: calc(100vh - 330px);
  min-height: 410px;
  overflow-y: auto;
  padding: 12px;
}

.bank-question {
  padding: 14px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
}

.bank-question:last-child {
  margin-bottom: 0;
}

.bank-question-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bank-question-stem {
  color: #314a44;
  font-size: 12px;
  line-height: 1.7;
}

.bank-question-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.paper-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.paper-order {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font: 700 11px/1 "Times New Roman", serif;
}

.paper-item-controls {
  display: flex;
  gap: 2px;
}

.assembly-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.ai-panel {
  padding: 22px;
}

.ai-note {
  padding: 13px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #6f5a3b;
  background: var(--amber-soft);
  font-size: 12px;
  line-height: 1.7;
}

.draft-card {
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.draft-card:last-child {
  margin-bottom: 0;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 18px;
}

.trend-chart {
  height: 220px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 24px 8px 0;
  border-bottom: 1px solid var(--line);
}

.trend-bar-wrap {
  flex: 1;
  min-width: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.trend-bar {
  width: min(34px, 80%);
  min-height: 6px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #3c927f, #176b5b);
  transition: height 0.35s ease;
}

.trend-label {
  color: #95a29e;
  font-size: 9px;
  white-space: nowrap;
}

.weak-tag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 56px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.weak-tag-row:last-child {
  border-bottom: 0;
}

.weak-tag-name {
  font-size: 13px;
  font-weight: 700;
}

.weak-tag-count {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.settings-block {
  padding: 24px;
}

.settings-block h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.settings-block > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.user-row:last-child {
  border-bottom: 0;
}

.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 700;
}

.student-shell {
  min-height: 100vh;
  padding-bottom: 92px;
}

.student-top {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 max(20px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 237, 0.88);
  backdrop-filter: blur(14px);
}

.student-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.student-brand .brand-seal {
  width: 38px;
  height: 38px;
  border: 0;
  color: white;
  background: var(--green);
  font-size: 20px;
}

.student-brand strong {
  display: block;
  font: 700 18px/1.2 "KaiTi", serif;
  letter-spacing: 0.12em;
}

.student-brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.student-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.student-content {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 30px 20px 56px;
}

.student-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.student-welcome h1 {
  margin: 0;
  font: 600 clamp(28px, 5vw, 42px)/1.25 "KaiTi", "STKaiti", serif;
}

.student-welcome p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.student-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.student-metric {
  padding: 18px;
  border-radius: 17px;
  background: white;
  box-shadow: 0 8px 25px rgba(31, 58, 51, 0.05);
}

.student-metric span {
  color: var(--muted);
  font-size: 11px;
}

.student-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font: 700 28px/1 "Times New Roman", serif;
}

.student-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 40px);
  margin-top: 18px;
  border-radius: 25px;
  color: white;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.13), transparent 16rem),
    linear-gradient(135deg, #176b5b, #0d4d42);
  box-shadow: 0 18px 45px rgba(17, 83, 70, 0.18);
}

.student-hero::after {
  content: "A+";
  position: absolute;
  right: 35px;
  bottom: -24px;
  color: rgba(255, 255, 255, 0.06);
  font: italic 700 130px/1 Georgia, serif;
}

.student-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font: 600 clamp(24px, 4vw, 34px)/1.35 "KaiTi", serif;
}

.student-hero p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 12px 0 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.student-hero button {
  position: relative;
  z-index: 1;
  min-width: 128px;
  height: 42px;
  padding: 0 18px;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.student-section {
  margin-top: 26px;
}

.student-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
}

.student-section-head h2 {
  margin: 0;
  font-size: 18px;
}

.student-section-head span {
  color: var(--muted);
  font-size: 12px;
}

.paper-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.paper-card {
  padding: 19px;
  border: 1px solid rgba(24, 53, 47, 0.08);
  border-radius: 18px;
  background: white;
  box-shadow: 0 7px 24px rgba(31, 58, 51, 0.04);
}

.paper-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.paper-kind {
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
}

.paper-kind.exam {
  color: #8a5a1b;
  background: var(--amber-soft);
}

.paper-card h3 {
  margin: 14px 0 7px;
  font-size: 16px;
  line-height: 1.45;
}

.paper-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.paper-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.paper-meta {
  color: #8d9b97;
  font-size: 11px;
}

.weak-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.weak-chip {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #4f665f;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.weak-chip strong {
  margin-left: 6px;
  color: var(--red);
}

.student-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(620px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px;
  border: 1px solid rgba(24, 53, 47, 0.1);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 50px rgba(31, 58, 51, 0.16);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.student-nav button {
  height: 50px;
  border: 0;
  border-radius: 15px;
  color: #82918d;
  background: transparent;
  cursor: pointer;
}

.student-nav button strong {
  display: block;
  font-size: 12px;
}

.student-nav button span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  opacity: 0.68;
}

.student-nav button.active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.exam-page {
  min-height: 100vh;
  padding: 0 0 110px;
  background: var(--paper);
}

.exam-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 10px max(16px, calc((100vw - 880px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 237, 0.94);
  backdrop-filter: blur(14px);
}

.exam-title {
  min-width: 0;
}

.exam-title strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.exam-timer {
  padding: 9px 13px;
  border-radius: 11px;
  color: var(--green-dark);
  background: var(--green-soft);
  font: 700 17px/1 "Consolas", monospace;
}

.exam-timer.danger {
  color: #8f3634;
  background: var(--red-soft);
}

.exam-wrap {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 22px 16px;
}

.question-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.question-nav::-webkit-scrollbar {
  display: none;
}

.question-dot {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: white;
  cursor: pointer;
  font-size: 11px;
}

.question-dot.answered {
  border-color: #b9d8d1;
  color: var(--green-dark);
  background: var(--green-soft);
}

.question-dot.active {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.exam-question {
  padding: clamp(19px, 4vw, 30px);
}

.question-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.question-number {
  color: var(--amber);
  font: 700 13px/1 "Times New Roman", serif;
  letter-spacing: 0.08em;
}

.exam-stem {
  color: #203d36;
  font-size: 16px;
  line-height: 2;
}

.answer-area {
  margin-top: 25px;
}

.answer-choice {
  display: grid;
  gap: 9px;
}

.answer-choice .el-radio,
.answer-choice .el-checkbox {
  width: 100%;
  min-height: 45px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  transition: 0.16s ease;
}

.answer-choice .el-radio.is-checked,
.answer-choice .el-checkbox.is-checked {
  border-color: #78aa9e;
  background: var(--green-soft);
}

.answer-choice .el-radio__label,
.answer-choice .el-checkbox__label {
  color: #304943;
  white-space: normal;
  line-height: 1.6;
}

.answer-fill input {
  height: 50px;
}

.exam-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.exam-footer-center {
  display: flex;
  gap: 8px;
}

.result-hero {
  padding: 30px;
  margin-bottom: 16px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 17px 45px rgba(21, 92, 78, 0.18);
  text-align: center;
}

.result-score {
  font: 700 58px/1 "Times New Roman", serif;
}

.result-score small {
  color: rgba(255, 255, 255, 0.55);
  font: 400 18px/1 "Microsoft YaHei", sans-serif;
}

.result-hero h2 {
  margin: 13px 0 6px;
  font: 600 24px/1.4 "KaiTi", serif;
}

.result-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.result-question {
  padding: 20px;
  margin-bottom: 11px;
  border-left: 4px solid #a8b5b0;
  border-radius: 14px;
  background: white;
}

.result-question.correct {
  border-left-color: #55a077;
}

.result-question.wrong {
  border-left-color: var(--red);
}

.result-answer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f6f7f3;
  font-size: 12px;
}

.explanation-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  color: #5e6c68;
  background: #f7f7f2;
  font-size: 12px;
  line-height: 1.8;
}

.wrong-list {
  display: grid;
  gap: 11px;
}

.wrong-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.wrong-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wrong-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.wrong-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.attention-button {
  border: 0;
  color: #a3702d;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.attention-button.active {
  color: var(--red);
  font-weight: 700;
}

.student-tabs {
  margin-bottom: 16px;
}

.student-empty {
  padding: 55px 20px;
  color: var(--muted);
  text-align: center;
}

.student-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.surface,
.metric-card,
.paper-card,
.exam-question,
.wrong-card {
  animation: floatIn 0.35s ease both;
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assembly-head {
    grid-template-columns: minmax(220px, 1.4fr) 130px 140px;
  }

  .assembly-head > :last-child {
    grid-column: span 3;
  }

  .assembly-grid,
  .ai-layout,
  .analytics-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .assembly-list {
    max-height: 460px;
  }
}

@media (max-width: 820px) {
  .login-page {
    display: block;
  }

  .login-story {
    min-height: 310px;
    padding: 28px 24px;
    justify-content: center;
    gap: 42px;
  }

  .story-title {
    font-size: 35px;
  }

  .story-copy,
  .story-points {
    display: none;
  }

  .login-side {
    padding: 18px 16px 36px;
  }

  .login-card {
    padding: 26px 22px;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px 16px;
  }

  .admin-brand {
    padding: 0 4px 12px;
  }

  .side-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }

  .side-nav button {
    flex: 0 0 auto;
    width: auto;
    height: 38px;
    padding: 0 11px;
    font-size: 11px;
  }

  .nav-glyph {
    display: none;
  }

  .sidebar-user {
    display: none;
  }

  .admin-workspace {
    padding: 22px 14px 90px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title {
    font-size: 27px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    min-height: 112px;
    padding: 17px;
  }

  .metric-value {
    font-size: 28px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .assembly-head {
    grid-template-columns: 1fr;
  }

  .assembly-head > :last-child {
    grid-column: auto;
  }

  .student-top {
    padding: 0 16px;
  }

  .student-content {
    padding: 22px 14px 38px;
  }

  .student-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .paper-cards {
    grid-template-columns: 1fr;
  }

  .student-brand span,
  .student-user > span {
    display: none;
  }

  .result-answer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .login-story {
    min-height: 245px;
  }

  .story-kicker {
    display: none;
  }

  .story-title {
    font-size: 30px;
  }

  .brand-name {
    font-size: 19px;
  }

  .metric-card {
    padding: 15px;
  }

  .metric-label {
    font-size: 10px;
  }

  .metric-value {
    font-size: 25px;
  }

  .dialog-form-grid {
    grid-template-columns: 1fr;
  }

  .dialog-form-grid .span-2 {
    grid-column: auto;
  }

  .student-top {
    height: 66px;
  }

  .student-content {
    padding-top: 18px;
  }

  .student-hero {
    padding: 24px 20px;
  }

  .student-hero::after {
    display: none;
  }

  .exam-header {
    min-height: 62px;
  }

  .exam-wrap {
    padding: 15px 10px;
  }

  .question-nav {
    margin-bottom: 8px;
  }

  .exam-question {
    border-radius: 16px;
  }

  .exam-stem {
    font-size: 15px;
  }

  .exam-footer {
    flex-wrap: wrap;
  }

  .exam-footer-center {
    order: -1;
    width: 100%;
  }

  .exam-footer-center button {
    flex: 1;
  }

  .student-nav button {
    height: 47px;
  }

  .result-hero {
    padding: 25px 18px;
  }
}
