:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f3f6fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f3f6fb; }
button, input { font: inherit; }
button { cursor: pointer; }

.student-header {
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1b33;
  color: #fff;
}

.student-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.student-brand span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #2e72e8;
  font-weight: 900;
}

.student-account { display: flex; align-items: center; gap: 12px; }
.student-account button, .student-section-head button, .student-back {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 13px;
  background: #fff;
  color: #334155;
}

main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }
.student-login { min-height: calc(100vh - 124px); display: grid; place-items: center; }
.student-login-card, .student-panel {
  border: 1px solid #dde5f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 27, 51, .08);
}

.student-login-card { width: min(440px, 100%); padding: 34px; }
.student-login-card h1 { margin: 5px 0 8px; }
.student-login-card > p:not(.eyebrow) { color: #64748b; line-height: 1.7; }
.student-login-card label { display: grid; gap: 7px; margin-top: 16px; font-weight: 700; }
.student-login-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
}

.student-login-card button, .student-primary-link {
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 11px;
  padding: 13px 16px;
  background: #1769e0;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.student-message { min-height: 24px; margin-bottom: 0; color: #b42318 !important; }
.eyebrow { margin: 0; color: #1769e0; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.student-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f1b33, #214c91);
  color: #fff;
}

.student-hero .eyebrow { color: #8ec5ff; }
.student-hero h1 { margin: 7px 0; }
.student-hero p { margin: 0; color: #dce9ff; }
.student-stat { min-width: 150px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.12); }
.student-stat span, .student-stat strong { display: block; }
.student-stat strong { margin-top: 6px; font-size: 34px; }
.student-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 20px; }
.student-side-stack { display: grid; gap: 20px; align-content: start; }
.student-panel { padding: 24px; }
.student-panel h2 { margin-top: 0; }
.student-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.student-section-head h2, .student-section-head p { margin: 0; }
.student-section-head p, .student-hint { margin-top: 6px; color: #64748b; line-height: 1.6; }
.student-course-list { display: grid; gap: 12px; margin-top: 20px; }
.student-course-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 17px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.student-course-card h3, .student-course-card p { margin: 0; }
.student-course-card p { margin-top: 6px; color: #64748b; }
.student-course-card button { align-self: center; border: 0; border-radius: 9px; padding: 10px 14px; background: #1769e0; color: #fff; }
.student-secondary-action, .student-primary-button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 800;
}
.student-secondary-action { background: #eaf2ff; color: #155bbd; }
.student-primary-button { background: #1769e0; color: #fff; }
.student-empty { padding: 26px; text-align: center; color: #64748b; }
.student-course-detail, .student-subview { max-width: 860px; margin: 0 auto; }
.student-back { margin-bottom: 14px; }
.student-course-detail h1 { margin: 7px 0; }
.student-course-detail pre {
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.student-primary-link { display: inline-block; width: auto; }
.student-record-list { display: grid; gap: 12px; margin-top: 20px; }
.student-record-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.student-record-card h3, .student-record-card p { margin: 0; }
.student-record-card p { margin-top: 6px; color: #64748b; line-height: 1.6; }
.student-growth-summary { padding: 16px; border-radius: 12px; background: #edf5ff; color: #214c91; line-height: 1.7; }
.student-growth-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.student-growth-stat { padding: 14px; border-radius: 12px; background: #f8fafc; }
.student-growth-stat span, .student-growth-stat strong { display: block; }
.student-growth-stat span { color: #64748b; font-size: 13px; }
.student-growth-stat strong { margin-top: 5px; font-size: 24px; }
.student-exam-list { display: grid; gap: 18px; margin-top: 20px; }
.student-question { padding: 18px; border: 1px solid #e2e8f0; border-radius: 14px; }
.student-question h3 { margin: 0 0 13px; font-size: 16px; line-height: 1.6; }
.student-option { display: flex; gap: 10px; padding: 9px 0; color: #334155; }
.student-exam-result { margin-top: 20px; padding: 20px; border-radius: 14px; background: #f8fafc; }
.student-answer-review { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dbe3ee; }
.student-answer-review p { margin: 5px 0; line-height: 1.6; }

@media (max-width: 760px) {
  .student-header { padding: 0 16px; }
  main { padding: 18px 14px 40px; }
  .student-hero, .student-section-head { align-items: stretch; flex-direction: column; }
  .student-grid { grid-template-columns: 1fr; }
  .student-growth-stats { grid-template-columns: repeat(2, 1fr); }
  .student-course-card { grid-template-columns: 1fr; }
}
