/* SkyID H5 基础层：变量 / reset / 排版（品牌延续邮件 G1 定稿：120° 深空蓝→紫→玫红） */

:root {
  /* 品牌 */
  --grad-a: #1e3a8a;
  --grad-b: #6d28d9;
  --grad-c: #db2777;
  --grad: linear-gradient(120deg, var(--grad-a), var(--grad-b), var(--grad-c));
  --gold: #d4a24c;
  --gold-soft: #f3e3c3;

  /* 灰阶与语义色 */
  --ink: #1c2333;
  --ink-2: #5a6478;
  --ink-3: #9aa3b5;
  --line: #e7eaf1;
  --bg: #f4f5f9;
  --card: #ffffff;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #b45309;
  --warn-soft: #fdf1e3;
  --err: #dc2626;
  --err-soft: #fdecec;

  /* 形状与动效 */
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 6px 24px rgba(28, 35, 51, 0.07);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; }

/* 可访问性：仅屏幕阅读器 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* 页面容器：移动优先，桌面居中限宽 */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 84px; /* 底部给 tabbar 留位 */
}

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