{
  "_comment": "唯一的字段定义源。products.fields 是线上那 10 个产品栏位，本次一个字未改；news.fields 是新增的新闻栏位。后端建表、前端表格/表单/CSV 都读这个文件。要加栏位只在这里加一行，重启服务即可（旧数据不丢）。key 只能用英文字母、数字、下划线，且以字母或下划线开头。",
  "title": "GB 20943-2025 产品资料库",
  "table": "products",
  "fields": [
    { "key": "company",    "label": "公司名称",        "type": "text",   "required": true,  "width": 190, "placeholder": "如：深圳市××科技有限公司" },
    { "key": "model",      "label": "产品型号",        "type": "text",   "required": true,  "width": 150, "placeholder": "如：ABC-65W" },
    { "key": "silkscreen", "label": "丝印内容",        "type": "text",   "width": 190, "multiline": true, "placeholder": "机身/铭牌丝印关键文字" },
    { "key": "efficiency", "label": "能效等级",        "type": "select", "width": 110, "options": ["1级", "2级", "3级", "待确认", "不适用"] },
    { "key": "ports",      "label": "USB端口数量",     "type": "number", "width": 120, "min": 0, "max": 99 },
    { "key": "category",   "label": "产品类别",        "type": "text",   "width": 130, "placeholder": "适配器 / 充电器 / 多口…" },
    { "key": "power_w",    "label": "额定输出功率(W)", "type": "number", "width": 145, "min": 0, "max": 10000, "step": "0.1" },
    { "key": "cert_no",    "label": "证书/报告编号",   "type": "text",   "width": 175, "placeholder": "认证证书或检测报告编号" },
    { "key": "cert_date",  "label": "认证/公示日期",   "type": "date",   "width": 135 },
    { "key": "source",     "label": "数据来源/备注",   "type": "text",   "width": 210, "multiline": true, "placeholder": "原始出处、链接或核验说明" }
  ],
  "news": {
    "_comment": "新闻栏位。date 用来排序（倒序，最新在前），title 必填，link 可选（公众号文章或原文链接）。改这里只影响新闻，不碰产品资料。",
    "table": "news",
    "fields": [
      { "key": "date",  "label": "发布日期",   "type": "date", "required": true, "width": 120 },
      { "key": "title", "label": "新闻标题",   "type": "text", "required": true, "width": 280, "placeholder": "如：GB 20943-2025 实施日期说明" },
      { "key": "tag",   "label": "分类",       "type": "select", "width": 110, "options": ["标准动态", "产品资讯", "合规提示", "站点公告", "其他"] },
      { "key": "body",  "label": "正文",       "type": "text", "multiline": true, "width": 360, "placeholder": "支持换行。纯文本，不会执行 HTML。" },
      { "key": "link",  "label": "相关链接",   "type": "url",  "width": 230, "placeholder": "https://… 公众号文章或原始出处，可留空" }
    ]
  },
  "site": {
    "_comment": "网站说明/声明，后台「网站说明」页签里以纯文本编辑，支持多段换行。首次启动时写入 DEFAULT_NOTICE 作为默认值。"
  }
}
