/* my-homepage 苹果式极简样式 */
:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --card: #ffffff;
  --accent: #0071e3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部 */
.hero {
  text-align: center;
  padding: 120px 0 64px;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 44px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 12px;
  font-size: 20px;
  color: var(--ink-soft);
}

/* 区块标题 */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 20px;
  text-align: center;
}

/* 区块依次淡入 */
.projects,
.contact,
.footer {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.projects { animation-delay: 0.15s; }
.contact  { animation-delay: 0.3s; }
.footer   { animation-delay: 0.45s; }

/* 项目卡片 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

/* 联系方式 */
.contact {
  text-align: center;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 17px;
}

.contact-link:hover {
  text-decoration: underline;
}

/* 页脚 */
.footer {
  margin-top: 96px;
  padding: 32px 0 40px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 动效 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 手机适配 */
@media (max-width: 600px) {
  .hero { padding: 72px 0 40px; }
  .name { font-size: 36px; }
  .tagline { font-size: 17px; }
}
