@font-face {
  font-family: "Smiley Sans";
  src: url("../fonts/SmileySans-Oblique.woff2") format("woff2");
  font-display: swap;
  font-style: oblique;
  font-weight: 100 900;
}

:root {
  --page: #f3f7f6;
  --surface: #ffffff;
  --surface-soft: #e9f0f0;
  --surface-strong: #dce8e9;
  --ink: #122b33;
  --muted: #60777e;
  --line: #d5e0e1;
  --blue: #1468d4;
  --blue-strong: #0c4fa5;
  --blue-soft: #e4efff;
  --orange: #f2652f;
  --shadow: 0 18px 48px rgba(31, 64, 72, .12);
  --shadow-hover: 0 14px 30px rgba(31, 64, 72, .16);
  --focus: 0 0 0 4px rgba(20, 104, 212, .18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1540px;
  --display-font: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
}

:root[data-display-font="smiley"] {
  --display-font: "Smiley Sans", "Noto Sans SC", sans-serif;
}

:root[data-display-font="wenkai"] {
  --display-font: "LXGW WenKai Screen", "Noto Sans SC", sans-serif;
}

:root[data-theme="dark"] {
  --page: #0c151a;
  --surface: #142128;
  --surface-soft: #1a2a31;
  --surface-strong: #22353d;
  --ink: #edf6f5;
  --muted: #a3b8bc;
  --line: #30444c;
  --blue: #66a8ff;
  --blue-strong: #9bc7ff;
  --blue-soft: #173557;
  --orange: #ff8153;
  --shadow: 0 20px 56px rgba(0, 0, 0, .28);
  --shadow-hover: 0 16px 34px rgba(0, 0, 0, .34);
  --focus: 0 0 0 4px rgba(102, 168, 255, .2);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  transition: color 220ms ease, background 220ms ease;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

