/* ============ 个人网站全站样式 (基础蓝: #1677ff) ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8; color: #333; min-height: 100vh;
  display: flex; flex-direction: column;
}
a { text-decoration: none; color: inherit; }

/* ---------- 导航栏 ---------- */
nav { position: sticky; top: 0; z-index: 10; background: #fff;
  border-bottom: 1px solid #eee; }
.nav-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-size: 18px; font-weight: 700; color: #1677ff; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #666; font-size: 15px; padding: 4px 2px; }
.nav-links a:hover { color: #1677ff; }
.nav-links a.active { color: #1677ff; font-weight: 600; border-bottom: 2px solid #1677ff; }

/* ---------- 主体 ---------- */
main { flex: 1; max-width: 900px; margin: 0 auto; padding: 32px 20px 48px; width: 100%; }

.hero { text-align: center; padding: 56px 0 32px; }
.hero h1 { font-size: 32px; font-weight: 700; }
.hero .accent { color: #1677ff; }
.hero .subtitle { margin-top: 12px; font-size: 16px; color: #888; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; }

.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; font-size: 15px; }
.btn.primary { background: #1677ff; color: #fff; }
.btn.primary:hover { background: #0f6ae6; }
.btn.ghost { border: 1px solid #ddd; color: #555; background: #fff; }
.btn.ghost:hover { border-color: #1677ff; color: #1677ff; }

.section { margin-top: 40px; }
.section h2 { font-size: 20px; margin-bottom: 16px; }
.page-head h1 { font-size: 26px; margin-bottom: 8px; }
.page-head p { color: #888; font-size: 15px; margin-bottom: 24px; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 22px;
  transition: box-shadow .15s, transform .15s; display: block;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); border-color: #d9e8ff; }
.card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: #888; line-height: 1.6; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid #eee; background: #fff; }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 20px; font-size: 13px; color: #999; text-align: center; }

/* ---------- 内容页 ---------- */
.content { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 28px; line-height: 1.8; }
.content h2 { font-size: 18px; margin: 20px 0 10px; }
.content p { margin-bottom: 12px; color: #555; }

@media (max-width: 600px) {
  .hero h1 { font-size: 24px; }
  .hero { padding: 40px 0 20px; }
}
