{
  "meta": {
    "name": "S300 HMI Design System",
    "version": "1.0.0",
    "canvas": { "width": 1920, "height": 1080, "unit": "px" },
    "targetFrameworks": ["Sketch", "Web (HTML/CSS)", "C# WPF (XAML)"]
  },
  "colors": {
    "brandAndNeutral": [
      { "token": "Color.Primary", "css": "--hmi-primary", "wpf": "HmiPrimaryBrush", "name": "主品牌 / 激活蓝", "hex": "#007BC4", "usage": "主按钮（Run）、选中边框、链接、激活 G/P" },
      { "token": "Color.PrimaryLight", "css": "--hmi-primary-light", "wpf": "HmiPrimaryLightBrush", "name": "浅蓝高亮底", "hex": "#E6F4FF", "usage": "幽灵按钮底色、高亮浅底" },
      { "token": "Color.TextPrimary", "css": "--hmi-text-primary", "wpf": "HmiTextPrimaryBrush", "name": "主标题文字", "hex": "#1D2129", "usage": "页面标题、正文、深色模组编号" },
      { "token": "Color.TextSecondary", "css": "--hmi-text-secondary", "wpf": "HmiTextSecondaryBrush", "name": "次级正文文字", "hex": "#4E5969", "usage": "次级说明、未启动文字、维护/占用文字" },
      { "token": "Color.TextMuted", "css": "--hmi-text-muted", "wpf": "HmiTextMutedBrush", "name": "辅助 / 弱化文字", "hex": "#86909C", "usage": "辅助文字、禁用态、空闲 G/P" },
      { "token": "Color.BgUnstarted", "css": "--hmi-bg-unstarted", "wpf": "HmiBgUnstartedBrush", "name": "未启动 / 待启动底", "hex": "#F2F3F5", "usage": "未启动与待启动胶囊底色、次按钮底" },
      { "token": "Color.BgCanvas", "css": "--hmi-bg-canvas", "wpf": "HmiBgCanvasBrush", "name": "画布 / 模块底灰", "hex": "#E5E6EB", "usage": "画布外底色、卡片分割线" },
      { "token": "Color.EmptyAndBorder", "css": "--hmi-border-empty", "wpf": "HmiEmptyBorderBrush", "name": "空位 / 标准边框", "hex": "#C9CDD4", "usage": "空模组位底色、模组卡 0.25px 描边、Others 态" },
      { "token": "Color.Surface", "css": "--hmi-surface", "wpf": "HmiSurfaceBrush", "name": "纯白卡片底", "hex": "#FFFFFF", "usage": "卡片白底、二级标题栏、弹窗底" }
    ],
    "semanticStatus": [
      { "group": "Module", "token": "Module.Ready", "css": "--hmi-mod-ready", "wpf": "HmiModReadyBrush", "name": "Ready（就绪）", "hex": "#31B47D", "textHex": "#1D2129", "usage": "腔室空闲可用" },
      { "group": "Module", "token": "Module.Process", "css": "--hmi-mod-process", "wpf": "HmiModProcessBrush", "name": "Process（本批加工）", "hex": "#4961D2", "textHex": "#FFFFFF", "usage": "当前批次正在加工，带底部 3px 进度条" },
      { "group": "Module", "token": "Module.Operating", "css": "--hmi-mod-operating", "wpf": "HmiModOperatingBrush", "name": "Operating / 排队等待", "hex": "#F5BC45", "textHex": "#1D2129", "usage": "调温/运行中，或本批正在排队等待共享工位" },
      { "group": "Module", "token": "Module.Error", "css": "--hmi-mod-error", "wpf": "HmiModErrorBrush", "name": "Error（故障异常）", "hex": "#D43838", "textHex": "#FFFFFF", "usage": "腔室报警，同步触发左侧批次摘要告警" },
      { "group": "Module", "token": "Module.Others", "css": "--hmi-mod-others", "wpf": "HmiModOthersBrush", "name": "Others（维护 / 离线）", "hex": "#C9CDD4", "textHex": "#4E5969", "usage": "Maintenance / Offline / Not 配置" },
      { "group": "Module", "token": "Module.OtherOccupied", "css": "--hmi-mod-other-occ", "wpf": "HmiModOtherOccBrush", "name": "他批占用（未等待）", "hex": "#DEE3EB", "textHex": "#4E5969", "usage": "共享工位被他批占用且本批未排队" },
      { "group": "Wafer", "token": "Wafer.Normal", "css": "--hmi-wafer-normal", "wpf": "HmiWaferNormalBrush", "name": "Wafer · Normal", "hex": "#007BC4", "textHex": "#FFFFFF", "usage": "在位正常晶圆圆点" },
      { "group": "Wafer", "token": "Wafer.Warning", "css": "--hmi-wafer-warning", "wpf": "HmiWaferWarningBrush", "name": "Wafer · Warning", "hex": "#F5BC45", "textHex": "#1D2129", "usage": "已出片 / 警告态晶圆" },
      { "group": "Wafer", "token": "Wafer.Error", "css": "--hmi-wafer-error", "wpf": "HmiWaferErrorBrush", "name": "Wafer · Error", "hex": "#D43838", "textHex": "#FFFFFF", "usage": "异常晶圆圆点与槽位" }
    ]
  },
  "typography": [
    { "level": "T1", "css": "--hmi-font-t1", "wpf": "HmiFontSizeT1", "name": "页面主标题", "size": 18, "weight": 500, "lineHeight": 26, "sample": "主画面 / 批次路径监控" },
    { "level": "T2", "css": "--hmi-font-t2", "wpf": "HmiFontSizeT2", "name": "区块 / 弹窗标题", "size": 15, "weight": 500, "lineHeight": 22, "sample": "← 主画面 / 批次路径 · 1-1 Foup" },
    { "level": "T3", "css": "--hmi-font-t3", "wpf": "HmiFontSizeT3", "name": "正文 / 模组编号", "size": 13, "weight": 400, "lineHeight": 20, "sample": "21-12 TRS · 34-21 CLHP · 查看批次" },
    { "level": "T4", "css": "--hmi-font-t4", "wpf": "HmiFontSizeT4", "name": "状态胶囊 / 批次号", "size": 12, "weight": 400, "lineHeight": 18, "sample": "L-LHPS-01 · Process · Ready · 待启动" },
    { "level": "T5", "css": "--hmi-font-t5", "wpf": "HmiFontSizeT5", "name": "辅助摘要 / 等待提示", "size": 11, "weight": 400, "lineHeight": 16, "sample": "完成 10/25 · 加工中 3 · 等待 21-12 TRS" },
    { "level": "T6", "css": "--hmi-font-t6", "wpf": "HmiFontSizeT6", "name": "微标 / 晶圆片号", "size": 10, "weight": 400, "lineHeight": 14, "sample": "1-1-22 · 异常1片 · 槽位号 1~25" }
  ],
  "radii": [
    { "token": "Radius.None", "css": "--hmi-radius-none", "wpf": "HmiRadiusNone", "value": 0, "usage": "模组网格、表格单元" },
    { "token": "Radius.XS", "css": "--hmi-radius-xs", "wpf": "HmiRadiusXS", "value": 2, "usage": "进度条、G/P 微标、选中外框" },
    { "token": "Radius.SM", "css": "--hmi-radius-sm", "wpf": "HmiRadiusSM", "value": 4, "usage": "按钮、摘要胶囊、状态 pill" },
    { "token": "Radius.MD", "css": "--hmi-radius-md", "wpf": "HmiRadiusMD", "value": 6, "usage": "侧栏模式卡、容器卡片" },
    { "token": "Radius.Pill", "css": "--hmi-radius-pill", "wpf": "HmiRadiusPill", "value": 10, "usage": "待启动 / 运行中 / 异常1片 胶囊" },
    { "token": "Radius.LG", "css": "--hmi-radius-lg", "wpf": "HmiRadiusLG", "value": 14, "usage": "提示条、筛选标签" }
  ],
  "borders": [
    { "token": "Border.Grid", "css": "--hmi-border-grid", "wpf": "HmiBorderGrid", "width": 0.25, "hex": "#C9CDD4", "usage": "模组卡片与空模组位内描边" },
    { "token": "Border.Card", "css": "--hmi-border-card", "wpf": "HmiBorderCard", "width": 1, "hex": "#E5E6EB", "usage": "通用卡片与分隔线" },
    { "token": "Border.Interactive", "css": "--hmi-border-interactive", "wpf": "HmiBorderInteractive", "width": 1.5, "hex": "#007BC4", "usage": "幽灵按钮、交互卡片描边" },
    { "token": "Border.Selected", "css": "--hmi-border-selected", "wpf": "HmiBorderSelected", "width": 2.5, "hex": "#007BC4", "usage": "单批聚焦选中外框" }
  ],
  "spacing": [
    { "token": "Space.XS", "css": "--hmi-space-xs", "wpf": "HmiSpaceXS", "value": 4, "usage": "卡片内微距" },
    { "token": "Space.SM", "css": "--hmi-space-sm", "wpf": "HmiSpaceSM", "value": 8, "usage": "同组元素间距" },
    { "token": "Space.MD", "css": "--hmi-space-md", "wpf": "HmiSpaceMD", "value": 12, "usage": "区块内边距" },
    { "token": "Space.LG", "css": "--hmi-space-lg", "wpf": "HmiSpaceLG", "value": 16, "usage": "画布外边距" },
    { "token": "Space.XL", "css": "--hmi-space-xl", "wpf": "HmiSpaceXL", "value": 24, "usage": "大模块分隔" }
  ],
  "safeZones": [
    { "name": "顶部系统栏", "rect": "x=0, y=0, w=1920, h=70", "rule": "禁动区", "desc": "报警条、Alarm、Buzzer Stop、三色灯、账号、时间" },
    { "name": "二级标题栏", "rect": "x=16, y=86, w=1888, h=44", "rule": "半禁动", "desc": "左仅放主画面/返回面包屑，中间留白，右仅保留整机 Process 状态" },
    { "name": "主体可用区", "rect": "x=16, y=138, w=1888, h=864", "rule": "可编辑", "desc": "4 行×216px；模组页左 FOUP 160px + 右 6 列×288px；主页左 FOUP 294px + 右侧栏 94px" },
    { "name": "底部导航栏", "rect": "x=0, y=1010, w=1920, h=70", "rule": "禁动区", "desc": "主画面、配方、服务、日志、参数、系统、OEM、截屏" }
  ]
}
