/* ============================================================
   小林 & 榕榕 · 恋爱旅程 —— 旅行手账 / 拍立得主题
   ============================================================ */
:root {
  --paper: #f7f2e9;
  --paper-dark: #efe7d8;
  --ink: #3a3f5c;
  --ink-soft: #6b7186;
  --rose: #e07a8b;
  --rose-deep: #c9566c;
  --caramel: #d9a05b;
  --teal: #5b8a8a;
  --card: #fffdf8;
  --shadow: 0 2px 6px rgba(58, 63, 92, .08), 0 10px 28px rgba(58, 63, 92, .10);
  --shadow-lift: 0 6px 14px rgba(58, 63, 92, .12), 0 18px 44px rgba(58, 63, 92, .16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  background:
    radial-gradient(1200px 500px at 85% -50px, rgba(224, 122, 139, .08), transparent 60%),
    radial-gradient(900px 420px at 0% 30%, rgba(91, 138, 138, .07), transparent 55%),
    var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

/* 纸张噪点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  z-index: 0;
  background-image: radial-gradient(rgba(58, 63, 92, .045) 1px, transparent 1.4px);
  background-size: 5px 5px;
}

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

/* ---------------- HERO ---------------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 64px 20px 48px;
  z-index: 1;
}

.hero-tickets {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 34px;
  opacity: .92;
}
.ticket {
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 4px;
  padding: 14px 26px;
  border: 2px dashed var(--ink);
  position: relative;
  background: var(--card);
}
.ticket-a { border-radius: 10px 4px 4px 10px; color: var(--rose-deep); transform: rotate(-4deg); }
.ticket-b { border-radius: 4px 10px 10px 4px; color: var(--teal); transform: rotate(3deg); }
.ticket::after {
  content: "";
  position: absolute;
  top: 50%; width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px dashed var(--ink);
  transform: translateY(-50%);
}
.ticket-a::after { right: -7px; }
.ticket-b::after { left: -7px; }
.ticket-line {
  width: 110px;
  border-top: 2px dashed var(--ink);
  position: relative;
  margin: 0 4px;
}
.ticket-line::after {
  content: "🚄";
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  background: var(--paper);
  padding: 0 6px;
}

.hero-kicker {
  font-family: "Cascadia Code", Consolas, monospace;
  letter-spacing: 6px;
  font-size: 12px;
  color: var(--rose-deep);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.15;
}
.hero-title .amp {
  color: var(--rose);
  font-family: Georgia, serif;
  font-style: italic;
  padding: 0 6px;
}
.hero-sub { display: block; font-size: clamp(20px, 3.4vw, 34px); font-weight: 600; margin-top: 10px; letter-spacing: 8px; }

.hero-route {
  margin-top: 22px;
  font-size: clamp(14px, 2.2vw, 19px);
  color: var(--ink-soft);
  letter-spacing: 2px;
}
.hero-route .arrow { color: var(--rose); font-weight: 700; }

.hero-stats {
  display: flex;
  gap: clamp(14px, 4vw, 44px);
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  background: var(--card);
  border: 1.5px solid rgba(58, 63, 92, .16);
  border-radius: 14px;
  padding: 10px 18px 8px;
  min-width: 96px;
  box-shadow: var(--shadow);
  position: relative;
  top: 0;
  transition: transform .25s ease, top .25s ease;
}
.stat:hover { top: -4px; transform: rotate(-1.5deg); }
.stat b { font-size: 30px; color: var(--rose-deep); display: block; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--ink-soft); letter-spacing: 2px; }

.hero-note {
  margin-top: 34px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;
}
.hero-scroll {
  margin-top: 38px;
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 3px;
  box-shadow: 0 8px 22px rgba(224, 122, 139, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-scroll:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(224, 122, 139, .5); }

/* ---------------- 分区标题 ---------------- */
.sec-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(26px, 4.6vw, 40px);
  letter-spacing: 4px;
}
.sec-title span { position: relative; z-index: 1; }
.sec-title span::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: 4px;
  height: 12px;
  background: linear-gradient(90deg, rgba(224,122,139,.25), rgba(217,160,91,.25));
  z-index: -1;
  transform: rotate(-1deg);
}
.sec-title small {
  display: block;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-weight: 400;
}
.sec-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 40px;
  padding: 0 24px;
}

/* ---------------- 时间线 ---------------- */
.journey { padding: 90px 20px 30px; max-width: 1160px; margin: 0 auto; }

/* 屏外站点跳过渲染，长页面性能关键 */
.stop { content-visibility: auto; contain-intrinsic-size: auto 2400px; }

.load-more {
  display: block;
  margin: 4px auto 18px;
  padding: 10px 26px;
  border: 1.5px dashed var(--rose);
  color: var(--rose-deep);
  background: rgba(224, 122, 139, .06);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .25s ease;
}
.load-more:hover { background: rgba(224, 122, 139, .14); }

.timeline { position: relative; margin-top: 50px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  border-left: 2px dashed rgba(58, 63, 92, .22);
}
.stop {
  position: relative;
  margin-bottom: 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.stop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rose);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--rose), 0 0 0 6px rgba(224, 122, 139, .18);
  transform: translateX(-50%);
  z-index: 2;
}

