/* 彭铭裕个人博客 - 纯静态无依赖样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: #333;
  background: #fafafa;
  line-height: 1.7;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
a { color: #2b6cb0; text-decoration: none; }
a:hover { color: #1a4971; }
img { max-width: 100%; display: block; }

/* ===== 顶部导航 ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-size: 20px; font-weight: 700; color: #222; }
.logo span { font-weight: 400; font-size: 16px; color: #666; }
.nav a {
  color: #555; margin-left: 22px; font-size: 15px;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.nav a.active, .nav a:hover { color: #222; border-bottom-color: #2b6cb0; }

/* ===== 首屏 ===== */
.hero {
  display: flex; align-items: center; gap: 40px;
  padding: 60px 20px 50px;
}
.avatar {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 4px solid #fff; box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.hero-text h1 { font-size: 30px; color: #222; margin-bottom: 10px; }
.slogan { font-size: 17px; color: #2b6cb0; font-weight: 600; margin-bottom: 8px; }
.sub { font-size: 15px; color: #777; margin-bottom: 22px; }
.hero-btns { display: flex; gap: 14px; }
.btn {
  display: inline-block; padding: 10px 26px; border-radius: 6px;
  background: #2b6cb0; color: #fff !important; font-size: 15px;
}
.btn:hover { background: #1a4971; }
.btn-ghost { background: #fff; color: #2b6cb0 !important; border: 1px solid #2b6cb0; }
.btn-ghost:hover { background: #f0f6fc; }

/* ===== 区块 ===== */
.section { padding: 30px 20px 40px; }
.section-title {
  font-size: 22px; color: #222; margin-bottom: 20px;
  padding-left: 12px; border-left: 4px solid #2b6cb0;
}

/* 文章列表 */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-item {
  display: block; background: #fff; border: 1px solid #eee;
  border-radius: 8px; padding: 18px 22px;
  transition: box-shadow .2s, transform .2s;
}
.post-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.post-date { font-size: 13px; color: #999; }
.post-title { display: block; font-size: 17px; color: #222; font-weight: 600; margin: 4px 0; }
.post-desc { font-size: 14px; color: #777; }
.more-link { display: inline-block; margin-top: 18px; font-size: 14px; }

/* ===== 引言 ===== */
.quote {
  background: #eef4fa; padding: 44px 0; margin: 20px 0;
}
.quote p { text-align: center; font-size: 18px; color: #45556b; font-weight: 600; }

/* ===== 正文文章 ===== */
.article {
  background: #fff; border: 1px solid #eee; border-radius: 8px;
  padding: 26px 30px; margin-bottom: 18px;
}
.article h3 { font-size: 19px; color: #222; margin-bottom: 6px; }
.article .meta { font-size: 13px; color: #999; margin-bottom: 12px; }
.article p { font-size: 15px; color: #444; margin-bottom: 10px; }
.article img { border-radius: 8px; margin: 14px 0; }
.article .img-note { font-size: 13px; color: #999; margin-top: -8px; }

/* ===== 关于我 ===== */
.about-content { padding: 40px 20px; }
.about-intro {
  display: flex; gap: 30px; align-items: flex-start;
  background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 26px 30px;
}
.about-intro img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.timeline { margin-top: 26px; }
.timeline-item {
  position: relative; padding: 0 0 24px 26px;
  border-left: 2px solid #d6e4f0; margin-left: 8px;
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
  content: ""; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #2b6cb0; border: 2px solid #fff; box-shadow: 0 0 0 2px #d6e4f0;
}
.timeline-item .t-title { font-size: 16px; font-weight: 600; color: #222; }
.timeline-item .t-sub { font-size: 13px; color: #2b6cb0; margin: 2px 0 6px; }
.timeline-item p { font-size: 14px; color: #666; }

.skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.skill-list span {
  background: #fff; border: 1px solid #d6e4f0; color: #2b6cb0;
  border-radius: 999px; padding: 5px 16px; font-size: 14px;
}

/* ===== 生活相册 ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 40px; }
.gallery-item { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.gallery-item p { padding: 10px 14px; font-size: 13px; color: #666; }

/* ===== 页脚 ===== */
.site-footer {
  background: #222; color: #999; padding: 26px 0; margin-top: 30px;
  text-align: center; font-size: 13px;
}
.site-footer .beian a { color: #999; }
.site-footer .beian a:hover { color: #fff; }

@media (max-width: 640px) {
  .hero { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero-btns { justify-content: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-intro { flex-direction: column; }
  .nav a { margin-left: 14px; font-size: 14px; }
}
