:root {
  --ink: #25221f;
  --muted: #635b54;
  --paper: #fffefa;
  --linen: #f4efe8;
  --line: #ded6cd;
  --rust: #99421f;
  --display: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
  --body: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 82px);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.7 var(--body); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.container { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: fixed; inset: -100px auto auto 16px; z-index: 5; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.edition-bar { display: grid; place-items: center; min-height: 32px; background: var(--rust); color: white; font-size: 11px; letter-spacing: .2em; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 75px; padding-inline: var(--gutter); gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 7px; grid-column: 2; font: 700 24px/1 var(--display); letter-spacing: .1em; white-space: nowrap; }
.brand img { width: 33px; height: auto; mix-blend-mode: multiply; }
#search-form { justify-self: end; width: min(100%, 192px); }
#search-form input { width: 100%; padding: 9px 4px; border: 0; border-bottom: 1px solid #aa9e92; background: transparent; color: var(--ink); border-radius: 0; font-size: 13px; }
nav { display: flex; justify-content: center; gap: clamp(21px, 4vw, 60px); border-top: 1px solid #eee7e0; }
nav a { position: relative; display: grid; place-items: center; min-height: 49px; font-size: 13px; letter-spacing: .06em; }
nav a::after { position: absolute; content: ""; inset: auto 0 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform 180ms ease; }
nav a[aria-current] { color: var(--rust); }
nav a[aria-current]::after, nav a:hover::after { transform: scaleX(1); }
.hero { isolation: isolate; position: relative; overflow: hidden; background: #2d1c14; color: white; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #211611f5, #23160fc7 27%, #22150b64 55%, #20130c06 83%); }
.hero-inner { min-height: clamp(475px, 52vw, 695px); display: flex; align-items: center; padding-block: 54px; }
.hero-copy { padding-inline-start: clamp(0px, 3vw, 52px); }
.eyebrow { font-size: 12px; letter-spacing: .22em; font-weight: 650; }
.hero h1 { font: 850 clamp(40px, 7vw, 104px)/1.12 var(--body); letter-spacing: -.055em; margin: 16px 0 24px; }
.airtime { max-width: 29em; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.72; }
.tags { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 13px; }
.tag { color: var(--muted); font-size: 12px; }
.tag + .tag::before { content: "·"; margin-right: 11px; }
.hero .tag { color: #fff4e7; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 23px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border: 1px solid var(--ink); padding: 9px 18px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.btn.primary { background: var(--ink); color: white; }
.hero .btn { color: white; border-color: #fff9; }
.hero .btn.primary { color: #20140f; background: #ff9b60; border-color: #ff9b60; }
.btn:active { transform: translateY(1px); }
.block { padding-block: clamp(46px, 6vw, 91px); }
.home-start { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.home-start h2 { font-size: 19px; }
.home-start p { color: var(--muted); margin-top: 5px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 29px; }
.section-head h2, .select-home h2, .content-heading { font: 700 clamp(25px, 3vw, 45px)/1.25 var(--display); }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #a69486; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.day { display: grid; align-content: start; justify-items: start; text-align: left; min-height: 164px; gap: 9px; padding: 15px 12px; color: var(--ink); background: var(--day-color); border: 1px solid transparent; transition: background 180ms, border-color 180ms; }
.day strong { font-size: clamp(15px, 1.35vw, 20px); }
.day span { font-size: 12px; color: var(--muted); }
.day[aria-pressed="true"] { border-color: var(--rust); box-shadow: inset 0 -3px var(--rust); }
.day .day-note { line-height: 1.65; }
.theme-selection { margin-top: 18px; border-block: 1px solid var(--line); padding-block: 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.theme-selection p { font-size: 13px; color: var(--muted); }
.editorial, .community-feature { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--linen); }
.editorial-media { display: grid; place-items: center; min-height: 325px; background: #edc297; }
.editorial-media img { width: min(56%, 210px); mix-blend-mode: multiply; }
.editorial-copy, .community-feature > div { padding: clamp(29px, 6.5vw, 96px); align-self: center; }
.editorial-copy h2, .community-feature h2 { font: 700 clamp(32px, 4.2vw, 57px)/1.22 var(--display); }
.editorial-copy p, .community-feature p { margin-block: 16px 8px; color: var(--muted); }
.choose-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.filter { min-height: 44px; padding: 7px 11px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 13px; transition: background 160ms, border-color 160ms; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.card { border: 1px solid var(--line); background: var(--paper); padding: clamp(18px, 3vw, 37px); }
.card h2, .card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.page-intro { padding-block: clamp(39px, 6.5vw, 97px); border-bottom: 1px solid var(--line); background: var(--linen); text-align: center; }
.page-intro h1 { font: 700 clamp(34px, 5vw, 70px)/1.22 var(--display); }
.page-intro p { margin-top: 14px; color: var(--muted); }
.subpage { min-height: 45vh; padding-block: clamp(28px, 4vw, 60px) clamp(48px, 6vw, 90px); }
.catalog { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 3.2fr); gap: clamp(20px, 4vw, 57px); padding-block: 37px 78px; }
.filter-panel { border-right: 1px solid var(--line); padding-right: 20px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filter-head h2, .catalog-title { font: 700 23px/1.3 var(--display); }
.filter-row { padding-block: 16px; border-top: 1px solid var(--line); }
.filter-row .filters { margin-top: 8px; }
.reset { min-height: 44px; border: 0; padding: 0 5px; background: transparent; color: var(--rust); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.results-label { padding-block: 8px 16px; color: var(--muted); font-size: 13px; }
.course-grid, .grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-cover { position: relative; width: 100%; display: grid; place-items: center; aspect-ratio: 5 / 4; border: 0; padding: 0; background: var(--cover); overflow: hidden; }
.course-cover:focus-visible { outline-offset: -4px; }
.cover-theme { font: 700 clamp(23px, 2.5vw, 42px)/1.25 var(--display); padding: 20px 12px; }
.course-symbol { width: min(33%, 94px); border-radius: 50%; mix-blend-mode: multiply; }
.course-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.course-kind { position: absolute; inset: 9px auto auto 9px; padding: 3px 9px; font-size: 11px; background: var(--paper); }
.course-body { padding: 14px 1px 17px; border-bottom: 1px solid var(--line); }
.course-body h3 { font: 700 23px/1.35 var(--display); margin: 5px 0; }
.course-body p { font-size: 13px; color: var(--muted); }
.course-meta { color: var(--rust); font-size: 12px; }
.course-body .actions { margin-top: 12px; gap: 8px; }
.course-body .btn { font-size: 12px; padding-inline: 9px; }
.dashboard-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 40px; }
.dashboard-summary > div { padding: 23px; display: grid; gap: 9px; align-content: start; justify-items: start; }
.dashboard-summary > div + div { border-left: 1px solid var(--line); }
.dashboard-summary span { color: var(--muted); font-size: 13px; }
.dashboard-summary strong { font: 700 clamp(24px, 3vw, 43px)/1.25 var(--display); }
.dashboard-summary small { font: 400 15px var(--body); }
progress { width: min(100%, 190px); accent-color: var(--rust); }
.content-heading { margin: 35px 0 19px; }
.timeline-item { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding: 15px 0; }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-date { display: grid; justify-items: center; font-size: 12px; }
.timeline-date img, .community-post img { width: 42px; border-radius: 50%; }
.timeline-text p { color: var(--muted); font-size: 13px; }
.status { font-size: 12px; color: var(--rust); }
.profile-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.community-feature { grid-template-columns: 1fr 1fr; }
.community-feature img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.community-feature .btn { margin-top: 10px; }
.community-post img { margin-bottom: 10px; }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player span { position: absolute; bottom: 10px; left: 10px; background: var(--paper); padding: 4px 10px; font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); background: var(--linen); padding-block: 35px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-footer strong { font: 700 24px var(--display); color: var(--ink); }
.site-footer p { font-size: 12px; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 3px 22px; font-size: 13px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
dialog { position: fixed; width: min(500px, 100% - 30px); max-height: 90dvh; border: 1px solid var(--line); color: var(--ink); background: var(--paper); padding: 26px; }
dialog::backdrop { background: #23171180; }
dialog h2 { font: 700 26px/1.2 var(--display); margin: 0 44px 14px 0; }
dialog h3 { margin-top: 16px; }
.close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: var(--linen); font-size: 22px; }
.field { display: grid; gap: 5px; margin-top: 16px; }
.field select, .field input { min-height: 44px; border: 1px solid var(--line); background: white; color: var(--ink); padding: 6px 8px; }
#conditions-form > .btn { margin-top: 16px; }
.lesson-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; gap: 8px; }
.lesson-facts div { background: var(--linen); padding: 8px 11px; }
.lesson-facts dt { color: var(--muted); font-size: 12px; }
.lesson-facts dd { font-weight: 650; margin: 0; }
.muted { color: var(--muted); }
.completion { max-width: 680px; margin-inline: auto; }
.checkbox { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.checkbox input { accent-color: var(--rust); }
#notice { position: fixed; right: 16px; bottom: 16px; z-index: 4; max-width: calc(100% - 32px); color: white; background: var(--ink); padding: 11px 15px; }
#notice:empty { display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--linen); color: var(--ink); transform: translateY(-1px); }
  .hero .btn:hover { background: #fffefa; color: var(--ink); }
  .hero .btn.primary:hover { background: #ffb17e; }
  .day:hover { border-color: var(--rust); }
  .course-cover:hover .course-photo { transform: scale(1.035); }
  .filter:not([aria-pressed="true"]):hover { border-color: var(--rust); }
  .text-link:hover, .footer-links a:hover { color: var(--rust); }
}
@media (max-width: 1050px) {
  .catalog .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 63px; }
  .brand { grid-column: 1; font-size: 21px; }
  #search-form { width: min(42vw, 160px); }
  nav { justify-content: space-between; gap: 4px; padding-inline: 12px; }
  nav a { flex: 1; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
  .hero-inner { min-height: 505px; align-items: flex-end; padding-block: 34px; }
  .hero-photo { object-position: 28% 44%; }
  .hero::after { background: linear-gradient(0deg, #211611f8 3%, #211611c0 35%, #21161117 76%); }
  .hero h1 { margin: 10px 0; font-size: clamp(36px, 10.5vw, 66px); }
  .hero .btn { padding-inline: 12px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .day { min-height: 124px; }
  .section-head .text-link { white-space: nowrap; }
  .editorial, .choose-grid, .catalog, .grid, .community-feature { grid-template-columns: 1fr; }
  .editorial-media { min-height: 190px; }
  .editorial-media img { max-width: 200px; }
  .filter-panel { border-right: 0; padding: 0; border-bottom: 1px solid var(--line); }
  .catalog .course-grid, .subpage .course-grid { grid-template-columns: 1fr; }
  .course-cover { aspect-ratio: 16 / 10; }
  .dashboard-summary { grid-template-columns: 1fr; }
  .dashboard-summary > div { padding-inline: 4px; }
  .dashboard-summary > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .timeline-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .timeline-item .btn { grid-column: 2 / -1; justify-self: start; }
  .community-feature img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
