/* ============================================================
   我的生活记录 — 高级极简文艺风 · 雅致低饱和 · 大量留白
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200;300;400;600&family=Noto+Sans+SC:wght@200;300;400&family=EB+Garamond:ital,wght@0,300;0,400;1,300&display=swap');

:root {
  --bg: #f6f4ef;
  --bg-alt: #ece7e0;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-soft: #3d3d3d;
  --text-muted: #7a7a7a;
  --accent: #665c50;
  --accent-light: #a89e92;
  --border: #d5cfc6;
  --border-light: #e2dbd2;
  --shadow: 0 1px 4px rgba(0,0,0,0.03);
  --shadow-hover: 0 6px 32px rgba(0,0,0,0.05);
  --radius: 14px;
  --radius-sm: 8px;
  --fs-body: 16px;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'Georgia', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-en: 'EB Garamond', 'Georgia', serif;
  --w: 740px;
  --w-wide: 960px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 200;
  background: var(--bg);
  color: var(--text);
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: #d4cdc4; color: #2a2a2a; }
a { color: inherit; text-decoration: none; transition: all 0.25s ease; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--w-wide); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--w); margin: 0 auto; padding: 0 32px; }

/* ========== 导航 ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,248,245,0.85);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}
.nav-inner {
  max-width: var(--w-wide); margin: 0 auto; padding: 0 32px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 3px;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%;
  width: 0; height: 1px;
  background: var(--text);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 60%; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ========== Hero ========== */
.hero {
  height: 80vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(168deg, #e8e3da 0%, #ddd6cc 35%, #e5ded4 65%, #d5cec2 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(28,28,28,0.05) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 32px;
  max-width: 600px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 34px);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 6px;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-soft);
  letter-spacing: 4px;
  line-height: 1.8;
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 300;
  font-style: italic;
  color: #b8b0a5;
  letter-spacing: 3px;
  animation: scrollPulse 2.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}

/* ========== Sections ========== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .en-label {
  font-family: var(--font-en);
  font-weight: 300;
  font-style: italic;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 6px;
  color: var(--text);
}
.section-header .desc {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 1px;
  margin-top: 8px;
  font-weight: 200;
}

/* ========== Featured Grid ========== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.featured-card {
  background: var(--card);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
  position: relative;
}
.featured-card:hover { background: #fcfbfa; }
.featured-card .fc-cat {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.featured-card .fc-meta {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.featured-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 14px;
}
.featured-card .fc-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.9;
  letter-spacing: .5px;
}
.featured-card .fc-more {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-en);
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.featured-card:hover .fc-more { color: var(--accent); }

/* ========== Post List ========== */
.post-list { max-width: var(--w); margin: 0 auto; }
.post-item {
  display: flex; gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding 0.25s ease;
}
.post-item:hover { padding-left: 10px; }
.post-item:last-of-type { border-bottom: none; }

.post-item .pi-date {
  flex-shrink: 0;
  width: 72px;
  text-align: right;
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  padding-top: 2px;
}
.post-item .pi-date .pi-day {
  display: block;
  font-size: 26px;
  color: var(--text-soft);
  letter-spacing: 0;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 2px;
}

.post-item .pi-body { flex: 1; min-width: 0; }
.post-item .pi-body .pi-cat {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
}
.post-item .pi-body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.post-item .pi-body h3 a { color: var(--text); }
.post-item .pi-body h3 a:hover { color: var(--accent); }
.post-item .pi-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.9;
  letter-spacing: .5px;
}

/* ========== Post Detail ========== */
.post-page {
  padding-top: 100px;
  background: var(--card);
  min-height: 100vh;
}
.post-page-header {
  text-align: center;
  padding: 60px 0 0;
  max-width: 620px;
  margin: 0 auto;
}
.post-page-header .ppm {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.post-page-header .ppm span + span::before { content: ' / '; color: var(--text-muted); }
.post-page-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.6;
  letter-spacing: 5px;
  color: var(--text);
  margin-bottom: 56px;
}

