:root {
  --ap-bg: #f4f7fb;
  --ap-panel: rgba(255, 255, 255, .88);
  --ap-panel-solid: #ffffff;
  --ap-text: #162033;
  --ap-muted: #66758a;
  --ap-line: rgba(204, 216, 232, .82);
  --ap-primary: #2563eb;
  --ap-primary-hover: #1d4ed8;
  --ap-primary-soft: #eaf2ff;
  --ap-secondary: #0f8f8d;
  --ap-success: #0f766e;
  --ap-danger: #b42318;
  --ap-warning: #b56a16;
  --ap-shadow: 0 18px 48px rgba(37, 55, 82, .11);
  --ap-radius-sm: 6px;
  --ap-radius: 8px;
  --ap-radius-lg: 12px;

  /* Compatibility aliases used by the existing standalone pages. */
  --bg: var(--ap-bg);
  --panel: var(--ap-panel);
  --panel-solid: var(--ap-panel-solid);
  --panel-soft: #f8fbff;
  --panel-2: rgba(241, 247, 255, .92);
  --text: var(--ap-text);
  --ink: var(--ap-text);
  --muted: var(--ap-muted);
  --line: var(--ap-line);
  --accent: var(--ap-primary);
  --accent-2: var(--ap-secondary);
  --accent-soft: var(--ap-primary-soft);
  --primary: var(--ap-primary);
  --primary-dark: var(--ap-primary-hover);
  --primary-soft: var(--ap-primary-soft);
  --blue: var(--ap-primary);
  --teal: var(--ap-secondary);
  --success: var(--ap-success);
  --danger: var(--ap-danger);
  --amber: var(--ap-warning);
  --orange: var(--ap-warning);
  --shadow: var(--ap-shadow);
  --radius: var(--ap-radius);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  color: var(--ap-text);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif !important;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, .96) 0 15%, transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(37, 99, 235, .07), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 52%, #f5f8fb 100%) !important;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

::selection {
  color: var(--ap-text);
  background: rgba(37, 99, 235, .16);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}

@media (hover: none) {
  button:hover,
  a:hover,
  [role="button"]:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
