@font-face {
  font-family: "VSP Puhui";
  src: url("/fonts/vsp-puhui-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VSP Puhui";
  src: url("/fonts/vsp-puhui-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #102830;
  --muted: #506873;
  --accent: #07546d;
  --teal: #007f95;
  --line: #dce7eb;
  --paper: #fff;
  --background: #eef5f7;
  --radius: 14px;
  --shadow: 0 1px 2px #1028300d, 0 12px 28px -14px #1028301f;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--background); font: 16px/1.8 "VSP Puhui", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-color: #8eb5bf; text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid #007f95; outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
.shell { width: min(1360px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 18px; color: #fff; background: var(--accent); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-top: 3px solid var(--teal); border-bottom: 1px solid var(--line); background: #ffffffed; }
.site-bar { display: flex; align-items: center; gap: 24px; min-height: 70px; font-size: 14px; }
.site-bar a { text-decoration: none; }
.course-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #0a6e8c, #07546d); color: #fff; font: 700 21px var(--mono); box-shadow: 0 2px 6px #07546d47; }
.brand-term { font-weight: 400; color: var(--muted); padding-left: 4px; }
.breadcrumb { color: var(--muted); }
.breadcrumb > span { margin-right: 20px; color: #94a9b1; }
.course-back { margin-left: auto; font-weight: 700; }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); gap: 36px; align-items: center; margin: 36px 0 28px; padding: clamp(28px, 3.4vw, 48px); border-radius: 22px; background: radial-gradient(ellipse at 0 0, #136478 0, transparent 70%), #092f3d; color: #fff; box-shadow: 0 18px 42px -24px #073d55a6; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; line-height: 1.6; }
.hero .eyebrow { color: #a5e3e7; }
h1 { margin: 0 0 14px; font-size: clamp(32px, 3.35vw, 48px); line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.hero-subtitle { margin: 0; max-width: 48ch; color: #d1e5ea; font-size: 17px; line-height: 1.7; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-tags span { padding: 3px 10px; background: #ffffff0d; border: 1px solid #ffffff24; border-radius: 6px; color: #d1e5ea; font-size: 11px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-actions .button { flex: 1 1 auto; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-size: 13px; line-height: 1.6; font-weight: 700; transition: background-color .16s ease, box-shadow .16s ease; }
.button.primary { background: #f1fbfa; color: #07465b; }
.button.primary:hover { background: #cceff0; }
.button.secondary { background: #ffffff08; border-color: #71959f; color: #f2fbfc; }
.button.secondary:hover { background: #ffffff1a; }
.button.tertiary { color: #d1e5ea; border-color: #ffffff24; background: #ffffff04; }
.button.tertiary:hover { color: #fff; background: #ffffff12; }
.hero a:focus-visible { outline-color: #9af0ed; }
.hero-schedule { overflow: hidden; border: 1px solid #49727f; border-radius: 14px; background: #071e2b99; box-shadow: 0 12px 24px #00192230; }
.window-bar { display: flex; align-items: center; gap: 17px; padding: 12px 18px; border-bottom: 1px solid #325361; color: #b2cdd6; font: 10px/1.6 var(--mono); background: #ffffff05; }
.window-dots { display: inline-flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #7795a1; }
.window-dots i:first-child { background: #dd8e7e; }
.window-dots i:nth-child(2) { background: #e0bf72; }
.window-dots i:last-child { background: #76b8a2; }
.dates { margin: 0; padding: 20px 24px 0; }
.dates > div + div { padding-top: 14px; margin-top: 14px; border-top: 1px solid #325361; }
.dates dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #a8d2da; }
.dates dd { margin: 3px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.dates .date-day { color: inherit; white-space: nowrap; }
.dates .date-clock { color: #bce9e7; white-space: nowrap; }
.date-clock::before { content: "· "; }
.time-note { margin: 16px 24px 20px; font-size: 11px; line-height: 1.8; color: #b4ccd5; }
.problem-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.problem-card { display: grid; grid-template-columns: 36% minmax(0, 1fr); overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.problem-card:hover { border-color: #6cabb9; box-shadow: 0 8px 26px -12px #07546d4d; }
.problem-card > img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #10192a; }
.problem-card-body { padding: 22px; min-width: 0; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--accent); font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.problem-card h2 { display: flex; justify-content: space-between; gap: 10px; margin: 9px 0 6px; font-size: 20px; letter-spacing: -.025em; line-height: 1.3; }
.problem-card h2 span { color: var(--teal); font-size: 17px; }
.problem-card p { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.problem-card .edit-path { color: var(--ink); }
.function-chips { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; }
.function-chips li { margin: 0; line-height: 1.3; }
.function-chips code { font-size: 9px; display: inline-block; padding: 4px 5px; background: #eef5f7; color: #365865; }
.quick-start { display: grid; grid-template-columns: 135px minmax(0, 1fr); align-items: center; gap: 24px; margin: 24px 0 40px; padding: 24px 28px; background: #e4eff2; border-radius: var(--radius); }
.quick-start h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.quick-start .eyebrow { margin-bottom: 2px; font-size: 9px; }
.quick-start ol { display: grid; grid-template-columns: .95fr .9fr 1.65fr 1fr; list-style: none; counter-reset: step; gap: 22px; padding: 0; margin: 0; }
.quick-start li { position: relative; min-width: 0; padding-left: 28px; margin: 0; font-size: 11px; line-height: 1.7; counter-increment: step; }
.quick-start li::before { content: counter(step); position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--accent); font-weight: 700; font-size: 10px; }
.quick-start li > span { display: block; margin-bottom: 3px; font-weight: 700; }
.quick-start small { display: block; font-size: inherit; color: #435f6a; }
.quick-start code { padding: 0; background: none; font-size: 10px; }
.quick-start-note { grid-column: 2; margin: -12px 0 0; padding-left: 28px; font-size: 11px; color: #435f6a; }
.handout-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 28px; min-width: 0; }
.toc nav { padding: 12px 0; }
.toc-title { margin: 0 0 16px 12px; font-size: 10px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 3px 0; }
.toc li a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 12px; line-height: 1.6; color: #405e69; border-left: 3px solid transparent; }
.toc li a:hover { background: #e0ecef; }
.toc li a[aria-current="location"] { color: var(--accent); background: #dcecef; border-left-color: var(--teal); font-weight: 700; }
.toc-index { font: 10px var(--mono); color: #5b7681; }
.toc-points { margin-left: auto; font: 10px var(--mono); }
.toc-top { display: inline-flex; align-items: center; margin: 20px 12px 0; min-height: 40px; font-size: 11px; text-decoration: none; color: var(--muted); }
.handout-content { min-width: 0; }
.document-section { min-width: 0; padding: clamp(24px, 3.1vw, 44px); margin-bottom: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 28px; }
.section-heading { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin: 0; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.3; letter-spacing: -.03em; text-wrap: balance; }
.section-points { margin: 12px 0 0; color: var(--accent); font-size: 13px; font-weight: 700; }
.section-points span { display: inline-block; margin-left: 12px; font-weight: 400; color: var(--muted); font-size: 12px; }
p { margin: 14px 0; overflow-wrap: break-word; }
.document-section > p, .document-section > ul, .document-section > ol, .document-section > blockquote { max-width: 75ch; }
.document-section > :last-child { margin-bottom: 0; }
ul, ol { padding-left: 25px; margin: 14px 0 20px; }
li { padding-left: 2px; margin: 7px 0; }
li::marker { color: #4f7785; }
h3, h4 { position: relative; color: #153e4e; line-height: 1.45; scroll-margin-top: 28px; text-wrap: balance; }
h3 { margin: 38px 0 14px; font-size: 21px; letter-spacing: -.02em; }
h4 { margin: 28px 0 12px; font-size: 17px; }
.heading-anchor { display: inline-block; margin-left: 9px; padding: 2px 4px; font: 400 15px var(--mono); color: #547783; text-decoration: none; opacity: 0; transition: opacity .15s ease; }
h3:hover .heading-anchor, h4:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.function-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; padding: 18px 0 12px; margin-top: 40px; border-top: 2px solid #b8d6de; font-size: 19px; }
.function-number { font: 13px var(--mono); color: #577580; }
.function-heading code { background: none; padding: 0; color: #074d62; font-size: 1em; font-weight: 700; }
.points-badge { margin-left: auto; border-radius: 6px; padding: 3px 8px; background: #e6f2ef; color: #245c4f; font: 700 10px/1.7 "VSP Puhui", sans-serif; letter-spacing: 0; white-space: nowrap; }
.function-heading .heading-anchor { margin-left: 0; }
code { padding: 2px 5px; border-radius: 5px; background: #edf3f5; color: #155568; font: .87em/1.65 var(--mono); overflow-wrap: anywhere; }
code.nowrap { white-space: nowrap; }
pre { display: block; min-width: 0; max-width: 100%; overflow-x: auto; margin: 18px 0 24px; padding: 14px 20px; border: 1px solid #284451; border-radius: 10px; background: #102c37; color: #e9f1f5; font: 13px/1.85 var(--mono); white-space: pre; tab-size: 4; }
pre code { padding: 0; background: none; color: inherit; font: inherit; white-space: inherit; overflow-wrap: normal; }
.code-block { min-width: 0; margin: 18px 0 24px; border-radius: 10px; overflow: hidden; background: #102c37; }
.code-block pre { margin: 0; border: none; border-radius: 0; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 30px; gap: 12px; padding: 2px 10px 2px 20px; background: #193744; border-bottom: 1px solid #35515e; }
.code-language { color: #b4cdd6; font: 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.copy-code { min-width: 62px; min-height: 26px; padding: 2px 9px; border: 1px solid #5c7f8d; border-radius: 5px; background: transparent; color: #e0eff3; font-size: 10px; line-height: 1.8; }
.copy-code:hover { background: #345460; }
.copy-code:focus-visible { outline-color: #9af0ed; }
.copy-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.code-block.single-line { display: flex; align-items: center; }
.code-block.single-line .code-toolbar { order: 1; flex: 0 0 auto; min-height: 0; padding: 0 10px; border: none; background: none; }
.code-block.single-line .code-language { display: none; }
.code-block.single-line pre { flex: 1; padding-block: 10px; }
blockquote { padding: 16px 22px; margin: 24px 0; border-left: 3px solid #739da9; border-radius: 0 10px 10px 0; background: #f0f6f8; color: #334f5c; font-size: 15px; }
blockquote > :first-child { margin-top: 0; }
blockquote > :last-child { margin-bottom: 0; }
.callout.tip { border-color: #34836d; background: #edf7f1; color: #254f40; }
.callout.important { border-color: #b87918; background: #fff6e6; color: #694511; }
.callout.note { border-color: #397da3; background: #edf5fa; color: #2b5067; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.7; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 88px; }
th { background: #eaf2f5; color: #32515e; font-size: 11px; font-weight: 700; }
tbody tr:nth-child(even) { background: #f8fbfc; }
tbody tr:last-child td { border-bottom: 0; }
th.numeric, td.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td code { white-space: nowrap; }
figure { margin: 28px 0; }
figure img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 8px; }
.figure-link { display: block; border-radius: 10px; }
figure.diagram .figure-link { background: #f7faf7; }
figcaption { max-width: 75ch; margin: 10px auto 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; overflow-wrap: break-word; }
figure.game-preview { max-width: 760px; margin-inline: auto; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; margin: 20px 0 0; padding: 24px 0 36px; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer > div { display: flex; gap: 28px; }
.site-footer a { text-decoration: none; }
@media (min-width: 1550px) { .document-section { padding-inline: 56px; } }
@media (max-width: 1150px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 24px; padding: 30px; }
  .hero-actions { gap: 8px; }
  .button { font-size: 12px; padding-inline: 12px; }
  .problem-card { grid-template-columns: minmax(0, 1fr); }
  .problem-card > img { aspect-ratio: 2.7; height: auto; object-fit: contain; }
  .problem-card-body { padding: 20px; }
  .quick-start { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .quick-start-label { display: flex; gap: 14px; align-items: baseline; }
  .quick-start-note { grid-column: 1; padding-left: 0; margin-top: -8px; }
  .handout-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 22px; }
  .toc li a { padding-inline: 8px; gap: 7px; font-size: 11px; }
  .document-section { padding: 28px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 24px; }
  .brand-term { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-schedule { max-width: none; }
  .dates { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .dates > div + div { border-top: none; border-left: 1px solid #325361; padding: 0 0 0 20px; margin: 0; }
  .dates dd { font-size: 17px; }
  .time-note br { display: none; }
  .quick-start ol { grid-template-columns: 1fr 1fr; }
  .handout-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .toc { position: static; }
  .toc nav { padding: 16px; background: #e1edf0; border-radius: 12px; }
  .toc-title { margin: 0 0 10px; font-size: 9px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 5px; }
  .toc li { margin: 0; }
  .toc li a { min-height: 36px; padding: 6px 10px; border: 1px solid #b9d3db; background: #f5fafb; border-radius: 6px; font-size: 11px; }
  .toc li a[aria-current="location"] { border-color: #007f95; }
  .toc-index, .toc-points, .toc-top { display: none; }
  .document-section { scroll-margin-top: 20px; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .site-bar { min-height: 62px; gap: 14px; font-size: 12px; }
  .brand-mark { width: 28px; height: 28px; font-size: 17px; border-radius: 8px; }
  .breadcrumb > span { margin-right: 10px; }
  .course-back { display: none; }
  .hero { margin-top: 20px; gap: 25px; padding: 25px 22px; border-radius: 16px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .08em; }
  h1 { font-size: 34px; }
  .hero-subtitle { font-size: 15px; }
  .hero-tags { margin-top: 16px; }
  .hero-actions { flex-direction: column; margin-top: 21px; }
  .button { width: 100%; font-size: 12px; }
  .window-bar { padding: 10px 14px; }
  .dates { padding: 16px 14px 0; gap: 12px; }
  .dates > div + div { padding-left: 12px; }
  .dates dd { font-size: 15px; }
  .dates .date-clock { display: block; margin-top: 2px; font-size: 13px; }
  .date-clock::before { content: none; }
  .time-note { margin: 14px; font-size: 10px; }
  .problem-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .problem-card > img { aspect-ratio: 2.1; }
  .problem-card-body { padding: 20px; }
  .problem-card h2 { font-size: 22px; }
  .problem-card p { font-size: 13px; }
  .function-chips code { font-size: 10px; }
  .quick-start { margin: 20px 0 24px; padding: 20px; }
  .quick-start ol { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .quick-start li { font-size: 12px; }
  .quick-start code { font-size: 10px; }
  .toc nav { padding: 14px; }
  .document-section { padding: 24px 20px; margin-bottom: 20px; border-radius: 12px; }
  .section-heading { margin-bottom: 22px; padding-bottom: 20px; }
  .section-heading h2 { font-size: 26px; }
  .section-points span { display: block; margin-left: 0; }
  .document-section { font-size: 15px; line-height: 1.85; }
  h3 { font-size: 19px; }
  h4 { font-size: 16px; }
  .function-heading { gap: 7px; font-size: 16px; }
  .function-number { font-size: 11px; }
  .points-badge { font-size: 9px; margin-left: 0; }
  .heading-anchor { opacity: 1; font-size: 12px; }
  pre { font-size: 11px; padding: 12px 16px; }
  .code-toolbar { padding-left: 16px; }
  th, td { padding: 11px 13px; font-size: 12px; }
  table { min-width: 440px; }
  blockquote { padding: 14px 16px; font-size: 14px; }
  figcaption { font-size: 11px; }
  .site-footer { font-size: 10px; gap: 12px; }
  .site-footer > div { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 10pt; line-height: 1.6; }
  .shell { width: 100%; }
  .site-header, .skip-link, .hero-actions, .problem-cards, .quick-start, .toc, .heading-anchor, .code-toolbar, .site-footer { display: none; }
  .hero { display: block; margin: 0 0 20px; padding: 0 0 20px; color: #000; background: none; border-radius: 0; border-bottom: 1px solid #aaa; box-shadow: none; }
  .hero .eyebrow, .hero-subtitle, .hero-tags span, .dates dt, .dates dd span, .time-note { color: #333; }
  h1 { font-size: 28pt; }
  .hero-tags { margin: 8px 0; }
  .hero-tags span { padding: 0 10px 0 0; border: none; }
  .hero-schedule { background: none; border: none; box-shadow: none; }
  .window-bar { display: none; }
  .dates { display: flex; gap: 30px; padding: 0; }
  .dates > div + div { border: none; margin: 0; padding: 0; }
  .dates dd { font-size: 12pt; }
  .time-note { margin: 8px 0 0; }
  .handout-layout { display: block; }
  .document-section { padding: 18px 0; margin: 0; border: none; border-top: 1px solid #aaa; border-radius: 0; box-shadow: none; }
  .section-heading { padding-bottom: 12px; margin-bottom: 16px; }
  .section-heading h2 { font-size: 22pt; }
  .section-heading, h3, h4, .code-toolbar { break-after: avoid; }
  pre, .code-block { color: #000; background: #f4f4f4; border: 1px solid #ccc; overflow: visible; }
  .code-block pre { border: none; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 8pt; }
  .table-scroll { overflow: visible; border-color: #bbb; }
  table { min-width: 0; font-size: 9pt; }
  th, td { padding: 8px; min-width: 0; }
  td code { white-space: normal; }
  figure, blockquote, tr { break-inside: avoid; }
  figure { max-width: 100%; }
  figure.game-preview { max-width: 140mm; }
  a { color: inherit; }
}
