/* 视觉规范见 docs/PRD.md §5.2：白底、一个强调色（只用在结果数字和链接）、系统字体、无动效 */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #FFFFFF;
  color: #1A1A1A;
  font-family: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a { color: #1A1AFF; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

h1, h2, p { margin: 0; }

/* 中文标题按词组换行：词组内不断开，文字不变 */
.ph { display: inline-block; }

.wrap {
  box-sizing: content-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 首屏 */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 24px;
}
.name { font-size: 20px; font-weight: 600; }

.hero { padding: 72px 0 80px; }
.hero h1 { font-size: 40px; line-height: 1.3; font-weight: 700; }
.sub { margin-top: 20px; color: #6B6B6B; }

/* 项目卡 */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
}
.card h2 { font-size: 18px; font-weight: 600; line-height: 1.5; }
.no { margin-right: 10px; color: #6B6B6B; font-variant-numeric: tabular-nums; }
.summary { margin-top: 8px; }

.result { margin-top: auto; padding-top: 28px; }
.metric {
  display: block;
  color: #1A1AFF;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.metric .num { font-size: 48px; }
.note { margin-top: 6px; color: #6B6B6B; font-size: 16px; }
.action { margin-top: 20px; }

/* 其他作品、联系、页脚 */
.others { margin-top: 40px; color: #6B6B6B; font-size: 16px; }
.others a { display: inline-block; margin-right: 20px; }

.contact {
  margin-top: 80px;
  padding: 56px 0;
  border-top: 1px solid #E5E5E5;
  scroll-margin-top: 24px;
}
.contact h2 { font-size: 26px; line-height: 1.4; font-weight: 700; }
.email { margin-top: 20px; font-size: 22px; }

.foot {
  padding: 24px 0 40px;
  border-top: 1px solid #E5E5E5;
  color: #6B6B6B;
  font-size: 14px;
}

@media (min-width: 900px) {
  .wrap { padding: 0 48px; }
  .top { padding-top: 40px; }
  .hero { padding: 120px 0 120px; }
  .hero h1 { font-size: 56px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .card { padding: 32px; }
  .metric .num { font-size: 64px; }
  .contact { margin-top: 120px; padding: 80px 0; }
  .contact h2 { font-size: 32px; }
}
