:root {
  --ink: #172a35;
  --ink-soft: #667984;
  --paper: #f8f4eb;
  --paper-deep: #eee7d9;
  --line: rgba(23, 42, 53, 0.14);
  --navy: #162a36;
  --teal: #347d79;
  --coral: #e87457;
  --yellow: #efc56f;
  --sage: #dfe8d4;
  --shadow: 0 24px 70px rgba(32, 49, 49, 0.14);
  --display: "Noto Serif SC", serif;
  --sans: "Noto Sans SC", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: #cfd9d2; }
body { margin: 0; min-width: 320px; color: var(--ink); font-family: var(--sans); background: #d7dfd7; }
a, button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(232, 116, 87, .48); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.ambient-one { width: 520px; height: 520px; top: -180px; right: -130px; background: rgba(243, 201, 120, .36); }
.ambient-two { width: 480px; height: 480px; bottom: -230px; left: -140px; background: rgba(116, 171, 163, .28); }
.grain { position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .26; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); }
.app-shell { width: min(1360px, calc(100% - 32px)); margin: 18px auto; overflow: hidden; border: 1px solid rgba(23, 42, 53, .18); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.topbar { min-height: 80px; padding: 0 clamp(22px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(248, 244, 235, .82); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; position: relative; display: block; border-radius: 12px 12px 12px 4px; background: var(--navy); transform: rotate(-4deg); box-shadow: 5px 5px 0 var(--coral); }
.brand-mark span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.brand-mark span:nth-child(1) { top: 10px; left: 10px; }.brand-mark span:nth-child(2) { top: 18px; left: 20px; background: #90c4b4; }.brand-mark span:nth-child(3) { top: 26px; left: 12px; background: #f8f4eb; }
.brand-copy strong { display: block; font-family: var(--display); font-size: 19px; letter-spacing: .13em; line-height: 1; }.brand-copy small { display: block; margin-top: 6px; color: var(--ink-soft); font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .2em; }
.top-nav { display: flex; gap: 4px; align-items: center; }.top-nav a { padding: 10px 13px; color: var(--ink-soft); text-decoration: none; font-size: 13px; border-radius: 999px; }.top-nav a:hover, .top-nav a.is-current { color: var(--ink); background: rgba(52, 125, 121, .1); }
.top-status { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #65a483; box-shadow: 0 0 0 4px rgba(101, 164, 131, .16); }
main { position: relative; }
.hero { min-height: 435px; padding: 68px clamp(28px, 8vw, 116px) 42px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 28px; align-items: center; background: linear-gradient(123deg, rgba(222, 234, 219, .82), rgba(248, 244, 235, .18) 58%, rgba(239, 197, 111, .18)); }
.eyebrow, .section-kicker { margin: 0 0 13px; color: var(--teal); font: 800 11px/1 "Manrope", var(--sans); letter-spacing: .22em; }.eyebrow { display: flex; align-items: center; gap: 9px; }.eyebrow-line { width: 29px; height: 2px; display: inline-block; background: var(--coral); }
.hero h1 { max-width: 700px; margin: 0; font-family: var(--display); font-size: clamp(38px, 5vw, 69px); line-height: 1.15; letter-spacing: -.025em; }.hero h1 em { color: var(--coral); font-style: normal; }.hero-lede { margin: 21px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 19px; margin-top: 28px; }.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; text-decoration: none; border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }.primary-button { padding: 13px 18px 13px 23px; color: #fffdf6; background: var(--navy); box-shadow: 0 10px 18px rgba(22, 42, 54, .18); font-size: 14px; font-weight: 700; }.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 23px rgba(22, 42, 54, .23); }.primary-button span { color: var(--yellow); font-size: 18px; }.hero-note { margin: 0; color: var(--ink-soft); font-size: 12px; }.sparkle { color: var(--coral); margin-right: 4px; }
.hero-art { min-height: 315px; position: relative; }.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(52, 125, 121, .24); border-radius: 50%; transform: translate(-50%, -50%) rotate(-17deg); }.orbit-back { width: 390px; height: 250px; }.orbit-front { width: 330px; height: 220px; border-color: rgba(232, 116, 87, .24); transform: translate(-50%, -50%) rotate(41deg); }.mascot-stack { position: absolute; left: 50%; bottom: 16px; width: 360px; height: 292px; transform: translateX(-50%); }.mascot { position: absolute; bottom: 0; filter: drop-shadow(0 16px 13px rgba(45, 60, 59, .18)); }.mascot img { display: block; object-fit: contain; }.mascot-math { left: 0; z-index: 2; transform: rotate(-7deg); }.mascot-math img { width: 128px; height: 192px; }.mascot-english { left: 102px; z-index: 3; transform: translateY(2px); }.mascot-english img { width: 155px; height: 240px; }.mascot-chinese { right: 3px; z-index: 2; transform: rotate(7deg); }.mascot-chinese img { width: 126px; height: 190px; }.art-label { position: absolute; z-index: 4; display: grid; place-items: center; width: 53px; height: 53px; border-radius: 50%; color: var(--navy); background: var(--paper); box-shadow: 0 8px 22px rgba(23, 42, 53, .13); font-family: var(--display); font-size: 20px; line-height: .9; text-align: center; }.art-label small { color: var(--ink-soft); font: 700 6px/1 "Manrope", sans-serif; letter-spacing: .12em; }.label-math { left: 9%; top: 23%; }.label-english { right: 11%; top: 6%; background: var(--yellow); }.label-chinese { right: 4%; bottom: 16%; background: #e2eee6; }.art-caption { position: absolute; left: 50%; bottom: -3px; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; transform: translateX(-50%); white-space: nowrap; }.caption-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.quick-strip { min-height: 69px; padding: 0 clamp(28px, 8vw, 116px); display: flex; align-items: center; gap: clamp(22px, 6vw, 82px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; background: rgba(247, 243, 234, .85); }.quick-strip > div { display: flex; align-items: center; gap: 9px; white-space: nowrap; }.quick-number { color: var(--ink); font: 800 20px/1 "Manrope", sans-serif; }.quick-tip { margin-left: auto; padding-left: clamp(12px, 4vw, 60px); border-left: 1px solid var(--line); }.tip-icon { color: var(--coral); font-size: 18px; }
.paths-section, .recent-section { padding: 72px clamp(28px, 8vw, 116px) 0; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: -.02em; }.search-wrap { width: min(260px, 100%); position: relative; }.search-wrap > span { position: absolute; left: 14px; top: 50%; color: var(--teal); font-size: 21px; transform: translateY(-52%); }.search-wrap input { width: 100%; padding: 13px 14px 13px 38px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; outline: 0; background: rgba(255, 255, 255, .55); font-size: 13px; }.search-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(52, 125, 121, .11); }
.filter-row { min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }.filter-chip { padding: 8px 11px 8px 14px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; transition: all .18s ease; }.filter-chip span { margin-left: 4px; color: #99a7a7; font-size: 10px; }.filter-chip:hover, .filter-chip.is-active { color: #fff; border-color: var(--navy); background: var(--navy); }.filter-chip.is-active span { color: var(--yellow); }.filter-result { margin-left: auto; color: var(--ink-soft); font-size: 12px; }
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }.path-card { min-height: 380px; position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.47); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }.path-card::after { content: ""; position: absolute; width: 150px; height: 150px; top: -66px; right: -52px; border-radius: 50%; opacity: .7; pointer-events: none; }.path-card:hover { transform: translateY(-5px); border-color: rgba(23,42,53,.28); box-shadow: 0 18px 32px rgba(36, 55, 55, .12); }.card-chinese::after { background: rgba(195, 213, 183, .65); }.card-math::after { background: rgba(240, 197, 111, .7); }.card-english::after { background: rgba(161, 203, 201, .65); }.card-library::after { background: rgba(231, 164, 144, .48); }.card-topline, .card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.subject-tag { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .04em; }.card-index { color: #a2ada9; font: 700 11px/1 "Manrope", sans-serif; }.card-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: 28px 0 18px; border-radius: 16px; font-family: var(--display); font-size: 27px; transform: rotate(-4deg); }.icon-chinese { color: #fff9ea; background: var(--coral); }.icon-math { color: #34492b; background: var(--yellow); }.icon-english { color: #fff9ea; background: var(--teal); font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 800; }.icon-library { color: #fff9ea; background: #9a6c59; }.path-card h3 { margin: 0; font-family: var(--display); font-size: 23px; }.path-card p { min-height: 79px; margin: 11px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.72; }.card-meta { padding: 13px 0; margin-top: auto; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; }.card-meta span:last-child { color: var(--ink); font-weight: 700; }.card-link { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding: 12px 13px; color: var(--navy); border-radius: 9px; background: rgba(22, 42, 54, .07); text-decoration: none; font-size: 13px; font-weight: 700; transition: background .18s ease, color .18s ease; }.card-link:hover { color: #fff; background: var(--navy); }.card-link span { color: var(--coral); font-size: 18px; }.card-link:hover span { color: var(--yellow); }.path-card.is-hidden { display: none; }
.empty-state { padding: 56px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--ink-soft); }.empty-mark { display: block; color: var(--coral); font-size: 31px; }.empty-state h3 { margin: 10px 0 2px; color: var(--ink); font-family: var(--display); font-size: 21px; }.empty-state p { margin: 0; font-size: 13px; }.empty-state button { margin-top: 16px; padding: 9px 14px; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; }
.recent-section { padding-top: 78px; }.compact-heading { align-items: center; }.text-button { padding: 0; color: var(--ink-soft); border: 0; background: transparent; cursor: pointer; font-size: 12px; }.text-button:hover { color: var(--coral); }.recent-panel { margin-top: 20px; }.recent-empty { min-height: 96px; display: flex; align-items: center; gap: 15px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.4); }.recent-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--coral); border-radius: 50%; background: rgba(232, 116, 87, .12); font-size: 20px; }.recent-empty strong { font-size: 14px; }.recent-empty p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }.recent-empty a { margin-left: auto; color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }.recent-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.recent-item { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.46); text-decoration: none; }.recent-item:hover { border-color: rgba(52,125,121,.42); background: #fffdf7; }.recent-item-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #fff; font-family: var(--display); }.recent-item[data-category="chinese"] .recent-item-icon { background: var(--coral); }.recent-item[data-category="math"] .recent-item-icon { color: var(--ink); background: var(--yellow); }.recent-item[data-category="english"] .recent-item-icon { background: var(--teal); font: 800 12px/1 "Manrope", sans-serif; }.recent-item[data-category="library"] .recent-item-icon { background: #9a6c59; }.recent-item-copy { min-width: 0; }.recent-item-copy strong, .recent-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.recent-item-copy strong { font-family: var(--display); font-size: 14px; }.recent-item-copy small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }.recent-arrow { margin-left: auto; color: var(--teal); font-size: 17px; }
.about-section { margin: 84px clamp(28px, 8vw, 116px) 0; padding: 25px 27px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; border-radius: 14px; background: var(--navy); color: #fff8ea; }.about-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--yellow); border: 1px solid rgba(255,255,255,.24); border-radius: 50%; font-size: 20px; }.about-section .section-kicker { margin-bottom: 9px; color: #a8d0c2; }.about-section h2 { margin: 0; font-family: var(--display); font-size: 22px; }.about-section p:last-child { max-width: 640px; margin: 7px 0 0; color: rgba(255,248,234,.72); font-size: 12px; line-height: 1.7; }.outline-button { padding: 11px 14px 11px 17px; color: #fff8ea; border: 1px solid rgba(255,255,255,.26); font-size: 12px; }.outline-button:hover { background: rgba(255,255,255,.1); }.outline-button span { color: var(--yellow); font-size: 17px; }.footer { padding: 30px clamp(28px, 8vw, 116px) 27px; display: flex; justify-content: space-between; gap: 15px; color: var(--ink-soft); font-size: 11px; }.footer span:first-child { font: 800 10px/1 "Manrope", sans-serif; letter-spacing: .16em; }
@media (max-width: 1050px) { .hero { grid-template-columns: 1fr .85fr; padding-left: 6vw; padding-right: 6vw; }.path-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.quick-strip { gap: 30px; }.paths-section, .recent-section { padding-left: 6vw; padding-right: 6vw; }.about-section { margin-left: 6vw; margin-right: 6vw; } }
@media (max-width: 760px) { .app-shell { width: 100%; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }.topbar { min-height: 71px; padding: 0 20px; }.top-nav { display: none; }.top-status { font-size: 11px; }.hero { min-height: 0; padding: 48px 24px 30px; display: block; }.hero h1 { font-size: clamp(38px, 11vw, 56px); }.hero-art { min-height: 270px; margin-top: 26px; }.mascot-stack { transform: translateX(-50%) scale(.85); transform-origin: bottom center; }.quick-strip { padding: 16px 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.quick-tip { margin-left: 0; padding-left: 0; border-left: 0; }.paths-section, .recent-section { padding: 52px 24px 0; }.section-heading { display: block; }.search-wrap { width: 100%; margin-top: 20px; }.filter-result { width: 100%; margin: 3px 0 0; }.path-grid { grid-template-columns: 1fr; }.path-card { min-height: 335px; }.path-card p { min-height: auto; }.recent-section { padding-top: 60px; }.recent-list { grid-template-columns: 1fr; }.about-section { margin: 60px 24px 0; grid-template-columns: auto 1fr; }.about-section .outline-button { grid-column: 1 / -1; justify-self: start; }.footer { padding: 27px 24px; display: block; }.footer span { display: block; }.footer span + span { margin-top: 9px; } }
@media (max-width: 430px) { .top-status { display: none; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }.hero-art { transform: translateX(-8px); }.art-label { transform: scale(.86); }.filter-row { gap: 6px; }.filter-chip { padding-left: 11px; }.about-section { padding: 20px; } }

.back-home { color: var(--teal); text-decoration: none; font-size: 13px; font-weight: 700; }.back-home:hover { color: var(--coral); }
.library-body { background: #d7dfd7; }.library-shell { min-height: calc(100vh - 36px); }.library-main { max-width: 760px; padding: 76px clamp(28px, 8vw, 116px) 24px; }.library-main h1 { margin: 0; font-family: var(--display); font-size: clamp(38px, 5vw, 60px); line-height: 1.15; }.library-lede { max-width: 560px; margin: 17px 0 0; color: var(--ink-soft); line-height: 1.8; font-size: 15px; }.resource-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 8px 12px; color: var(--teal); border: 1px solid rgba(52,125,121,.22); border-radius: 999px; background: rgba(52,125,121,.08); font-size: 11px; }.resource-note span:first-child { color: var(--coral); font-size: 17px; }.resource-list { display: grid; gap: 10px; margin-top: 27px; }.resource-item { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.52); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }.resource-item:hover { transform: translateX(4px); border-color: rgba(52,125,121,.4); box-shadow: 0 10px 22px rgba(34, 62, 58, .09); }.resource-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; font-family: var(--display); font-size: 18px; }.math-resource { color: #34492b; background: var(--yellow); }.answer-resource { color: #fff; background: #9a6c59; font-family: "Manrope", sans-serif; }.chinese-resource { color: #fff; background: var(--coral); }.english-resource { color: #fff; background: var(--teal); font: 800 12px/1 "Manrope", sans-serif; }.resource-item strong, .resource-item small { display: block; }.resource-item strong { font-family: var(--display); font-size: 15px; }.resource-item small { margin-top: 3px; color: var(--ink-soft); font-size: 11px; }.resource-item b { margin-left: auto; color: var(--teal); font-size: 20px; }.library-back { margin-top: 28px; padding: 10px 15px 10px 18px; color: var(--navy); border: 1px solid var(--line); }.library-back:hover { color: var(--teal); background: rgba(52,125,121,.08); }
@media (max-width: 560px) { .library-main { padding: 56px 24px 20px; }.resource-item strong { font-size: 13px; }.back-home { font-size: 12px; } }
