/* ==========================================================================
 * 曼妮新娘工作台唯一身份视觉令牌 (Manee Brides Unified Workbench Design Tokens v1.0)
 * 《水瓶座科技蓝 · 水钻清透晶体风》 Aquarius Tech Crystal Blue
 * --------------------------------------------------------------------------
 * 依据主理人麦尼 2026-11-27 亲定规范：
 *   - 适用面：ops.maneebrides.com 曼妮新娘工作台（电脑主控 + 手机审批 + Muse 空间同源嵌入）
 *   - 主色：水瓶座科技蓝（水钻那种璀璨清透的蓝为主色调，底色干净明亮，文字深色高对比；
 *           全台统一单一身份色，不混其他主色）
 *   - 纪律：零死黑阴影 rgba(0,0,0,...)、零斜体、零 Inter/Roboto、零 Emoji 图标、全数字等宽对齐
 *   - 主仓源本：packages/design-tokens/aquarius-crystal-blue.css（两处同步保持逐字一致）
 * ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("../fonts/noto-serif-sc-700-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* 1. 清透晶体底色层（80% 呼吸留白面积） */
  --wb-canvas: #F7FAFF;
  --wb-canvas-glow: radial-gradient(960px 520px at 10% -8%, rgba(125, 184, 255, 0.22), transparent 66%);
  --wb-tray: #EEF5FF;
  --wb-tray-hover: #E5F0FF;
  --wb-slab: #FFFFFF;
  --wb-slab-frost: rgba(255, 255, 255, 0.88);

  /* 2. 水瓶座科技水钻蓝主色层（全台唯一主色） */
  --wb-crystal-hi: #7DB8FF;
  --wb-crystal-main: #2F6FE4;
  --wb-crystal-deep: #15338A;
  --wb-crystal-gradient: linear-gradient(135deg, #7DB8FF 0%, #2F6FE4 48%, #15338A 100%);
  --wb-crystal-pill-gradient: linear-gradient(135deg, #7DB8FF 0%, #2F6FE4 48%, #15338A 100%);
  --wb-crystal-soft: rgba(47, 111, 228, 0.08);
  --wb-crystal-soft-strong: rgba(47, 111, 228, 0.14);

  /* 3. 高对比深色墨水层（全部通过 WCAG AAA / AA+） */
  --wb-ink: #0D1F4F;          /* 主标题与大号结论数字（对比度 > 13.8:1） */
  --wb-ink-2: #1E3A7A;        /* 结构小标题与重点标签（对比度 > 9.4:1） */
  --wb-ink-muted: #4A5F8C;    /* 辅助说明与时间戳（对比度 > 5.7:1） */
  --wb-on-crystal: #FFFFFF;

  /* 4. 晶体细描边与受控状态点（状态仅作小徽标，不抢主色） */
  --wb-border-hairline: rgba(47, 111, 228, 0.14);
  --wb-border-strong: rgba(21, 51, 138, 0.26);
  --wb-ok-bg: #EBF8F3;
  --wb-ok-fg: #0D6547;
  --wb-ok-dot: #15996B;
  --wb-warn-bg: #FFF6E8;
  --wb-warn-fg: #8A4F08;
  --wb-warn-dot: #D48216;
  --wb-crit-bg: #FDF0F3;
  --wb-crit-fg: #9E142B;
  --wb-crit-dot: #D92648;

  /* 5. 蓝宝石光学折射柔影（严禁任何 rgba(0,0,0,...) 死黑阴影） */
  --wb-shadow-tray:
    inset 0 1.5px 3px rgba(21, 51, 138, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.96);
  --wb-shadow-slab:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.98),
    0 10px 28px -10px rgba(21, 51, 138, 0.08),
    0 22px 44px -22px rgba(21, 51, 138, 0.12);
  --wb-shadow-cta:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.36),
    0 10px 22px -8px rgba(21, 51, 138, 0.34);
  --wb-shadow-drawer:
    -18px 0 48px -12px rgba(13, 31, 79, 0.16);

  /* 6. 字体栈与同心圆几何令牌 */
  --wb-font-sans: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  --wb-font-display: "Noto Serif SC", "PingFang SC", "Source Han Serif SC", serif;
  --wb-font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wb-r-outer: 22px;
  --wb-r-gap: 5px;
  --wb-r-inner: 17px;
  --wb-r-sub: 12px;
  --wb-r-pill: 9999px;
  --wb-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 触控与指针自适应热区（WCAG 2.5.8 / 2.5.5） */
  --target-size: 32px;
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
}

/* 双层镶边晶体容器 (Double-Bezel / Doppelrand) */
.wb-bezel {
  padding: var(--wb-r-gap);
  border-radius: var(--wb-r-outer);
  background: var(--wb-tray);
  border: 1px solid var(--wb-border-hairline);
  box-shadow: var(--wb-shadow-tray);
}

.wb-slab {
  border-radius: var(--wb-r-inner);
  background: var(--wb-slab);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--wb-shadow-slab);
}

/* 水钻科技蓝主动作按钮（含嵌套图标圆舱 Button-in-Button） */
.btn-crystal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: max(38px, var(--target-size));
  padding: 6px 16px;
  border-radius: var(--wb-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--wb-crystal-pill-gradient);
  color: var(--wb-on-crystal);
  box-shadow: var(--wb-shadow-cta);
  font-family: var(--wb-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms var(--wb-ease), opacity 180ms var(--wb-ease);
}

.btn-crystal:hover {
  transform: translateY(-1px);
}

.btn-crystal:active {
  transform: scale(0.98);
}

.btn-crystal__orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 22px;
  block-size: 22px;
  border-radius: var(--wb-r-pill);
  background: rgba(255, 255, 255, 0.18);
  transition: transform 220ms var(--wb-ease);
}

.btn-crystal:hover .btn-crystal__orb {
  transform: translate(1px, -1px) scale(1.04);
}

.btn-ghost-crystal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: max(36px, var(--target-size));
  padding: 6px 14px;
  border-radius: var(--wb-r-pill);
  border: 1px solid var(--wb-border-hairline);
  background: var(--wb-slab);
  color: var(--wb-ink-2);
  font-family: var(--wb-font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms var(--wb-ease), opacity 180ms var(--wb-ease);
}

.btn-ghost-crystal:hover {
  background: var(--wb-tray);
}

.btn-ghost-crystal:active {
  transform: scale(0.98);
}

.wb-num {
  font-family: var(--wb-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-style: normal;
}
