/* ============================================================
   学生端 · 页面样式
   ============================================================ */
body { background: #f6f8fc; }

/* ---------------- 登录 ---------------- */
.s-login {
  min-height: 100vh; display: grid; place-items: center; padding: 30px;
  background: radial-gradient(1200px 600px at 15% 0%, #dbe7ff 0%, transparent 55%),
              radial-gradient(1000px 600px at 90% 100%, #ede4ff 0%, transparent 55%), #f6f8fc;
}
.s-login-card {
  width: 100%; max-width: 900px; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 48, 90, .13); display: grid; grid-template-columns: 1fr 1fr;
}
.s-login-left {
  padding: 44px 40px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, #2f6bf6 0%, #4f46e5 55%, #7c3aed 100%); position: relative; overflow: hidden;
}
.s-login-left::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.12); right: -110px; bottom: -100px; }
.s-login-left h1 { font-size: 30px; line-height: 1.4; font-weight: 600; margin-top: 40px; position: relative; }
.s-login-left p { font-size: 13.5px; color: rgba(255,255,255,.8); margin-top: 12px; line-height: 1.9; position: relative; }
.s-login-left .stats { display: flex; gap: 26px; margin-top: 32px; position: relative; }
.s-login-left .stats b { display: block; font-size: 22px; font-weight: 600; }
.s-login-left .stats span { font-size: 11.5px; color: rgba(255,255,255,.7); }
.s-login-right { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.s-login-right h2 { font-size: 22px; font-weight: 600; }
.s-login-right .sub { color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.s-login-right .input { height: 44px; border-radius: 11px; }
.s-login-right .btn-lg { height: 44px; margin-top: 6px; }

/* ---------------- 顶栏 ---------------- */
.s-header {
  height: 64px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.s-header-inner { max-width: 1180px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 26px; padding: 0 22px; }
.s-logo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; flex: none; }
.s-logo .mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4a7bf7, #7c5cf5); }
.s-nav { display: flex; gap: 4px; flex: 1; }
.s-nav a { padding: 7px 13px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); }
.s-nav a:hover { background: #f2f6fd; color: var(--text); }
.s-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.s-user { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 10px; cursor: pointer; flex: none; }
.s-user:hover { background: #f4f7fd; }
.s-user .n { font-size: 13px; font-weight: 500; text-align: right; line-height: 1.3; }
.s-user .n small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

.s-main { max-width: 1180px; margin: 0 auto; padding: 22px 22px 60px; }
.s-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.s-page-head h2 { font-size: 20px; font-weight: 600; }
.s-page-head .sub { font-size: 12.8px; color: var(--muted); margin-top: 3px; }

/* ---------------- 首页 ---------------- */
.hero {
  border-radius: 18px; padding: 26px 28px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2f6bf6, #5b4bf0 60%, #7c3aed);
}
.hero::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.1); right: -80px; top: -140px; }
.hero::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); right: 120px; bottom: -120px; }
.hero h3 { font-size: 23px; font-weight: 600; position: relative; }
.hero p { font-size: 13.5px; color: rgba(255,255,255,.82); margin-top: 7px; position: relative; max-width: 520px; line-height: 1.8; }
.hero .hero-stats { display: flex; gap: 34px; margin-top: 22px; position: relative; }
.hero .hero-stats b { display: block; font-size: 22px; font-weight: 600; }
.hero .hero-stats span { font-size: 11.5px; color: rgba(255,255,255,.72); }
.hero .hero-btn {
  position: absolute; right: 28px; bottom: 26px; background: rgba(255,255,255,.94); color: #2f5fe0;
  height: 38px; padding: 0 18px; border-radius: 10px; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}
