/* ============================================================
   致 时光 · 我们的故事  —  高端纪念博客样式
   暖金 + 象牙白 · 克制 · 编辑感
   ============================================================ */

:root {
  --ivory: #f7f2ea;
  --paper: #fcf9f4;
  --ink: #211c18;
  --ink-soft: #4a423a;
  --muted: #8a7e6e;
  --gold: #b08d57;
  --gold-soft: #c9a86a;
  --line: rgba(33, 28, 24, 0.12);
  --line-soft: rgba(33, 28, 24, 0.07);
  --shadow: 0 18px 50px -24px rgba(33, 28, 24, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(33, 28, 24, 0.4);
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, "Songti SC", "STSong", serif;
  --sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(33, 28, 24, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  color: #fff;
}
.nav.scrolled {
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 14px 40px;
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.brand .dot { color: var(--gold); }
.nav-links { display: flex; gap: 34px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links a { position: relative; padding: 4px 0; opacity: 0.85; transition: opacity 0.3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold); transition: width 0.35s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: slowZoom 18s ease-out forwards;
}
@keyframes slowZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.55) 0%, rgba(20,16,12,0.35) 45%, rgba(20,16,12,0.7) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 24px; max-width: 820px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(54px, 11vw, 132px);
  line-height: 0.98;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.86);
  max-width: 560px; margin: 0 auto;
}
.scroll-cue {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--gold-soft), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 110px 0; position: relative; z-index: 1; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 16px 0 18px;
  letter-spacing: 0.01em;
}
.section-head p { color: var(--ink-soft); font-size: 16px; margin: 0; font-weight: 300; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   INTRO / about strip
   ============================================================ */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.intro-text p { color: var(--ink-soft); font-weight: 300; }
.intro-text .lead {
  font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--ink);
  font-weight: 500; margin: 18px 0 24px;
}
.intro-figure {
  aspect-ratio: 4/5; border-radius: 2px; overflow: hidden; position: relative;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-figure figcaption {
  position: absolute; left: 18px; bottom: 16px; color: #fff; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ============================================================
   STORY LIST
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.chip {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); cursor: pointer; background: transparent;
  transition: all 0.3s ease; font-family: var(--sans);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.story-list { display: flex; flex-direction: column; }
.story {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 36px; align-items: baseline;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left 0.35s ease;
}
.story:last-child { border-bottom: 1px solid var(--line); }
.story:hover { padding-left: 14px; }
.story .idx { font-family: var(--serif); font-size: 20px; color: var(--gold); }
.story .main .title {
  font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.2; margin: 0 0 10px;
  position: relative; display: inline-block;
}
.story .main .title::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.4s ease;
}
.story:hover .title::after { width: 100%; }
.story .main .excerpt { color: var(--ink-soft); font-weight: 300; margin: 0 0 14px; max-width: 640px; }
.story .tags { display: flex; gap: 10px; flex-wrap: wrap; }
.story .meta { text-align: right; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; white-space: nowrap; }
.tag {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px;
}

/* featured grid (home) */
.featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.fcard {
  position: relative; border: 1px solid var(--line); background: var(--paper);
  border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fcard .thumb { aspect-ratio: 16/10; overflow: hidden; }
.fcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.fcard:hover .thumb img { transform: scale(1.05); }
.fcard .body { padding: 26px 28px 30px; }
.fcard .body .title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 14px 0 12px; }
.fcard .body .excerpt { color: var(--ink-soft); font-weight: 300; font-size: 15px; margin: 0 0 16px; }

/* ============================================================
   PHOTO STRIP / GALLERY
   ============================================================ */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-strip figure { margin: 0; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow-sm); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-strip figure:hover img { transform: scale(1.06); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid figure { margin: 0; position: relative; aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 18px 16px;
  color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(20,16,12,0.7)); 
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* ============================================================
   POST DETAIL
   ============================================================ */
.post-hero { position: relative; height: 62vh; min-height: 420px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.post-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(20,16,12,0.78)); }
.post-hero .ph-inner { position: relative; z-index: 2; padding: 0 0 48px; width: 100%; }
.post-hero .title { font-family: var(--serif); font-size: clamp(34px, 6vw, 64px); font-weight: 600; line-height: 1.05; margin: 18px 0 16px; }
.post-meta { display: flex; gap: 22px; align-items: center; color: rgba(255,255,255,0.85); font-size: 13px; letter-spacing: 0.1em; }
.post-meta .tag { color: var(--gold-soft); border-color: rgba(255,255,255,0.3); }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.back-link:hover { gap: 14px; transition: gap 0.3s; }

.post-wrap { max-width: 760px; margin: 0 auto; padding: 72px 28px 40px; }
.post-content { font-size: 18px; color: var(--ink-soft); font-weight: 300; }
.post-content h2 { font-family: var(--serif); color: var(--ink); font-size: 32px; font-weight: 600; margin: 48px 0 18px; letter-spacing: 0.01em; }
.post-content h3 { font-family: var(--serif); color: var(--ink); font-size: 24px; font-weight: 600; margin: 36px 0 14px; }
.post-content p { margin: 0 0 22px; }
.post-content a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.post-content blockquote {
  margin: 32px 0; padding: 8px 28px; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 23px; line-height: 1.5; color: var(--ink); font-style: italic;
}
.post-content img { width: 100%; border-radius: 2px; margin: 28px 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.post-content ul, .post-content ol { padding-left: 22px; margin: 0 0 22px; }
.post-content li { margin: 8px 0; }
.post-content code { background: rgba(176,141,87,0.12); padding: 2px 7px; border-radius: 3px; font-size: 0.9em; color: var(--ink); }
.post-content pre { background: #1c1814; color: #f3ece1; padding: 22px; border-radius: 4px; overflow: auto; margin: 26px 0; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }

.post-foot { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.post-foot .nav-prev, .post-foot .nav-next { color: var(--ink-soft); font-size: 14px; }
.post-foot a:hover { color: var(--gold); }

/* ============================================================
   TAGS PAGE
   ============================================================ */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 20px 0 10px; }
.tags-cloud .tag-lg {
  font-family: var(--serif); font-size: 22px; padding: 12px 26px; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; transition: all 0.3s; color: var(--ink);
}
.tags-cloud .tag-lg:hover { background: var(--ink); color: #fff; }
.tags-cloud .tag-lg .count { color: var(--gold); font-size: 14px; margin-left: 8px; }
.tag-group { margin-top: 56px; }
.tag-group h3 { font-family: var(--serif); font-size: 28px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.tag-group .story { grid-template-columns: 80px 1fr auto; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-figure { aspect-ratio: 1/1; overflow: hidden; border-radius: 2px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-text .lead { font-family: var(--serif); font-size: 30px; line-height: 1.35; color: var(--ink); font-weight: 500; margin: 18px 0 24px; }
.about-text p { color: var(--ink-soft); font-weight: 300; margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 36px; }
.fact { border-top: 1px solid var(--line); padding-top: 16px; }
.fact .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.fact .v { font-family: var(--serif); font-size: 22px; color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #1a1511; color: rgba(255,255,255,0.7); padding: 80px 0 40px; position: relative; z-index: 1; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
footer .f-brand { font-family: var(--serif); font-size: 30px; color: #fff; }
footer .f-brand .dot { color: var(--gold); }
footer .f-note { max-width: 340px; font-weight: 300; font-size: 14px; }
footer .f-links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
footer .f-links a:hover { color: var(--gold-soft); }
footer .f-bottom { width: 100%; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .nav { padding: 16px 22px; }
  .nav-links { gap: 18px; font-size: 11px; }
  .intro-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .featured, .photo-strip, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; gap: 10px; }
  .story .meta { text-align: left; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .featured, .photo-strip, .gallery-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ---- 前端编辑模式控件（无代码增删改） ---- */
.nav-edit {
  margin-left: 8px; padding: 6px 14px; font-size: 12px; letter-spacing: .08em;
  color: var(--gold); background: transparent; border: 1px solid rgba(176,141,87,.4);
  border-radius: 999px; cursor: pointer; transition: .2s; font-family: var(--sans);
}
.nav-edit:hover { background: rgba(176,141,87,.12); }
.row-acts { display: flex; gap: 8px; margin-top: 10px; }
.mini {
  padding: 5px 12px; font-size: 12px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid rgba(176,141,87,.45); color: var(--gold);
  transition: .2s; font-family: var(--sans);
}
.mini.danger { border-color: rgba(224,139,122,.5); color: #d2766a; }
.mini:hover { background: rgba(176,141,87,.08); }
.ts { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .02em; }
.post-actions {
  display: flex; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft);
}
figure .mini.danger { margin-top: 6px; }
