/* Shared brand tokens, reset and accessible site controls. */
:root {
  --content-width: 1200px;
  --reading-width: 760px;
  --page-gutter: 40px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --font-size-page: 32px;
  --font-size-section: 24px;
  --font-size-card: 20px;
  --font-family-base: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-caption: 14px;
  --font-size-nav: 16px;
  --orange: #FF7500;
  --text: #101214;
  --ink: #101214;
  --muted: #676b71;
  --paper: #fafbfd;
  --surface: #fff;
  --line: #e3e6ea;
  --success: #21764e;
  --danger: #b63026;
  --radius-card: 16px;
  --radius-control: 8px;
  --control-height: 44px;
  --header-height: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--font-family-base); font-size: var(--font-size-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.3; }
em { color: var(--orange); font-style: normal; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #FF7500; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 150; padding: 12px 20px; border-radius: 8px; background: white; }
.skip-link:focus { top: 12px; }
.site-include-header { height: var(--header-height); background: #0c0d0e; color: white; }
.include-message { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 75px; padding: 10px; }

textarea, select { font: inherit; color: inherit; }
textarea:focus-visible, select:focus-visible { outline: 3px solid #FF7500; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.include-retry { padding: 8px 16px; border: 1px solid #ddd; border-radius: 24px; background: #fff; color: #222; }
.demo-launcher { position: fixed; z-index: 70; right: 24px; bottom: 80px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; min-height: 44px; border: 1px solid #ddd; border-radius: 24px; background: #fffffff2; color: #303439; font-size: 14px; box-shadow: 0 3px 16px #0001; }
.demo-launcher::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.demo-dialog { width: min(640px,calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 32px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 20px 80px #0003; }
.demo-dialog::backdrop { background: #11182099; }
.demo-dialog h2 { margin: 0 40px 8px 0; font-size: 24px; }
.demo-dialog p { margin: 8px 0 20px; color: var(--muted); font-size: 14px; }
.demo-dialog h3 { font-size: 16px; margin: 24px 0 12px; }
.demo-dialog-close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f4f5; color: #333; font-size: 24px; line-height: 1; }
.demo-role-group, .demo-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-role-group button, .demo-dialog-actions button { min-height: 44px; padding: 10px 18px; border: 1px solid #dfe2e6; border-radius: 24px; background: #fff; font-size: 14px; }
.demo-role-group button[aria-pressed="true"] { border-color: var(--orange); color: #FF7500; background: #FF750014; }
.demo-directory { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-directory a { padding: 11px 14px; border: 1px solid #e6e8eb; border-radius: 8px; font-size: 14px; }
.demo-directory a:hover { color: #FF7500; border-color: #FF750066; background: #FF75000B; }
.demo-dialog .demo-footnote { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #eee; }
.demo-reset-confirm { margin-top: 16px; padding: 16px; background: #FF750014; border-radius: 8px; }
.demo-reset-confirm p { color: #FF7500; }
.demo-toast { position: fixed; z-index: 220; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 10px; background: #15191e; color: #fff; font-size: 14px; box-shadow: 0 4px 20px #0002; }
.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; }
.demo-dialog [data-demo-feedback] { padding: 16px; border: 1px solid #FF750048; border-radius: 8px; background: #FF75000F; color: #FF7500; }
.home-page a:hover > .round-arrow { color: white; background: var(--orange); transform: rotate(8deg); }
.home-page .event-info h3 > a:hover { color: var(--orange); }
@media (max-width: 680px) { :root { --header-height: 64px; --font-size-page: 28px; --font-size-section: 22px; } .demo-dialog { padding: 24px; } .demo-launcher { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
