:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #252620;
  --muted: #5e6056;
  --line: #d3d0c5;
  --accent: #9c4328;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 14px; }
.masthead { position: sticky; top: 0; z-index: 10; width: 100%; padding-inline: max(24px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--line); background: var(--paper); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 850; font-size: 1.25rem; text-decoration: none; letter-spacing: -.05em; }
.wordmark img { display: block; width: 36px; height: 36px; border-radius: 9px; }
.wordmark span, h1 span, .kicker span { color: var(--accent); }
nav { display: flex; gap: clamp(.7rem, 3vw, 2rem); font-size: .88rem; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 8vw, 7rem); }
.kicker { color: var(--muted); font: .8rem ui-monospace, monospace; letter-spacing: .12em; margin: 0 0 1.4rem; }
h1, .notes h2, .sponsor h2 { font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif; }
h1 { font-size: clamp(2.25rem, 4.5vw, 4.1rem); letter-spacing: -.06em; line-height: 1.22; margin: 0; }
.intro, .notes p:not(.kicker), .principles { color: var(--muted); line-height: 1.85; }
.intro { margin: 1.4rem 0 2rem; max-width: 33em; }
.downloads h2 { font-size: .88rem; margin: 0 0 .65rem; }
.downloads ul { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.package { position: relative; display: flex; align-items: center; gap: .7rem; min-width: 160px; padding: .7rem 2rem .7rem .8rem; border: 1px solid var(--accent); border-radius: .75rem; background: var(--accent); color: #fff; text-decoration: none; }
a.package:hover { background: #77341f; border-color: #77341f; }
.platform-icon { display: block; flex: 0 0 auto; width: 25px; height: 25px; fill: currentColor; }
.package-copy { display: flex; flex-direction: column; gap: .2rem; }
.package-copy strong, .unavailable strong { font-size: .92rem; }
.package small { font-size: .74rem; }
.download-arrow, .unavailable > span { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); }
.unavailable { background: transparent; border-color: var(--line); color: var(--muted); }
.download-note { color: var(--muted); font-size: .8rem; margin: .75rem 0 0; }
.showcase { min-width: 0; overflow: hidden; background: #252820; color: #f7f5ef; border-radius: .5rem; box-shadow: 0 12px 28px #2528201c; touch-action: pan-y; }
.showcase-top { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #505448; font-size: .78rem; padding: 1rem; color: #dedfd5; }
.slide { min-height: 340px; padding: .1rem 0; animation: appear .28s ease-out; }
.slide[hidden] { display: none; }
.slide-code:not([hidden]) { display: flex; flex-direction: column; }
@keyframes appear { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.scenario-label { margin: 1rem 1rem .5rem; color: #c8cabc; font-size: .76rem; letter-spacing: .04em; }
.task, .status { margin: .75rem 1rem; font-size: .86rem; line-height: 1.6; }
.task span, .status small { color: #c8cabc; margin-right: .35rem; }
.code-window { flex-grow: 1; margin: 1rem; overflow: hidden; border: 1px solid #454a40; border-radius: .35rem; background: #1c1f19; font: .72rem/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-title { padding: .35rem .7rem; border-bottom: 1px solid #454a40; color: #d8dacc; }
.file-dot { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: #ffc681; }
.diff-label { float: right; color: #969b8a; }
.code-line { padding: .15rem .7rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-line.dim { color: #9da291; }
.code-line.removed { color: #f0a39a; background: #532e2b; }
.code-line.added { color: #b5d4a5; background: #293d2a; }
.slide-study { background: linear-gradient(145deg,#252820 0%,#282d25 58%,#30382c 100%); }
.study-board { position: relative; margin: 1rem; padding: 1rem; min-height: 165px; border-radius: .4rem; color: #34362c; background: #eee7cf; box-shadow: 0 7px 18px #10120f55; transform: rotate(-.6deg); }
.study-note { display: flex; flex-direction: column; gap: .25rem; width: 61%; padding: .65rem .75rem; border-left: 3px solid #a66d3f; background: #faf6e9; }
.study-note small, .study-tags { color: #777260; font-size: .67rem; }
.study-note strong { font: 1.05rem Georgia,serif; }
.study-note span { color: #916b3c; font-size: .75rem; }
.concept-links { display: flex; align-items: center; justify-content: space-between; gap: .25rem; margin: .75rem 0; font-size: .65rem; }
.concept-links span { padding: .35rem .45rem; border: 1px solid #c6baa0; border-radius: 2rem; background: #f7f1df; }
.concept-links b { color: #9a7043; font-weight: 500; }
.study-quote { padding: .55rem .65rem; border-left: 2px solid #72845b; color: #596248; background: #e1e5d4; font: italic .74rem/1.5 Georgia,"Microsoft YaHei",serif; }
.study-tags { display: flex; justify-content: space-between; margin-top: .55rem; }
.slide-research { background: linear-gradient(135deg,#252820,#292b27 55%,#34332b); }
.research-desk { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: .65rem; min-height: 180px; margin: .8rem 1rem; padding: .7rem; border: 1px solid #49483f; border-radius: .35rem; background: radial-gradient(ellipse at 40% 40%,#4a493e,#30312a 75%); }
.paper-stack { position: relative; height: 142px; }
.paper { position: absolute; inset: 8px 5px 3px 12px; display: flex; flex-direction: column; gap: .55rem; padding: .75rem .65rem; color: #37372f; background: #f0eadb; box-shadow: 0 5px 12px #1114; font-size: .62rem; }
.paper-back { transform: rotate(-7deg) translate(-4px,-3px); background: #d9d7c9; color: #69695e; }
.paper-front { transform: rotate(3deg); }
.paper small { color: #8d6844; font-size: .56rem; }
.paper strong { font: .82rem Georgia,"Microsoft YaHei",serif; }
.paper span { line-height: 1.4; }
.paper i { height: 1px; width: 90%; background: #d5d0c2; }
.action-list { padding: .75rem .65rem; border: 1px solid #5c594c; border-radius: .3rem; background: #252720; font-size: .63rem; }
.action-list > small { display: flex; justify-content: space-between; padding-bottom: .5rem; color: #d9d4c5; }
.action-list b { color: #d8ad74; }
.action-list p { display: flex; gap: .35rem; margin: .45rem 0; color: #c5c3b7; line-height: 1.4; }
.action-list p span { color: #d8ad74; }
.slide-study .status span, .slide-research .status span { color: #d6b47e; }
.carousel-controls { display: flex; align-items: center; gap: .55rem; padding: .65rem 1rem; border-top: 1px solid #505448; }
.carousel-controls button { color: #f7f5ef; border: 1px solid #65695d; background: transparent; border-radius: .35rem; padding: .35rem .6rem; cursor: pointer; }
.carousel-controls button:hover { background: #3a3e34; }
.carousel-dots { display: flex; gap: .4rem; margin-inline: .2rem auto; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; }
.carousel-dots button[aria-current="true"] { background: #ffc681; border-color: #ffc681; }
.carousel-progress { height: 3px; background: #42463d; overflow: hidden; }
.carousel-progress span { display: block; width: 100%; height: 100%; background: #ffc681; transform: scaleX(0); transform-origin: left center; will-change: transform; }
.sponsor { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 2rem; padding: 1.5rem 1.75rem; margin-bottom: 2rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: #efede5; }
.sponsor .kicker { margin-bottom: .5rem; }
.sponsor h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin: 0; }
.sponsor p:not(.kicker) { max-width: 55em; margin: .5rem 0 0; color: var(--muted); line-height: 1.7; font-size: .9rem; }
.sponsor-link { display: inline-flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-radius: .65rem; background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap; }
.sponsor-link:hover { background: #77341f; }
.sponsor-disclosure { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
.notes { display: grid; grid-template-columns: 1fr 3fr; gap: 1.5rem; border-top: 1px solid var(--line); padding-block: clamp(2rem, 6vw, 4rem); }
.notes:last-child { border-bottom: 1px solid var(--line); }
.notes h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.notes p, .principles { max-width: 38em; }
.principles { margin: 1rem 0 0; padding-inline-start: 1.25em; }
.principles strong { color: var(--ink); }
aside { border-left: 2px solid var(--accent); padding-left: 1rem; margin-top: 1.5rem; font-size: .9rem; }
aside p { margin: .35rem 0 0; }
.footer { color: var(--muted); font-size: .8rem; }
.site-stats { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
@media (max-width: 780px) { .hero, .notes { grid-template-columns: 1fr; } .notes .kicker { margin: 0; } }
@media (max-width: 560px) { .sponsor { grid-template-columns: 1fr; padding: 1.25rem; } .sponsor-disclosure { grid-column: auto; } .sponsor-link { justify-content: center; } .research-desk { gap: .35rem; padding: .45rem; } .action-list { padding: .55rem .45rem; } .footer { flex-wrap: wrap; } }
@media (max-width: 370px) { .frame { width: calc(100% - 32px); } .masthead { padding-inline: 16px; flex-wrap: wrap; } }
