/* ============================================================
   ASTRA / 宇宙时间线
   A logarithmic, non-linear cosmic timeline. No external assets.
   ============================================================ */

.timeline-page {
  --tl-cyan: #87e7ff;
  --tl-gold: #ffcf8a;
  --tl-line: rgba(135, 231, 255, 0.22);
  --tl-dim: #7d91aa;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(40, 100, 140, 0.2), transparent 65%),
    radial-gradient(700px 500px at 90% 30%, rgba(255, 207, 138, 0.05), transparent 60%),
    #03060b;
}
.timeline-page .site-nav { background: rgba(3, 6, 11, 0.84); }

.tl-hero { padding: 130px 0 40px; }
.tl-hero h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.08em;
}
.tl-hero h1 em { color: var(--tl-gold); font-style: normal; }
.tl-hero h1 sup {
  font-size: 0.46em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: 0;
}
.timeline-page sup {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: 0;
}
.tl-hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}
.tl-now {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(135, 231, 255, 0.25);
  background: rgba(135, 231, 255, 0.05);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--tl-dim);
}
.tl-now b { color: var(--tl-cyan); font-size: 18px; font-weight: 400; }

.tl-scale-note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--tl-dim);
}

/* ---------- rail ---------- */
.tl-wrap { padding: 26px 0 70px; }
.tl-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--tl-line);
}
.tl-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tl-cyan), var(--tl-gold), transparent);
  opacity: 0.55;
}
.tl-era {
  position: relative;
  padding: 26px 20px 0;
  border-right: 1px solid rgba(135, 231, 255, 0.08);
}
.tl-era:last-child { border-right: 0; }
.tl-era::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tl-cyan);
  box-shadow: 0 0 12px rgba(135, 231, 255, 0.6);
}
.tl-era.future::before { background: var(--tl-gold); box-shadow: 0 0 12px rgba(255, 207, 138, 0.55); }
.tl-era.future { border-right-color: rgba(255, 207, 138, 0.09); }
.tl-era-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--tl-cyan);
  text-transform: uppercase;
}
.tl-era.future .tl-era-title { color: var(--tl-gold); }
.tl-era h2 {
  margin: 8px 0 18px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #e8f0fb;
}
.tl-item {
  position: relative;
  padding: 0 0 18px 16px;
  border-left: 1px solid rgba(135, 231, 255, 0.2);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8d8e8;
}
.tl-time {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--tl-gold);
}
.tl-item b {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: #dce8f5;
}
.tl-item span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--tl-dim);
}

/* now marker */
.tl-now-line {
  position: relative;
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 207, 138, 0.28);
  background: rgba(255, 207, 138, 0.05);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--tl-gold);
}
.tl-now-line::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--tl-gold);
  box-shadow: 0 0 10px rgba(255, 207, 138, 0.7);
}

/* ---------- age / lifetime cards ---------- */
.tl-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.tl-fact {
  padding: 22px;
  border: 1px solid rgba(135, 231, 255, 0.16);
  background: rgba(7, 15, 24, 0.7);
}
.tl-fact .tl-fact-k {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--tl-cyan);
}
.tl-fact b {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 400;
  color: #eaf7ff;
}
.tl-fact p { margin: 8px 0 0; font-size: 11px; line-height: 1.8; color: var(--tl-dim); }

.tl-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 2px solid var(--tl-gold);
  background: rgba(255, 207, 138, 0.04);
  color: #b8c6d6;
  font-size: 12px;
  line-height: 1.9;
}
.tl-note b { color: var(--tl-gold); }

.tl-sources {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 2;
  color: #61758a;
}
.tl-sources a { color: var(--tl-cyan); border-bottom: 1px solid rgba(135, 231, 255, 0.3); }

.tl-whisper {
  margin: 12px 0 0;
  padding: 11px 12px;
  border-left: 1px solid rgba(255, 207, 138, 0.5);
  background: rgba(255, 207, 138, 0.035);
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.9;
  color: #cfc0a2;
}

.tl-present { margin-top: 34px; }
.tl-present-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.tl-present-head h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.tl-present-head p {
  max-width: 320px;
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--tl-dim);
}
.tl-present-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tl-present-card {
  padding: 24px;
  border: 1px solid rgba(135, 231, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(135, 231, 255, 0.035), transparent 50%),
    rgba(7, 15, 24, 0.72);
}
.tl-present-card h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #e8f0fb;
}
.tl-present-card p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.9;
  color: #b8c6d6;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .tl-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-era { border-bottom: 1px solid rgba(135, 231, 255, 0.08); padding-bottom: 22px; }
  .tl-facts { grid-template-columns: 1fr; }
  .tl-present-head { display: block; }
  .tl-present-head p { margin-top: 12px; }
  .tl-present-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tl-hero { padding-top: 108px; }
  .tl-rail { grid-template-columns: 1fr; }
  .tl-era { padding-left: 22px; padding-right: 0; border-right: 0; }
  .tl-era::before { left: 0; }
  .tl-era h2 { font-size: 20px; }
}
