:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --ink: #201d19;
  --muted: #655c51;
  --line: #e5dfd2;
  --orange: #bd401c;
  --focus: #145591;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; font: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.shell { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; gap: 58px; min-height: 72px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 850; font-size: 22px; white-space: nowrap; }
.brand-en { display: block; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.brand-ball { position: relative; display: block; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: #f2733b; overflow: hidden; transform: rotate(-37deg); }
.brand-ball::before, .brand-ball::after { position: absolute; content: ""; }
.brand-ball::before { inset: 3px -5px; border: 2px solid var(--ink); border-radius: 50%; }
.brand-ball::after { inset: -3px 13px; border-left: 2px solid var(--ink); }
.main-nav { display: flex; align-self: stretch; gap: 28px; font-size: 14px; font-weight: 700; color: var(--muted); }
.main-nav a { display: flex; align-items: center; padding: 3px 0 0; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--orange); }
.main-nav a[aria-current] { border-bottom-color: var(--orange); }
.progress { display: flex; gap: 7px; align-items: center; margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.progress strong { color: var(--ink); margin-left: 2px; }
.progress-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #e6ede1; color: #31513d; font-weight: 800; }

.hero { min-height: 368px; display: grid; grid-template-columns: 1fr 1.13fr; margin: 34px 0 45px; background: #28211e; color: #fff8e9; border-radius: 18px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(30px, 4.8vw, 68px); }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { width: 16px; height: 3px; background: currentColor; }
.hero .eyebrow { color: #ffad81; }
h1 { font-size: clamp(40px, 5.15vw, 75px); line-height: 1.17; font-weight: 900; letter-spacing: -.055em; }
.hero h1 { margin: 14px 0 17px; }
.hero-description { color: #f1e2d4; line-height: 1.75; font-size: 16px; max-width: 27ch; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 46px; padding: 0 18px; color: #fffdf9; background: var(--orange); border: 1px solid transparent; border-radius: 8px; font-weight: 780; font-size: 14px; }
.primary:hover { background: #a63313; }
.hero .primary { margin-top: 26px; background: #fc7944; color: #231710; }
.hero .primary:hover { background: #ff9b70; }
.hero-image {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 20% 10%, #33150b22 0 1px, transparent 1px 4px),
    linear-gradient(120deg, #84341d 0%, #b74725 39%, #d46539 74%, #a53e23);
}
.hero-image::after { content: ""; position: absolute; z-index: 3; inset: 0; background: linear-gradient(90deg, #28211e 0%, #28211e00 21%); }
.hero-court { position: absolute; inset: -53% -18% 8% 14%; transform: skew(-18deg) rotate(-15deg); border: 2px solid #ffe3b999; border-radius: 50%; }
.hero-court::before, .hero-court::after { content: ""; position: absolute; border: 2px solid #ffe3b999; }
.hero-court::before { inset: -12% -14% 25% 38%; border-radius: 0 0 48% 48%; }
.hero-court::after { width: 82%; left: 21%; top: 55%; border-width: 0 0 2px; transform: rotate(46deg); }
.hero-shadow { position: absolute; z-index: 1; width: 59%; height: 20%; top: 73%; left: 42%; border-radius: 50%; transform: rotate(18deg); background: #351b15bc; filter: blur(9px); }
.hero-ball { position: absolute; z-index: 2; width: 43%; max-width: 262px; aspect-ratio: 1; top: 50%; left: 55%; transform: translate(-50%, -42%) rotate(-27deg); overflow: hidden; border: 2px solid #51301a; border-radius: 50%; background: radial-gradient(circle at 2px 2px, #47200e68 0 .6px, transparent .95px) 0 0 / 4px 4px, radial-gradient(circle at 35% 24%, #ffb358 0%, #ee7e32 36%, #ba471b 68%, #5b2815 100%); box-shadow: inset 6px 5px 18px #ffe9be6b, inset -14px -13px 23px #4720149e, 3px 7px 13px #42190c68; }
.hero-ball::before, .hero-ball::after, .hero-ball > span { content: ""; position: absolute; border: 4px solid #47281a; border-radius: 50%; box-shadow: 0 0 0 1px #ffb05b75; }
.hero-ball::before { inset: -9% 23%; }
.hero-ball::after { inset: 27% -10%; }
.hero-ball > span { inset: -2% -60% 40% -46%; transform: rotate(35deg); }

.catalog { scroll-margin-top: 20px; }
.catalog-heading, .section-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.catalog-heading h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; }
.catalog-heading > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 17px 0 30px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 730; white-space: nowrap; }
.chip:hover, .chip[aria-current] { background: var(--wash); border-color: var(--accent); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.theme-orange { --accent: #b34824; --wash: #f3d6bf; }
.theme-blue { --accent: #315a86; --wash: #dbe6ef; }
.theme-rose { --accent: #9d4b60; --wash: #f0dbe0; }
.theme-green { --accent: #3e6c50; --wash: #dce9dc; }
.theme-gold { --accent: #8d5d06; --wash: #f1e3bc; }
.theme-violet { --accent: #644f90; --wash: #e6def0; }
.theme-teal { --accent: #28716d; --wash: #d4e8e5; }
.theme-slate { --accent: #515c70; --wash: #dee3eb; }
.rail-section { padding: 24px 0 21px; border-top: 1px solid var(--line); }
.section-top h3, .section-top h2 { font-size: 25px; letter-spacing: -.035em; line-height: 1.25; }
.section-top p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.section-actions { display: flex; align-items: center; gap: 8px; }
.more-link { margin-right: 5px; font-size: 13px; white-space: nowrap; font-weight: 740; color: var(--orange); }
.more-link:hover { text-decoration: underline; }
.rail-button { display: inline-grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); line-height: 1; }
.rail-button:disabled { opacity: .45; }
.rail-button:not(:disabled):hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.drill-rail { display: grid; grid-auto-flow: column; grid-auto-columns: max(210px, 29%); gap: 14px; margin: 15px 0 6px; padding: 4px 4px 10px; overflow-x: auto; scroll-behavior: smooth; scroll-padding-inline: 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #cab8a9 transparent; }
.drill-card { min-width: 0; scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.drill-card:hover { border-color: var(--accent); }
.drill-card a { display: block; height: 100%; border-radius: inherit; }
.cover-court { position: absolute; inset: 17% auto 17% 25%; width: 77%; border: 1px solid currentColor; border-radius: 60% 0 0 60%; opacity: .39; }
.cover-court::after { content: ""; position: absolute; width: 41%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; top: 50%; left: 31%; transform: translateY(-50%); }
.card-cover { display: flex; position: relative; align-items: end; padding: 13px 15px; height: 105px; border-radius: 9px 9px 0 0; color: var(--accent); background: var(--wash); overflow: hidden; }
.cover-number { font-size: 37px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.075em; }
.card-done { position: absolute; top: 10px; right: 10px; padding: 4px 7px; border-radius: 100px; background: var(--white); color: #31513d; font-weight: 750; font-size: 11px; }
.card-body { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; }
.card-body strong, .card-body small { display: block; }
.card-body strong { font-size: 14px; }
.card-body small { margin-top: 4px; font-size: 12px; color: var(--muted); }
.card-arrow { color: var(--accent); font-size: 20px; }
.all-drills { margin-top: 13px; font-size: 13px; }
.all-drills summary { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; }
.all-drills summary::-webkit-details-marker { display: none; }
.all-drills summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.all-drills[open] summary::before { content: "−"; }
.all-drills summary span { color: var(--muted); }
.all-drills ul { display: flex; flex-wrap: wrap; gap: 13px; padding: 12px 0 0 32px; }
.all-drills li a { text-decoration: underline; text-underline-offset: 3px; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 27px 0 19px; color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: var(--ink); }
.page-intro { padding: 27px 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash, var(--white)); }
.page-intro .eyebrow { color: var(--accent); }
.page-intro h1 { font-size: clamp(34px, 4.5vw, 57px); margin: 10px 0; }
.page-intro > p:last-child { color: var(--muted); }
.page-chips { margin-top: 23px; }
.group-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.drill-group { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.drill-group h2 { font-size: 19px; margin-bottom: 12px; }
.drill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px),1fr)); gap: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(220px,1fr); gap: 20px; margin: 23px 0; }
.video-section { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.video-section h2 { padding-bottom: 14px; font-size: 18px; }
.video-stage { display: grid; width: 100%; margin-inline: auto; border-radius: 10px; overflow: hidden; background: #2c2926; }
.video-stage.portrait { width: min(100%, 340px); aspect-ratio: 9 / 16; }
.video-stage.landscape { aspect-ratio: 16 / 9; }
.video-stage video, .video-stage iframe { width: 100%; height: 100%; border: 0; object-fit: contain; }
.video-placeholder { display: grid; place-content: center; justify-items: center; gap: 12px; color: #ebe0d1; font-size: 14px; }
.video-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.video-note a { text-decoration: underline; }
.instructions { padding-inline-start: 20px; margin-block: 0; line-height: 1.75; }
.instructions li + li { margin-top: 7px; }
.instructions ul, ul.instructions { list-style: disc; }
.play-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #a89a89; border-radius: 50%; font-size: 27px; }
.detail-box { padding: 18px 20px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; margin-top: 13px; }
.detail-sidebar .detail-box:first-child { margin-top: 0; }
.detail-box h2 { margin-bottom: 12px; font-size: 18px; }
.empty-copy { color: var(--muted); font-size: 14px; }
.meta-list { margin: 0 0 18px; }
.meta-list div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta-list dd { color: var(--muted); margin-left: 15px; }
.complete-button { width: 100%; }
.complete-button[aria-pressed="true"] { background: #e6ede1; color: #31513d; }
.complete-button[aria-pressed="true"]:hover { background: #d5e3cc; }
.related .section-top { margin-bottom: 14px; }
.site-footer { margin-top: 45px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; padding-block: 21px; font-size: 12px; color: var(--muted); }

.reward { width: min(360px, calc(100% - 30px)); padding: 31px; text-align: center; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); }
.reward::backdrop { background: #231c16a6; }
.reward-close { position: absolute; top: 10px; right: 10px; width: 35px; height: 35px; border: 0; background: transparent; font-size: 23px; color: var(--muted); }
.reward-mark { display: grid; place-items: center; margin: 0 auto 11px; width: 46px; height: 46px; border-radius: 50%; background: #e6ede1; color: #31513d; font-size: 24px; }
.reward p { margin: 10px 0 19px; color: var(--muted); }

@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { gap: 32px; }
  .hero { min-height: 320px; grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 30px; }
}

@media (max-width: 570px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 16px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand-en { display: none; }
  .brand-ball { width: 23px; height: 23px; }
  .brand-ball::after { inset-inline: 8px; }
  .main-nav { gap: 11px; font-size: 12px; }
  .progress { font-size: 11px; gap: 4px; }
  .progress-icon { width: 16px; height: 16px; }
  .hero { margin: 19px 0 26px; grid-template-columns: 1fr; grid-template-rows: auto 190px; }
  .hero-copy { padding: 26px 22px 14px; }
  .hero-image::after { background: linear-gradient(180deg, #28211e 0%, transparent 27%); }
  .hero-ball { width: auto; height: 72%; }
  .hero .primary { margin-top: 17px; }
  .chips { margin-bottom: 18px; }
  .section-top h3, .section-top h2 { font-size: 20px; }
  .section-actions { gap: 5px; }
  .rail-button { width: 28px; height: 28px; }
  .more-link { font-size: 12px; margin-right: 0; }
  .drill-rail { grid-auto-columns: max(158px, 61%); gap: 9px; }
  .page-intro { padding: 19px; }
  .group-list, .detail-layout { grid-template-columns: 1fr; }
  .detail-layout { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .drill-rail { scroll-behavior: auto; }
}