.stop-card {
  grid-column: 1;
  background: var(--card);
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.stop:nth-child(even) .stop-card { grid-column: 2; grid-row: 1; }

/* 车票头 */
.stop-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 2px dashed rgba(58, 63, 92, .18);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.stop-code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 800;
  font-size: 15px;
  color: var(--teal);
  background: rgba(91, 138, 138, .1);
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.stop-date { font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; }
.stop-title { font-size: clamp(19px, 2.6vw, 24px); margin: 14px 0 10px; letter-spacing: 1px; }
.stop-stay {
  font-size: 13px;
  color: var(--caramel-deep, #b07a2e);
  background: rgba(217, 160, 91, .12);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.stop-story { font-size: 14.5px; color: var(--ink-soft); text-align: justify; }

/* 拍立得照片墙 */
.stop-photos {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 8px;
  columns: 4 200px;
  column-gap: 18px;
}
.stop-photos .pol {
  break-inside: avoid;
  margin-bottom: 18px;
}

.pol {
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: var(--shadow);
  border-radius: 3px;
  display: inline-block;
  width: 100%;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: zoom-in;
}
.pol:hover { transform: scale(1.03) rotate(0deg) !important; z-index: 5; box-shadow: var(--shadow-lift); }
.pol img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  background: var(--paper-dark);
}
.pol video { width: 100%; border-radius: 2px; }

.pol.is-video::after {
  content: "▶ 视频";
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(58, 63, 92, .78);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
}

/* 视频卡片进入灯箱播放：pol-video 只显示封面帧 */
.pol-video { cursor: pointer; }

/* ---------------- 酒店锐评 ---------------- */
.hotels { padding: 90px 20px 60px; max-width: 1160px; margin: 0 auto; }
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  max-width: 1160px;
  margin: 0 auto;
}
.hotel-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hotel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.hotel-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rose), var(--caramel));
}
.hotel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.hotel-card:has(.hotel-tag) .hotel-head { padding-right: 78px; }
.hotel-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.hotel-price { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.hotel-loc { font-size: 12.5px; color: var(--teal); margin-bottom: 12px; }
.score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.score-num {
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 800;
  font-size: 26px;
  min-width: 74px;
  color: var(--rose-deep);
}
.score-num.bad { color: #4d8f3a; }
.score-bar {
  flex: 1;
  height: 10px;
  background: var(--paper-dark);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.score-fill {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0b7c0, var(--rose));
  transition: width 1s ease;
}
.score-fill.bad {
  inset: 0 50% 0 auto;
  background: linear-gradient(270deg, #a8d69c, #4d8f3a);
}
.hotel-why { font-size: 13.5px; color: var(--ink-soft); text-align: justify; }
.hotel-remark {
  margin-top: 10px;
  font-size: 13px;
  color: var(--rose-deep);
  background: rgba(224, 122, 139, .08);
  border-radius: 10px;
  padding: 8px 12px;
}
.hotel-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #fff;
  background: var(--teal);
  padding: 3px 10px;
  border-radius: 999px;
}
.hotel-tag.bad { background: #4d8f3a; }

/* ---------------- 私房照 ---------------- */
.priv { padding: 90px 20px 60px; }
.priv-wall {
  max-width: 1080px;
  margin: 0 auto;
  columns: 4 210px;
  column-gap: 20px;
}
.priv-wall .pol { break-inside: avoid; margin-bottom: 20px; }
.priv-wall .pol img { aspect-ratio: auto; }

/* ---------------- 视频 ---------------- */
.videos { padding: 90px 20px 60px; max-width: 1160px; margin: 0 auto; }
.video-wall {
  columns: 3 300px;
  column-gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.video-wall .pol { break-inside: avoid; margin-bottom: 20px; }
.video-wall video { aspect-ratio: auto; }

/* ---------------- 页脚 ---------------- */
.footer {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, transparent, rgba(224, 122, 139, .07));
}
.footer-stamp {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border: 3px solid var(--rose);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: var(--rose);
  transform: rotate(-12deg);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(-12deg) scale(1.08); }
}
.footer-line { color: var(--ink-soft); font-size: 13px; letter-spacing: 3px; }
.footer-big { font-size: clamp(24px, 4vw, 34px); font-weight: 700; margin: 14px 0 8px; letter-spacing: 6px; }
.footer-small { color: var(--ink-soft); font-size: 12px; margin-bottom: 30px; }
.to-top {
  display: inline-block;
  padding: 10px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  transition: all .25s ease;
}
.to-top:hover { background: var(--ink); color: var(--paper); }

/* ---------------- 灯箱 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 32, 46, .92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox[hidden] { display: none; }
.lb-stage { max-width: min(1100px, 92vw); text-align: center; }
.lb-stage img {
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: #fff;
  padding: 10px 10px 10px;
}
.lb-cap { color: #cfd3e0; font-size: 13px; margin-top: 12px; letter-spacing: 1px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  font-size: 30px;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 22px; right: 26px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------------- 滚动入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .timeline::before { left: 12px; }
  .stop { grid-template-columns: 1fr; gap: 18px; padding-left: 34px; }
  .stop::before { left: 12px; }
  .stop-card { grid-column: 1 !important; grid-row: auto !important; }
  .stop-photos { grid-column: 1 !important; grid-row: auto !important; }
  .stop-photos { columns: 2 150px; column-gap: 12px; }
  .hero-stats { gap: 10px; }
  .stat { min-width: 84px; padding: 8px 12px 6px; }
  .stat b { font-size: 22px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
