:root {
  --ink: #0d1421;
  --ink-deep: #0a101b;
  --panel: #121d2d;
  --panel-2: #172437;
  --line: #27384f;
  --line-soft: #1e2d42;
  --text: #f2f5f9;
  --muted: #91a0b4;
  --dim: #64738a;
  --red: #ee6b5e;
  --red-soft: #442c35;
  --blue: #65a2f5;
  --green: #59c99e;
  --gold: #e9b85c;
  --purple: #a88ce8;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
.icon { display: inline-grid; place-items: center; width: 17px; height: 17px; flex: 0 0 auto; }
.icon svg { display: block; width: 100%; height: 100%; }
.loading-screen { display: grid; place-items: center; min-height: 100vh; color: var(--muted); font-size: 14px; }
.loading-screen p { margin: 14px 0 0; }.loader { width: 28px; height: 28px; border: 2px solid #30415a; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; height: 74px; padding: 0 38px; border-bottom: 1px solid var(--line-soft); background: rgba(13, 20, 33, .94); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }.brand-badge { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ef8178; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #ee6b5e, #c34b5d); box-shadow: 0 7px 22px rgba(238, 107, 94, .2); }.brand-name { font-size: 15px; font-weight: 800; letter-spacing: .03em; }.brand-name b { color: var(--red); font-weight: 800; }.brand-sub { margin-top: 2px; color: #76869d; font-size: 10px; letter-spacing: .12em; }
.top-actions { display: flex; align-items: center; gap: 11px; }.search { display: flex; align-items: center; gap: 8px; width: min(34vw, 390px); height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: #718097; background: #111c2c; }.search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }.search input::placeholder { color: #68778d; }.search kbd { padding: 2px 5px; border: 1px solid #2d3c53; border-radius: 4px; color: #718097; font-size: 10px; white-space: nowrap; }.state-pill { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: #9dabbc; font-size: 11px; white-space: nowrap; }.state-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(89, 201, 158, .12); }.avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #354863; border-radius: 50%; color: #dbe4f0; background: #1a2a43; font-size: 11px; font-weight: 750; }

.layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); max-width: 1600px; min-height: calc(100vh - 74px); margin: 0 auto; }.sidebar { position: relative; border-right: 1px solid var(--line-soft); padding: 34px 20px 28px; }.side-label { margin: 0 10px 11px; color: #66758c; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }.side-group + .side-group { margin-top: 29px; }.side-nav { display: grid; gap: 2px; }.side-link { display: flex; align-items: center; gap: 11px; height: 37px; padding: 0 11px; border: 0; border-radius: 8px; color: #8997aa; background: transparent; text-align: left; font-size: 13px; transition: .16s ease; }.side-link:hover { color: var(--text); background: #172438; }.side-link.active { color: #fff; background: #1b2a40; box-shadow: inset 3px 0 var(--red); }.side-link .count { margin-left: auto; min-width: 20px; padding: 2px 5px; border-radius: 4px; color: #f3867b; background: rgba(238, 107, 94, .12); text-align: center; font-size: 10px; }.side-divider { height: 1px; margin: 25px 0; background: var(--line-soft); }.subject-link { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 7px; color: #8997aa; background: transparent; text-align: left; font-size: 12px; }.subject-link:hover { color: var(--text); background: #172438; }.subject-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }.subject-dot.red { background: var(--red); }.subject-dot.blue { background: var(--blue); }.subject-dot.gold { background: var(--gold); }.subject-dot.purple { background: var(--purple); }.subject-link .count { margin-left: auto; color: #5f6f85; font-size: 11px; }.sidebar-footer { position: absolute; right: 20px; bottom: 23px; left: 20px; padding-top: 15px; border-top: 1px solid var(--line-soft); }.sidebar-foot-link { display: flex; align-items: center; gap: 10px; height: 35px; padding: 0 11px; color: #718096; font-size: 12px; }.sidebar-foot-link svg { width: 16px; height: 16px; }

.main { min-width: 0; padding: 46px clamp(24px, 4vw, 68px) 32px; overflow: hidden; }.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }.kicker { display: flex; align-items: center; gap: 7px; color: #8695aa; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }.intro h1 { max-width: 670px; margin: 13px 0 9px; color: #f6f8fb; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.055em; }.intro p { margin: 0; color: #8997aa; font-size: 14px; line-height: 1.65; }.quiet-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; color: #8d9bb0; background: transparent; font-size: 12px; }.quiet-link:hover { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 33px; }.stat { display: flex; align-items: center; gap: 12px; min-height: 91px; padding: 15px 16px; border: 1px solid #25364d; border-radius: 11px; background: #121e30; }.stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }.stat-icon.red { color: #f18478; background: rgba(238, 107, 94, .12); }.stat-icon.blue { color: #79b1ff; background: rgba(101, 162, 245, .12); }.stat-icon.gold { color: #edc16c; background: rgba(233, 184, 92, .12); }.stat label { display: block; color: #7f8ea3; font-size: 11px; }.stat strong { display: block; margin-top: 4px; color: #f1f5fa; font-size: 20px; letter-spacing: -.04em; }.stat strong small { color: #8796aa; font-size: 11px; font-weight: 500; letter-spacing: 0; }.stat-note { margin-left: auto; align-self: flex-end; color: var(--green); font-size: 11px; font-weight: 750; }.stat-note span { color: #6b7b91; font-weight: 500; }.stat-note.neutral { color: #8796aa; font-weight: 500; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 43px; }.section-head h2 { margin: 0; color: #f1f5fa; font-size: 16px; letter-spacing: -.02em; }.section-head p { margin: 6px 0 0; color: #718096; font-size: 11px; }.section-tools { display: flex; align-items: center; gap: 8px; }.filter-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: #9ca9ba; background: #121e30; font-size: 11px; }.filter-chip:hover, .filter-chip.active { color: #fff; border-color: #40526d; background: #1a2940; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }.course-card { position: relative; display: flex; flex-direction: column; min-height: 291px; padding: 20px 18px 17px; overflow: hidden; border: 1px solid #26374e; border-radius: 12px; background: linear-gradient(155deg, #172438, #101a2a); transition: .18s ease; }.course-card:hover { transform: translateY(-3px); border-color: #40536f; box-shadow: 0 18px 34px rgba(0, 0, 0, .2); }.course-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--accent); }.course-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #8a98ab; font-size: 10px; }.course-subject { display: flex; align-items: center; gap: 7px; font-weight: 750; letter-spacing: .07em; }.course-kind { color: #6f7f95; }.course-title { margin: 20px 0 0; padding: 0; border: 0; color: #f2f5fa; background: transparent; text-align: left; font-size: 17px; font-weight: 700; line-height: 1.32; letter-spacing: -.025em; }.course-title:hover { color: #fff; }.course-summary { margin: 8px 0 0; color: #9aa7b9; font-size: 12px; line-height: 1.7; }.course-bottom { margin-top: auto; }.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }.tag { padding: 4px 6px; border: 1px solid #2d3d54; border-radius: 4px; color: #8493a8; font-size: 10px; }.course-progress-row { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: #8291a6; font-size: 10px; }.progress-track { flex: 1; height: 5px; overflow: hidden; border-radius: 4px; background: #2a3a51; }.progress-bar { height: 100%; border-radius: inherit; background: var(--accent); }.progress-percent { width: 29px; color: #c4cedb; text-align: right; }.open-course { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; padding: 9px 10px; border: 1px solid #2c3d55; border-radius: 7px; color: #d6deea; background: #1a2940; font-size: 11px; }.open-course:hover { border-color: #4a5e7a; color: #fff; background: #21324a; }.card-arrow { width: 14px; height: 14px; }
.empty { display: grid; place-items: center; min-height: 220px; margin-top: 16px; padding: 30px; border: 1px dashed #2b3b52; border-radius: 12px; color: #6f7e94; text-align: center; }.empty strong { display: block; margin-top: 11px; color: #a3afbf; font-size: 14px; }.empty p { margin: 6px 0 0; font-size: 12px; }.empty button { margin-top: 13px; padding: 0; border: 0; color: #f1867b; background: transparent; font-size: 12px; }
.lower { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 29px; }.lower-card { min-height: 171px; padding: 20px; border: 1px solid #26374e; border-radius: 12px; background: #121e30; }.lower-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }.lower-title h3 { margin: 8px 0 0; color: #eef2f7; font-size: 16px; letter-spacing: -.025em; }.small-badge { padding: 4px 7px; border: 1px solid #5e3b3f; border-radius: 5px; color: #ee8b80; background: rgba(238, 107, 94, .07); font-size: 10px; }.focus-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; }.play { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 8px 20px rgba(238, 107, 94, .2); }.focus-copy { flex: 1; }.focus-copy p { margin: 0; color: #95a3b5; font-size: 12px; }.focus-copy .progress-track { margin-top: 10px; }.next { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; color: #8c9bb0; background: transparent; }.next:hover { color: #fff; background: #1a2940; }.bars { display: flex; align-items: flex-end; justify-content: space-between; height: 91px; margin-top: 17px; padding: 0 3px; border-bottom: 1px solid #29394f; }.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }.bar { width: 14px; min-height: 7px; border-radius: 4px 4px 0 0; background: #35465e; }.bar.today { background: var(--red); box-shadow: 0 0 13px rgba(238, 107, 94, .23); }.bar-col span { color: #69798f; font-size: 10px; transform: translateY(20px); }.footer-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; color: #607087; font-size: 10px; }.local-note { display: flex; align-items: center; gap: 8px; }.local-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(89, 201, 158, .1); }

.reader-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(4, 8, 15, .67); backdrop-filter: blur(3px); }.reader { position: fixed; z-index: 21; top: 0; right: 0; width: min(760px, 94vw); height: 100vh; overflow-y: auto; padding: 31px clamp(24px, 5vw, 62px) 60px; border-left: 1px solid #2b3d55; background: #101a2a; box-shadow: -26px 0 70px rgba(0, 0, 0, .32); animation: reader-in .2s ease-out; }.reader-close { position: absolute; top: 22px; right: 25px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #31435c; border-radius: 8px; color: #8c9aae; background: transparent; }.reader-close:hover { color: #fff; background: #1d2c42; }.reader-kicker { display: flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }.reader h1 { max-width: 580px; margin: 16px 0 11px; color: #f6f8fb; font-size: clamp(1.85rem, 4vw, 2.7rem); line-height: 1.18; letter-spacing: -.055em; }.reader-lede { max-width: 590px; margin: 0; color: #a1adbd; font-size: 15px; line-height: 1.75; }.reader-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 21px; color: #76869c; font-size: 11px; }.reader-actions { display: flex; align-items: center; gap: 9px; margin-top: 24px; padding: 14px 0; border-top: 1px solid #29394f; border-bottom: 1px solid #29394f; }.reader-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 1px solid #30425b; border-radius: 7px; color: #b4c0d0; background: #17263a; font-size: 11px; }.reader-btn:hover { color: #fff; border-color: #4b607d; background: #20314a; }.reader-btn.saved { color: #f3bd66; border-color: #715639; }.reader-progress { margin-left: auto; color: #8594a8; font-size: 11px; }.reader-body { padding-top: 29px; color: #b9c4d2; font-family: var(--serif); font-size: 16px; line-height: 2; }.reader-body h2 { margin: 30px 0 8px; color: #eef2f6; font-family: var(--sans); font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }.reader-body h3 { margin: 23px 0 6px; color: #e7edf5; font-family: var(--sans); font-size: 15px; }.reader-body p { margin: 13px 0; }.reader-body strong { color: #fff; }.reader-body ul { margin: 12px 0; padding-left: 22px; }.reader-body li { padding-left: 4px; }.formula { display: block; margin: 21px 0; padding: 17px 15px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; color: #f2c87e; background: #192638; font-family: Georgia, serif; font-size: 21px; line-height: 1.5; text-align: center; }.callout { margin: 21px 0; padding: 15px 17px; border: 1px solid #31435b; border-radius: 8px; color: #aebaca; background: #152337; font-family: var(--sans); font-size: 13px; line-height: 1.75; }.reader-end { margin-top: 42px; padding: 18px 0 0; border-top: 1px solid #29394f; color: #718197; font-family: var(--sans); font-size: 11px; }.reader-end strong { color: #b6c1d0; font-weight: 600; }
@keyframes reader-in { from { transform: translateX(28px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1150px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .topbar { height: 66px; padding: 0 18px; }.top-actions { gap: 7px; }.search, .state-pill { display: none; }.layout { display: block; min-height: calc(100vh - 66px); }.sidebar { display: none; }.main { padding: 30px 18px 24px; }.intro { align-items: flex-start; flex-direction: column; gap: 13px; }.intro h1 { font-size: 30px; }.intro p { max-width: 350px; }.stats { grid-template-columns: 1fr; margin-top: 25px; }.stat { min-height: 76px; }.section-head { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 33px; }.section-tools { width: 100%; overflow-x: auto; }.course-grid, .lower { grid-template-columns: 1fr; }.course-card { min-height: 270px; }.lower { margin-top: 22px; }.footer-line { align-items: flex-start; flex-direction: column; }.reader { width: 100%; padding: 23px 21px 48px; }.reader h1 { font-size: 31px; }.reader-body { font-size: 15px; }.reader-actions { flex-wrap: wrap; }.reader-progress { width: 100%; margin: 3px 0 0; } }
