:root {
  --bg: #f4f8f7;
  --card: #ffffff;
  --ink: #183735;
  --muted: #7b9390;
  --line: #e7efed;
  --primary: #167d70;
  --primary-dark: #0f5f55;
  --mint: #dff3ed;
  --orange: #f28c55;
  --orange-soft: #fff0e8;
  --yellow: #ffc85b;
  --shadow: 0 12px 32px rgba(20, 74, 68, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #dfe9e6; color: var(--ink); font-family: 'Noto Sans SC', sans-serif; }
body { display: flex; justify-content: center; }
button { border: 0; font: inherit; cursor: pointer; color: inherit; }
.app-shell { width: min(100%, 460px); min-height: 100vh; background: var(--bg); position: relative; box-shadow: 0 0 50px rgba(18, 66, 61, .08); }
.app-content { min-height: 100vh; padding-bottom: 88px; }
.screen { padding: 22px 20px 12px; animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.4px; }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; background: var(--primary); color: white; display: grid; place-items: center; font-size: 19px; box-shadow: 0 6px 12px rgba(22,125,112,.2); }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 1px; margin-top: 2px; }
.icon-btn { width: 38px; height: 38px; border-radius: 13px; background: white; color: var(--primary); display: grid; place-items: center; box-shadow: 0 3px 12px rgba(35, 87, 80, .06); font-size: 17px; }
.greeting { margin: 8px 0 20px; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.28; letter-spacing: -1px; margin-top: 7px; }
h2 { font-size: 19px; letter-spacing: -.4px; }
h3 { font-size: 15px; line-height: 1.4; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.65; }
.hero { border-radius: 24px; padding: 21px; color: white; background: linear-gradient(125deg, #166e64, #249c8d); position: relative; overflow: hidden; box-shadow: 0 15px 30px rgba(22, 125, 112, .18); }
.hero:after { content: ''; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; right: -58px; top: -52px; box-shadow: 0 0 0 25px rgba(255,255,255,.04), 0 0 0 50px rgba(255,255,255,.03); }
.hero h2 { font-size: 21px; max-width: 220px; position: relative; z-index: 1; }
.hero p { color: rgba(255,255,255,.76); font-size: 12px; margin-top: 7px; position: relative; z-index: 1; }
.hero-action { margin-top: 18px; padding: 9px 15px; border-radius: 10px; color: var(--primary-dark); background: white; font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 14px; }
.link-btn { background: transparent; color: var(--primary); font-size: 12px; font-weight: 600; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat-card { background: white; padding: 14px 12px; border-radius: 16px; border: 1px solid var(--line); }
.stat-card strong { font-family: 'Space Grotesk'; font-size: 20px; display: block; color: var(--primary-dark); }
.stat-card span { font-size: 11px; color: var(--muted); display: block; margin-top: 5px; }
.chips { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.search-box { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 13px; background: white; border: 1px solid var(--line); color: var(--primary); font-size: 17px; }
.search-box .placeholder { color: #a0b2af; font-size: 12px; }
.chip { white-space: nowrap; padding: 8px 14px; background: white; color: var(--muted); border-radius: 20px; font-size: 12px; border: 1px solid var(--line); }
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.course-list { display: grid; gap: 12px; }
.course-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: flex; gap: 12px; box-shadow: 0 4px 14px rgba(32, 82, 76, .035); }
.course-card img { width: 107px; height: 82px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.course-info { min-width: 0; padding: 3px 2px; display: flex; flex-direction: column; justify-content: space-between; }
.course-info h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-meta { font-size: 11px; color: var(--muted); display: flex; gap: 9px; }
.badge { display: inline-flex; align-items: center; align-self: flex-start; padding: 3px 7px; border-radius: 5px; background: var(--orange-soft); color: #dc713e; font-size: 10px; font-weight: 700; }
.badge.free { background: var(--mint); color: var(--primary); }
.bottom-nav { position: fixed; bottom: 0; z-index: 10; width: min(100%, 460px); height: 72px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-item { background: transparent; color: #9bb0ad; font-size: 11px; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-item.active { color: var(--primary); font-weight: 700; }
.nav-icon { font-family: Arial; font-size: 21px; line-height: 18px; }
.page-title { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.back-btn { background: transparent; color: var(--primary); font-size: 22px; padding: 0; }
.page-title h1 { font-size: 23px; margin: 0; }
.plan-grid { display: grid; gap: 12px; }
.plan { position: relative; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 18px; overflow: hidden; }
.plan.recommended { border: 2px solid var(--primary); padding: 17px; box-shadow: 0 10px 25px rgba(22,125,112,.1); }
.plan-tag { position: absolute; right: 0; top: 0; background: var(--primary); color: white; padding: 5px 12px; border-radius: 0 0 0 11px; font-size: 10px; font-weight: 700; }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-size: 16px; font-weight: 700; }
.price { color: var(--primary-dark); font-family: 'Space Grotesk'; font-size: 28px; font-weight: 700; }
.price small { font-family: inherit; color: var(--muted); font-size: 11px; font-weight: 500; }
.plan-note { color: var(--muted); font-size: 11px; margin: 6px 0 14px; }
.benefits { display: flex; gap: 8px; flex-wrap: wrap; }
.benefit { background: var(--bg); border-radius: 6px; padding: 5px 8px; color: #55716d; font-size: 10px; }
.primary-btn, .outline-btn { width: 100%; border-radius: 13px; padding: 13px 14px; font-size: 13px; font-weight: 700; }
.primary-btn { color: white; background: var(--primary); box-shadow: 0 8px 16px rgba(22,125,112,.16); }
.orange-btn { background: var(--orange); box-shadow: 0 8px 16px rgba(242,140,85,.18); }
.outline-btn { background: white; border: 1px solid var(--primary); color: var(--primary); }
.plan .primary-btn { margin-top: 15px; }
.compare { background: white; border-radius: 18px; padding: 16px; margin-top: 14px; border: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 10px; color: var(--muted); text-align: center; }
.compare-row:first-child { color: var(--ink); font-weight: 700; padding-top: 2px; }
.compare-row:last-child { border: 0; padding-bottom: 0; }
.compare-row span:first-child { text-align: left; color: var(--ink); }
.profile-header { display: flex; align-items: center; justify-content: space-between; background: white; border-radius: 20px; padding: 18px; border: 1px solid var(--line); }
.user-info { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--mint); }
.user-info strong { display: block; font-size: 16px; }
.user-info span { color: var(--muted); font-size: 11px; display: block; margin-top: 4px; }
.profile-arrow { color: var(--muted); font-size: 22px; }
.menu-card { margin-top: 13px; background: white; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.menu-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); font-size: 13px; background: white; text-align: left; }
.menu-row:last-child { border: 0; }
.menu-row .menu-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--mint); font-size: 15px; }
.menu-row .chevron { color: #b4c5c2; margin-left: auto; font-size: 20px; }
.member-card { background: linear-gradient(130deg, #153f3b, #20786d); color: white; border-radius: 21px; padding: 20px; min-height: 166px; position: relative; overflow: hidden; }
.member-card:after { content: '✦'; position: absolute; right: 19px; top: 14px; color: rgba(255,255,255,.22); font-size: 50px; }
.member-card .label { color: #a9d7ce; font-size: 11px; }
.member-card h2 { margin-top: 8px; font-size: 23px; }
.member-card .date { font-size: 11px; color: rgba(255,255,255,.65); margin-top: 13px; }
.member-card .mini-link { position: absolute; right: 19px; bottom: 18px; color: white; background: rgba(255,255,255,.14); border-radius: 8px; padding: 6px 10px; font-size: 10px; }
.progress-card { margin-top: 14px; padding: 18px; border-radius: 19px; background: white; border: 1px solid var(--line); }
.progress-title { display: flex; justify-content: space-between; align-items: center; }
.progress-title strong { font-size: 14px; }
.progress-title span { font-family: 'Space Grotesk'; color: var(--orange); font-size: 17px; font-weight: 700; }
.progress-track { height: 9px; background: #edf3f1; border-radius: 20px; margin: 15px 0 10px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 60%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ffc259); }
.learning-score { display: flex; justify-content: space-between; align-items: center; padding: 19px; border-radius: 20px; color: white; background: linear-gradient(125deg, #176f65, #279d8e); box-shadow: 0 12px 25px rgba(22,125,112,.15); }
.learning-score > div:first-child > span { color: #b9e0d8; font-size: 11px; }
.learning-score strong { display: block; font-family: 'Space Grotesk'; font-size: 25px; margin: 6px 0 3px; }
.learning-score p { color: rgba(255,255,255,.72); font-size: 10px; }
.score-ring { width: 67px; height: 67px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 5px solid rgba(255,255,255,.28); }
.score-ring b { font-family: 'Space Grotesk'; font-size: 17px; }
.score-ring small { color: rgba(255,255,255,.7); font-size: 8px; }
.continue-card { width: 100%; display: flex; gap: 12px; padding: 11px; text-align: left; background: white; border-radius: 18px; border: 1px solid var(--line); }
.continue-card img { width: 104px; height: 94px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.continue-card > div { min-width: 0; padding: 2px 0; }
.continue-card h3 { margin-top: 8px; font-size: 13px; }
.continue-card .progress-track { margin: 11px 0 6px; height: 6px; }
.step-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.promo-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.promo-link { background: white; padding: 14px 4px; border: 1px solid var(--line); border-radius: 15px; text-align: center; color: var(--primary); font-size: 11px; }
.promo-link b { display: block; font-size: 20px; margin-bottom: 8px; }
.detail-cover { margin: -22px -20px 0; position: relative; height: 230px; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.detail-cover:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,38,35,.58), transparent 60%); }
.cover-back { position: absolute; top: 17px; left: 20px; z-index: 1; background: rgba(0,0,0,.25); color: white; border-radius: 50%; width: 35px; height: 35px; }
.play-button { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: white; color: var(--primary); font-size: 20px; padding-left: 4px; box-shadow: 0 5px 20px rgba(0,0,0,.15); }
.detail-body { padding-top: 22px; }
.detail-body h1 { font-size: 22px; margin: 0 0 8px; }
.detail-meta { display: flex; gap: 13px; color: var(--muted); font-size: 11px; margin: 12px 0 20px; }
.info-box { padding: 13px; border-radius: 12px; background: var(--orange-soft); color: #b86238; font-size: 11px; line-height: 1.7; }
.lesson-list { margin-top: 17px; display: grid; gap: 8px; }
.lesson { display: flex; align-items: center; gap: 11px; padding: 13px; background: white; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; }
.lesson-num { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: var(--mint); font-size: 11px; }
.lesson small { color: var(--muted); margin-left: auto; font-size: 10px; }
.wallet-banner { background: linear-gradient(120deg, #fff0e4, #fffaf2); border: 1px solid #ffe4d2; border-radius: 18px; padding: 17px; display: flex; justify-content: space-between; align-items: center; }
.wallet-banner strong { display: block; color: #b9673f; font-family: 'Space Grotesk'; font-size: 26px; margin-top: 3px; }
.wallet-banner span { font-size: 11px; color: #b98264; }
.rule-box { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 16px; margin-top: 14px; }
.rule-box h3 { margin-bottom: 10px; }
.rule-box p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.invite-list { margin-top: 13px; background: white; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.invitee { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.invitee:last-child { border: 0; }
.invitee img { width: 33px; height: 33px; border-radius: 50%; }
.invitee div { flex: 1; }
.invitee strong { display: block; font-size: 12px; }
.invitee small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.done { color: var(--primary); font-size: 10px; font-weight: 700; }
.login-screen { min-height: 100vh; padding: 65px 29px 30px; background: linear-gradient(145deg, #edf8f5, #f8fbfa); display: flex; flex-direction: column; }
.login-art { height: 210px; position: relative; display: grid; place-items: center; margin-bottom: 20px; }
.login-orbit { width: 180px; height: 180px; border-radius: 50%; border: 1px solid #b9dfd6; box-shadow: 0 0 0 22px rgba(186,223,215,.25), 0 0 0 45px rgba(186,223,215,.16); display: grid; place-items: center; color: var(--primary); font-size: 68px; font-family: 'Space Grotesk'; font-weight: 700; }
.login-screen h1 { font-size: 30px; }
.login-screen .lead { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 11px 0 35px; }
.login-bottom { margin-top: auto; }
.agreement { text-align: center; color: var(--muted); font-size: 10px; margin: 14px 0 0; }
.agreement a { color: var(--primary); }
.empty-note { text-align: center; color: var(--muted); font-size: 12px; padding: 34px; }
.modal-mask { position: fixed; inset: 0; z-index: 30; background: rgba(14,43,40,.46); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(100%, 460px); padding: 22px 20px 28px; background: var(--bg); border-radius: 24px 24px 0 0; animation: sheet .25s ease; }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.close-btn { background: transparent; color: var(--muted); font-size: 22px; }
.modal p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.choice-grid { display: grid; gap: 9px; margin: 16px 0; }
.choice { text-align: left; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.choice.selected { border: 1.5px solid var(--primary); background: #f0faf7; }
.choice strong { font-size: 13px; display: block; }
.choice span { color: var(--muted); font-size: 10px; display: block; margin-top: 4px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(23,55,52,.92); color: white; border-radius: 9px; padding: 10px 16px; font-size: 12px; animation: toast .2s ease; white-space: nowrap; }
@media (min-width: 461px) { .app-shell { margin: 24px 0; min-height: calc(100vh - 48px); border-radius: 25px; overflow: hidden; } .app-content { min-height: calc(100vh - 48px); } .bottom-nav { bottom: 24px; border-radius: 0 0 25px 25px; } .login-screen { min-height: calc(100vh - 48px); } }
