:root{--ink:#073f3b;--ink-2:#0b5550;--paper:#fbfaf8;--muted:#687371;--line:#e8e5df;--gold:#f4cb64;--soft:#f1eee8;--danger:#a83b32;--shadow:0 18px 45px rgba(7,63,59,.13)}
*{box-sizing:border-box}html{background:#e8e8e5;scroll-behavior:smooth;font-size:15px}body{margin:0;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}.shell{width:min(100%,680px);min-height:100vh;margin:auto;background:var(--paper);padding-bottom:78px;box-shadow:0 0 50px rgba(0,0,0,.08)}button,input{font:inherit}button{cursor:pointer}.topbar{height:66px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;background:rgba(251,250,248,.94);position:sticky;top:0;z-index:10;border-bottom:1px solid rgba(232,229,223,.75);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none}.brand-mark,.avatar-placeholder{width:36px;height:36px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;font-family:STSong,"Songti SC",serif;font-size:20px;background:#fff}.brand strong,.brand small{display:block}.brand strong{font-size:16px}.brand small{color:var(--muted);font-size:11px;margin-top:1px}.user-chip{min-height:36px;border:0;border-radius:999px;background:var(--ink);color:#fff;padding:7px 12px;font-size:12px}.view{display:none}.view.active{display:block}.hero{background:var(--ink);color:#fff;padding:32px 20px 22px;min-height:320px;display:flex;flex-direction:column;justify-content:flex-end}.eyebrow{margin:0 0 10px;color:var(--gold);font-size:12px;letter-spacing:.08em;font-weight:600}.eyebrow.dark{color:#8b7444}.hero h1,.page-title h1{font-family:STSong,"Songti SC",serif;font-weight:500}.hero h1{margin:0;font-size:clamp(29px,7.4vw,43px);line-height:1.28;letter-spacing:.01em}.hero>p:not(.eyebrow){color:#cfdddb;font-size:14px;line-height:1.65;margin:16px 0}.hero-action{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:46px;padding:13px 16px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;text-align:left}.hero-action span{font-size:19px;color:var(--gold)}.section{padding:24px 18px}.section+.section{border-top:1px solid var(--line)}.section.compact{padding-top:20px;padding-bottom:20px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-head small{display:block;color:#8b7444;font-size:11px;margin-bottom:4px}.section-head h2,.promise h2{font-family:STSong,"Songti SC",serif;font-size:23px;font-weight:500;margin:0}.paid-pill{background:#ffd857;color:#173b38;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700}.featured-card{background:linear-gradient(145deg,#f0eee7,#c7cdca);border-radius:16px;overflow:hidden;box-shadow:0 12px 30px rgba(7,63,59,.11)}.course-art{height:136px;display:flex;align-items:flex-end;padding:15px 17px;background:linear-gradient(135deg,#e5e1d7,#9aa9a5);color:white;position:relative}.course-art:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,rgba(7,63,59,.68))}.course-art span,.course-art small{position:relative;z-index:1}.course-art span{font-family:Georgia,serif;font-size:60px;line-height:.8}.course-art small{margin-left:8px;font-size:12px;font-weight:700}.featured-copy{padding:17px;background:#fff}.featured-copy .kicker{color:#8b7444;font-size:11px;margin:0 0 6px}.featured-copy h3{font-family:STSong,"Songti SC",serif;font-size:21px;line-height:1.38;margin:0}.featured-copy>p:not(.kicker){color:var(--muted);font-size:13px;line-height:1.6}.price-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:10px 0}.price-row strong{color:#a66e08;font-size:15px}.price-row span{color:var(--muted);font-size:12px;text-decoration:none}.text-action{min-height:40px;border:0;background:none;color:var(--ink);font-weight:700;padding:6px 0}.promise{background:#f3f0e9}.promise h2{line-height:1.4}.promise>p:last-child,.hint{color:var(--muted);font-size:13px;line-height:1.65}.page-title{padding:25px 18px 14px}.page-title h1{font-size:34px;margin:0}.page-title>p:last-child{color:var(--muted);font-size:13px}.search{margin:0 18px 18px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;gap:8px;color:var(--muted)}.search input{border:0;outline:0;width:100%;background:transparent;color:var(--ink)}.course-list{padding:0 18px 24px;display:grid;gap:12px}.course-row{display:grid;grid-template-columns:94px 1fr;gap:12px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;color:var(--ink)}.course-thumb{min-height:94px;border-radius:10px;background:linear-gradient(145deg,#e9e5dc,#9aaaa6);display:flex;flex-direction:column;justify-content:space-between;padding:8px;color:#fff}.course-thumb b{align-self:flex-start;background:#ffd857;color:#173b38;padding:3px 7px;border-radius:999px;font-size:11px}.course-thumb small{font-size:11px;font-weight:700}.course-row h3{font-size:15px;line-height:1.4;margin:2px 0 6px}.course-row p{color:var(--muted);font-size:12px;margin:0;line-height:1.45}.profile-panel{margin:19px 18px 0;padding:16px;border-radius:16px;background:#fff;border:1px solid var(--line);display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.profile-panel strong,.profile-panel small{display:block}.profile-panel small{color:var(--muted);font-size:11px;margin-top:3px}.profile-panel img{width:36px;height:36px;border-radius:50%;object-fit:cover}.outline-button{min-height:36px;border:1px solid var(--ink);background:#fff;color:var(--ink);border-radius:999px;padding:7px 10px;font-size:12px}.primary-button{width:100%;min-height:44px;border:0;border-radius:11px;background:var(--ink);color:#fff;padding:12px 15px;font-size:14px;font-weight:700}.plain-list{display:grid;gap:8px}.list-card{padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.list-card header{display:flex;justify-content:space-between;gap:10px}.list-card strong{font-size:14px}.list-card p{color:var(--muted);font-size:12px;margin:6px 0 0;line-height:1.5}.status{font-size:11px;color:#8b7444;white-space:nowrap}.empty{text-align:center;color:#8a9391;padding:14px 7px;font-size:13px}.binding-note{margin:11px 0;padding:10px 12px;border-radius:10px;background:#eef5f3;color:var(--ink);font-size:12px}.referral-section .primary-button{margin:4px 0 12px}.bottom-nav{position:fixed;z-index:12;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,680px);display:grid;grid-template-columns:repeat(3,1fr);padding:7px 8px max(7px,env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(16px)}.bottom-nav button{min-height:46px;border:0;background:none;color:#737d7b;display:grid;gap:2px;place-items:center;font-size:11px}.bottom-nav button span{font-size:18px}.bottom-nav button.active{color:var(--ink);font-weight:700}.sheet{width:min(100%,680px);max-width:none;margin:auto 0 0;max-height:88vh;border:0;border-radius:20px 20px 0 0;padding:23px 18px calc(24px + env(safe-area-inset-bottom));color:var(--ink);overflow:auto}.sheet::backdrop{background:rgba(0,0,0,.46)}.sheet-handle{width:36px;height:4px;background:#d5d7d4;border-radius:999px;margin:-12px auto 13px}.close{position:absolute;right:14px;top:14px;width:30px;height:30px;border:0;border-radius:50%;background:#f0efec;color:var(--ink);font-size:20px}.detail-cover{height:145px;border-radius:14px;background:linear-gradient(135deg,#e8e4da,#78908a);display:flex;align-items:flex-end;padding:16px;color:white;font-family:STSong,"Songti SC",serif;font-size:25px}.detail h2{font-family:STSong,"Songti SC",serif;font-size:25px;line-height:1.38;margin:17px 0 6px}.detail .meta{color:#8b7444;font-size:13px}.detail .description{white-space:pre-line;color:#4f5d5a;font-size:13px;line-height:1.7}.detail h3{font-size:16px;margin-top:19px}.rules{padding-left:19px;color:#4f5d5a;font-size:13px;line-height:1.7}.detail-actions{position:sticky;bottom:-24px;margin:19px -18px -24px;padding:11px 18px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}.detail-actions button[disabled]{background:#a5adab}.compact-sheet form h2{font-family:STSong,"Songti SC",serif;font-size:25px;margin:0 0 16px}.compact-sheet label{display:grid;gap:6px;margin:12px 0;font-size:14px;font-weight:600}.compact-sheet input{border:1px solid var(--line);border-radius:10px;padding:12px;outline:none}.compact-sheet input:focus{border-color:var(--ink)}.form-note{font-size:12px;color:var(--muted);line-height:1.55}.toast{position:fixed;z-index:30;left:50%;bottom:86px;transform:translate(-50%,18px);max-width:min(86%,520px);padding:9px 13px;border-radius:999px;background:rgba(7,63,59,.94);color:#fff;font-size:12px;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
/* A compact, reachable navigation bar that keeps labels visible and respects phone safe areas. */
:root{--nav-height:68px;--nav-safe:env(safe-area-inset-bottom,0px)}
html{font-size:14px}
.shell{min-height:100dvh;padding-bottom:calc(var(--nav-height) + var(--nav-safe) + 10px)}
.bottom-nav{min-height:calc(var(--nav-height) + var(--nav-safe));padding:8px 12px calc(8px + var(--nav-safe));gap:6px;background:rgba(255,255,255,.94);box-shadow:0 -8px 26px rgba(7,63,59,.10);border-top:1px solid rgba(232,229,223,.9)}
.bottom-nav button{position:relative;min-height:52px;padding:6px 5px;border-radius:14px;gap:3px;color:#687371;line-height:1;transition:background-color .16s ease,color .16s ease,transform .16s ease}
.bottom-nav button:active{transform:scale(.97)}
.bottom-nav button.active{background:#eaf2f0;color:var(--ink);font-weight:700}
.bottom-nav button.active::before{content:"";position:absolute;top:5px;width:18px;height:3px;border-radius:99px;background:var(--gold)}
.bottom-nav .nav-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav .nav-label{font-size:11px;letter-spacing:.02em}
.course-price{color:#a66e08!important;font-weight:700}
.section-intro{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.6}
.free-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;background:#eaf2f0;color:var(--ink);font-size:12px;font-weight:700}
.public-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 16px;padding:0;list-style:none}.public-steps li{min-width:0;padding:10px 8px;border-top:2px solid #d9c69a}.public-steps b,.public-steps strong,.public-steps span{display:block}.public-steps b{color:#9c824b;font-size:12px;letter-spacing:.08em}.public-steps strong{margin:5px 0 3px;font-size:13px}.public-steps span{color:var(--muted);font-size:11px;line-height:1.4}
.public-course-grid{display:grid;gap:10px}.public-course-card{width:100%;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;color:var(--ink);box-shadow:0 8px 18px rgba(7,63,59,.05)}.public-course-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8b7444;font-size:12px}.public-course-card-copy h3{margin:12px 0 5px;font-family:STSong,"Songti SC",serif;font-size:20px;font-weight:500;line-height:1.35}.public-course-card-copy p{margin:3px 0;color:var(--muted);font-size:12px;line-height:1.5}.public-course-card-copy .course-price{color:#277168!important}.public-empty{margin:0;padding:14px 10px;border:1px dashed #cddbd7;border-radius:12px;background:#f7fbfa;color:#52706b}
.all-courses-action{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;margin-top:8px;padding:7px 2px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);font-weight:700;text-align:left}.all-courses-action span{font-size:18px;color:#9c824b}
.advanced-course-section{padding:8px 18px 26px;border-top:1px solid var(--line)}.advanced-course-section .section-head{margin:20px 0 12px}.advanced-row{width:100%}.free-thumb{background:linear-gradient(145deg,#e8eee8,#75a39b)!important}
.fee-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0 2px;padding:13px 14px;border:1px solid #eadfc8;border-radius:12px;background:#fffaf0;color:#6f5730;font-size:13px}
.fee-card strong{color:#9e6808;font-size:22px;line-height:1}.fee-card strong small{font-size:12px;font-weight:600}
.free-fee-card{border-color:#cce1dc;background:#f0f8f6;color:#25655f}.free-fee-card strong{color:#197167;font-size:19px}
.form-fee{margin:14px 0 8px;padding:10px 12px;border-radius:10px;background:#fff5d9;color:#865905;font-size:13px;font-weight:700}
.free-form-note{background:#eef7f5;color:#22665e}
.manager-section{background:#f5f8f7}.manager-pill{border-radius:999px;padding:5px 9px;background:#dceeea;color:#1d655c;font-size:11px;font-weight:700}.manager-create{margin:3px 0 12px}.manager-course-card{padding:12px;border:1px solid #d7e5e1;border-radius:12px;background:#fff}.manager-course-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.manager-course-card h3{margin:0;font-size:15px;line-height:1.45}.manager-course-card p{margin:6px 0 0;color:var(--muted);font-size:12px}.manager-course-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.roster-button{min-height:32px;border:0;border-radius:9px;padding:6px 9px;background:#eaf2f0;color:var(--ink);font-size:12px;font-weight:700}
.roster-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.roster-summary div{padding:10px 7px;border-radius:10px;background:#f1f5f3;text-align:center}.roster-summary strong,.roster-summary span{display:block}.roster-summary strong{font-size:20px}.roster-summary span{margin-top:3px;color:var(--muted);font-size:11px}.roster-person{padding:10px 0;border-top:1px solid var(--line)}.roster-person strong,.roster-person span{display:block}.roster-person span{margin-top:3px;color:var(--muted);font-size:12px}
/* Keep the card system compact and softly rounded across home, list and sheets. */
.section{padding-top:20px;padding-bottom:20px}.section.compact{padding-top:17px;padding-bottom:17px}.section-head{margin-bottom:12px}.section-head h2,.promise h2{font-size:22px}.featured-card{border-radius:14px;box-shadow:0 10px 24px rgba(7,63,59,.10)}.course-art{height:112px;padding:13px 15px}.course-art span{font-size:49px}.featured-copy{padding:14px}.featured-copy h3{font-size:19px}.course-row{grid-template-columns:82px 1fr;gap:11px;padding:9px;border-radius:12px}.course-thumb{min-height:82px;border-radius:9px}.public-course-card{border-radius:12px;padding:13px;box-shadow:0 7px 16px rgba(7,63,59,.05)}.profile-panel{padding:14px;border-radius:14px}.list-card{padding:11px;border-radius:11px}.primary-button{min-height:42px;border-radius:10px;padding:11px 14px}.sheet{border-radius:18px 18px 0 0;padding:21px 18px calc(22px + env(safe-area-inset-bottom))}.detail-cover{height:124px;border-radius:12px;padding:14px;font-size:23px}.detail h2{font-size:23px;margin-top:15px}.compact-sheet form h2{font-size:23px;margin-bottom:14px}.compact-sheet label{margin:11px 0;font-size:13px}.compact-sheet label small{color:var(--muted);font-size:11px;font-weight:400}.compact-sheet input,.compact-sheet textarea{min-height:42px;padding:11px;border:1px solid var(--line);border-radius:9px;outline:none;resize:vertical}.compact-sheet textarea{min-height:78px}.compact-sheet input:focus,.compact-sheet textarea:focus{border-color:var(--ink)}
.toast{bottom:calc(var(--nav-height) + var(--nav-safe) + 14px)}
@media(min-width:721px){body{padding:24px 0}.shell{min-height:calc(100dvh - 48px);border-radius:24px;overflow:hidden}.bottom-nav{bottom:24px;border-radius:0 0 24px 24px}.sheet{left:50%;transform:translateX(-50%);border-radius:24px;margin:auto;max-height:84vh}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
