/* ===== Reset & tokens ===== */
@layer theme, base, utilities;
@layer base {
  * { margin: 0; padding: 0; box-sizing: border-box; }
}
:root {
  /* —— 主题色（对齐 design.md） —— */
  --color-brand: #3B82F6;       /* 高亮操作、链接、主按钮 */
  --color-brand-d: #2F74E8;     /* 主按钮 hover */
  --color-highlight: #F3F7FE;   /* 特定强调 */

  /* —— 中性色 —— */
  --color-white: #FFFFFF;
  --color-fill: #F9FAFC;        /* 内容填充 */
  --color-bg: #F4F5F7;          /* 页面背景 / hover */
  --color-line: #F0F2F5;        /* 分隔线 / hover */
  --color-border: #E9EBEF;      /* 边框 */
  --color-text-disabled: #D7D7D7;
  --color-text-tertiary: #A5A5A5;   /* 辅助文字 */
  --color-text-secondary: #525252;  /* 次要文本 */
  --color-text-primary: #1A1A1A;    /* 标题 / 正文 */

  /* —— 功能色 —— */
  --color-warning: #F7B100;
  --color-success: #2BA471;
  --color-danger:  #F5492F;

  /* —— 圆角阶梯 —— */
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px;

  /* —— 阴影 —— */
  --shadow-float: 0 4px 12px rgba(26,26,26,.12);

  /* —— 兼容别名（旧代码引用） —— */
  --blue: var(--color-brand);
  --blue-d: var(--color-brand-d);
  --ink: var(--color-text-primary);
  --gray: var(--color-text-secondary);
  --gray-l: var(--color-text-tertiary);
  --line: var(--color-border);
  --bg-soft: var(--color-fill);
  --shadow-sm: 0 2px 10px rgba(26,26,26,.06);

  /* —— 共享组件令牌（auth/brand-config/points/feedback/share 弹窗、floating-menu 等组件消费） —— */
  --primary: #4264E0; --primary-dark: #3555C0; --primary-light: #ECF2FF;
  --success: #13DEB9; --error: #FA896B; --warning: #FFAE1F; --secondary: #49BEFF;
  --cta: #0B7D72; --cta-dark: #096B62; --cta-shadow: rgba(11,125,114,.35);
  --border: #E5EAEF; --text: #2A3547; --text2: #4A5A75;
  --bg: #F2F6FA; --surface: #fff; --r: 7px; --r-xl: 12px;
  --shadow: 0 1px 3px 0 rgb(0 0 0/.06), 0 1px 2px -1px rgb(0 0 0/.04);
  --shadow-h: 0 4px 12px 0 rgb(0 0 0/.08); --shadow-lg: 0 8px 24px rgb(0 0 0/.12);
  --header: 64px; --ease: .15s ease-out;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica", "Arial", sans-serif;
  color: var(--color-text-primary);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:where(a, button, input, textarea, select, summary, [role="button"], [tabindex]):focus,
:where(a, button, input, textarea, select, summary, [role="button"], [tabindex]):focus-visible {
  outline: none;
}
/* 内容宽度：默认（含 ≤1440 及中间段）1200px；≥1920 放大到 1400px */
.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ===== Buttons ===== */
.btn {
  border: none; cursor: pointer; font-size: 16px; font-weight: 600;
  border-radius: 10px; padding: 13px 26px; transition: .18s ease;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,108,246,.32); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 9px 20px; font-size: 14px; border-radius: 8px; }


/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .28s ease; z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
