/* ============================================================
   美图美文 · 年轻活泼版
   奶油底色，珊瑚橙与湖水绿点缀，圆角卡片，胶囊按钮
   ============================================================ */

:root {
  --bg: #FFF9F0;            /* 奶油底 */
  --bg-soft: #FFF3E6;       /* 更暖的一层 */
  --card: #FFFFFF;
  --ink: #33302E;           /* 暖墨文字 */
  --ink-soft: #8A8580;
  --coral: #FF6B57;         /* 珊瑚橙（主色） */
  --coral-deep: #E8503A;
  --teal: #35B5A9;          /* 湖水绿（副色） */
  --amber: #FFB43A;         /* 芒果黄（点缀） */
  --line: #F0E4D6;
  --shadow: 0 6px 24px rgba(232, 80, 58, .08);
  --shadow-hover: 0 10px 32px rgba(232, 80, 58, .16);
  --r: 18px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(600px 300px at 85% -50px, rgba(53,181,169,.10), transparent 70%),
    radial-gradient(500px 260px at -60px 220px, rgba(255,180,58,.12), transparent 70%),
    var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }

/* ---------- 页头 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 249, 240, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.seal {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(232, 80, 58, .28);
}
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: 1px; }

/* ---------- 导航：7 枚胶囊按钮 ---------- */
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a {
  display: inline-block; padding: 6px 16px;
  border-radius: 999px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line);
  transition: all .18s ease;
}
.nav a:hover {
  color: #fff; background: var(--teal); border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(53, 181, 169, .3);
}
.nav a.on {
  color: #fff; background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  border-color: transparent;
  box-shadow: 0 5px 14px rgba(232, 80, 58, .3);
}

/* ---------- 首页 Hero ---------- */
.hero { padding: 34px 0 10px; }
.hero-img {
  max-width: 860px; margin: 0 auto;
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, .8);
  line-height: 0;
  background: var(--bg-soft);
}
.hero-img img {
  width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: contain; display: block;
}

/* ---------- 内容区块：圆角卡片 ---------- */
.block {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); border: 1px solid rgba(240, 228, 214, .7);
  padding: 28px 30px; margin: 26px 0;
}
.block.first { margin-top: 34px; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.block-head h2, .h-sec {
  font-size: 24px; font-weight: 800; position: relative; padding-left: 16px;
}
.block-head h2::before, .h-sec::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 6px; border-radius: 99px;
  background: linear-gradient(180deg, var(--coral), var(--amber));
}
.count {
  font-size: 13px; color: var(--teal); font-weight: 700;
  background: rgba(53,181,169,.1); padding: 3px 12px; border-radius: 999px;
}
.more {
  font-size: 14px; font-weight: 600; color: var(--coral); text-decoration: none;
}
.more:hover { color: var(--coral-deep); text-decoration: underline; }

/* ---------- 文章列表 ---------- */
.list { list-style: none; }
.list li { border-bottom: 1px dashed var(--line); }
.list li:last-child { border-bottom: none; }
.list a {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding: 14px 6px; text-decoration: none; border-radius: 10px;
  transition: background .15s ease, padding-left .15s ease;
}
.list a:hover { background: var(--bg-soft); padding-left: 12px; }
.list .t { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.list a:hover .t { color: var(--coral-deep); }
.list .m { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.list li.empty, .list .empty { padding: 14px 4px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 摄影占位 / 照片 ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ph {
  border-radius: 14px; overflow: hidden; background: var(--bg-soft);
  aspect-ratio: 4 / 3; position: relative; border: 1px solid var(--line);
}
.ph img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.ph-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #C9BBA8; font-size: 13px; letter-spacing: 2px;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,180,58,.06) 10px, rgba(255,180,58,.06) 20px);
}

/* ---------- 正文页 ---------- */
.crumb { margin: 26px 0 6px; font-size: 14px; }
.crumb a {
  color: var(--teal); text-decoration: none; font-weight: 600;
  background: rgba(53,181,169,.1); padding: 3px 12px; border-radius: 999px;
}
.crumb a:hover { background: var(--teal); color: #fff; }
.post-title {
  font-size: clamp(26px, 5vw, 34px); font-weight: 900; line-height: 1.4;
  margin: 10px 0 6px; color: var(--ink);
}
.meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 26px; }
.meta .d { color: var(--coral); font-weight: 700; }

.prose { font-size: 16.5px; line-height: 2; color: var(--ink); }
.prose p { margin: 1em 0; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; font-weight: 800; }
.prose h2 { font-size: 21px; }
.prose h3 { font-size: 18px; }
.prose blockquote {
  margin: 1.2em 0; padding: 12px 18px;
  background: var(--bg-soft); border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0; color: var(--ink-soft);
}
.prose img { max-width: 100%; border-radius: 12px; }
.prose code {
  background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; font-size: .9em;
}
.prose pre {
  background: #2D2A26; color: #F5EFE6; padding: 16px 18px; border-radius: 12px;
  overflow-x: auto; margin: 1.2em 0;
}
.prose pre code { background: none; padding: 0; color: inherit; }

.back { margin: 30px 0 10px; }
.back a {
  color: var(--coral); text-decoration: none; font-weight: 700; font-size: 14.5px;
}
.back a:hover { color: var(--coral-deep); }

/* ---------- 建设中占位 ---------- */
.hint {
  color: var(--ink-soft); font-size: 15px;
  background: var(--bg-soft); border-radius: 12px; padding: 14px 18px;
  display: inline-block;
}

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 60px; padding: 30px 0 40px;
  border-top: 1px solid var(--line); text-align: center;
  font-size: 13.5px; color: var(--ink-soft);
}
.site-foot .faint { margin-top: 4px; opacity: .75; font-size: 12.5px; }

/* ---------- 关于页 ---------- */
.about {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); border: 1px solid rgba(240, 228, 214, .7);
  padding: 32px 34px 26px; margin: 34px 0;
}
.about-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px; margin-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.avatar {
  width: 62px; height: 62px; border-radius: 20px; flex: none;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(232, 80, 58, .28);
}
.about-title { font-size: 26px; font-weight: 900; }
.about-sub { font-size: 14px; color: var(--teal); font-weight: 700; margin-top: 2px; }
.about .prose h2 {
  font-size: 19px; margin: 1.5em 0 .5em; padding-left: 12px; position: relative;
}
.about .prose h2::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px;
  border-radius: 99px; background: linear-gradient(180deg, var(--coral), var(--amber));
}
.about .prose ul { margin: .8em 0 .8em 1.2em; }
.about .prose li { margin: .35em 0; }
.about .prose a { color: var(--coral); font-weight: 600; }

