:root {
  --paper: #f7f7f2;
  --white: #ffffff;
  --ink: #141414;
  --muted: #62635f;
  --line: #d9d9d1;
  --blue: #1746d2;
  --blue-dark: #1036a5;
  --red: #f04424;
  --yellow: #f2c94c;
  --green: #177a52;
  --danger: #b42318;
  --shadow: 0 12px 28px rgba(20, 20, 20, 0.1);
  --radius: 14px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-display: "STKaiti", "KaiTi", "Songti SC", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 3px; }
button { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 70, 210, 0.3); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.button { min-height: 44px; padding: 9px 17px; border: 0; border-radius: 10px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 5px 0 var(--blue-dark); }
.button-primary:hover { background: #1f50e4; }
.button-secondary { color: var(--ink); background: white; box-shadow: inset 0 0 0 1px var(--line); }
.button-quiet { background: transparent; color: inherit; }
.button-wide { width: 100%; }
.notice { padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; }
.notice strong { display: block; margin-bottom: 4px; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice-error { color: #791d18; background: #ffebe8; }
.notice-success { color: #0f633f; background: #e7f6ee; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