.post-body {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 2.2;
  color: #262626;
  max-width: 620px;
  margin: 0 auto;
  padding-bottom: 80px;
}
.post-body p {
  margin-bottom: 2em;
  text-indent: 2em;
}
.post-body p:first-of-type { text-indent: 0; }

.post-body img {
  margin: 56px auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  max-width: 100%;
}

.post-pn {
  max-width: 620px; margin: 0 auto;
  padding: 36px 0 60px;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; gap: 24px;
}
.post-pn a { flex: 1; }
.post-pn .pn-label {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-style: italic;
  margin-bottom: 4px;
}
.post-pn .pn-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 1px;
}
.post-pn a:hover .pn-title { color: var(--text); }
.post-pn .pn-r { text-align: right; }

/* ========== Category Filter ========== */
.cf {
  display: flex; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  margin-bottom: 52px;
}
.cf a {
  padding: 6px 22px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 200;
  color: var(--text-soft);
  letter-spacing: 1.5px;
  transition: all 0.3s;
}
.cf a:hover { border-color: var(--accent); color: var(--text); }
.cf a.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ========== Pagination ========== */
.pg {
  display: flex; justify-content: center; align-items: center;
  gap: 24px; margin-top: 60px;
}
.pg a, .pg span {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 1px;
  font-family: var(--font-en);
}
.pg a:hover { color: var(--text); }
.pg .pg-info { color: var(--text-muted); }

/* ========== Page Header (内页) ========== */
.ph {
  padding: 100px 0 36px;
  text-align: center;
}
.ph h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 6px;
  margin-bottom: 6px;
}
.ph p {
  font-family: var(--font-en);
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ========== About ========== */
.about-page { padding-top: 100px; }
.about-card {
  max-width: 460px; margin: 56px auto;
  text-align: center;
  padding: 64px 40px;
}
.about-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent-light);
}
.about-card p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-soft);
  letter-spacing: 1px;
}

/* ========== More Link ========== */
.ml {
  text-align: center;
  margin-top: 48px;
}
.ml a {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-style: italic;
  color: var(--text-soft);
  letter-spacing: 2px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.ml a:hover { color: var(--text); border-color: var(--accent); }

/* ========== Footer ========== */
.ft {
  padding: 36px 0 28px;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.ft-copy {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 200;
  color: var(--text-muted);
  letter-spacing: 3px;
  opacity: 0.5;
}
.ft-beian { margin-top: 4px; }
.ft-beian a {
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  opacity: 0.5;
}
.ft-beian a:hover { opacity: 1; color: var(--text-soft); }


/* ====== 首页底部语录 ====== */
.section-quote {
  padding: 48px 0;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.quote-block {
  max-width: 50em;
  margin: 0 auto;
}
.quote-bio {
  font-family: var(--font-serif);
  font-weight: 200;
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--text-soft);
  letter-spacing: 4px;
  line-height: 2;
}
.visit-count {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--card-bg);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.visit-count:hover {
  opacity: 1;
}
.visit-count .num {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ====== Footer 统计 ====== */
.hero-uptime {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-weight: 200;
}
.ft-stats {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 12px;
}

/* ========== Lightbox ========== */
.lb {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
  align-items: center; justify-content: center;
}
.lb.open { display: flex; }
.lb img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 4px;
  object-fit: contain;
}

/* ========== Empty ========== */
.empty {
  text-align: center; padding: 100px 0;
  color: var(--text-muted);
}
.empty .icon { font-size: 44px; margin-bottom: 16px; display: block; }
.empty p { font-family: var(--font-serif); font-size: 14px; letter-spacing: 1px; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .featured-grid { grid-template-columns: 1fr; gap: 1px; }
  .post-item { flex-direction: column; gap: 6px; }
  .post-item .pi-date { width: auto; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .post-item .pi-date .pi-day { display: inline; font-size: 14px; }
  .post-pn { flex-direction: column; }
  .nav-links {
    display: none;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(250,248,245,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; padding: 24px 32px; gap: 16px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 72px 0; }
  .featured-card { padding: 32px 24px; }
  .post-body { font-size: 15px; line-height: 2.2; }
  .about-card { padding: 40px 20px; }
}