/* ---------- 书稿页 ---------- */
.book-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-soft); border-radius: 14px;
  padding: 16px 18px; margin: 12px 0;
}
.book-step {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.book-item h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 2px; }
.book-item p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }
.hint code { background: rgba(255,255,255,.75); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* ---------- 摄影：相册列表 ---------- */
.albums {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.album { text-decoration: none; color: var(--ink); display: block; }
.album figure {
  border-radius: 16px; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 3; background: var(--bg-soft);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.album:hover figure { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.album img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.album-info {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 10px 4px 0;
}
.album-info h3 { font-size: 16px; font-weight: 800; }
.album-info span {
  font-size: 12.5px; color: var(--teal); font-weight: 700;
  background: rgba(53,181,169,.1); padding: 2px 10px; border-radius: 999px;
}
.album-note {
  font-size: 13px; color: var(--ink-soft); line-height: 1.6;
  margin: 6px 4px 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* 相册备注（内页） */
.album-desc {
  background: var(--bg-soft); border-radius: 14px;
  padding: 16px 20px; margin: 0 0 20px;
  font-size: 15px; color: var(--ink); line-height: 1.9;
  border-left: 4px solid var(--amber);
}
.album-desc p { margin: 0 0 .6em; }
.album-desc p:last-child { margin-bottom: 0; }
.album-desc blockquote {
  margin: .6em 0 0; padding-left: 12px; border-left: 3px solid var(--line);
  color: var(--ink-soft);
}

/* ---------- 相册内页：缩略图网格 ---------- */
.grid {
  columns: 3 200px; column-gap: 10px;
}
.shot {
  display: block; break-inside: avoid; margin-bottom: 10px;
  border-radius: 12px; overflow: hidden; line-height: 0;
  background: var(--bg-soft); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.shot:hover { transform: scale(1.015); box-shadow: var(--shadow-hover); }
.shot img { width: 100%; height: auto; display: block; }

/* ---------- 灯箱 ---------- */
.lb {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(32, 27, 24, .95);
  align-items: center; justify-content: center;
  padding: 24px;
}
body.lb-open .lb { display: flex; }
body.lb-open { overflow: hidden; }
.lb-fig { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-fig img {
  max-width: 92vw; max-height: 80vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-fig figcaption {
  color: #F3E9DE; font-size: 13.5px; margin-top: 14px; letter-spacing: .5px;
}
.lb-btn {
  position: absolute; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 22px; line-height: 1; backdrop-filter: blur(6px);
  transition: background .15s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 20px; font-size: 26px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-btn { width: 38px; height: 38px; font-size: 19px; }
  .grid { columns: 2 140px; }
}

/* ---------- 手机端 ---------- */
@media (max-width: 640px) {
  .head-inner { justify-content: center; }
  .hero { padding: 44px 0 30px; }
  .block { padding: 22px 18px; }
  .list a { flex-direction: column; gap: 4px; padding: 12px 4px; }
  .list a:hover { padding-left: 4px; }
  .list .m { white-space: normal; }
}
