/* 首屏关键样式 | 由 css/style.css 基础层自动生成 | 与主样式表同值，层叠无冲突 */
/* ==========================================================================
   即刻Router API 首页样式（基础层：主题变量 / 布局 / 导航 / Hero / 通用组件）
   卡片类样式见 sections.css（与原站一致）
   ========================================================================== */

/* ---------- 主题变量（与原站 new-api 主题一致） ---------- */
:root,
html.light {
  --background: #fff;
  --foreground: #0a0a0a;
  --card: #fff;
  --card-foreground: #0a0a0a;
  --popover: #fff;
  --popover-foreground: #0a0a0a;
  --primary: #3ea4ec;
  --primary-foreground: #fff;
  --secondary: #eee;
  --secondary-foreground: #004f8b;
  --muted: #f5f5f5;
  --muted-foreground: #606060;
  --accent: color-mix(in oklab, var(--primary) 12%, var(--background));
  --accent-foreground: #0a0a0a;
  --destructive: #e40014;
  --destructive-foreground: #fafafa;
  --border: #e8e8e8;
  --input: #e8e8e8;
  --ring: #42a6ff;
  --radius: 1rem;
}

html.dark {
  --background: #1e1e1e;
  --foreground: #f3f3f3;
  --card: #2a2a2a;
  --card-foreground: #f3f3f3;
  --popover: #2f2f2f;
  --popover-foreground: #f3f3f3;
  --primary: #0e72bc;
  --primary-foreground: #fff;
  --secondary: #373737;
  --secondary-foreground: #c6e1ff;
  --muted: #2f2f2f;
  --muted-foreground: #b7b7b7;
  --accent: color-mix(in oklab, var(--primary) 20%, var(--background));
  --accent-foreground: #fafafa;
  --destructive: #ff6568;
  --destructive-foreground: #f8f8f8;
  --border: #ffffff1a;
  --input: #ffffff2b;
  --ring: #1a75c5;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}