.hero .hero-btn:hover { background: #fff; }

.s-section { margin-top: 22px; }
.s-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.s-section-head h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.s-section-head h3::before { content: ''; width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }
.s-section-head a { font-size: 12.5px; color: var(--muted); }
.s-section-head a:hover { color: var(--primary); }

.course-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.s-course-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; transition: all .18s; }
.s-course-card:hover { box-shadow: 0 10px 26px rgba(30,50,90,.1); transform: translateY(-2px); }
.s-course-cover { height: 100px; padding: 13px 15px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.s-course-cover .cat { font-size: 11px; background: rgba(255,255,255,.2); padding: 2px 7px; border-radius: 5px; align-self: flex-start; }
.s-course-cover .nm { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.s-course-info { padding: 12px 15px 14px; }
.s-course-info .meta { font-size: 11.8px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

.todo-list { display: flex; flex-direction: column; gap: 10px; }
.todo-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 13px; }
.todo-card:hover { border-color: #cfdcf5; box-shadow: 0 6px 18px rgba(30,50,90,.06); }
.todo-card .ico-wrap { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.todo-card .txt { flex: 1; min-width: 0; }
.todo-card .txt b { display: block; font-size: 13.6px; font-weight: 500; }
.todo-card .txt span { font-size: 12px; color: var(--muted); }
.notice-mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; display: flex; gap: 12px; align-items: flex-start; }
.notice-mini:hover { border-color: #cfdcf5; }
.notice-mini .t { flex: 1; min-width: 0; }
.notice-mini .t b { font-size: 13.4px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-mini .t span { font-size: 11.8px; color: var(--muted); }

/* ---------------- 课程详情 / 学习 ---------------- */
.learn-layout { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.player-card { background: #0f172a; border-radius: 14px; overflow: hidden; }
.player-stage {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 40%, #25324d, #0d1526 75%);
}
.player-stage .play-btn {
  width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.94); color: #1a2233;
  display: grid; place-items: center; box-shadow: 0 8px 28px rgba(0,0,0,.3); transition: .2s;
}
.player-stage .play-btn:hover { transform: scale(1.06); }
.player-stage .stage-title { position: absolute; left: 20px; bottom: 16px; font-size: 14.5px; font-weight: 500; }
.player-stage .stage-tip { position: absolute; left: 20px; top: 16px; font-size: 11.5px; color: rgba(255,255,255,.55); }
.player-bar { padding: 12px 16px; display: flex; align-items: center; gap: 14px; background: #0b1220; color: #b9c6dc; font-size: 12.5px; }
.player-bar .track { flex: 1; height: 4px; border-radius: 4px; background: #22304a; overflow: hidden; }
.player-bar .track i { display: block; height: 100%; background: linear-gradient(90deg,#4a7bf7,#8b5cf6); }
.player-info { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 13px; margin-top: 14px; }
.player-info h3 { font-size: 17px; font-weight: 600; }
.player-info .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.chapter-panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.chapter-panel .cp-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.chapter-panel .cp-body { max-height: 560px; overflow-y: auto; }
.cp-chapter { padding: 10px 16px 6px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); font-weight: 500; }
.cp-lesson { display: flex; align-items: center; gap: 9px; padding: 10px 16px; font-size: 13px; border-bottom: 1px solid #f5f8fc; }
.cp-lesson:hover { background: #fafcff; }
.cp-lesson.active { background: var(--primary-soft); color: var(--primary); }
.cp-lesson .st { width: 16px; flex: none; color: #c3cddd; }
.cp-lesson.done .st { color: var(--success); }
.cp-lesson .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-lesson .du { font-size: 11.5px; color: var(--muted); }

.note-box { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; margin-top: 14px; }
.note-item { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.8; color: var(--text-2); }
.note-item:last-child { border-bottom: none; }
.note-item .nt { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; }

/* ---------------- 考试 ---------------- */
.exam-list { display: flex; flex-direction: column; gap: 12px; }
.exam-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 17px 20px; display: flex; align-items: center; gap: 18px; }
.exam-card:hover { border-color: #cfdcf5; box-shadow: 0 6px 20px rgba(30,50,90,.06); }
.exam-card .ec-main { flex: 1; min-width: 0; }
.exam-card .ec-main b { font-size: 15px; font-weight: 500; display: block; }
.exam-card .ec-meta { display: flex; gap: 16px; font-size: 12.3px; color: var(--muted); margin-top: 7px; flex-wrap: wrap; }
.exam-card .ec-score { text-align: center; min-width: 78px; }
.exam-card .ec-score .v { font-size: 21px; font-weight: 600; line-height: 1.2; }
.exam-card .ec-score .l { font-size: 11.5px; color: var(--muted); }

.exam-shell { max-width: 1000px; margin: 0 auto; }
.exam-top {
  position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 20px; display: flex; align-items: center; gap: 16px; border-radius: 0 0 12px 12px;
}
.timer { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--primary); }
.timer.warn { color: var(--danger); }
.answer-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; position: sticky; top: 82px; }
.answer-card .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 10px; }
.answer-card .grid button { height: 32px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12.5px; background: #fff; }
.answer-card .grid button.answered { background: var(--primary); border-color: var(--primary); color: #fff; }
.answer-card .grid button.wrong { background: var(--danger-soft); border-color: #ffc4be; color: var(--danger); }

.q-block { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 20px 22px; margin-bottom: 14px; }
.q-block .qb-head { display: flex; gap: 10px; margin-bottom: 14px; }
.q-block .qb-no { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.q-block .qb-stem { font-size: 14.5px; line-height: 1.8; flex: 1; }
.opt-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 9px; cursor: pointer; transition: .15s; font-size: 13.6px; }
.opt-row:hover { border-color: #bfd0f0; background: #fafcff; }
.opt-row.sel { border-color: var(--primary); background: var(--primary-soft); }
.opt-row .k { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; flex: none; background: #fff; }
.opt-row.sel .k { background: var(--primary); border-color: var(--primary); color: #fff; }
.opt-row.correct { border-color: #9fe3c3; background: var(--success-soft); }
.opt-row.correct .k { background: var(--success); border-color: var(--success); color: #fff; }
.opt-row.wrong { border-color: #ffc4be; background: var(--danger-soft); }
.opt-row.wrong .k { background: var(--danger); border-color: var(--danger); color: #fff; }

.score-hero { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 26px; display: flex; align-items: center; gap: 26px; margin-bottom: 16px; }
.score-ring { width: 120px; height: 120px; flex: none; position: relative; }
.score-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 600; }

/* ---------------- 其他 ---------------- */
.empty-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.stat-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.mini-stat .l { font-size: 12.3px; color: var(--muted); }
.mini-stat .v { font-size: 22px; font-weight: 600; margin-top: 3px; }
.mini-stat .v small { font-size: 12px; color: var(--muted); font-weight: 400; }

.profile-hero { background: linear-gradient(120deg,#2f6bf6,#6d4ef0); border-radius: 16px; padding: 24px 26px; color: #fff; display: flex; align-items: center; gap: 18px; }
.profile-hero .av { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 22px; font-weight: 600; border: 1px solid rgba(255,255,255,.3); }
.profile-hero h3 { font-size: 20px; font-weight: 600; }
.profile-hero p { font-size: 12.8px; color: rgba(255,255,255,.8); margin-top: 3px; }

.wrong-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; margin-bottom: 12px; }
.wrong-card .wc-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.wc-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; margin-top: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .learn-layout { grid-template-columns: 1fr; }
  .s-login-card { grid-template-columns: 1fr; }
  .s-login-left { display: none; }
  .stat-line { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .s-header-inner { gap: 12px; }
  .s-nav { display: none; }
  .hero .hero-btn { position: static; margin-top: 16px; }
  .exam-card { flex-direction: column; align-items: flex-start; }
}
