:root {
  --paper: #f4ecdc;
  --paper-light: #fffaf0;
  --ink: #30251f;
  --muted: #978678;
  --line: rgba(105, 71, 49, 0.12);
  --red: #9f292b;
  --red-deep: #651719;
  --gold: #c39751;
  --green: #3f8968;
  --shadow: 0 16px 42px rgba(74, 41, 24, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 1024px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(198, 151, 76, 0.12), transparent 26%),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(159, 41, 43, 0.18); outline-offset: 2px; }

.student-app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: 252px;
  padding: 28px 22px 22px;
  flex-direction: column;
  color: #fff6e7;
  background:
    linear-gradient(rgba(255, 238, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 238, 212, 0.035) 1px, transparent 1px),
    linear-gradient(165deg, #4e1114, #761c1f 52%, #94282a);
  background-size: 31px 31px, 31px 31px, auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff6e7;
  text-decoration: none;
}
.brand-logo {
  display: grid;
  width: 47px;
  height: 47px;
  padding: 5px;
  place-items: center;
  border-radius: 13px;
  background: #fffaf0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-family: "Songti SC", serif; font-size: 18px; letter-spacing: 2px; }
.brand-copy small { margin-top: 4px; color: rgba(255, 241, 219, .55); font-size: 8px; letter-spacing: 1px; }

.sidebar-school {
  display: flex;
  margin: 30px 3px 23px;
  padding: 14px 0 18px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-school span { color: rgba(255,242,220,.38); font-family: Georgia, serif; font-size: 7px; letter-spacing: 1px; }
.sidebar-school strong { font-family: "Songti SC", serif; font-size: 14px; letter-spacing: 1px; }
.sidebar-school small { color: rgba(255,242,220,.55); font-size: 8px; }

.side-nav { display: grid; min-height: 0; flex: 1 1 auto; gap: 4px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: rgba(225,186,124,.55) transparent; }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-thumb { border-radius: 5px; background: rgba(225,186,124,.42); }
.side-nav button {
  position: relative;
  display: flex;
  height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: #bda99a;
  background: transparent;
  text-align: left;
  transition: .15s ease;
}
.side-nav button:hover { color: #fff6e8; background: rgba(255,255,255,.05); }
.side-nav button.active { color: #fff8ed; background: rgba(255,255,255,.1); }
.side-nav button.active::before { position: absolute; left: -22px; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: #e4bc7c; content: ""; }
.side-nav button i { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(255,240,217,.14); border-radius: 7px; color: #e1c49b; font-family: "Songti SC", serif; font-size: 12px; font-style: normal; }
.side-nav button span { flex: 1; font-size: 12px; }
.side-nav button b { display: grid; min-width: 22px; height: 20px; place-items: center; border-radius: 10px; color: #f6d39b; background: rgba(227,187,123,.12); font-size: 8px; font-weight: 500; }

.sidebar-goal { flex: 0 0 auto; margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.04); }
.sidebar-goal > div:first-child { display: flex; justify-content: space-between; color: #b9a79a; font-size: 9px; }
.sidebar-goal > div:first-child strong { color: #f0ce97; }
.goal-track { height: 5px; margin: 11px 0 8px; border-radius: 6px; background: rgba(255,255,255,.1); }
.goal-track i { display: block; width: 38%; height: 100%; border-radius: inherit; background: #dfb56f; }
.sidebar-goal small { color: #8e766a; font-size: 8px; }
.sidebar-goal small b { color: #bfa890; }

.student-mini { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-top: 8px; padding: 10px 4px 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); color: #fff4e4; background: transparent; text-align: left; }
.mini-avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; color: var(--red); background: var(--paper-light); font-family: "Songti SC", serif; font-weight: 700; }
.student-mini > span:nth-child(2) { min-width: 0; flex: 1; }
.student-mini strong, .student-mini small { display: block; }
.student-mini strong { font-size: 10px; }
.student-mini small { overflow: hidden; margin-top: 3px; color: #8f786c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.student-mini > i { color: #8b7469; font-style: normal; }

.main { width: calc(100% - 252px); margin-left: 252px; padding: 31px 45px 52px; }
.topbar { display: flex; max-width: 1230px; align-items: center; justify-content: space-between; margin: 0 auto 28px; gap: 24px; }
.eyebrow { margin: 0; color: #a18f80; font-size: 9px; font-weight: 700; letter-spacing: 2px; }
.topbar h1 { margin: 7px 0 0; font-family: "Songti SC", serif; font-size: 30px; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.top-search { display: flex; width: 250px; height: 42px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,250,241,.82); }
.top-search > span { color: #9c8b7d; font-size: 20px; }
.top-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 10px; }
.notice-button { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-light); color: #837266; font-size: 19px; }
.notice-button i { position: absolute; top: 10px; right: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.sync-badge { display: inline-flex; height: 34px; align-items: center; gap: 7px; padding: 0 10px; border-radius: 18px; color: #557d69; background: rgba(63,137,104,.07); font-size: 8px; }
.sync-badge i { width: 6px; height: 6px; border-radius: 50%; background: #4da179; box-shadow: 0 0 0 4px rgba(77,161,121,.1); }

.view { display: none; max-width: 1230px; margin: 0 auto; animation: fade-in .25s ease both; }
.view.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(230px, .72fr); gap: 15px; }
.hero-card { position: relative; overflow: hidden; min-height: 310px; padding: 42px; border-radius: 25px; color: #fff7e9; background: radial-gradient(circle at 88% 18%, rgba(239,197,126,.17), transparent 24%), linear-gradient(135deg,#4f1013,#8f2225 63%,#a93030); box-shadow: 0 24px 48px rgba(100,26,28,.16); }
.hero-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,239,213,.5) 1px,transparent 1px),linear-gradient(90deg,rgba(255,239,213,.5) 1px,transparent 1px); background-size: 39px 39px; }
.hero-card::after { position: absolute; right: -80px; bottom: -130px; width: 380px; height: 380px; border: 1px solid rgba(255,240,216,.11); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255,240,216,.025); content: ""; }
.hero-copy { position: relative; z-index: 2; max-width: 500px; }
.hero-pill { display: inline-flex; min-height: 25px; align-items: center; padding: 0 11px; border-radius: 20px; color: #f2d9ba; background: rgba(255,255,255,.1); font-size: 9px; }
.hero-copy h2 { margin: 19px 0 12px; font-family: "Songti SC", serif; font-size: 42px; font-weight: 500; line-height: 1.35; letter-spacing: 3px; }
.hero-copy p { max-width: 440px; margin: 0; color: rgba(255,242,221,.7); font-size: 11px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 27px; }
.light-button { display: inline-flex; height: 40px; align-items: center; gap: 17px; padding: 0 16px; border: 0; border-radius: 10px; color: var(--red-deep); background: #fff7e9; font-size: 10px; font-weight: 600; }
.ghost-light { border: 0; color: rgba(255,244,228,.72); background: transparent; font-size: 9px; }
.hero-piece { position: absolute; right: 45px; bottom: 36px; display: grid; width: 100px; height: 100px; place-items: center; border: 3px solid #efd29f; border-radius: 50%; color: var(--red); background: radial-gradient(circle at 35% 28%,#fffdf8,#e8d4b2); box-shadow: 0 8px 0 rgba(75,9,11,.22),inset 0 0 0 6px rgba(159,42,44,.08); font-family: "Songti SC", serif; font-size: 38px; font-weight: 700; transform: rotate(6deg); }
.hero-piece.small { right: 125px; bottom: 12px; width: 49px; height: 49px; opacity: .35; font-size: 18px; transform: rotate(-9deg); }
.streak-card { display: flex; min-height: 310px; padding: 26px; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-light); box-shadow: var(--shadow); }
.streak-title { display: flex; align-items: center; gap: 8px; color: #716055; font-size: 10px; }
.streak-title span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #d47a39; background: #fff0df; }
.streak-number { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 4px; }
.streak-number strong { font-family: Georgia, serif; font-size: 47px; font-weight: 500; }
.streak-number small { color: var(--muted); font-size: 10px; }
.streak-card > p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.week-days { display: flex; gap: 6px; margin-top: auto; }
.week-days span { display: grid; flex: 1; justify-items: center; gap: 7px; color: #a29182; font-size: 7px; }
.week-days i { display: block; width: 100%; height: 6px; border-radius: 5px; background: #eee5d8; }
.week-days .complete i { background: #6875e6; }
.week-days .today { color: var(--red); font-weight: 600; }
.week-days .today i { background: #d5b0a4; }

.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin: 33px 0 15px; gap: 20px; }
.section-title-row h2 { margin: 0; font-family: "Songti SC", serif; font-size: 20px; }
.section-title-row p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.text-button { padding: 5px 0; border: 0; color: #867568; background: transparent; font-size: 9px; }
.text-button:hover { color: var(--red); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card { min-height: 126px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,250,241,.85); }
.stat-label { display: flex; justify-content: space-between; color: #827164; font-size: 9px; }
.stat-label i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; font-size: 8px; font-style: normal; }
.stat-label .red { color: var(--red); background: rgba(159,41,43,.08); }
.stat-label .green { color: var(--green); background: rgba(63,137,104,.08); }
.stat-label .coral { color: #dc6f66; background: #fff0ee; }
.stat-label .gold { color: #b87e2a; background: #fff5df; }
.stat-card > strong { display: block; margin: 15px 0 7px; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.stat-card > strong small { color: #9a897b; font-family: "PingFang SC", sans-serif; font-size: 9px; }
.stat-card > p { margin: 0; color: #9a897b; font-size: 8px; }
.mini-bars { display: flex; height: 20px; align-items: flex-end; gap: 4px; }
.mini-bars i { flex: 1; height: 45%; border-radius: 3px 3px 0 0; background: #eee5d8; }
.mini-bars i:nth-child(2), .mini-bars i:nth-child(4), .mini-bars i:nth-child(5) { height: 75%; background: #b83a3b; }

.home-grid { display: grid; grid-template-columns: 1.45fr .9fr; gap: 14px; margin-top: 14px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,250,241,.88); box-shadow: var(--shadow); }
.task-panel, .notice-panel { padding: 21px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.panel-head h3 { margin: 0; font-family: "Songti SC", serif; font-size: 17px; }
.tag { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border-radius: 11px; color: #a32c2e; background: rgba(159,41,43,.07); font-size: 7px; }
.task-list { display: grid; margin-top: 10px; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(105,71,49,.08); }
.task-row:last-child { border: 0; }
.task-mark { display: grid; width: 35px; height: 35px; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #fff5e6; background: var(--red); font-family: "Songti SC", serif; }
.task-row > div { min-width: 0; flex: 1; }
.task-row strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-row p { margin: 4px 0 0; color: #9a897b; font-size: 7px; }
.task-row > b { color: var(--red); font-size: 8px; font-weight: 500; }
.notice-item-mini { display: flex; gap: 9px; padding: 12px 0; border-bottom: 1px solid rgba(105,71,49,.08); }
.notice-item-mini:last-child { border: 0; }
.notice-dot { width: 6px; height: 6px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(159,41,43,.07); }
.notice-item-mini strong { display: -webkit-box; overflow: hidden; font-size: 9px; font-weight: 500; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notice-item-mini small { display: block; margin-top: 5px; color: #9a897b; font-size: 7px; }
.course-title-row { margin-top: 29px; }
.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.course-card { position: relative; overflow: hidden; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-light); text-align: left; }
.course-card::after { position: absolute; right: -30px; bottom: -35px; width: 105px; height: 105px; border: 1px solid rgba(159,41,43,.07); border-radius: 50%; content: ""; }
.course-card-top { display: flex; align-items: center; justify-content: space-between; }
.course-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: #fff5e6; background: var(--red); font-family: "Songti SC", serif; }
.course-card:nth-child(2) .course-icon { background: #3d302b; }
.course-card:nth-child(3) .course-icon { background: var(--gold); }
.course-card h3 { margin: 14px 0 5px; font-size: 12px; }
.course-card p { margin: 0; color: #978678; font-size: 8px; }
.course-progress { height: 5px; margin: 15px 0 7px; border-radius: 5px; background: #eee5d8; }
.course-progress i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.course-foot { display: flex; justify-content: space-between; color: #9a897b; font-size: 7px; }
.course-foot b { color: var(--red); font-weight: 500; }
.course-card.locked { background: linear-gradient(145deg,#fff7e5,#f2e7d4); }
.course-card.locked .course-icon { color: #856744; background: #3b3029; }
.course-card.locked .course-foot b { color: #9f6c24; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 20px; }
.page-head h2 { margin: 7px 0 4px; font-family: "Songti SC", serif; font-size: 28px; }
.page-head p { margin: 0; color: var(--muted); font-size: 10px; }
.primary-button, .secondary-button { min-height: 41px; padding: 0 17px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.primary-button { border: 1px solid var(--red-deep); color: #fff7e8; background: var(--red); box-shadow: 0 8px 18px rgba(128,28,31,.12); }
.secondary-button { border: 1px solid var(--line); color: #746357; background: var(--paper-light); }
.toolbar { display: flex; gap: 9px; margin: 20px 0 13px; }
.practice-mode-actions { display: flex; gap: 8px; }
.bank-scope-tabs { display: flex; gap: 7px; margin-top: 14px; }
.bank-scope-tabs button { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: #806f62; background: var(--paper-light); font-size: 9px; }
.bank-scope-tabs button.active { color: #fff5e6; border-color: var(--red); background: var(--red); }
.search-box { display: flex; width: 300px; height: 39px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-light); }
.search-box span { color: #9b8b7d; font-size: 18px; }
.search-box input { min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; background: transparent; font-size: 9px; }
.toolbar select { height: 39px; padding: 0 25px 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #746357; background: var(--paper-light); font-size: 9px; }
.question-list-panel { overflow: hidden; }
.list-meta { display: flex; justify-content: space-between; padding: 16px 19px; border-bottom: 1px solid var(--line); color: #5c493e; font-size: 10px; font-weight: 600; }
.list-meta b { color: #9a897b; font-size: 8px; font-weight: 400; }
.question-list { display: grid; }
.question-row { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 14px; padding: 16px 19px; border-top: 1px solid rgba(105,71,49,.07); background: transparent; text-align: left; }
.question-row:hover { background: rgba(159,41,43,.025); }
.question-number { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #6875d8; background: rgba(86,102,232,.07); font-family: Georgia, serif; font-size: 10px; }
.question-row strong { display: block; color: #49382f; font-size: 10px; font-weight: 500; }
.question-row small { display: block; margin-top: 5px; color: #9b8a7b; font-size: 7px; }
.question-row > span:last-child { color: #ac9b8d; font-size: 17px; }
.empty-state { padding: 55px 20px; border: 1px dashed var(--line); border-radius: 15px; color: #998879; background: rgba(255,250,241,.6); text-align: center; font-size: 10px; }

.practice-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: #978678; font-size: 9px; }
.practice-layout { display: grid; grid-template-columns: minmax(0,1fr) 245px; align-items: start; gap: 14px; }
.question-panel { min-height: 540px; padding: 30px; }
.question-meta { display: flex; align-items: center; gap: 10px; color: #9b8a7b; font-size: 8px; }
.practice-progress { height: 4px; margin: 17px 0 27px; border-radius: 4px; background: #eee5d8; }
.practice-progress i { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: var(--red); }
.question-panel h2 { max-width: 780px; min-height: 66px; margin: 0 0 23px; font-family: "Songti SC", serif; font-size: 24px; font-weight: 600; line-height: 1.6; }
.option-list { display: grid; gap: 10px; }
.option { display: flex; min-height: 54px; align-items: center; gap: 13px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; color: #4e3d33; background: #fffdf8; text-align: left; }
.option b { display: grid; width: 28px; height: 28px; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #938275; background: #f1e9dd; font-family: Georgia, serif; font-size: 10px; font-weight: 500; }
.option.selected { border-color: rgba(159,41,43,.42); background: rgba(159,41,43,.045); }
.option.selected b, .option.correct b { color: #fff; background: var(--red); }
.option.correct { border-color: rgba(63,137,104,.45); background: rgba(63,137,104,.06); }
.option.correct b { background: var(--green); }
.option.incorrect { border-color: rgba(205,75,67,.4); background: rgba(205,75,67,.06); }
.option.incorrect b { background: #cb4c43; }
.option span { font-size: 10px; }
.answer-feedback { margin-top: 16px; padding: 15px; border-radius: 11px; background: rgba(63,137,104,.08); }
.answer-feedback.wrong { background: rgba(205,75,67,.07); }
.answer-feedback > div { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 10px; }
.answer-feedback.wrong > div { color: #b9423e; }
.answer-feedback b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 9px; }
.answer-feedback p { margin: 8px 0 0 28px; color: #68756c; font-size: 9px; line-height: 1.75; }
.practice-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.practice-side { display: grid; gap: 13px; }
.practice-side .panel { padding: 20px; }
.practice-side h3 { margin: 5px 0 14px; font-family: "Songti SC", serif; font-size: 16px; }
.session-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(105,71,49,.08); color: #8d7c6e; font-size: 8px; }
.session-row strong { color: #4f3e34; }
.tip-card { padding: 18px; border-radius: 15px; color: #fff5e7; background: #302622; }
.tip-card span { color: #9d8878; font-size: 8px; }
.tip-card p { margin: 8px 0 0; color: #d1c4b7; font-size: 9px; line-height: 1.8; }

.exam-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.exam-card { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper-light); }
.exam-card .exam-status { display: flex; justify-content: space-between; color: #9a897b; font-size: 8px; }
.exam-card h3 { margin: 17px 0 5px; font-family: "Songti SC", serif; font-size: 17px; }
.exam-card p { margin: 0; color: #9a897b; font-size: 8px; }
.exam-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(105,71,49,.08); }
.exam-card footer span { color: #806f62; font-size: 8px; }
.exam-card footer button { padding: 7px 10px; border: 1px solid rgba(159,41,43,.16); border-radius: 8px; color: var(--red); background: transparent; font-size: 8px; }

.review-tabs { display: flex; gap: 7px; margin-bottom: 14px; }
.review-tabs button { height: 34px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; color: #806f62; background: var(--paper-light); font-size: 9px; }
.review-tabs button.active { color: #fff5e6; background: var(--red); border-color: var(--red); }

.notice-page-list { display: grid; gap: 10px; }
.notice-page-item { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-light); }
.notice-page-item strong { display: block; font-size: 12px; }
.notice-page-item p { margin: 8px 0 0; color: #978678; font-size: 9px; line-height: 1.7; }
.notice-page-item small { display: block; margin-top: 10px; color: #aa998b; font-size: 8px; }

.profile-hero { display: flex; align-items: center; gap: 17px; padding: 28px; border-radius: 22px; color: #fff6e7; background: linear-gradient(135deg,#571416,#96272a); }
.profile-avatar { display: grid; width: 67px; height: 67px; place-items: center; border-radius: 50%; color: var(--red); background: var(--paper-light); font-family: "Songti SC", serif; font-size: 27px; font-weight: 700; }
.profile-hero > div:nth-child(2) { flex: 1; }
.profile-hero span { color: #d4bda3; font-size: 8px; }
.profile-hero h3 { margin: 6px 0 4px; font-family: "Songti SC", serif; font-size: 22px; }
.profile-hero p { margin: 0; color: rgba(255,242,220,.65); font-size: 9px; }
.profile-stats { display: flex; flex-direction: column; align-items: flex-end; }
.profile-stats strong { color: #fff7e9; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.profile-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 13px; margin-top: 13px; }
.weekly-chart, .progress-card { padding: 20px; }
.week-chart { display: flex; height: 190px; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.week-chart div { display: flex; height: 100%; align-items: center; justify-content: flex-end; flex: 1; flex-direction: column; gap: 8px; }
.week-chart i { display: block; width: 27px; border-radius: 6px 6px 2px 2px; background: #e4d4bf; }
.week-chart div:nth-child(6) i { background: var(--red); }
.week-chart span { color: #9a897b; font-size: 7px; }
.progress-card > div:last-child { display: grid; gap: 13px; margin-top: 17px; }
.progress-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.progress-row span { font-size: 9px; }
.progress-row b { color: var(--red); font-family: Georgia, serif; font-size: 10px; font-weight: 500; }
.progress-row i { grid-column: 1/-1; height: 5px; border-radius: 5px; background: #eee5d8; }
.progress-row i em { display: block; height: 100%; border-radius: inherit; background: var(--red); }

.app-locked .student-app { height: 100vh; overflow: hidden; filter: blur(2px); opacity: .22; pointer-events: none; user-select: none; }
.login-gate { position: fixed; inset: 0; z-index: 100; display: grid; overflow: auto; place-items: center; padding: 42px; color: #fff7e8; background: radial-gradient(circle at 15% 15%,rgba(224,183,112,.16),transparent 27%),linear-gradient(145deg,#3f0c0f,#761c20 55%,#9c2b2d); }
.login-gate.hidden { display: none; }
.login-board { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,240,215,.58) 1px,transparent 1px),linear-gradient(90deg,rgba(255,240,215,.58) 1px,transparent 1px); background-size: 54px 54px; }
.login-brand { position: absolute; top: 36px; left: 42px; display: flex; align-items: center; gap: 13px; }
.login-logo { display: grid; width: 58px; height: 58px; padding: 6px; place-items: center; border-radius: 16px; background: #fffaf0; }
.login-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-brand > span:last-child { display: grid; gap: 4px; }
.login-brand small { color: rgba(255,241,217,.5); font-family: Georgia,serif; font-size: 7px; letter-spacing: 1.5px; }
.login-brand strong { font-family: "Songti SC",serif; font-size: 20px; letter-spacing: 2px; }
.login-brand em { color: #d9bda2; font-size: 9px; font-style: normal; letter-spacing: 1px; }
.login-card { position: relative; z-index: 1; width: min(440px,calc(100vw - 44px)); padding: 38px; border: 1px solid rgba(255,240,217,.14); border-radius: 24px; background: rgba(255,250,240,.97); box-shadow: 0 32px 90px rgba(35,9,10,.32); }
.login-card h1 { margin: 8px 0 8px; color: #432f27; font-family: "Songti SC",serif; font-size: 30px; }
.login-card > p { margin: 0; color: #8f7c6e; font-size: 10px; line-height: 1.7; }
.login-card form { display: grid; gap: 14px; margin-top: 23px; }
.login-card form label { display: grid; gap: 7px; color: #6f5b4f; font-size: 9px; }
.login-card form input { height: 47px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: #3d2e26; background: #fffdf8; font-size: 11px; }
.login-card form input:focus { border-color: rgba(159,41,43,.42); box-shadow: 0 0 0 4px rgba(159,41,43,.06); }
.login-submit { width: 100%; min-height: 47px; margin-top: 4px; }
.login-error { margin: 0; padding: 9px 11px; border-radius: 8px; color: #a63131; background: rgba(179,49,49,.08); font-size: 8px; }
.demo-account { width: 100%; margin-top: 12px; padding: 9px; border: 1px dashed rgba(159,41,43,.2); border-radius: 9px; color: #8a5747; background: rgba(159,41,43,.035); font-size: 8px; }
.student-register-link { width: 100%; margin-top: 10px; border: 0; color: #8e5949; background: transparent; font-size: 9px; }
.login-logic { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 21px; color: #9c8879; font-size: 7px; }
.login-logic i { color: #bda48b; font-style: normal; }
.switch-account { width: 100%; margin-top: 8px; padding: 7px; border: 0; color: #aa9384; background: transparent; font-size: 8px; }
.switch-account:hover { color: #f0ce97; }
.group-badge { display: inline-flex; height: 34px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(159,41,43,.12); border-radius: 18px; color: #815044; background: rgba(159,41,43,.055); font-size: 8px; }
.group-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.group-badge.unassigned { color: #987f6c; background: rgba(151,134,120,.08); }
.group-badge.unassigned i { background: #aa917c; }
.group-summary { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 18px 20px; border: 1px solid rgba(159,41,43,.1); border-radius: 16px; background: linear-gradient(110deg,rgba(159,41,43,.06),rgba(255,250,241,.9)); }
.group-summary-mark { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff5e6; background: var(--red); box-shadow: inset 0 0 0 3px rgba(255,255,255,.14); font-family: "Songti SC",serif; font-size: 16px; }
.group-summary > div:nth-child(2) { min-width: 0; flex: 1; }
.group-summary h3 { margin: 5px 0 4px; font-family: "Songti SC",serif; font-size: 15px; }
.group-summary p { margin: 0; color: #8f7c6e; font-size: 8px; line-height: 1.6; }
.group-course-chips { display: flex; max-width: 42%; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.group-course-chips span { padding: 6px 8px; border-radius: 8px; color: #7f4c40; background: rgba(159,41,43,.08); font-size: 7px; }
.group-course-chips em { color: #a28d7f; font-size: 8px; font-style: normal; }
.student-reminder { display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 12px 15px; border: 1px solid rgba(159,41,43,.16); border-radius: 12px; background: rgba(159,41,43,.055); }
.student-reminder[hidden] { display: none; }
.student-reminder > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #fff6e7; background: var(--red); font-family: "Songti SC",serif; font-size: 10px; }
.student-reminder strong, .student-reminder small { display: block; }
.student-reminder strong { color: #5b4035; font-size: 9px; }
.student-reminder small { margin-top: 3px; color: #9a8273; font-size: 7px; }
.course-empty { display: grid; grid-column: 1/-1; min-height: 150px; place-content: center; gap: 8px; padding: 25px; border: 1px dashed rgba(159,41,43,.2); border-radius: 16px; color: #9a8577; background: rgba(255,250,241,.62); text-align: center; }
.course-empty strong { color: #684c40; font-family: "Songti SC",serif; font-size: 15px; }
.course-empty span { font-size: 8px; }
.practice-tools { display: flex; gap: 6px; }
.practice-tools button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-light); }
.practice-tools button.active { border-color: rgba(159,41,43,.25); color: var(--red); background: rgba(159,41,43,.06); }
.note-editor textarea { width: 100%; min-height: 130px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: #49382f; background: #fffdf8; font-size: 9px; line-height: 1.7; resize: vertical; }
.note-editor textarea:focus { border-color: rgba(159,41,43,.38); }
.note-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.note-actions span { color: #9a897b; font-size: 7px; }
.note-actions button { min-height: 33px; padding: 0 10px; font-size: 8px; }
.review-row { position: relative; border-top: 1px solid rgba(105,71,49,.07); }
.review-row .question-row { width: 100%; border-top: 0; padding-right: 78px; }
.kill-inline { position: absolute; top: 50%; right: 40px; z-index: 2; padding: 6px 9px; border: 1px solid rgba(159,41,43,.18); border-radius: 8px; color: var(--red); background: #fffaf0; font-size: 8px; transform: translateY(-50%); }
.kill-inline.restore { color: var(--green); border-color: rgba(63,137,104,.2); }
.profile-account-panel { display: grid; grid-template-columns: 1fr 1.2fr .7fr repeat(3,auto); align-items: center; gap: 10px; margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-light); }
.profile-account-panel div { display: grid; gap: 5px; }
.profile-account-panel span { color: #9a897b; font-size: 7px; }
.profile-account-panel strong { color: #544137; font-size: 10px; font-weight: 600; }
.exam-login-switch { display: grid; margin: 20px 0 4px; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid #e2e6ed; border-radius: 13px; background: #f5f7fb; }
.exam-login-switch button { height: 38px; border: 0; border-radius: 9px; color: #7d8594; background: transparent; font-size: 11px; }
.exam-login-switch button.active { color: #315bd7; background: #fff; box-shadow: 0 4px 12px rgba(41,64,120,.1); font-weight: 700; }
.message-list { display: grid; gap: 10px; }
.message-card { display: flex; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-light); }
.message-card.unread { border-color: rgba(159,41,43,.24); box-shadow: inset 3px 0 var(--red); }
.message-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff5e7; background: var(--red); font-family: "Songti SC",serif; }
.message-card > div { flex: 1; }
.message-card h3 { margin: 0; font-size: 13px; }
.message-card p { margin: 7px 0; color: #77665a; font-size: 10px; line-height: 1.7; }
.message-card small { color: #9d8d80; font-size: 8px; }
.profile-records { display: grid; grid-template-columns: 1.15fr .85fr; gap: 13px; margin-top: 13px; }
.record-panel { padding: 20px; }
.record-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid rgba(105,71,49,.08); }
.record-row:last-child { border-bottom: 0; }
.record-row > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--red); background: rgba(159,41,43,.07); font-size: 10px; }
.record-row > div { min-width: 0; flex: 1; }
.record-row strong, .record-row small { display: block; }
.record-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.record-row small { margin-top: 4px; color: #9a897b; font-size: 8px; }
.record-row b { color: #725c4f; font-size: 9px; font-weight: 500; }
.record-empty { padding: 22px 0; color: #9a897b; font-size: 10px; text-align: center; }
.profile-help { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; margin-top: 13px; padding: 24px; border-radius: 18px; color: #fff5e8; background: linear-gradient(130deg,#571416,#8f2428); }
.profile-help h3 { margin: 6px 0; font-family: "Songti SC",serif; font-size: 20px; }
.profile-help p { margin: 0; color: rgba(255,242,220,.7); font-size: 9px; line-height: 1.8; }
.profile-help b { color: #f1d2a0; }
.profile-help form { display: grid; gap: 9px; }
.profile-help textarea { min-height: 86px; resize: vertical; padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #3d2e26; background: #fffaf0; font: inherit; font-size: 10px; }
.profile-help .primary-button { color: var(--red); background: #fff4df; border-color: #fff4df; }
.account-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(42,13,14,.55); backdrop-filter: blur(7px); }
.account-modal.hidden { display: none; }
.account-modal-card { position: relative; width: min(470px,100%); padding: 31px; border-radius: 20px; background: var(--paper-light); box-shadow: 0 30px 80px rgba(34,8,9,.28); }
.account-modal-card h2 { margin: 8px 0 9px; font-family: "Songti SC",serif; font-size: 25px; }
.account-modal-card > p { margin: 0; color: #806f62; font-size: 10px; line-height: 1.8; }
.account-modal-close { position: absolute; top: 15px; right: 17px; border: 0; color: #8b786b; background: transparent; font-size: 21px; }
.account-modal-fields { display: grid; gap: 11px; margin: 20px 0; }
.account-modal-fields label { display: grid; gap: 6px; color: #6c584b; font-size: 9px; }
.account-modal-fields input, .account-modal-fields select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #3d2e26; background: #fff; font: inherit; font-size: 10px; }
.account-register-panel { position: fixed; inset: 0; z-index: 140; display: grid; overflow: auto; place-items: center; padding: 28px; background: rgba(44,18,16,.5); backdrop-filter: blur(10px); }
.account-register-panel.hidden { display: none; }
.account-register-card { position: relative; width: min(660px,calc(100vw - 40px)); max-height: calc(100vh - 50px); overflow: auto; padding: 32px; border-radius: 22px; background: #fffaf1; box-shadow: 0 30px 90px rgba(35,12,10,.3); }
.account-register-card h2 { margin: 8px 0; color: #432f27; font-family: "Songti SC",serif; font-size: 28px; }
.account-register-card > p { margin: 0; color: #8f7c6e; font-size: 10px; line-height: 1.7; }
.account-register-close { position: absolute; top: 15px; right: 17px; border: 0; color: #9d8879; background: transparent; font-size: 23px; }
.account-register-card form { margin-top: 20px; }
.register-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.register-grid label { display: grid; gap: 6px; color: #6e5a4d; font-size: 9px; }
.register-grid input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fffdf8; font-size: 10px; }
.register-subjects { margin-top: 16px; }
.register-subjects > span { display: block; margin-bottom: 8px; color: #6e5a4d; font-size: 9px; }
.subject-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.subject-choice-grid label { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf8; color: #5f4a3e; font-size: 9px; cursor: pointer; }
.subject-choice-grid input { accent-color: var(--red); }
.register-hint { margin: 10px 0 0; color: #938173; font-size: 8px; }

.service-identity { padding: 8px 11px; border-radius: 18px; color: #875242; background: rgba(159,41,43,.07); font-size: 8px; }
.student-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.service-card { position: relative; display: flex; min-height: 125px; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; color: #49382f; background: var(--paper-light); text-align: left; }
.service-card:hover { border-color: rgba(159,41,43,.28); background: rgba(255,250,240,.96); }
.service-card > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff5e6; background: var(--red); font-family: "Songti SC",serif; }
.service-card div { min-width: 0; }
.service-card strong { display: block; font-family: "Songti SC",serif; font-size: 13px; }
.service-card small { display: block; margin-top: 6px; color: #978678; font-size: 8px; line-height: 1.55; }
.service-card em { position: absolute; right: 11px; bottom: 10px; padding: 4px 6px; border-radius: 8px; color: var(--red); background: rgba(159,41,43,.06); font-size: 7px; font-style: normal; }
.service-workspace { margin-top: 14px; }
.service-welcome { display: grid; min-height: 210px; place-content: center; gap: 8px; padding: 30px; border: 1px dashed rgba(159,41,43,.2); border-radius: 18px; color: #947f70; background: rgba(255,250,241,.6); text-align: center; }
.service-welcome strong { color: #5b4035; font-family: "Songti SC",serif; font-size: 20px; }
.service-welcome p { margin: 0; font-size: 9px; }
.service-panel { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-light); }
.service-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.service-panel-head h3 { margin: 5px 0 4px; font-family: "Songti SC",serif; font-size: 20px; }
.service-panel-head p { margin: 0; color: #938173; font-size: 9px; line-height: 1.7; }
.service-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.service-field { display: grid; gap: 6px; color: #6f5a4e; font-size: 8px; }
.service-field.full { grid-column: 1/-1; }
.service-field input, .service-field select, .service-field textarea { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: #422f27; background: #fffdf8; font-size: 10px; }
.service-field textarea { min-height: 90px; padding-top: 10px; resize: vertical; }
.service-field input:focus, .service-field select:focus, .service-field textarea:focus { border-color: rgba(159,41,43,.38); box-shadow: 0 0 0 4px rgba(159,41,43,.05); }
.service-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.service-list { display: grid; gap: 9px; }
.service-list-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; }
.service-list-row > span:first-child { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--red); background: rgba(159,41,43,.07); font-family: "Songti SC",serif; }
.service-list-row div { min-width: 0; flex: 1; }
.service-list-row strong { display: block; font-size: 10px; }
.service-list-row small { display: block; margin-top: 4px; color: #9b897b; font-size: 8px; }
.service-list-row > b { color: #7a6455; font-size: 9px; }
.service-list-row button { padding: 7px 10px; border: 1px solid rgba(159,41,43,.18); border-radius: 8px; color: var(--red); background: #fffaf0; font-size: 8px; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 12px; color: #4c7a63; background: rgba(63,137,104,.08); font-size: 7px; }
.status-pill.warn { color: #9c6742; background: rgba(185,113,53,.09); }
.status-pill.off { color: #8c796c; background: rgba(100,80,66,.07); }
.payment-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(240px,.75fr); gap: 14px; }
.payment-code-card { display: grid; justify-items: center; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fffdf8; text-align: center; }
.payment-code-card img { width: 190px; height: 190px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.payment-code-card strong { font-family: "Songti SC",serif; font-size: 17px; }
.payment-code-card small { color: #9a897b; font-size: 8px; line-height: 1.6; }
.payment-channel-tabs { display: flex; gap: 7px; }
.payment-channel-tabs button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; font-size: 8px; }
.payment-channel-tabs button.active { color: #fff7e8; border-color: var(--red); background: var(--red); }
.score-tabs { display: flex; gap: 7px; margin-bottom: 14px; }
.score-tabs button { height: 35px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; color: #7f6d60; background: #fffdf8; font-size: 9px; }
.score-tabs button.active { color: #fff6e8; border-color: var(--red); background: var(--red); }
.score-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.score-cards article { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf8; }
.score-cards span { color: #978678; font-size: 8px; }
.score-cards strong { display: block; margin-top: 7px; color: var(--red); font-family: Georgia,serif; font-size: 25px; font-weight: 500; }
.resource-download { color: var(--red); }
.managed-course-group { margin-top: 22px; }
.managed-course-group h4 { margin: 0 0 11px; color: #4c382f; font-family: "Songti SC",serif; font-size: 16px; }
.managed-course-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.managed-course-grid > button { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: #49382f; background: #fffdf8; text-align: left; }
.managed-course-grid > button > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #fff6e7; background: var(--red); font-family: "Songti SC",serif; }
.managed-course-grid > button > div { min-width: 0; flex: 1; }
.managed-course-grid strong, .managed-course-grid small { display: block; }
.managed-course-grid strong { font-size: 10px; }
.managed-course-grid small { margin-top: 4px; color: #9a897b; font-size: 8px; }
.managed-course-grid b { color: var(--red); font-size: 8px; font-weight: 500; }
.managed-course-grid > p { color: #9a897b; font-size: 9px; }
.course-detail-head { margin-bottom: 16px; }
.course-detail-title { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.course-detail-title h2 { margin: 5px 0 3px; font-family: "Songti SC",serif; font-size: 28px; }
.course-detail-title p { margin: 0; color: #948173; font-size: 9px; }
.course-detail-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: #fff6e7; background: var(--red); font-family: "Songti SC",serif; font-size: 23px; }
.course-detail-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(230px,.5fr); gap: 14px; }
.course-material-list { display: grid; gap: 9px; }
.course-material-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: #49382f; background: #fffdf8; text-decoration: none; }
.course-material-card > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #fff6e7; background: var(--red); }
.course-material-card > div { min-width: 0; flex: 1; }
.course-material-card strong, .course-material-card small { display: block; }
.course-material-card strong { font-size: 10px; }
.course-material-card small { margin-top: 4px; color: #9a897b; font-size: 8px; }
.course-material-card > b { color: var(--red); font-size: 8px; font-weight: 500; }
.course-question-entry { padding: 22px; }
.course-question-entry h3 { margin: 8px 0; font-family: "Songti SC",serif; font-size: 19px; }
.course-question-entry p { color: #938173; font-size: 9px; line-height: 1.7; }
.course-question-entry .primary-button { width: 100%; margin-top: 12px; }

.toast { position: fixed; right: 28px; bottom: 28px; z-index: 50; padding: 11px 16px; border-radius: 9px; color: #fff6e7; background: #302622; box-shadow: 0 15px 30px rgba(47,29,21,.22); opacity: 0; font-size: 9px; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  body { min-width: 880px; }
  .main { padding: 26px; }
  .hero-layout { grid-template-columns: 1.4fr .7fr; }
  .course-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  body { min-width: 0; }
  .student-app { display: block; }
  .sidebar { position: static; width: 100%; min-height: auto; padding: 18px; }
  .sidebar-school, .sidebar-goal, .student-mini { display: none; }
  .side-nav { display: flex; overflow-x: auto; margin-top: 16px; }
  .side-nav button { min-width: 125px; }
  .side-nav button.active::before { display: none; }
  .main { width: 100%; margin: 0; padding: 20px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; flex-wrap: wrap; }
  .top-search { width: 100%; }
  .hero-layout, .home-grid, .practice-layout, .profile-grid, .exam-grid { grid-template-columns: 1fr; }
  .group-summary { align-items: flex-start; flex-wrap: wrap; }
  .group-course-chips { max-width: 100%; justify-content: flex-start; }
  .profile-account-panel { grid-template-columns: 1fr 1fr; }
  .profile-records, .profile-help { grid-template-columns: 1fr; }
  .student-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-form-grid, .payment-layout, .score-cards { grid-template-columns: 1fr; }
  .managed-course-grid, .course-detail-grid { grid-template-columns: 1fr; }
  .register-grid, .subject-choice-grid { grid-template-columns: 1fr; }
  .login-gate { padding: 92px 20px 28px; place-items: start center; }
  .login-brand { top: 22px; left: 22px; }
  .login-card { padding: 28px 23px; }
  .stats-grid, .course-grid { grid-template-columns: repeat(2,1fr); }
  .hero-card { min-height: 285px; padding: 28px; }
  .hero-copy h2 { font-size: 34px; }
  .hero-piece { right: 25px; bottom: 24px; width: 75px; height: 75px; font-size: 29px; }
  .course-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .question-panel { padding: 22px; }
  .question-panel h2 { font-size: 20px; }
  .profile-hero { flex-wrap: wrap; }
  .profile-stats { width: 100%; align-items: flex-start; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
}

/* Student login visual refresh */
.login-gate {
  display: block;
  overflow: auto;
  padding: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 15%, rgba(154,143,255,.35), transparent 28%),
    radial-gradient(circle at 5% 92%, rgba(132,112,255,.2), transparent 28%),
    linear-gradient(135deg,#315bd7,#5b45da 55%,#7352e8);
}
.login-board { opacity: .09; background-image: radial-gradient(circle,#fff 1px,transparent 1px); background-size: 28px 28px; }
.login-brand { position: absolute; top: 34px; left: 42px; z-index: 2; }
.login-logo { border-radius: 20px; box-shadow: 0 12px 28px rgba(37,31,102,.16); }
.student-login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 125px 58px 48px;
  grid-template-columns: minmax(0,1fr) minmax(390px,500px);
  align-items: center;
  gap: 72px;
}
.student-login-hero { max-width: 680px; padding: 20px 0; }
.login-hero-pill { display: inline-flex; padding: 9px 16px; border-radius: 22px; color: #eef1ff; background: rgba(255,255,255,.14); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.student-login-hero h2 { margin: 26px 0 20px; color: #fff; font-family: "Songti SC","Microsoft YaHei",serif; font-size: clamp(38px,5vw,68px); font-weight: 700; line-height: 1.26; }
.student-login-hero > p { max-width: 600px; margin: 0; color: rgba(241,244,255,.78); font-size: 15px; line-height: 2; }
.login-feature-row { display: grid; margin-top: 42px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.login-feature-row > div { padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.075); }
.login-feature-row strong, .login-feature-row span { display: block; }
.login-feature-row strong { color: #fff; font-size: 13px; }
.login-feature-row span { margin-top: 8px; color: rgba(235,239,255,.64); font-size: 10px; line-height: 1.7; }
.login-card { width: 100%; padding: 38px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 34px 90px rgba(41,31,116,.2); }
.login-card .eyebrow { color: #315bd7; letter-spacing: 1.4px; }
.login-card h1 { color: #111827; font-family: "Microsoft YaHei",sans-serif; font-size: 32px; font-weight: 800; }
.login-card > p { color: #737b8b; font-size: 11px; }
.login-card form label { color: #394150; font-size: 10px; font-weight: 600; }
.login-card form input { height: 48px; border-color: #e2e6ed; color: #222b3a; font-size: 11px; }
.login-card form input:focus { border-color: #4e63e6; box-shadow: 0 0 0 4px rgba(78,99,230,.08); }
.login-submit { min-height: 48px; border: 0; color: #fff; background: linear-gradient(90deg,#2867df,#7152e8); box-shadow: 0 10px 20px rgba(64,86,218,.18); }
.demo-account { color: #5362b5; border-color: #dfe3f5; background: #f7f8ff; }
.student-register-link { color: #315bd7; }
.login-logic { color: #8b93a2; }
.switch-account, .student-logout { margin-top: 6px; border: 0; border-radius: 8px; background: transparent; }
.student-logout { display: flex; flex: 0 0 auto; height: 38px; align-items: center; justify-content: center; margin-top: 8px; border: 1px solid rgba(245,211,158,.28); color: #f4d6ab; background: rgba(255,255,255,.045); font-size: 11px; letter-spacing: 1px; }
.student-logout:hover { color: #fff8ec; border-color: rgba(245,211,158,.48); background: rgba(255,255,255,.09); }
@media (max-width: 900px) {
  .login-brand { top: 22px; left: 22px; }
  .student-login-layout { padding: 100px 22px 30px; grid-template-columns: 1fr; gap: 30px; }
  .student-login-hero { text-align: center; }
  .student-login-hero > p { margin: 0 auto; }
  .login-feature-row { grid-template-columns: 1fr; }
}
