#course-home { color-scheme: light; --ink: #34483c; --muted: #7d8579; --paper: #f5f3e9; --green: #4e6850; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
#course-home * { box-sizing: border-box; }
#course-home { margin: 0; color: var(--ink); background: var(--paper); }
#course-home button, #course-home a { -webkit-tap-highlight-color: transparent; }
#course-home button { font: inherit; cursor: pointer; touch-action: manipulation; }
#course-home button:focus-visible, #course-home a:focus-visible { outline: 3px solid #9b7950; outline-offset: 5px; }
#course-home button[hidden], #course-home img[hidden] { display: none !important; }
#course-home .topbar { max-width: 1400px; margin: auto; padding: 22px 5.5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#course-home .brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
#course-home .brand-picture { width: 39px; height: 45px; overflow: hidden; display: block; }
#course-home .brand-picture img { width: 38px; height: auto; }
#course-home .brand strong { display: block; font-size: 17px; font-weight: 750; letter-spacing: 1px; }
#course-home .brand small { display: block; margin-top: 4px; color: #8b8d7e; font-size: 9px; letter-spacing: 1px; }
#course-home .header-tools { display: flex; align-items: center; gap: 30px; }
#course-home .languages { display: flex; gap: 3px; }
#course-home .languages button, #course-home .parent-link { min-height: 44px; border: 0; background: transparent; padding: 8px 13px; color: #8c9184; font-size: 12px; }
#course-home .languages button[aria-pressed="true"] { color: var(--green); background: #e8ecdf; border-radius: 30px; }
#course-home .parent-link { color: #697460; border-left: 1px solid #dedfd3; padding-left: 27px; }
#course-home .eyebrow { display: block; font-size: 10px; font-weight: 650; letter-spacing: 3px; color: #93977e; }
#course-home h1 { margin: 13px 0 11px; font-size: clamp(29px, 3.1vw, 43px); letter-spacing: 1px; font-weight: 650; line-height: 1.35; }
#course-home .launch-button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; padding: 14px 23px; min-height: 47px; border: 0; border-radius: 13px; background: var(--green); color: #fffef5; font-size: 13px; white-space: nowrap; }
#course-home .launch-button:hover { background: #405b43; }
#course-home .page-footer { max-width: 1400px; display: flex; justify-content: space-between; gap: 12px; padding: 30px 5.5% 20px; margin: auto; color: #929885; font-size: 10px; letter-spacing: .5px; }
#course-home dialog { width: min(460px, 91vw); max-height: 88svh; border: 1px solid #e5e7d9; padding: 0; border-radius: 25px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 90px #29442f33; }
#course-home dialog::backdrop { background: #263b3159; backdrop-filter: blur(5px); }
#course-home .dialog-body { padding: 30px; position: relative; }
#course-home .dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid #e1e4d6; border-radius: 50%; background: #fffdf4; color: #64745d; font-size: 23px; }
#course-home dialog h2 { margin: 14px 0; font-size: 26px; font-weight: 650; }
#course-home dialog p { font-size: 14px; line-height: 1.9; color: #73816b; }
#course-home .dialog-note { font-size: 11px; padding-top: 14px; border-top: 1px solid #dedfd2; }
#course-home dialog .launch-button { margin-top: 10px; }
@media (min-width: 1500px) {
#course-home .topbar { padding-top: 28px; padding-bottom: 28px; }
}
@media (max-width: 900px) and (min-width: 701px) {
#course-home .topbar { padding: 18px 4%; }
#course-home .header-tools { gap: 8px; }
}
@media (max-width: 700px) {
#course-home .topbar { padding: 17px 5%; gap: 10px; align-items: flex-start; }
#course-home .brand strong { font-size: 14px; letter-spacing: 0; }
#course-home .brand small { font-size: 8px; letter-spacing: 0; }
#course-home .brand-picture { width: 28px; height: 35px; }
#course-home .brand-picture img { width: 28px; }
#course-home .header-tools { display: block; text-align: right; }
#course-home .languages { gap: 0; }
#course-home .languages button { font-size: 10px; padding: 5px 8px; min-height: 35px; }
#course-home .parent-link { font-size: 10px; min-height: 30px; padding: 5px 8px; border: 0; }
#course-home .eyebrow { font-size: 9px; letter-spacing: 2px; }
#course-home h1 { font-size: 29px; letter-spacing: 0; margin-top: 12px; }
#course-home .page-footer { padding: 24px 5% 20px; flex-direction: column; align-items: center; font-size: 9px; text-align: center; }
#course-home .dialog-body { padding: 25px; }
#course-home[data-language="english"] .brand small { max-width: 100px; font-size: 7px; }
#course-home[data-language="english"] .brand strong { font-size: 12px; }
#course-home[data-language="english"] h1 { font-size: 26px; } }
@media (min-width: 701px) and (max-height: 850px) {
#course-home .topbar { padding-top: 13px; padding-bottom: 13px; }
#course-home h1 { margin: 8px 0; font-size: 35px; }
#course-home .page-footer { padding-top: 20px; } }
@media (max-width: 700px) {
#course-home .languages button, #course-home .parent-link { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
#course-home *, #course-home *::before, #course-home *::after { transition: none !important; animation: none !important; } }
#map[data-course-view="island"] { position: relative; inset: auto; padding: 0; min-height: 100svh; height: auto; background: #f5f3e9; overflow: visible; }
#map[data-course-view="island"].is-active { display: block; }
#map[data-course-view="island"]::before,
#map[data-course-view="island"] > :is(.map-topbar, .map-main),
#course-home[hidden] { display: none; }
#course-home { min-width: 0; min-height: 100svh; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
#course-home [hidden] { display: none !important; }
#course-home .brand { border: 0; padding: 0; background: transparent; text-align: left; }
#course-home h1:focus { outline: none; }
#course-home .island-page { width: min(1080px, 90%); margin: 0 auto; padding: 18px 0 30px; }
#course-home .back-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: #71816b; background: transparent; font-size: 13px; }
#course-home .island-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; margin: 20px 0 34px; }
#course-home .island-hero h1 { text-align: left; font-size: clamp(28px, 4vw, 44px); margin: 16px 0; }
#course-home .island-hero p { color: #7d8579; font-size: 14px; line-height: 1.9; }
#course-home .island-cover { display: block; width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: 38% 46% 34% 42% / 42% 35% 48% 39%; border: 5px solid #ebe8d9; box-shadow: 0 10px 0 #d7d3bf; }
#course-home .level-invitation { color: #7d8579; font-size: 13px; margin: 0 0 20px; }
#course-home .home-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#course-home .home-level { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; min-width: 0; min-height: 113px; padding: 18px; border-radius: 19px; border: 1px solid #e1e3d5; background: #fffdf5; color: #34483c; text-align: left; transition: border-color .2s, transform .2s; }
#course-home .home-level:hover { border-color: var(--accent); transform: translateY(-2px); }
#course-home .home-level-number { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #edf0e4; color: var(--accent); font: italic 19px/1 Georgia, serif; }
#course-home .home-level strong { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
#course-home .home-level-action { grid-column: 2; font-size: 11px; color: #849079; }
#course-home .home-level[data-completed="true"] { border-color: #b2c5a4; }
#course-home .home-level:disabled { opacity: .55; cursor: default; transform: none; }
#course-home .parent-settings { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
#course-home .setting-button { min-height: 44px; padding: 10px 16px; background: #e9eddf; color: #4e6850; border: 1px solid #d6ddcb; border-radius: 12px; font-size: 13px; }
#course-home .profile-name { padding: 12px 15px; background: #e9eddf; border-radius: 12px; overflow-wrap: anywhere; }
#course-home .parent-dialog { padding: 0; }
#course-home .parent-dialog h2 { padding-right: 22px; }
body.course-product #enter { background: #f5f3e9; color: #34483c; }
body.course-product #entryMapBackdrop, body.course-product #enter .entry-wrap::before, body.course-product #enter .entry-wrap::after { display: none; }
body.course-product #enter .entry-start { background: #4e6850; box-shadow: 0 6px 0 #3d543f, 0 14px 26px #52614d18; }
body.course-product #enter .entry-bear svg { display: none; }
body.course-product #enter .entry-bear img { width: 115px; height: 140px; object-fit: contain; }
body.course-product #enter .map-home-link { min-height: 44px; background: transparent; color: #63765a; }
@media (max-width: 700px) {
  #course-home .island-page { width: 90%; padding-top: 0; }
  #course-home .island-hero { gap: 16px; margin: 16px 0 28px; grid-template-columns: 1fr; }
  #course-home .island-hero h1 { font-size: 29px; margin: 12px 0; }
  #course-home .island-hero p { margin: 0; font-size: 12px; }
  #course-home .island-cover { aspect-ratio: 2.5; max-height: 165px; }
  #course-home .home-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  #course-home .home-level { grid-template-columns: 1fr; align-content: start; min-height: 150px; gap: 9px; padding: 14px; }
  #course-home .home-level-number { grid-row: auto; width: 30px; height: 30px; font-size: 17px; }
  #course-home .home-level-action { grid-column: 1; align-self: end; }
  #course-home .home-level strong { font-size: 13px; }
  #course-home .dialog-body { padding-top: 45px; }
}
@media (max-width: 370px) {
  #course-home .topbar { padding-left: 4%; padding-right: 4%; gap: 5px; }
  #course-home .brand strong { font-size: 12px; }
  #course-home .languages button { padding-left: 6px; padding-right: 6px; }
}
