# 消息推送配置

notification_channel: feishu  # 推送渠道: wecom 或 feishu

wecom:
  # 推送目标：用户 ID（飞书 open_id 或企业微信 userid）
  target_user: "ou_415e2d4089eec5640f3f364116c59c06"
  
  # 推送格式
  message_template:
    header: ""
    footer: ""
    max_length: 2000
  


# 图片规格配置（三种平台）
image_specs:
  zhihu:
    width: 1200
    height: 675  # 16:9
    format: "png"
    quality: 85
    banner_size: "封面图: 1200x675, 正文内嵌: 900xauto"
  
  wechat:
    width: 900
    height: 1200  # 3:4 (移动端竖屏)
    format: "png"
    quality: 85
    banner_size: "封面图: 900x383, 正文内嵌: 自适应宽度(最大900)"
  
  xiaohongshu:
    width: 1200
    height: 1600  # 3:4
    format: "png"
    quality: 90
    banner_size: "封面图: 1200x1600, 详图文: 1200x1600"

# HTML模板路径
templates:
  base: "automation/templates/base.html"
  zhihu: "automation/templates/zhihu.html"
  wechat: "automation/templates/wechat.html"
  xiaohongshu: "automation/templates/xiaohongshu.html"

# 输出目录结构
output:
  daily_drafts: "automation/data/drafts/drafts_{{DATE}}/"
  published_releases: "automation/data/published/releases_{{DATE}}/"
  images: "automation/images/generated/{{DATE}}/"
  logs: "automation/logs/"

# 内容创作规则
content_rules:
  zhihu:
    max_length: 3000
    min_length: 1500
    requires_tags: true
    tag_count: 3-5
    requires_summary: true
    summary_length: 100-200
  
  wechat:
    max_length: 2500
    min_length: 800
    requires_cover_image: true
    requires_abstract: true
    abstract_length: 50-200
    allow_emoji: true
  
  xiaohongshu:
    max_length: 1000
    min_length: 500
    requires_multiple_images: true  # 小红书图文笔记
    image_count: 3-9
    requires_hashtags: true
    hashtag_count: 5-10
    tone: "生活化、亲切、有价值"

# 日报模板（最终总结）
notification_templates:
  daily_summary: |
    【宇之然日报】{{DATE}}
    ✅ 已发布 {{PUBLISHED_COUNT}} 篇文章
    📦 平台：{{PLATFORMS}}
    📁 发布包：{{PUBLISH_DIR}}
    ——————————
    全流程结束， awaiting tomorrow's run.