/* ===== 基础重置与变量 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #faf8f5;
  --bg-alt: #f3f0eb;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --accent: #b85c4f;
  --accent-light: #d48476;
  --line: #e5e1dc;
  --radius: 4px;
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  font-size: 17px;
  letter-spacing: 0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== 导航 ===== */
.navbar {
  padding: 28px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===== 通用区块 ===== */
.section {
  padding: 120px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
}

.hero-content {
  max-width: 560px;
}

.hero-name {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero-line {
  width: 40px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 32px;
}

.hero-quote {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== 关于 ===== */
.about-text {
  font-size: 20px;
  line-height: 2;
  color: var(--text);
}

.about-text p {
  margin-bottom: 24px;
}

.about-text em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

/* ===== 随笔卡片 ===== */
.essays-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.essay-item {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.essay-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.essay-date {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.essay-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.essay-excerpt {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.read-more:hover {
  color: var(--accent-light);
}

/* ===== 箴言 ===== */
.quote-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.quote-block blockquote {
  font-size: 26px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
}

.quote-block cite {
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ===== 页脚 ===== */
.footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-bottom {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
  .hero-name {
    font-size: 48px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .about-text {
    font-size: 18px;
  }

  .quote-block blockquote {
    font-size: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
}
