#import "../../brand/colors.typ": *

// 可行性报告配色：品牌蓝 · 纯黑 · 冷灰
#let color-accent = color-brand
#let color-accent-surface = color-brand-surface
#let color-heading = color-brand
#let color-accent-line = color-ink
#let color-divider = rgb(205, 205, 205)
#let color-caption = rgb(110, 110, 110)
#let color-quote = rgb(90, 90, 90)
#let color-code-lang = rgb(90, 90, 90)
#let color-code-inline = color-ink
#let color-header = color-ink
#let color-page = rgb(238, 238, 238)
#let color-bar-bg = rgb(248, 248, 248)
#let color-grid = rgb(220, 220, 220)

// 代码块语法高亮
#let code-token-keyword = color-ink
#let code-token-comment = rgb(130, 130, 130)
#let code-token-string = rgb(40, 40, 40)
#let code-token-number = rgb(70, 70, 70)
#let code-token-function = color-ink
#let code-token-operator = rgb(100, 100, 100)

#let heading-font = ("Microsoft YaHei", "Segoe UI", "Segoe UI Emoji")
#let body-font = ("Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", "Segoe UI Emoji")
#let mono-font = ("Consolas", "Cascadia Mono", "Microsoft YaHei UI")

// =====================================================================
// GreLin Feasibility Report · Design Tokens
// =====================================================================

// --- 字号 ---
#let size-title = 22pt
#let size-cover-title = 34pt
#let size-cover-index = 52pt
#let size-h1 = 14pt
#let size-h2 = 12pt
#let size-h3 = 11pt
#let size-body = 10.5pt
#let size-meta = 9pt
#let size-table = 9pt
#let size-caption = size-meta

// --- 行距 ---
#let leading-body = 12.5pt
#let leading-summary = leading-body

// --- 间距 ---
#let space-none = 0pt
#let space-micro = 4pt
#let space-inline = 6pt
#let space-block = 10pt
#let space-section = 12pt
#let space-chapter = 18pt
#let space-figure-before = space-block
#let space-figure-after = space-section
#let space-cover-line = 3pt
#let space-cover-title = 3pt
#let space-cover-meta = 6pt
#let cover-block-height = 19.5cm

// --- 线条 / 边框 ---
#let underline-stroke = 2pt + color-accent
#let underline-offset = 5pt
#let heading-number-gap = 0.35em
#let stroke-accent = 1.5pt + color-ink
#let summary-radius = 0pt
#let summary-inset = 14pt

// --- 页面 ---
#let page-margin = (
  top: 2.5cm,
  bottom: 2.5cm,
  left: 2.5cm,
  right: 2.5cm,
)
#let page-header-ascent = 1.0cm
#let page-footer-descent = 0.8cm
#let page-accent-bar-width = 10pt

// --- 表格 ---
#let table-zebra-fill = color-brand-tint
#let table-header-fill = color-brand-surface
#let table-data-text = rgb(50, 50, 50)
#let table-inset = (x: 10pt, y: 6pt)

// --- 图片 ---
#let image-max-width = 100%

// --- 代码 ---
#let code-block-inset = 10pt
#let code-block-radius = 0pt
#let code-block-fill = rgb(255, 255, 255)
#let code-inline-fill = rgb(255, 255, 255)
#let code-inline-inset = (x: 5pt, y: 0.12em)
#let code-inline-radius = 0pt

// --- 引用 ---
#let blockquote-inset = 10pt
#let blockquote-stroke = 3pt + color-accent
