/* ===== 日记-每日轨迹 样式 ===== */
:root {
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --text: #2c2a28;
  --text-muted: #8a857e;
  --accent: #c2653f;
  --accent-soft: rgba(194, 101, 63, 0.12);
  --line: #e6e1da;
  --shadow: 0 6px 24px rgba(60, 50, 40, 0.07);
}

[data-theme="dark"] {
  --bg: #1c1b1a;
  --bg-card: #262524;
  --text: #e8e4de;
  --text-muted: #9a948c;
  --accent: #e08a63;
  --accent-soft: rgba(224, 138, 99, 0.15);
  --line: #3a3836;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo .dot { color: var(--accent); margin: 0 2px; }

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  transition: color 0.2s;
}

.site-nav a:hover, .site-nav a.active { color: var(--accent); }

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-date {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.35;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 10px;
  background: var(--accent-soft);
  z-index: -1;
}

.hero-sub {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 16px;
}

/* 标题 */
.section-title {
  font-size: 22px;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

/* 时间线 */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 28px;
  margin-bottom: 72px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.show { opacity: 1; transform: none; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  transform: translateX(-1px);
}

.timeline-date {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-text {
  color: var(--text-muted);
  font-size: 15px;
}

.timeline-tags { margin-top: 10px; }

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
  margin-right: 6px;
}

/* 关于 */
.about-section { margin-bottom: 72px; }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.about-card p { margin-bottom: 10px; }
.muted { color: var(--text-muted); font-size: 14px; }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer p { margin-bottom: 4px; }

.beian a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

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

@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .site-nav a { margin-left: 16px; font-size: 14px; }
}
