#import "data/config.typ": *
#import "data/theme.typ": *
#import "data/layout.typ": *

#set page(
  paper: "a4",
  margin: page-margin,
  fill: color-page,
  header: context {
    if counter(page).get().first() > 1 [
      #set text(size: size-meta, fill: color-muted)
      #grid(
        columns: (1fr, 1fr),
        [#company-name],
        align(right)[#project-name · 可行性报告],
      )
      #v(4pt)
      #line(length: 100%, stroke: color-divider + 0.5pt)
    ]
  },
  footer: context {
    set text(size: size-meta, fill: color-muted)
    align(center)[#counter(page).display("1")]
  },
)

#set text(font: body-font, lang: "zh", size: size-body, fill: color-body)
#set par(leading: leading-body, justify: true)
#set heading(numbering: none)

#report-title-block()
#summary-block()

#for section in sections {
  section-block(section)
}
