/* 悟空视觉 · 官网 v5.2 设计变量
   版式节奏沿用 v5（apple.com.cn 实测，苹果连续圆角，页面最宽 980，紧凑）。
   配色 2026-11-07 改成白底柔光，取代桃雾弥散。配方见 动效参考/玻璃仪表盘_20261106/可点击样板/v3/说明.md。
   后台 studio.css 里的 --glow-* 是同一组数值，改色两边一起改。
   pop-login.css 也读这里的变量，名字不要改。 */

:root {
  /* 只调用访客系统自带字体，不打包字体文件 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Segoe UI",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", "Segoe UI",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  /* 字号：默认是窄屏（<735），735 和 1069 两处换档。整体比苹果官网收小一档，紧凑 */
  --fs-display: 40px; --lh-display: 44px;
  --fs-hero: 38px;    --lh-hero: 48px;
  --fs-price: 32px;   --lh-price: 36px;
  --fs-h2: 30px;      --lh-h2: 38px;
  --fs-page: 32px;    --lh-page: 40px;
  --fs-tile: 24px;    --lh-tile: 28px;
  --fs-lead: 19px;    --lh-lead: 26px;
  --fs-sub: 17px;     --lh-sub: 23px;
  --fs-note: 14px;    --lh-note: 21px;
  --fs-h3: 21px;      --lh-h3: 28px;
  --fs-body: 17px;    --lh-body: 25px;
  --fs-small: 14px;   --lh-small: 21px;
  --fs-fine: 12px;    --lh-fine: 16px;
  --ls-lead: .012em;

  /* 留白：页面最宽 980，大块之间 12 */
  --w-page: 980px;
  --w-confirm: 480px;
  --gutter: 20px;
  --section: 40px;
  --tile-top: 32px;
  --tile-h: 360px;

  /* 苹果圆角。支持连续圆角的浏览器（下面 @supports）换成更大的数值，看起来一样圆但过渡更顺 */
  --r-thumb: 9px;
  --r-ctl: 12px;
  --r-window: 14px;
  --r-card: 18px;
  --r-tile: 28px;
  --r-pill: 980px;

  /* 动效 */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 150ms; --t-mid: 250ms; --t-slow: 400ms;

  /* 间距（pop-login.css 也在用，名字不能改） */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* 白底柔光：近白底，蓝紫、奶黄、玫粉、淡紫四团柔光固定在窗口上，内容在上面滚动 */
  --page: #fafafc;
  --mist:
    radial-gradient(38vmax 34vmax at 6% 12%, rgb(176 192 255 / .62), transparent 70%),
    radial-gradient(24vmax 22vmax at 66% 24%, rgb(255 234 176 / .46), transparent 70%),
    radial-gradient(36vmax 32vmax at 96% 74%, rgb(255 190 208 / .58), transparent 70%),
    radial-gradient(30vmax 22vmax at 26% 100%, rgb(222 204 255 / .4), transparent 72%);

  --tile: rgb(255 255 255 / .72);          /* 卡片：白 72% 加 10px 模糊 */
  --tile-edge: rgb(15 23 42 / .05);        /* 卡片外圈极淡描边 */
  --deep: linear-gradient(135deg, #eef1ff 0%, #f6efff 52%, #ffeef5 100%);   /* 第二块：淡彩托底 */
  --deep-edge: rgb(15 23 42 / .05);
  --show:                                  /* 主角窗口的彩色托底 */
    radial-gradient(70% 90% at 12% 0%, #dfa6ee, transparent 70%),
    radial-gradient(80% 110% at 96% 10%, #8f97f5, transparent 72%),
    linear-gradient(120deg, #d9a4ee, #a79cf4);

  /* 渐变大字。大字按 3:1，小字按 4.5:1，都用真实颜色算过 */
  --grad-blue: linear-gradient(90deg, #2563eb, #a24bf0);
  --grad-pink: linear-gradient(90deg, #a24bf0, #d42a80);
  --grad-warm: linear-gradient(90deg, #d42a80, #cc4509);
  --grad-eyebrow: linear-gradient(90deg, #6d28d9, #a8155a);

  /* 彩色图标块，后台用同一组 */
  --ico-violet: linear-gradient(135deg, #6d7cff, #a06bff);
  --ico-orange: linear-gradient(135deg, #ff8a2b, #ffc94d);
  --ico-sky: linear-gradient(135deg, #22c6ff, #4d9dff);
  --ico-magenta: linear-gradient(135deg, #d94fd0, #9b5cf0);
  --ico-pink: linear-gradient(135deg, #ff5f9e, #ff9ac1);
  --ico-amber: linear-gradient(135deg, #ffb02e, #ffd25f);
  --ico-mint: linear-gradient(135deg, #34d9a0, #84e6bd);

  --bg-alt: var(--page);                   /* pop-login.css 用，只是占位 */
  --surface: #ffffff;
  --line: rgb(15 23 42 / .08);
  --line-strong: rgb(15 23 42 / .3);
  --text: #0f172a;
  --text-2: #4f586b;                       /* 样板的 62% 墨色在玫粉柔光上不够 4.5:1，这里加深 */
  --text-3: #4f586b;
  --accent: #4f46e5;                       /* 焦点、勾选 */
  --link: #4338ca;
  --btn: #0f172a;                          /* 主按钮深墨色 */
  --btn-hover: #1e293b;
  --btn-active: #0b1120;
  --btn-text: #ffffff;
  --btn-off: rgb(15 23 42 / .06);
  --btn-off-text: #4f586b;
  --danger: #c81e1e;
  --danger-rgb: 200 30 30;
  --success: #065f46;
  --warning: #92580a;
  --warning-soft: rgb(255 240 214 / .8);

  --nav-bg: rgb(255 255 255 / .72);
  --nav-text: rgb(15 23 42 / .8);
  --nav-line: rgb(15 23 42 / .05);
  --foot-text: #4f586b;
  --frame: rgb(15 23 42 / .06);            /* 软件窗口外框 */
  --window-shadow: 0 24px 56px -24px rgb(80 60 140 / .32);
  --window-bg: #ffffff;
  --pop-line: 15 23 42;                    /* 手机号细线的颜色 */
}

@media (min-width: 735px) {
  :root {
    --fs-display: 56px; --lh-display: 60px;
    --fs-hero: 56px;    --lh-hero: 68px;
    --fs-price: 40px;   --lh-price: 44px;
    --fs-h2: 34px;      --lh-h2: 44px;
    --fs-page: 36px;    --lh-page: 46px;
    --fs-tile: 28px;    --lh-tile: 32px;
    --fs-lead: 21px;    --lh-lead: 28px;
    --fs-note: 17px;    --lh-note: 25px;
    --fs-sub: 17px;     --lh-sub: 25px;
    --ls-lead: .011em;
    --gutter: 24px;
    --section: 48px;
    --tile-top: 40px;
    --tile-h: 372px;
  }
}

@media (min-width: 1069px) {
  :root {
    --fs-display: 64px; --lh-display: 70px;
    --fs-hero: 72px;    --lh-hero: 86px;
    --fs-price: 48px;   --lh-price: 52px;
    --fs-h2: 40px;      --lh-h2: 50px;
    --fs-page: 40px;    --lh-page: 50px;
    --fs-lead: 24px;    --lh-lead: 31px;
    --ls-lead: .009em;
    --section: 56px;
    --tile-h: 380px;
  }
}

/* 苹果连续圆角：Chrome 139 起支持；不支持的浏览器用上面的普通圆角 */
@supports (corner-shape: squircle) {
  :root {
    --r-thumb: 13px;
    --r-ctl: 18px;
    --r-window: 20px;
    --r-card: 26px;
    --r-tile: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-mid: 0ms; --t-slow: 0ms; }
}
