:root {
  color-scheme: light;
  --bg: #f6f5f2; --surface: #fffefa; --glass: #fffefabc; --text: #242321;
  --muted: #73716d; --line: #2423211c; --accent: #955a46; --accent-hover: #7c4938;
  --tint: #955a4610; --success: #3b6450; --shadow: 0 8px 32px #24232108;
  --font-body: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --interface-ease: cubic-bezier(.22, .61, .36, 1);
  --color-duration: 280ms;
  --paint-transition: color var(--color-duration) var(--interface-ease), background-color var(--color-duration) var(--interface-ease), border-color var(--color-duration) var(--interface-ease), box-shadow var(--color-duration) var(--interface-ease);
}
html[data-theme-changing="true"] { --color-duration: 520ms; }
/* Apply the saved theme before enabling color interpolation. */
:where(html[data-motion-ready="true"]) :where(.maple-page, .maple-page *) { transition: var(--paint-transition); }
html[data-theme="dark"] {
  color-scheme: dark; --bg: #101715; --surface: #1a2320; --glass: #1a2320c9;
  --text: #f4f2ec; --muted: #a7b1ab; --line: #eff5ef24; --accent: #daa58d;
  --accent-hover: #efbba2; --tint: #daa58d14; --success: #8fc2a6; --shadow: 0 8px 32px #0002;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body.maple-page { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); min-height: 100vh; overflow-x: clip; }
button, input, select, textarea { font: inherit; }
button, summary, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { text-decoration: none; color: inherit; }
a, button, summary, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; font-family: var(--font-body); }
h1 { font-size: 44px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
h2 { font-size: 24px; line-height: 1.4; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.5; font-weight: 650; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--surface); border: 1px solid var(--accent); }
.skip-link:focus { top: 10px; }
.page-width, .site-footer, .detail-shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.site-header { width: 100%; margin: 0; min-height: 80px; padding: 0 max(48px, calc((100% - 1180px)/2)); display: flex; gap: 56px; align-items: center; position: relative; z-index: 30; background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand > .icon { width: 29px; height: 29px; color: var(--accent); stroke-width: 1.9; }
.brand-mark { display: block; width: 29px; height: 29px; background: var(--accent); mask: url("./assets/maple/mark.svg") center / contain no-repeat; }
.brand strong { font-size: 26px; font-weight: 650; line-height: 1.2; }
.top-nav { display: flex; align-items: stretch; gap: 36px; align-self: stretch; }
.top-nav a { position: relative; display: flex; align-items: center; font-size: 15px; white-space: nowrap; }
.top-nav a[aria-current="page"] { color: var(--accent); }
.top-nav a::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 2px; background: currentColor; opacity: 0; transform: scaleX(.45); transition: transform 280ms var(--interface-ease), opacity 280ms var(--interface-ease); }
.top-nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.top-nav a:hover { color: var(--accent); }
.top-nav a:hover::after { opacity: .6; transform: scaleX(1); }
.header-tools { display: flex; align-items: center; margin-left: auto; gap: 24px; }
.share-link { color: var(--accent); font-size: 15px; white-space: nowrap; }
.icon-button { display: inline-flex; width: 40px; height: 40px; padding: 0; align-items: center; justify-content: center; flex: 0 0 40px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); }
.icon-button:hover { background: var(--tint); color: var(--accent); }
.theme-toggle .icon { transition: transform 280ms var(--interface-ease); }
html[data-theme="dark"] .theme-toggle .icon { transform: rotate(24deg); }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 10px 22px; border-radius: 8px; font-size: 15px; font-weight: 550; line-height: 1.4; border: 1px solid transparent; text-align: center; box-shadow: none; }
.primary-button { background: var(--accent); color: #fff; }
html[data-theme="dark"] .primary-button { color: #201a16; }
.primary-button:hover { background: var(--accent-hover); }
.secondary-button { background: var(--surface); border-color: var(--line); color: var(--text); }
.secondary-button:hover { border-color: var(--accent); }
button:disabled { cursor: not-allowed; opacity: .55; }
.text-link, .match-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; background: none; border: 0; padding: 0; }
.text-link, .match-link, .share-link { position: relative; }
.text-link::after, .match-link::after, .share-link::after { content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 1px; background: currentColor; opacity: 0; transform: scaleX(.65); transform-origin: left; transition: transform 280ms var(--interface-ease), opacity 280ms var(--interface-ease); }
.text-link:hover::after, .match-link:hover::after, .share-link:hover::after, .text-link:focus-visible::after, .match-link:focus-visible::after, .share-link:focus-visible::after { opacity: .8; transform: scaleX(1); }
.overline { color: var(--accent); font-size: 13px; font-weight: 550; margin-bottom: 20px; }
.home-hero { position: relative; isolation: isolate; padding: 80px 0 74px; min-height: 480px; }
.hero-inner { position: relative; z-index: 1; }
.home-hero h1 { font-size: 54px; line-height: 1.22; max-width: 750px; }
.hero-description { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 640px; margin-top: 22px; }
.autumn-region { position: relative; isolation: isolate; }
.autumn-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(800px, 58%); background: url("./assets/maple/autumn-canopy.webp") right top / cover no-repeat; pointer-events: none; mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, #000 40%, transparent); mask-composite: intersect; opacity: .88; }
html[data-theme="dark"] .autumn-art { opacity: .23; mix-blend-mode: luminosity; }
.autumn-art { transition: opacity var(--color-duration) var(--interface-ease); }
.maple-leaves { position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none; overflow: clip; contain: layout paint; --leaf-opacity: .14; }
.maple-leaf-track { position: absolute; inset-block: 0; left: clamp(4px, calc((100vw - 1180px) / 4), 32px); width: 14px; animation: maple-fall 30s linear -8s infinite; }
.maple-leaf-track:nth-child(2) { left: auto; right: clamp(4px, calc((100vw - 1180px) / 4), 32px); width: 17px; animation-duration: 36s; animation-delay: -21s; }
.maple-leaf-track:nth-child(3) { left: auto; right: clamp(8px, calc((100vw - 1180px) / 3), 64px); width: 12px; animation-duration: 42s; animation-delay: -35s; }
.maple-leaf { display: block; width: 100%; aspect-ratio: 1; background: var(--accent); mask: url("./assets/maple/mark.svg") center / contain no-repeat; animation: maple-sway 7s ease-in-out -2s infinite alternate; }
.maple-leaf-track:nth-child(2) .maple-leaf { animation-duration: 9s; animation-delay: -5s; }
.maple-leaf-track:nth-child(3) .maple-leaf { animation-duration: 8s; animation-delay: -3s; }
html[data-page-hidden="true"] :is(.maple-leaf-track, .maple-leaf), .maple-leaves[data-paused="true"] :is(.maple-leaf-track, .maple-leaf) { animation-play-state: paused; }
@keyframes maple-fall {
  0% { transform: translate3d(0, -10%, 0); opacity: 0; }
  12%, 80% { opacity: var(--leaf-opacity); }
  100% { transform: translate3d(0, 110%, 0); opacity: 0; }
}
@keyframes maple-sway {
  from { transform: translate3d(-3px, 0, 0) rotate(-22deg); }
  to { transform: translate3d(3px, 0, 0) rotate(28deg); }
}
.maple-search { display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 20px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--glass); backdrop-filter: blur(12px); box-shadow: 0 2px 10px #24232103; }
.maple-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.maple-search > .icon { color: var(--muted); }
.maple-search input { flex: 1; min-width: 0; width: 100%; height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 16px; outline: none; box-shadow: none; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.maple-search input::placeholder { color: var(--muted); opacity: 1; }
.maple-search .primary-button { min-width: 80px; flex-shrink: 0; }
.home-search { max-width: 640px; margin-top: 30px; }
.match-link { margin-top: 20px; color: var(--muted); }
.home-free { padding-top: 18px; padding-bottom: 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { font-size: 25px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.catalog-card, .catalog-placeholder { min-width: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.catalog-card { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; transition: transform 200ms ease, var(--paint-transition); }
.catalog-media { position: relative; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; background: var(--tint); border-bottom: 1px solid var(--line); }
.catalog-scene { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.catalog-scene-credit { position: absolute; right: 10px; bottom: 8px; font-size: 10px; background: #151916b3; color: #fff; padding: 2px 6px; border-radius: 4px; }
.catalog-card-info { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 22px; gap: 12px; opacity: 1; }
.catalog-card-info h3 { font-size: 18px; line-height: 1.5; min-height: 2.8em; overflow-wrap: anywhere; text-wrap: balance; }
.catalog-card-summary { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; min-height: 3.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.catalog-card-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.catalog-card-meta small { font-size: 11px; }
.catalog-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; font-size: 12px; }
.catalog-access[data-free="true"] { color: var(--success); }
.catalog-access[data-free="false"] { color: var(--muted); }
.catalog-card-open { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); white-space: nowrap; }
.catalog-card-open .icon { width: 16px; height: 16px; flex-basis: 16px; }
.scene-failed .catalog-scene, .scene-failed .catalog-scene-credit { display: none; }
.scene-failed .catalog-media::after { content: "封面暂不可用"; display: grid; height: 100%; place-items: center; color: var(--muted); font-size: 13px; }
.catalog-fallback { display: grid; place-items: center; height: 100%; color: var(--accent); }
.catalog-fallback .icon { width: 38px; height: 38px; }
.catalog-placeholder { height: 370px; background: var(--tint); }
.quiet-status { color: var(--muted); font-size: 13px; line-height: 1.7; }
.quiet-status:empty { display: none; }
.download-hint { display: flex; justify-content: center; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 28px; }
.download-hint .icon { width: 16px; height: 20px; flex-basis: 16px; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); overflow-wrap: anywhere; }
.empty-state h3 { color: var(--text); margin-bottom: 16px; }
.empty-state button { margin: 16px 8px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--accent); padding: 8px 18px; }
.catalog-main { padding-top: 52px; padding-bottom: 72px; }
.catalog-heading { margin-bottom: 32px; }
.catalog-heading .overline { margin-bottom: 12px; }
.catalog-heading h1 { font-size: 38px; }
.catalog-heading > p:last-child { color: var(--muted); margin-top: 12px; }
.toolbar { display: flex; gap: 16px; align-items: stretch; margin-bottom: 24px; }
.toolbar .maple-search { flex: 1; }
.toolbar > .secondary-button { flex-shrink: 0; }
.catalog-controls { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.category-strip { display: flex; align-items: center; gap: 6px; min-width: 0; }
.category-chip { min-height: 40px; padding: 9px 16px; font-size: 14px; font-weight: 550; line-height: 1.5; background: transparent; color: var(--muted); border: 0; border-radius: 6px; white-space: nowrap; }
.category-chip[aria-pressed="true"] { background: var(--tint); color: var(--accent); }
.category-count { display: none; }
.catalog-options { display: flex; gap: 10px; }
.control-popover { position: relative; }
.control-popover summary { display: flex; gap: 7px; align-items: center; min-height: 40px; padding: 8px 10px; font-size: 14px; color: var(--muted); list-style: none; border-radius: 6px; white-space: nowrap; }
.control-popover summary::-webkit-details-marker { display: none; }
.control-popover[open] summary, .control-popover summary:hover { background: var(--tint); color: var(--accent); }
.control-popover summary.active { color: var(--accent); }
.control-popover .icon { width: 17px; height: 17px; flex-basis: 17px; }
.more-categories summary .icon { transition: transform 280ms var(--interface-ease); }
.more-categories[open] summary .icon { transform: rotate(180deg); }
.popover-content { position: absolute; top: calc(100% + 8px); right: 0; z-index: 25; display: grid; gap: 6px; min-width: 190px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 40px #24232116; }
.more-categories .popover-content { left: 0; right: auto; }
.popover-content > button { padding: 10px 12px; border: 0; background: transparent; text-align: left; border-radius: 5px; color: var(--muted); font-size: 14px; }
.popover-content > button[aria-pressed="true"] { color: var(--accent); background: var(--tint); }
.popover-content label { font-size: 12px; color: var(--muted); padding: 4px; }
.popover-content select { width: 100%; padding: 9px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-size: 14px; }
#activeFilterCount { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; color: #fff; background: var(--accent); }
.results-heading { display: flex; gap: 12px; align-items: center; padding: 24px 0; }
.results-heading h2 { font-size: 15px; font-weight: 550; }
#resultCount { font-size: 12px; color: var(--muted); }
#resetCatalogFilters { margin-left: auto; font-size: 12px; }
#catalogStatus:not(:empty) { margin-bottom: 20px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 34px; font-size: 13px; font-variant-numeric: tabular-nums; }
.pager button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; color: var(--text); }
.community-intro { padding: 50px 0 34px; }
.community-intro .overline { margin-bottom: 12px; }
.community-intro h1 { font-size: 42px; }
.community-intro p:last-child { margin-top: 16px; color: var(--muted); font-size: 19px; }
.community-intro .autumn-art { width: 55%; opacity: .6; }
.community-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 24px; padding-bottom: 40px; align-items: start; }
.composer { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.composer h2 { margin-bottom: 26px; }
.composer > label { display: block; font-size: 15px; font-weight: 550; margin: 22px 0 8px; }
.composer input, .composer textarea, .composer select { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 15px; box-shadow: none; }
.composer textarea { resize: vertical; min-height: 140px; }
.composer input::placeholder, .composer textarea::placeholder { color: var(--muted); }
.field-hint { color: var(--muted); font-size: 12px; margin: -2px 0 9px; }
#rightsHint { margin-top: 7px; }
.composer > button { width: 100%; margin-top: 24px; min-height: 48px; }
.preview-disclaimer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }
#composerNote { margin-top: 12px; }
.community-main { min-width: 0; padding: 28px 0 0; }
.discussion-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.example-label { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 5px; background: var(--tint); color: var(--muted); font-size: 12px; }
.post-list { display: grid; gap: 16px; }
.post-card { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; min-width: 0; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.post-card header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.post-card h3 { flex: 1 1 230px; font-size: 17px; }
.post-card .tag { color: var(--accent); background: var(--tint); border-radius: 5px; padding: 3px 9px; font-size: 12px; }
.post-card p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.post-foot { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 18px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .brand strong { font-size: 21px; color: var(--text); }
.site-footer .brand .icon { width: 24px; height: 24px; }
.site-footer > a:last-child { display: inline-flex; gap: 7px; align-items: center; }
.skill-assistant-dialog, .real-download { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); box-shadow: 0 28px 100px #0003; margin: auto; }
.skill-assistant-dialog { height: min(720px, calc(100dvh - 32px)); }
.skill-assistant-dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #12171380; backdrop-filter: blur(5px); }
.finder-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); gap: 16px; }
.finder-header h2 { font-size: 22px; }
.finder-header span { color: var(--muted); font-size: 12px; }
.finder-modes { display: flex; gap: 8px; padding: 16px 24px 0; }
.finder-modes button, .finder-prompts button { padding: 8px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 13px; }
.finder-modes [aria-pressed="true"] { color: var(--accent); background: var(--tint); border-color: transparent; }
.finder-thread { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; padding: 24px; }
.finder-welcome { padding: 22px 0; }
.finder-welcome p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.finder-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.finder-user { width: fit-content; max-width: 90%; margin: 18px 0 18px auto; padding: 12px 16px; background: var(--tint); border-radius: 8px; white-space: pre-wrap; }
.finder-reply { margin: 16px 0 24px; font-size: 14px; }
.finder-results { display: grid; gap: 12px; margin-top: 16px; }
.finder-result { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.finder-result > div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.finder-result > div span, .finder-result small { font-size: 12px; color: var(--muted); }
.finder-result p { color: var(--muted); margin: 8px 0; }
.finder-detail { display: block; color: var(--accent); margin-top: 10px; font-size: 12px; }
.finder-composer { flex-shrink: 0; padding: 16px 24px 24px; border-top: 1px solid var(--line); }
.finder-input-label { display: block; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.finder-composer > div { display: flex; padding: 6px; gap: 8px; border: 1px solid var(--line); border-radius: 8px; }
.finder-composer input { width: 100%; min-width: 0; padding: 8px; border: 0; background: transparent; color: var(--text); }
.finder-send { background: var(--tint); color: var(--accent); }
.detail-shell { padding: 44px 0 72px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.source-chip { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.source-chip strong { color: var(--accent); font-weight: 500; }
.eyebrow { font-size: 12px; color: var(--accent); margin: 0 0 12px; }
.detail-copy h1 { font-size: 38px; max-width: 100%; }
.detail-lead { color: var(--muted); margin: 20px 0 24px; }
.detail-author { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.detail-author > span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--tint); border-radius: 50%; color: var(--accent); }
.detail-author small { display: block; color: var(--muted); }
.detail-meta-strip { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 12px; color: var(--muted); }
.detail-preview-card { align-self: center; min-width: 0; }
.preview-stage { border: 1px solid var(--line); padding: 32px; background: var(--tint); border-radius: 8px; }
.preview-card-main { display: grid; gap: 24px; overflow-wrap: anywhere; }
.preview-card-main span, .preview-card-main small { font-size: 12px; color: var(--muted); }
.preview-card-main strong { font-size: 24px; line-height: 1.5; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; margin-top: 44px; }
.detail-article { min-width: 0; }
.detail-section { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.detail-section h2 { font-size: 23px; margin-bottom: 16px; }
.detail-section h3 { margin: 20px 0 8px; font-size: 16px; }
.detail-section p, .bullet-list { color: var(--muted); font-size: 15px; line-height: 1.9; }
.bullet-list { padding-left: 20px; }
.compliance-list { font-size: 13px; }
.compliance-list > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; margin: 12px 0; }
.compliance-list dt { color: var(--muted); }
.compliance-list dd { margin: 0; overflow-wrap: anywhere; }
.license-link { font-size: 13px; color: var(--accent); }
.install-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 24px; }
.install-card h2 { font-size: 22px; }
.install-card p { font-size: 13px; color: var(--muted); margin: 16px 0; }
.access-badge { font-size: 12px; color: var(--accent); margin: 16px 0; }
.download-button { width: 100%; padding: 12px 16px; border: 0; border-radius: 6px; background: var(--accent); color: var(--surface); font-weight: 600; }
.detail-nav { display: grid; gap: 10px; margin: 28px 0; font-size: 13px; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.real-download { width: min(560px, calc(100% - 32px)); padding: 28px; overflow-y: auto; }
.real-download .admin-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.real-download h2 { font-size: 22px; }
.real-download p { margin: 16px 0; color: var(--muted); overflow-wrap: anywhere; }
.real-download a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .category-chip:hover { background: var(--tint); color: var(--accent); }
  .catalog-card:hover { transform: perspective(1200px) translateY(-4px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); box-shadow: 0 18px 36px #24232116; border-color: var(--accent); }
  .catalog-card:hover .catalog-scene { transform: scale(1.035); }
}
.catalog-card:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
@media (max-width: 1100px) {
  .site-header { gap: 38px; }
  .home-hero { padding: 64px 0 62px; }
  .home-hero h1 { font-size: 48px; }
  .skill-grid { gap: 20px; }
  .catalog-card-info { padding: 18px; }
  .community-layout { gap: 20px; }
  .composer { padding: 24px; }
  .post-card { padding: 20px; }
  .detail-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 800px) {
  .maple-leaf-track:first-child { left: auto; right: 4px; width: 10px; }
  .maple-leaf-track:nth-child(n+2) { display: none; }
  .maple-leaf { animation-name: maple-sway-mobile; }
  .page-width, .site-footer, .detail-shell { width: calc(100% - 48px); }
  .site-header { padding-inline: 24px; gap: 28px; }
  .top-nav { gap: 24px; }
  .header-tools { gap: 12px; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-controls { gap: 10px; flex-wrap: wrap; }
  .community-layout { grid-template-columns: 1fr; }
  .community-main { padding-top: 8px; }
  .detail-hero, .detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .detail-preview-card { display: none; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 24px; }
  .page-width, .site-footer, .detail-shell { width: calc(100% - 40px); }
  .site-header { min-height: 100px; padding: 14px 20px 0; gap: 0; flex-wrap: wrap; justify-content: space-between; }
  .brand strong { font-size: 23px; }
  .brand > .icon { width: 25px; height: 25px; }
  .header-tools { margin: 0; gap: 14px; }
  .share-link { font-size: 13px; }
  .theme-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  .top-nav { order: 3; width: 100%; gap: 26px; height: 46px; margin-top: 4px; }
  .top-nav a { font-size: 14px; }
  .home-hero { padding: 52px 0 48px; min-height: 0; }
  .home-hero h1 { font-size: 36px; line-height: 1.3; }
  .overline { font-size: 12px; margin-bottom: 16px; }
  .hero-description { font-size: 15px; max-width: 310px; margin-top: 20px; }
  .autumn-art { width: 100%; height: 230px; opacity: .28; }
  .home-search { margin-top: 26px; }
  .maple-search { padding: 5px 5px 5px 12px; gap: 8px; }
  .maple-search input { font-size: 16px; height: 42px; }
  .maple-search .primary-button { min-width: 60px; padding: 10px 14px; }
  .home-search > .icon { display: none; }
  .home-search input { font-size: 16px; }
  .match-link { margin-top: 18px; font-size: 12px; }
  .home-free { padding-top: 6px; padding-bottom: 40px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 21px; }
  .text-link { font-size: 12px; }
  .skill-grid { grid-template-columns: 1fr; gap: 20px; }
  .catalog-card-info { padding: 20px; }
  .catalog-card-info h3 { min-height: 0; }
  .catalog-card-summary { min-height: 0; }
  .catalog-card-footer { margin-top: 8px; }
  .catalog-main { padding-top: 32px; padding-bottom: 48px; }
  .catalog-heading { margin-bottom: 24px; }
  .catalog-heading h1 { font-size: 29px; }
  .catalog-heading > p:last-child { font-size: 14px; }
  .toolbar { flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
  .toolbar .maple-search { flex-basis: 100%; }
  .toolbar > .secondary-button { min-height: 36px; font-size: 12px; padding: 8px 12px; }
  .category-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; width: 100%; gap: 0; }
  .category-chip { font-size: 13px; padding: 8px; min-height: 44px; }
  .control-popover summary { font-size: 13px; padding: 8px; min-height: 44px; }
  .more-categories .popover-content { left: auto; right: 0; }
  .catalog-options { width: 100%; justify-content: flex-end; gap: 12px; }
  .catalog-controls { padding-bottom: 10px; gap: 10px; }
  .results-heading { padding: 20px 0; gap: 10px; }
  .results-heading h2 { font-size: 14px; }
  .community-intro { padding: 36px 0 28px; }
  .community-intro h1 { font-size: 30px; }
  .community-intro p:last-child { font-size: 15px; line-height: 1.8; margin-top: 12px; }
  .community-intro .autumn-art { width: 100%; opacity: .23; }
  .composer { padding: 22px; }
  .composer input, .composer textarea, .composer select, .popover-content select { font-size: 16px; }
  .composer h2, .discussion-heading h2 { font-size: 22px; }
  .post-card { padding: 20px; }
  .post-card h3 { font-size: 17px; }
  .post-card header { display: grid; gap: 10px; }
  .post-card .tag { grid-row: 1; justify-self: start; }
  .post-card h3 { grid-row: 2; text-wrap: balance; }
  .site-footer { padding-top: 24px; font-size: 12px; }
  .site-footer .brand strong { font-size: 20px; }
  .finder-header, .finder-thread { padding: 20px; }
  .finder-header h2 { font-size: 20px; }
  .finder-modes { padding-inline: 20px; }
  .finder-composer { padding: 16px 20px 20px; }
  .detail-shell { padding-top: 28px; }
  .detail-copy h1 { font-size: 30px; }
  .detail-layout { margin-top: 32px; }
  .real-download { padding: 22px; }
}
@keyframes maple-sway-mobile {
  from { transform: translate3d(-1px, 0, 0) rotate(-15deg); }
  to { transform: translate3d(1px, 0, 0) rotate(18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .maple-leaves { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .catalog-card, .catalog-card:hover, .catalog-scene, .catalog-card:hover .catalog-scene { transform: none !important; }
}
