:root {
  color-scheme: light;
  --bg: #f2f3f7;
  --surface: #fff;
  --soft: #edeef6;
  --ink: #16181f;
  --muted: #626570;
  --line: rgba(22,24,31,.10);
  --accent: #5a4fe6;
  font: 15px/1.65 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090a14;
  --surface: #161824;
  --soft: #1c2034;
  --ink: #eceeff;
  --muted: #a1a4ba;
  --line: rgba(255,255,255,.14);
  --accent: #9296ff;
}
* { box-sizing: border-box; }
body, figure { margin: 0; }
header { border-bottom: 1px solid var(--line); }
nav { min-height: 78px; padding: 12px clamp(16px, 3vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand { color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -.055em; text-decoration: none; }
.brand span { color: var(--accent); }
.channel { padding: 8px 18px; border-radius: 30px; background: var(--soft); font-weight: 600; text-decoration: none; }
.actions, .links { display: flex; flex-wrap: wrap; gap: 10px; }
.actions a, .actions button, .links a { display: inline-block; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; text-decoration: none; font: inherit; }
.actions button { cursor: pointer; }
.links a:last-child { color: white; background: #5145d8; }
main { width: min(1160px, calc(100% - 36px)); margin-inline: auto; padding-block: clamp(26px, 5vw, 64px); }
h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: .35em 0; }
h2 { font-size: 1.25rem; margin: .85em 0 .4em; }
.intro, article p, figcaption, .status { color: var(--muted); }
.intro { margin: 0 0 1.5rem; }
.grid, .samples { display: grid; gap: 24px; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
article, figure { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
img { display: block; width: 100%; height: auto; border-radius: 12px; }
.preview { color: inherit; text-decoration: none; }
.preview:hover h2 { text-decoration: underline; }
figcaption { padding: 8px 4px 1px; }
.status { font-size: .875rem; margin: 14px 0 24px; }
.catalog { margin-top: 32px; }
.sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
