:root {
  color-scheme: light;
  --ink: #203c33;
  --leaf: #244b3c;
  --celery: #e4edda;
  --paper: #fbfcf7;
  --muted: #526459;
  --rule: #ced9c9;
  --display: "Noto Serif CJK SC", "Songti SC", STSong, SimSun, Georgia, serif;
  font-family: "Instrument Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary, label { cursor: pointer; }
a { color: inherit; }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #8c552d; outline-offset: 4px;
}
[hidden] { display: none !important; }
.page-width { width: min(100% - 7rem, 78rem); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; transform: translateY(-200%); z-index: 5; padding: .5rem 1rem; background: white; }
.skip:focus { transform: translateY(0); }
.site-head, .site-foot, .section-head { display: flex; align-items: center; justify-content: space-between; }
.site-head { min-height: 5.9rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: bold 1.75rem/1.2 var(--display); letter-spacing: .08em; }
.brand-mark { display: inline-block; position: relative; width: 2.65rem; height: 2.45rem; color: var(--leaf); }
.brand-mark::before { content: ""; position: absolute; bottom: .32rem; left: .1rem; width: 2.1rem; height: .89rem; border-radius: .1rem .1rem 1.35rem 1.35rem; background: currentColor; }
.brand-mark::after { content: ""; position: absolute; left: .77rem; bottom: .13rem; width: .76rem; height: .19rem; border-radius: 3px; background: currentColor; }
.brand-mark i::before, .brand-mark i::after { content: ""; position: absolute; left: 1.16rem; top: .65rem; width: 1.43rem; height: .15rem; border-radius: 3px; background: currentColor; transform: rotate(-37deg); }
.brand-mark i::after { left: .88rem; top: .58rem; transform: rotate(-51deg); }
.site-head nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.7rem); }
.site-head nav a, .site-foot a { text-decoration: none; font-size: .93rem; }
.site-head nav a:hover, .site-foot a:hover { text-decoration: underline; text-underline-offset: .35em; }
#course, #catalog, #goods, #recipe, #help { scroll-margin-top: 1.4rem; }
.hero { display: grid; grid-template-columns: .82fr 1.18fr; background: var(--celery); border-radius: 1.15rem; overflow: hidden; }
.hero-copy { align-self: center; min-width: 0; padding: clamp(2.1rem, 4.25vw, 4rem); }
.course-format { display: flex; align-items: center; gap: .55rem; color: var(--leaf); font-size: .94rem; font-weight: 600; }
.film-icon { position: relative; display: inline-block; width: 1.13rem; height: .89rem; border: 1.5px solid currentColor; border-radius: .18rem; }
.film-icon::after { content: ""; position: absolute; left: .35rem; top: .17rem; border-left: .33rem solid currentColor; border-top: .2rem solid transparent; border-bottom: .2rem solid transparent; }
h1,h2,h3,p { margin: 0; }
h1, h2, h3, .foot-brand { font-family: var(--display); }
h1 { font-size: clamp(3.35rem, 5.75vw, 5.6rem); line-height: 1.19; letter-spacing: -.055em; margin: .9rem 0 1.1rem; }
.hero-intro { font-size: clamp(1rem, 1.15vw, 1.11rem); line-height: 1.85; max-width: 24em; }
.hero-meta { display: flex; align-items: center; gap: .7rem; margin: .9rem 0 1.5rem; font-size: .88rem; font-weight: 550; color: var(--muted); }
.hero-meta span + span::before { content: ""; display: inline-block; margin-right: .7rem; width: .24rem; height: .24rem; vertical-align: middle; border-radius: 50%; background: currentColor; }
.enroll { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.4rem; border-top: 1px solid #b9cbb4; padding-top: 1.25rem; }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price span { font-family: Georgia, "Noto Serif CJK SC", serif; font-size: 1.75rem; letter-spacing: -.035em; font-variant-numeric: lining-nums; }
.price small { color: var(--muted); margin-top: .35rem; font-size: .83rem; }
.action-primary, .retry { border: 0; border-radius: .5rem; background: var(--leaf); color: white; padding: .77rem 1.3rem; font-weight: 650; }
.action-primary { text-decoration: none; }
.action-primary:hover:not(:disabled), .retry:hover { background: #173b2d; }
.availability { flex-basis: 100%; font-size: .875rem; color: #42574a; }
.hero-media { min-height: clamp(24rem, 33vw, 32.5rem); position: relative; background: #dad8c9; overflow: hidden; }
.hero-media img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 58% center; }
.media-preview { position: absolute; right: 1.3rem; bottom: 1.3rem; display: inline-flex; align-items: center; gap: .58rem; padding: .63rem 1rem; border: 1px solid rgba(255,255,255,.66); border-radius: 2rem; background: rgba(22,41,32,.86); color: white; font-weight: 600; }
.media-preview:hover { background: var(--leaf); }
.play-glyph { display: block; border-left: .57rem solid currentColor; border-top: .36rem solid transparent; border-bottom: .36rem solid transparent; }
.checkout-status { padding: .8rem 1rem; margin-top: 1rem; border-left: 3px solid var(--leaf); background: #e8efe2; }
.retry { margin-top: .5rem; }
.recipe,.help,.course-catalog,.goods-catalog { margin-top: clamp(2.7rem,5.3vw,5rem); }
.course-list,.goods-list { display: grid; gap: clamp(.85rem,2vw,1.7rem); margin-top: 1.35rem; }
.course-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
.course-card { display: grid; grid-template-columns: 1fr auto; gap: .65rem; align-content:start; text-decoration: none; }
.catalog-image { display: block; width: 100%; object-fit: cover; border-radius: .55rem; background: #e6eadf; }
.course-card .catalog-image { grid-column: 1/-1; aspect-ratio: 1.95; }
.card-copy h3 { line-height: 1.45; }
.card-meta { color: var(--muted); font-size: .89rem; line-height: 1.55; }
.card-action { align-self: center; color: var(--leaf); font-size: .81rem; white-space: nowrap; border-bottom: 1px solid currentColor; }
.course-card[aria-current] .card-action { border: 0; color: var(--muted); }
.course-card:hover h3,.goods-card:hover .goods-name { text-decoration: underline; text-underline-offset: .18rem; }
.goods-note { margin: .7rem 0 0; color: var(--muted); font-size: .94rem; }
.goods-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
.goods-card { display: flex; flex-direction: column; gap: .2rem; padding: 0; background: transparent; border: 0; color: inherit; text-align: left; }
.goods-card img { aspect-ratio: 1; object-fit: contain; background: #eeeee6; margin-bottom: .45rem; }
.goods-name { font: bold 1.12rem/1.55 var(--display); }
.product-view { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; }
.product-gallery { position: relative; background: #eeeee6; }
.product-gallery > img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 1.15rem; padding: .45rem 1rem .6rem; color: #374d41; font-size: .9rem; }
.gallery-controls button { border: 1px solid #a9b6a5; width: 2.3rem; height: 2.3rem; border-radius: 50%; background:var(--paper); color:var(--leaf); font-size: 1.5rem; line-height: 1; }
.gallery-controls button:disabled { opacity: .4; cursor: default; }
.product-copy { padding: clamp(1.2rem,3.2vw,2.1rem); }
.product-price { font: 1.55rem/1.45 Georgia,var(--display); margin-bottom: .9rem; }
.product-availability { border-top: 1px solid var(--rule); margin-top: 1.2rem; padding-top: .75rem; color:var(--muted); font-size:.91rem; }
.section-head { gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .9rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.35; letter-spacing: -.045em; }
.section-head > span { color: var(--muted); font-size: .9rem; }
.recipe-columns { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem,6vw,5.5rem); padding-top: 1.8rem; }
h3 { font-size: 1.5rem; line-height: 1.5; }
.section-note { color: var(--muted); font-size: .9rem; margin: .2rem 0 .65rem; }
.ingredients ul,.method ol { padding: 0; margin: 0; list-style: none; }
.ingredients li { border-bottom: 1px solid var(--rule); }
.ingredients label { display: flex; align-items: baseline; gap: .8rem; padding: .64rem 0; line-height: 1.55; }
.ingredients input { width: 1.05rem; height: 1.05rem; accent-color: var(--leaf); flex: none; margin: 0; transform: translateY(.15rem); }
.ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }
.method ol { counter-reset: step; margin-top: .48rem; }
.method li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; align-items: baseline; padding: .84rem 0; line-height: 1.8; border-bottom: 1px solid var(--rule); }
.method li::before { content: counter(step, decimal-leading-zero); font: italic 1.38rem/1.2 Georgia,serif; color: #54785e; }
.help { padding-block: 2rem; border-top: 2px solid var(--ink); display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem,6vw,5.5rem); }
.help details { border-bottom: 1px solid var(--rule); }
.help summary { padding: 1rem .2rem 1rem 0; line-height: 1.5; font-weight: 650; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; font: 1.35rem/1 system-ui, sans-serif; }
.help details[open] summary::after { content: "−"; }
.help details p { margin: .1rem 0 .9rem; max-width: 45rem; overflow-wrap: anywhere; }
.help p, .player-info { font-size: .95rem; color: var(--muted); }
.site-foot { margin-top: 1rem; border-top: 1px solid var(--rule); min-height: 6rem; }
.foot-brand { font-size: 1.25rem; font-weight: bold; }
dialog { width: min(calc(100% - 2rem), 54rem); max-height: calc(100% - 2rem); border: 0; border-radius: 1rem; padding: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(18,30,25,.78); }
.player-head,.player-info { padding: 1.05rem 1.4rem; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.player-head h2 { font-size: 1.4rem; }
.player-format { color: var(--muted); font-size: .9rem; }
.close-player { border: 1px solid var(--rule); border-radius: .4rem; color: inherit; background: transparent; padding: .5rem .75rem; }
video { display: block; width: 100%; background: #182720; aspect-ratio: 16/9; max-height: 66vh; }
.player-info { margin: 0; }
@media (max-width: 880px) {
  .page-width { width: min(100% - 3rem, 78rem); }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 2rem; }
  .site-head { min-height: 4.8rem; }
}
@media (max-width: 680px) {
  .page-width { width: calc(100% - 2rem); }
  .site-head { min-height: 4.3rem; }
  .brand { font-size: 1.36rem; gap: .28rem; }
  .brand-mark { transform: scale(.87); transform-origin: left center; width: 2.2rem; }
  .site-head nav { gap: .9rem; }
  .site-head nav a { font-size: .875rem; }
  .hero { display: flex; flex-direction: column; border-radius: .85rem; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 1.62; }
  .hero-copy { width: 100%; padding: 1.5rem 1.35rem; }
  h1 { margin: .44rem 0 .65rem; font-size: clamp(3rem, 11.2vw, 4.2rem); }
  .hero-intro { max-width: none; }
  .hero-meta { margin: .7rem 0 1rem; }
  .enroll { padding-top: 1rem; }
  .media-preview { bottom: .8rem; right: .8rem; font-size: .88rem; }
  .recipe-columns, .help { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-head > span { font-size: .875rem; }
  .recipe-columns { padding-top: 1.1rem; }
  .help { padding-top: 1.2rem; gap: .45rem; }
  .site-foot { min-height: 4.5rem; }
  .course-list { grid-template-columns: 1fr; gap: 0; margin-top: .2rem; }
  .course-card { grid-template-columns: minmax(5.6rem,28%) 1fr auto; gap: .7rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
  .course-card .catalog-image { grid-column: auto; aspect-ratio: 1.5; }
  .card-copy h3 { font-size: 1.15rem; }
  .goods-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-view { grid-template-columns: 1fr; }
  .product-gallery > img { max-height: 44dvh; }
}
@media (max-width: 370px) {
  .site-head nav { gap: .55rem; }
  .site-head nav a { font-size: .8rem; }
  .card-action { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
