/* sunyahan.cn — 雅浛的个人主页
   杂志感 · 留白 · 暖米底 + 宋体大标题 + 青碧/杏金点缀 */

:root {
  --bg: #FAF7F2;
  --ink: #232323;
  --ink-soft: #6b665e;
  --teal: #2A9D8F;
  --apricot: #C8A56A;
  --line: #e6e0d6;
  --serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Helvetica Neue", sans-serif;
  --georgia: Georgia, "Times New Roman", serif;
}

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

html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- 顶部导航 ---------- */
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark em {
  font-family: var(--georgia);
  font-style: italic;
  font-size: 17px;
  color: var(--teal);
  margin-left: 10px;
  letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 108px 28px 96px;
  border-bottom: 1px solid var(--line);
}
.hero .kicker {
  font-family: var(--georgia);
  font-style: italic;
  color: var(--apricot);
  font-size: 17px;
  letter-spacing: 1px;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 58px;
  line-height: 1.35;
  letter-spacing: 3px;
  max-width: 760px;
}
.hero h1 .accent { color: var(--teal); }
.hero .sub {
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: 16px;
  letter-spacing: 2px;
}
.hero .sub b { color: var(--ink); font-weight: 500; }
.hero .divider {
  width: 56px; height: 3px;
  background: var(--apricot);
  margin-top: 44px;
}

/* ---------- 章节 ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 28px;
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
}
.section-title h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 3px;
  font-weight: 600;
}
.section-title span {
  font-family: var(--georgia);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- 随笔列表 ---------- */
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s;
}
.post-item:hover { background: rgba(42,157,143,.05); }
.post-item .date {
  font-family: var(--georgia);
  color: var(--apricot);
  font-size: 14px;
  min-width: 92px;
}
.post-item .title {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--ink);
}
.post-item .excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  margin-left: auto;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 相册 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.g-item {
  aspect-ratio: 4/5;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.g-item .caption {
  position: absolute;
  left: 14px; bottom: 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
/* 占位色块：以后换成 <img> */
.ph-1 { background: linear-gradient(160deg,#9fc7c0,#2A9D8F); }
.ph-2 { background: linear-gradient(160deg,#e8d3ae,#C8A56A); }
.ph-3 { background: linear-gradient(160deg,#d9cfc0,#8f8574); }
.ph-4 { background: linear-gradient(160deg,#b8ccc9,#5d827c); }
.ph-5 { background: linear-gradient(160deg,#e3c9b8,#b07d5e); }
.ph-6 { background: linear-gradient(160deg,#c9d6d3,#7d9a94); }

/* ---------- 关于条 ---------- */
.about-strip {
  max-width: 1080px;
  margin: 0 auto 90px;
  padding: 56px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 60px;
  align-items: center;
}
.about-strip .seal {
  width: 74px; height: 74px;
  background: #B3402A;
  color: #FAF7F2;
  font-family: var(--serif);
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: 0;
}
.about-strip p { color: var(--ink-soft); max-width: 640px; }
.about-strip p b { color: var(--ink); font-weight: 500; }
.about-strip .more {
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 28px 60px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 1px;
}
.footer .sig {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 4px;
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer .beian { margin-top: 8px; font-size: 12px; letter-spacing: 1px; }
.footer .beian a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer .beian a:hover { border-bottom-color: currentColor; }
.footer .beian a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer .beian a:hover { border-bottom-color: currentColor; }
.footer .beian a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer .beian a:hover { border-bottom-color: currentColor; }
/* 备案号占位：备案通过后填入 */
.beian-placeholder { color: #c0b8aa; }

/* ---------- 文章页 ---------- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 90px 28px 60px;
}
.article .back {
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
}
.article h1 {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 1.5;
  margin: 30px 0 14px;
  font-weight: 600;
}
.article .meta {
  font-family: var(--georgia);
  font-style: italic;
  color: var(--apricot);
  font-size: 15px;
  margin-bottom: 50px;
}
.article .body p {
  text-indent: 2em;
  margin-bottom: 26px;
  font-size: 16.5px;
  line-height: 2.1;
}
.article .endmark {
  text-align: center;
  color: var(--apricot);
  font-size: 20px;
  margin-top: 60px;
  letter-spacing: 8px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .nav { padding: 24px 20px 0; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .wordmark { font-size: 21px; }
  .wordmark em { display: none; }
  .hero { padding: 64px 20px 60px; }
  .hero h1 { font-size: 34px; letter-spacing: 2px; }
  .section { padding: 52px 20px; }
  .post-item { flex-wrap: wrap; gap: 8px; }
  .post-item .excerpt { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-strip { flex-direction: column; align-items: flex-start; gap: 26px; padding: 44px 20px; }
  .article { padding: 56px 20px 40px; }
  .article h1 { font-size: 30px; }
}
