:root {
  color-scheme: light;
  --bg: #f6f6f0;
  --surface: #fffefa;
  --soft: #f1f2e9;
  --line: #e2e4d9;
  --ink: #202820;
  --body: #3c483e;
  --muted: #626f62;
  --accent: #3b543c;
  --accent-dark: #2f4732;
  --accent-fade: #e9efdf;
  --on-accent: #fffef5;
  --danger: #a03432;
  --pin: #eaeacf;
  --shadow: 0 12px 34px rgba(39, 50, 31, .055);
  --sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", SimSun, Georgia, serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171e18;
  --surface: #202a22;
  --soft: #263329;
  --line: #3a473c;
  --ink: #eef2e8;
  --body: #d3ddd1;
  --muted: #adbaae;
  --accent: #b4c9a5;
  --accent-dark: #ccdcbf;
  --accent-fade: #2d422e;
  --on-accent: #1d2d1c;
  --danger: #ffada4;
  --pin: #45482e;
  --shadow: none;
}
html[data-accent="clay"] { --accent: #8c4b35; --accent-dark: #713c29; --accent-fade: #f4e7dc; }
html[data-accent="indigo"] { --accent: #3f567d; --accent-dark: #304267; --accent-fade: #e7ebf7; }
html[data-accent="plum"] { --accent: #72516f; --accent-dark: #5d3c59; --accent-fade: #f0e7ee; }
html[data-theme="dark"][data-accent="clay"] { --accent: #f2b89b; --accent-dark: #fad4c0; --accent-fade: #50392e; }
html[data-theme="dark"][data-accent="indigo"] { --accent: #b0c6f1; --accent-dark: #cedcf7; --accent-fade: #2f405a; }
html[data-theme="dark"][data-accent="plum"] { --accent: #dfb5d7; --accent-dark: #f0cbe8; --accent-fade: #453146; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; min-width: 300px; font: 15px/1.65 var(--sans); color: var(--ink); background: var(--bg); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; max-width: 100%; }
img { object-fit: cover; }
[hidden] { display: none !important; }
.shell { max-width: 1248px; padding-inline: 30px; margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .19em; line-height: 1.4; }
.icon { width: 19px; height: 19px; display: inline-block; flex: none; vertical-align: -.19em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--accent-dark); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.brand-mark .icon { width: 23px; height: 23px; }
.brand strong { display: block; font-size: 16px; line-height: 1.22; letter-spacing: .03em; overflow-wrap: anywhere; }
.brand small { display: block; font-size: 8px; letter-spacing: .19em; margin-top: 4px; font-weight: 750; color: var(--muted); }
.icon-button { padding: 0; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 11px; color: var(--body); flex: none; }
.icon-button:hover { background: var(--soft); color: var(--accent-dark); }
.button { border: 1px solid transparent; border-radius: 11px; min-height: 42px; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.35; font-size: 13px; font-weight: 650; }
.button:hover { filter: brightness(.96); }
.button.primary { color: var(--on-accent); background: var(--accent-dark); }
.button.secondary { color: var(--body); background: var(--surface); border-color: var(--line); }
.button.danger { color: var(--surface); background: var(--danger); }
.button.small { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.button .icon { width: 16px; height: 16px; }
input:not([type="checkbox"]):not([type="file"]), select, textarea {
  min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  padding: 10px 12px; min-height: 42px; line-height: 1.4;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .9; }
input[type="checkbox"] { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
textarea { resize: vertical; }
.loading { padding: 38px 18px; color: var(--muted); text-align: center; }
.empty { padding: 44px 24px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; background: var(--surface); color: var(--muted); }
.empty > .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 7px; }
.empty h3 { color: var(--ink); font-size: 19px; margin-bottom: 5px; }
.empty p { font-size: 14px; }
.empty .button { margin: 14px 4px 0; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: min(530px, 94vw); background: var(--ink); color: var(--surface); border-radius: 12px; padding: 10px 18px; box-shadow: var(--shadow); font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.prose { color: var(--body); line-height: 1.85; overflow-wrap: anywhere; }
.prose > * + * { margin-top: .9em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.45; }
.prose h2 { font-size: 1.5em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 7px 14px; margin-inline: 0; background: var(--accent-fade); border-radius: 0 8px 8px 0; }
.prose ul, .prose ol { padding-left: 1.55em; }
.prose code { background: var(--soft); padding: .13em .3em; border-radius: 4px; }
.prose pre { padding: 13px; overflow-x: auto; border-radius: 9px; background: var(--soft); }
.prose pre code { padding: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--accent-dark); color: var(--on-accent); }
.skip:focus { top: 10px; }
@media (max-width: 640px) { .shell { padding-inline: 17px; } }

@font-face { font-family: 'UMYDA Display'; src: url('/assets/fonts/umyda-display.woff') format('woff'); font-weight: 700; font-display: swap; }
:root { --serif: 'UMYDA Display', 'Noto Serif CJK SC', 'Songti SC', 'STSong', SimSun, Georgia, serif; }
.brand-mark { border-radius: 13px 13px 15px 6px; box-shadow: inset 0 0 0 1px #ffffff18; }
.brand-mark .icon { width: 27px; height: 27px; }
.brand strong { font: 700 19px/1.25 var(--serif); letter-spacing: .045em; }
.brand small { font-size: 7.5px; letter-spacing: .2em; margin-top: 4px; }
.platform-icon { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-fade); color: var(--accent-dark); }
.platform-icon .icon { width: 25px; height: 25px; }
.platform-youtube { background: #fff0ed; color: #d7322c; }
.platform-tiktok, .platform-douyin { background: #202524; color: #fff; }
.platform-bilibili { background: #e9f5fc; color: #1581b0; }
.platform-instagram { background: #faedf3; color: #b43b77; }
.platform-rednote, .platform-weibo { background: #fff0ed; color: #be3435; }
.platform-github { background: #eef0ee; color: #303c33; }
html[data-theme="dark"] .platform-youtube, html[data-theme="dark"] .platform-rednote, html[data-theme="dark"] .platform-weibo { background: #4b2e29; color: #ffaca2; }
html[data-theme="dark"] .platform-bilibili { background: #1e3b4a; color: #9bdaff; }
html[data-theme="dark"] .platform-instagram { background: #452a3d; color: #fac6e6; }
html[data-theme="dark"] .platform-github { background: #35443a; color: #ecf3e5; }
