{
  "$schema": "cwa-tokens@1",
  "libraryVersion": "0.1.0-alpha.4",
  "primitive": {
    "space": {
      "1": {
        "value": "0.25rem",
        "type": "dimension",
        "unit": "rem",
        "description": "最小间距（图标与文本之间）"
      },
      "2": {
        "value": "0.5rem",
        "type": "dimension",
        "unit": "rem",
        "description": "紧凑内间距"
      },
      "3": {
        "value": "0.75rem",
        "type": "dimension",
        "unit": "rem",
        "description": "控件内间距"
      },
      "4": {
        "value": "1rem",
        "type": "dimension",
        "unit": "rem",
        "description": "标准内间距"
      },
      "5": {
        "value": "1.5rem",
        "type": "dimension",
        "unit": "rem",
        "description": "组间距"
      },
      "6": {
        "value": "2rem",
        "type": "dimension",
        "unit": "rem",
        "description": "区块间距"
      },
      "8": {
        "value": "3rem",
        "type": "dimension",
        "unit": "rem",
        "description": "页面级间距"
      }
    },
    "radius": {
      "control": {
        "value": "0.75rem",
        "type": "dimension",
        "unit": "rem",
        "description": "按钮/输入框圆角"
      },
      "panel": {
        "value": "1.25rem",
        "type": "dimension",
        "unit": "rem",
        "description": "卡片/面板圆角"
      },
      "sheet": {
        "value": "1.5rem",
        "type": "dimension",
        "unit": "rem",
        "description": "Sheet/大浮层圆角"
      }
    },
    "font": {
      "size-caption": {
        "value": "0.8125rem",
        "type": "dimension",
        "unit": "rem",
        "description": "辅助文字"
      },
      "size-body": {
        "value": "1rem",
        "type": "dimension",
        "unit": "rem",
        "description": "正文"
      },
      "size-title": {
        "value": "1.25rem",
        "type": "dimension",
        "unit": "rem",
        "description": "区块标题"
      },
      "size-display": {
        "value": "1.75rem",
        "type": "dimension",
        "unit": "rem",
        "description": "页面标题"
      },
      "leading-body": {
        "value": "1.5",
        "type": "number",
        "unit": "ratio",
        "description": "正文行高"
      },
      "leading-display": {
        "value": "1.15",
        "type": "number",
        "unit": "ratio",
        "description": "大标题行高（紧）"
      },
      "tracking-display": {
        "value": "-0.02em",
        "type": "dimension",
        "unit": "em",
        "description": "大标题字距（负，需验证中文）"
      }
    },
    "blur": {
      "glass-clear": {
        "value": "12px",
        "type": "dimension",
        "unit": "px",
        "description": "clear 玻璃（媒体控件，opt-in）"
      },
      "glass-regular": {
        "value": "20px",
        "type": "dimension",
        "unit": "px",
        "description": "regular 玻璃（浮动层/导航）"
      },
      "glass-thick": {
        "value": "28px",
        "type": "dimension",
        "unit": "px",
        "description": "厚 frosted（Dialog/Sheet/Sidebar）"
      }
    },
    "saturation": {
      "glass": {
        "value": "1.5",
        "type": "number",
        "unit": "ratio",
        "description": "玻璃饱和度增益"
      }
    },
    "focus": {
      "width": {
        "value": "2px",
        "type": "dimension",
        "unit": "px",
        "description": "键盘焦点宽度"
      },
      "offset": {
        "value": "3px",
        "type": "dimension",
        "unit": "px",
        "description": "键盘焦点偏移"
      },
      "control-width": {
        "value": "1px",
        "type": "dimension",
        "unit": "px",
        "description": "表单控件贴边实体焦点线宽度"
      },
      "control-offset": {
        "value": "0px",
        "type": "dimension",
        "unit": "px",
        "description": "表单控件焦点线贴合控件边缘"
      },
      "control-halo-width": {
        "value": "2px",
        "type": "dimension",
        "unit": "px",
        "description": "表单控件装饰性焦点微光宽度"
      }
    },
    "shadow": {
      "contact-y": {
        "value": "2px",
        "type": "dimension",
        "unit": "px",
        "description": "接触投影距离（medium：菜单/面板级）"
      },
      "contact-blur": {
        "value": "6px",
        "type": "dimension",
        "unit": "px",
        "description": "接触投影扩散（medium：菜单/面板级）"
      },
      "ambient-y": {
        "value": "16px",
        "type": "dimension",
        "unit": "px",
        "description": "环境投影距离（medium：菜单/面板级）"
      },
      "ambient-blur": {
        "value": "40px",
        "type": "dimension",
        "unit": "px",
        "description": "环境投影扩散（medium：菜单/面板级）"
      },
      "elevation-small-contact-y": {
        "value": "1px",
        "type": "dimension",
        "unit": "px",
        "description": "小工具栏/胶囊接触投影距离"
      },
      "elevation-small-contact-blur": {
        "value": "4px",
        "type": "dimension",
        "unit": "px",
        "description": "小工具栏/胶囊接触投影扩散"
      },
      "elevation-small-ambient-y": {
        "value": "8px",
        "type": "dimension",
        "unit": "px",
        "description": "小工具栏/胶囊环境投影距离"
      },
      "elevation-small-ambient-blur": {
        "value": "20px",
        "type": "dimension",
        "unit": "px",
        "description": "小工具栏/胶囊环境投影扩散"
      },
      "elevation-large-contact-y": {
        "value": "3px",
        "type": "dimension",
        "unit": "px",
        "description": "大浮层（Dialog/Sheet）接触投影距离"
      },
      "elevation-large-contact-blur": {
        "value": "10px",
        "type": "dimension",
        "unit": "px",
        "description": "大浮层（Dialog/Sheet）接触投影扩散"
      },
      "elevation-large-ambient-y": {
        "value": "26px",
        "type": "dimension",
        "unit": "px",
        "description": "大浮层（Dialog/Sheet）环境投影距离"
      },
      "elevation-large-ambient-blur": {
        "value": "64px",
        "type": "dimension",
        "unit": "px",
        "description": "大浮层（Dialog/Sheet）环境投影扩散"
      }
    },
    "z": {
      "overlay": {
        "value": "1000",
        "type": "number",
        "unit": "integer",
        "description": "Portal stacking layer"
      },
      "dialog": {
        "value": "1001",
        "type": "number",
        "unit": "integer",
        "description": "Portal stacking layer"
      },
      "popup": {
        "value": "1002",
        "type": "number",
        "unit": "integer",
        "description": "Portal stacking layer"
      },
      "tooltip": {
        "value": "1003",
        "type": "number",
        "unit": "integer",
        "description": "Portal stacking layer"
      },
      "toast": {
        "value": "1004",
        "type": "number",
        "unit": "integer",
        "description": "Portal stacking layer"
      }
    }
  },
  "semantic": {
    "light": {
      "color-bg": {
        "value": "#f5f5f7",
        "type": "color",
        "description": "页面底色"
      },
      "color-surface": {
        "value": "#ffffff",
        "type": "color",
        "description": "实色表面"
      },
      "color-surface-raised": {
        "value": "#ffffff",
        "type": "color",
        "description": "悬浮实色表面"
      },
      "color-text": {
        "value": "#17181c",
        "type": "color",
        "description": "主文本"
      },
      "color-text-muted": {
        "value": "#464a54",
        "type": "color",
        "description": "次要文本"
      },
      "color-border-subtle": {
        "value": "rgba(0,0,0,0.10)",
        "type": "color",
        "description": "弱边框"
      },
      "color-border-strong": {
        "value": "rgba(0,0,0,0.22)",
        "type": "color",
        "description": "强边框/分隔"
      },
      "color-accent": {
        "value": "#005fbe",
        "type": "color",
        "description": "主操作色"
      },
      "color-on-accent": {
        "value": "#ffffff",
        "type": "color",
        "description": "主操作色上的文本"
      },
      "color-control-thumb": {
        "value": "#ffffff",
        "type": "color",
        "description": "滑块等活动部件的不透明亮色表面"
      },
      "color-danger": {
        "value": "#d70015",
        "type": "color",
        "description": "错误/破坏性"
      },
      "color-success": {
        "value": "#248a3d",
        "type": "color",
        "description": "成功"
      },
      "color-warning": {
        "value": "#b25000",
        "type": "color",
        "description": "警告（文本可用级）"
      },
      "color-scrim": {
        "value": "rgba(0,0,0,0.30)",
        "type": "color",
        "description": "模态遮罩"
      },
      "glass-regular-fill": {
        "value": "rgba(255,255,255,0.52)",
        "type": "color",
        "description": "regular 玻璃填充"
      },
      "glass-thick-fill": {
        "value": "rgba(255,255,255,0.76)",
        "type": "color",
        "description": "厚 frosted 填充"
      },
      "glass-clear-fill": {
        "value": "rgba(255,255,255,0.20)",
        "type": "color",
        "description": "clear 玻璃填充（媒体轻工具栏，显式 opt-in）"
      },
      "glass-rim-top": {
        "value": "rgba(255,255,255,0.80)",
        "type": "color",
        "description": "玻璃光学层 glass-rim-top"
      },
      "glass-rim-bottom": {
        "value": "rgba(72,91,126,0.20)",
        "type": "color",
        "description": "玻璃光学层 glass-rim-bottom"
      },
      "glass-reflection": {
        "value": "rgba(255,255,255,0.22)",
        "type": "color",
        "description": "玻璃光学层 glass-reflection"
      },
      "glass-inner-highlight": {
        "value": "rgba(255,255,255,0.72)",
        "type": "color",
        "description": "玻璃光学层 glass-inner-highlight"
      },
      "glass-inner-shade": {
        "value": "rgba(34,56,92,0.10)",
        "type": "color",
        "description": "玻璃光学层 glass-inner-shade"
      },
      "glass-contact-shadow": {
        "value": "rgba(24,46,82,0.14)",
        "type": "color",
        "description": "玻璃光学层 glass-contact-shadow"
      },
      "glass-ambient-shadow": {
        "value": "rgba(24,46,82,0.20)",
        "type": "color",
        "description": "玻璃光学层 glass-ambient-shadow"
      },
      "color-focus": {
        "value": "#005fbe",
        "type": "color",
        "description": "Stable surface focus ring; glass uses opaque text color"
      },
      "color-control-focus": {
        "value": "#005fbe",
        "type": "color",
        "description": "表单控件实体焦点边线；独立于玻璃外壳的全局焦点色"
      },
      "color-control-focus-halo": {
        "value": "rgba(0,95,190,0.12)",
        "type": "color",
        "description": "表单控件装饰性贴边微光，不作为唯一焦点提示"
      },
      "glass-clear-dimming": {
        "value": "rgba(255,255,255,0.16)",
        "type": "color",
        "description": "Clear 表面轻遮蔽层；控件本体自带填充，重遮蔽请用 Regular/Thick"
      },
      "color-glass-text-muted": {
        "value": "#2b3039",
        "type": "color",
        "description": "玻璃表面副文字（不透明）；纯黑等极暗背景请改用 Thick"
      }
    },
    "dark": {
      "color-bg": {
        "value": "#1c1c1e",
        "type": "color",
        "description": "页面底色"
      },
      "color-surface": {
        "value": "#2c2c2e",
        "type": "color",
        "description": "实色表面"
      },
      "color-surface-raised": {
        "value": "#3a3a3c",
        "type": "color",
        "description": "悬浮实色表面"
      },
      "color-text": {
        "value": "#f5f5f7",
        "type": "color",
        "description": "主文本"
      },
      "color-text-muted": {
        "value": "#aeaeb2",
        "type": "color",
        "description": "次要文本"
      },
      "color-border-subtle": {
        "value": "rgba(255,255,255,0.14)",
        "type": "color",
        "description": "弱边框"
      },
      "color-border-strong": {
        "value": "rgba(255,255,255,0.30)",
        "type": "color",
        "description": "强边框/分隔"
      },
      "color-accent": {
        "value": "#409cff",
        "type": "color",
        "description": "主操作色"
      },
      "color-on-accent": {
        "value": "#061c34",
        "type": "color",
        "description": "主操作色上的文本"
      },
      "color-control-thumb": {
        "value": "#ffffff",
        "type": "color",
        "description": "深色表面上保持可辨识的活动部件"
      },
      "color-danger": {
        "value": "#ff6961",
        "type": "color",
        "description": "错误/破坏性"
      },
      "color-success": {
        "value": "#66d17c",
        "type": "color",
        "description": "成功"
      },
      "color-warning": {
        "value": "#ffd60a",
        "type": "color",
        "description": "警告"
      },
      "color-scrim": {
        "value": "rgba(0,0,0,0.48)",
        "type": "color",
        "description": "模态遮罩"
      },
      "glass-regular-fill": {
        "value": "rgba(28,29,34,0.68)",
        "type": "color",
        "description": "regular 玻璃填充（中性石墨底，减少蓝灰主导）"
      },
      "glass-thick-fill": {
        "value": "rgba(28,29,34,0.84)",
        "type": "color",
        "description": "厚 frosted 填充（结构性浮层，与 Regular 拉开遮蔽差距）"
      },
      "glass-clear-fill": {
        "value": "rgba(28,29,34,0.20)",
        "type": "color",
        "description": "clear 玻璃填充（媒体轻工具栏，显式 opt-in）"
      },
      "glass-rim-top": {
        "value": "rgba(255,255,255,0.28)",
        "type": "color",
        "description": "玻璃光学层 glass-rim-top（定向亮缘）"
      },
      "glass-rim-bottom": {
        "value": "rgba(0,0,0,0.28)",
        "type": "color",
        "description": "玻璃光学层 glass-rim-bottom（底缘收敛）"
      },
      "glass-reflection": {
        "value": "rgba(255,255,255,0.08)",
        "type": "color",
        "description": "玻璃光学层 glass-reflection"
      },
      "glass-inner-highlight": {
        "value": "rgba(255,255,255,0.16)",
        "type": "color",
        "description": "玻璃光学层 glass-inner-highlight"
      },
      "glass-inner-shade": {
        "value": "rgba(0,0,0,0.12)",
        "type": "color",
        "description": "玻璃光学层 glass-inner-shade（内壁暗部收敛）"
      },
      "glass-contact-shadow": {
        "value": "rgba(0,0,0,0.16)",
        "type": "color",
        "description": "玻璃光学层 glass-contact-shadow"
      },
      "glass-ambient-shadow": {
        "value": "rgba(0,0,0,0.30)",
        "type": "color",
        "description": "玻璃光学层 glass-ambient-shadow"
      },
      "color-focus": {
        "value": "#409cff",
        "type": "color",
        "description": "Stable surface focus ring; glass uses opaque text color"
      },
      "color-control-focus": {
        "value": "#409cff",
        "type": "color",
        "description": "深色表单控件实体焦点边线；独立于玻璃外壳的全局焦点色"
      },
      "color-control-focus-halo": {
        "value": "rgba(64,156,255,0.16)",
        "type": "color",
        "description": "深色表单控件装饰性贴边微光，不作为唯一焦点提示"
      },
      "glass-clear-dimming": {
        "value": "rgba(0,0,0,0.40)",
        "type": "color",
        "description": "Clear 表面轻遮蔽层；控件本体自带填充，重遮蔽请用 Regular/Thick"
      },
      "color-glass-text-muted": {
        "value": "#e4e4ea",
        "type": "color",
        "description": "玻璃表面副文字（不透明）；纯白等极亮背景请改用 Thick"
      }
    }
  },
  "motion": {
    "control": {
      "type": "duration",
      "value": "100ms",
      "description": "控件反馈时长"
    },
    "move": {
      "type": "spring",
      "bounce": 0,
      "duration": 0.4,
      "description": "布局/位置移动：临界阻尼"
    },
    "overlay": {
      "type": "spring",
      "bounce": 0,
      "duration": 0.3,
      "description": "菜单/Popover：临界阻尼，触发器原点"
    },
    "sheet": {
      "type": "spring",
      "bounce": 0.15,
      "duration": 0.35,
      "description": "Sheet：释放动量允许少量回弹"
    }
  }
}