/* ---------- 基础 ---------- */
:root {
  --bg: #1a1416;
  --bg-soft: #221a1d;
  --card: #2a1f22;
  --line: #3a2b2f;
  --text: #f4ece4;
  --muted: #b8a59a;
  --accent: #e8a87c;
  --accent-2: #d96a85;
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
  --display: 'Playfair Display', 'Noto Serif SC', serif;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 通用容器 ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 首页 Hero ---------- */
.hero {
  text-align: center;
  padding: 88px 24px 56px;
  background: radial-gradient(ellipse at top, #3a232a 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
  font-style: italic;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 56px 0 80px;
}

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 168, 124, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 168, 124, 0.4);
}

.card:hover::before { opacity: 1; }

.card .num {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.card h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 8px 0 4px;
  color: var(--text);
}

.card .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.card .quote {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0 0 18px;
  font-style: italic;
  opacity: 0.92;
  flex: 1;
}

.card .link {
  align-self: flex-start;
  color: var(--accent);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.card:hover .link {
  border-bottom-color: var(--accent);
}

/* ---------- 详情页 ---------- */
.story-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

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

.story-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.story-head .num {
  font-family: var(--display);
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.story-head h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 8px 0 6px;
  letter-spacing: 0.02em;
}

.story-head .orig {
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.story-head .info {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.story-body p {
  font-size: 1.07rem;
  line-height: 2;
  margin: 0 0 1.4em;
  color: var(--text);
  text-align: justify;
}

.story-body p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 3.4em;
  float: left;
  line-height: 0.9;
  padding: 4px 10px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.story-body .whisper {
  margin-top: 48px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(232, 168, 124, 0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
}

.story-body .whisper::before {
  content: "✦";
  color: var(--accent);
  margin-right: 8px;
}

/* ---------- 上一篇/下一篇 ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.nav a {
  flex: 1;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: all .25s;
  background: var(--card);
}

.nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.nav a small {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
  opacity: 0.7;
}

.nav .prev { text-align: left; }
.nav .next { text-align: right; }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.footer .heart { color: var(--accent-2); margin: 0 4px; }

/* ---------- 字体加载 ---------- */
@media (max-width: 480px) {
  .story-body p { font-size: 1.02rem; line-height: 1.95; }
  .story-body p:first-of-type::first-letter { font-size: 3em; }
}
