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

#set page(
  paper: "a4",
  margin: page-margin,
  fill: color-page,
)

#set text(
  font: body-font,
  size: size-body,
  weight: weight-normal,
  fill: color-text,
  lang: "zh",
)

#set par(leading: leading-body, spacing: space-none, justify: true)

// 页眉单独一行 grid：左右栏等高，短侧自动补白
#grid(
  columns: (main-column, sidebar-column),
  column-gutter: space-column-gap,
  align: (top, top),
  profile-block(),
  contact-block(),
)

#v(space-header-bottom)

// 正文区：「工作经历 / 专业技能」等同水平线起排
#grid(
  columns: (main-column, sidebar-column),
  column-gutter: space-column-gap,
  align: (top, top),
  [
    #section-title("工作经历", above: space-none)
    #experiences-block()
  ],
  [
    #sidebar-photo()
    #section-title("专业技能", above: space-none)
    #skills-block()

    #section-title("项目经历")
    #sidebar-projects-block()

    #section-title("教育背景")
    #sidebar-education-block()

    #if interests != "" [
      #section-title("兴趣爱好")
      #interests-block()
    ]
  ],
)
