/* ============================================================
   入口页 · 编辑部排版 / 小报头版
   去 AI 感：左对齐、编号目录、字重对比、暖纸+噪点+淡横纹。
   不做居中大字 + 等宽卡片 + 呼吸光晕 + 逐段浮现。
   ============================================================ */

:root {
  --paper: #f4efe7;
  --ink: #211f1b;
  --ink-2: #575047;
  --ink-3: #8a8175;
  --rule: #d9d0c2;
  --red: #9d3a2b;
  --blue: #35506b;
  --green: #3c6656;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(120, 100, 70, .035) 31px,
      rgba(120, 100, 70, .035) 32px
    );
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.papergrain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

.sheet {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 26px 64px;
}

/* ---------- 报头 ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.mast-l { color: var(--ink-2); }
.mast-r { font-variant-numeric: tabular-nums; }

.rule { height: 1px; background: var(--rule); }
.rule-heavy { height: 2px; background: var(--ink); margin: 10px 0 0; }

/* ---------- 主标题 ---------- */

.lead { margin: 46px 0 40px; }

.title {
  font-family: var(--serif);
  font-size: clamp(30px, 7.6vw, 56px);
  line-height: 1.34;
  letter-spacing: .01em;
  margin: 0;
  font-weight: 400;
}
.title .strong {
  font-weight: 700;
  letter-spacing: -.01em;
}

.deck {
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.8;
  color: var(--ink-2);
  margin: 22px 0 0;
  max-width: 40em;
}

.ln { display: block; overflow: hidden; }
.ln > i {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  animation: lift .85s cubic-bezier(.2, .8, .2, 1) forwards;
}
.title .ln:nth-child(1) > i { animation-delay: .05s; }
.title .ln:nth-child(2) > i { animation-delay: .13s; }
.deck.ln > i { animation-delay: .26s; }
@keyframes lift { to { transform: translateY(0); } }

/* ---------- 目录式入口 ---------- */

.index { border-top: 1px solid var(--ink); }

.item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 30px;
  align-items: start;
  gap: 14px;
  padding: 26px 8px 26px 4px;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: background .3s ease, padding-left .3s ease;
}
.item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.item:hover { background: rgba(157, 58, 43, .035); padding-left: 12px; }
.item:hover::before { transform: scaleY(1); }

.item-sub::before { background: var(--blue); }
.item-sub:hover { background: rgba(53, 80, 107, .04); }

.item-third::before { background: var(--green); }
.item-third:hover { background: rgba(60, 102, 86, .04); }

.no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}
.item-main .no { color: var(--red); }
.item-sub .no { color: var(--blue); }
.item-third .no { color: var(--green); }

.item-body { min-width: 0; }
.item-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(21px, 5vw, 27px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
/* 「查经验 / 投经验 / 做实践」：小号等宽标签，说明用途而非装饰 */
.mark {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2px 6px;
  margin-left: 10px;
  vertical-align: 4px;
  white-space: nowrap;
}

.item-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 34em;
}

.go {
  font-size: 19px;
  color: var(--ink-3);
  padding-top: 3px;
  justify-self: end;
  transition: transform .3s ease, color .3s ease;
}
.item:hover .go { transform: translateX(5px); color: var(--red); }
.item-sub:hover .go { color: var(--blue); }
.item-third:hover .go { color: var(--green); transform: translate(3px, -3px); }

/* ---------- 引用带 ---------- */

.pullquote {
  position: relative;
  margin: 58px 0 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--ink);
}
.qmark {
  position: absolute;
  left: 20px;
  top: -26px;
  font-family: var(--serif);
  font-size: 54px;
  color: var(--rule);
  line-height: 1;
}
.pullquote p {
  font-family: var(--serif);
  font-size: clamp(16px, 4.2vw, 21px);
  line-height: 1.85;
  margin: 0;
  font-weight: 400;
}
.pullquote em { font-style: normal; font-weight: 700; }

/* ---------- 页脚刊记 ---------- */

.folio {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
}
.folio a { border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.folio a:hover { color: var(--red); border-color: var(--red); }
.folio a b { font-weight: 400; }
.folio .sep { color: var(--ink-3); }
.folio .spacer { flex: 1 1 12px; }
.folio .sig { color: var(--ink-3); font-size: 11px; }

/* ---------- 通用入场 ---------- */

.reveal {
  opacity: 0;
  animation: softin .7s ease forwards;
}
.masthead.reveal { animation-delay: .02s; }
.rule.reveal { animation-delay: .06s; }
.pullquote.reveal { animation-delay: .5s; }
.folio.reveal { animation-delay: .62s; }
@keyframes softin { to { opacity: 1; } }

/* ---------- 响应式 ---------- */

@media (max-width: 480px) {
  .sheet { padding: 28px 18px 48px; }
  .lead { margin: 34px 0 30px; }
  .item { grid-template-columns: 34px 1fr 22px; gap: 10px; padding: 22px 4px; }
  .pullquote { margin-top: 44px; padding-left: 18px; }
  .folio .sig { flex-basis: 100%; }
  .mark { display: inline-block; margin-left: 0; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
