/* ==========================================================================
   螳螂的旅行 · 升级主题层（在 style.css 之后加载）
   1) 令牌微调：更深的夜蓝底 + 暖砂第二主色
   2) 总站首页：首屏 / 旅行目录 / 地图 / 时间轴 / 关于
   3) 相册页的版式与导航呼应
   ========================================================================== */

:root {
  --accent: #a8c4e8;
  --accent2: #8fb3d9;
  --bg: #0d1428;
  --paper: #121a33;
  --line: #1e2a4a;
  --line-dark: #2a3a5e;
  --pad: clamp(20px, 5vw, 88px);
  --r: 18px;
  --r-sm: 11px;
}

html { background: #090d1c; }

/* 蓝色系渐变背景（和线上版一致） */
body::before {
  background:
    radial-gradient(1300px 820px at 82% -12%, rgba(89,130,193,.40), transparent 62%),
    radial-gradient(1100px 760px at -5% 40%, rgba(128,105,205,.28), transparent 58%),
    radial-gradient(1000px 800px at 102% 78%, rgba(64,150,180,.22), transparent 56%),
    linear-gradient(180deg, #0d1428 0%, #0c1124 48%, #090d1c 100%);
}

/* 标头：左侧 logo、中间导航居中，参考 visitfinland */
.nav { position: relative; }
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 40px);
}
.nav-links a { position: relative; font-size: 13px; letter-spacing: .04em; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
  background: var(--accent2); opacity: .9;
}
@media (max-width: 680px) {
  .nav-links { position: static; transform: none; gap: 14px; }
  .nav { justify-content: space-between; }
}

/* ==========================================================================
   总站首页
   ========================================================================== */
.page-home .hhero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: #0d1428; }
.page-home .hhero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1); animation: heroIn 1.4s var(--ease) forwards; will-change: transform;
}
.page-home .hhero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,20,40,.5) 0%, rgba(13,20,40,.1) 35%, rgba(13,20,40,.3) 65%, rgba(9,13,28,.85) 100%);
}
.page-home .hhero-copy {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; color: #fff; text-align: center; width: 100%; padding: 0 var(--pad);
}
.page-home .hhero-copy .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em;
  color: rgba(255,255,255,.7); margin: 0 0 24px;
}
.page-home .hhero-copy h1 {
  font-size: clamp(36px, 6vw, 88px); font-weight: 600; line-height: 1.05; letter-spacing: .15em;
  margin: 0; text-shadow: 0 8px 44px rgba(6,9,20,.5);
}
.page-home .hhero-copy .sub { margin: 20px 0 0; font-size: clamp(14px, 1.35vw, 18px); color: rgba(255,255,255,.86); letter-spacing: .04em; }
.page-home .hhero-copy::after {
  content: ""; display: block; width: clamp(56px, 8vw, 120px); height: 2px; margin: 26px auto 0;
  background: linear-gradient(90deg, var(--accent2), rgba(143,179,217,0));
}
.page-home .hhero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 0; z-index: 2;
  color: #fff; border-top: 1px solid rgba(255,255,255,.24); padding-bottom: 12px;
}

.section { max-width: 1560px; margin: 0 auto; padding: clamp(68px, 10vh, 132px) var(--pad); }
.section + .section { padding-top: 0; }
.sec-trips { padding-top: clamp(70px, 11vh, 140px); }
#trips, #map, #timeline, #about { scroll-margin-top: 70px; }

.page-home .hhero-copy .eyebrow { text-shadow: 0 2px 14px rgba(6,9,20,.7); }

/* 章节头：英文小标题不折行 */
.sec-en { white-space: nowrap; }

/* 首屏右侧给悬浮音乐按钮留位，右列数字不被压住 */
.hero-facts { padding-right: 92px; }
.hero-facts .hf span { white-space: nowrap; }

/* ---- 旅行目录 ---- */
.trip-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(30px, 4vw, 64px) clamp(18px, 2.2vw, 34px);
  margin-top: clamp(34px, 5vw, 58px); align-items: start;
}
.trip-card { grid-column: span 7; display: block; }
.trip-card[data-span="5"] { grid-column: span 5; }
.trip-card[data-span="6"] { grid-column: span 6; }

.tc-media {
  position: relative; overflow: hidden; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.09); background: var(--paper);
  aspect-ratio: 4 / 3; transition: transform .7s var(--ease), border-color .5s, box-shadow .5s;
  will-change: transform;
}
.trip-card.portrait .tc-media { aspect-ratio: 3 / 4; }
.tc-media img, .tc-video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tc-video { display: block; }
.trip-card:hover .tc-media { border-color: rgba(143,179,217,.42); box-shadow: 0 42px 96px rgba(0,0,0,.62); }
.trip-card:hover .tc-media img, .trip-card:hover .tc-media .tc-video { transform: scale(1.045); }
.tc-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,10,22,.34) 0%, transparent 34%, rgba(7,10,22,.5) 100%);
}
.tc-badge {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  color: #fff; background: rgba(8,12,26,.5); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tc-go {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  padding: 9px 16px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.trip-card:hover .tc-go { opacity: 1; transform: none; }

.tc-body { padding-top: 18px; }
.tc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .17em; color: var(--ink3); text-transform: uppercase; }
.tc-period { color: var(--accent2); opacity: .85; }
.tc-name { margin: 12px 0 0; font-size: clamp(25px, 2.7vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.tc-sub { margin: 8px 0 0; font-size: 13px; color: var(--accent2); letter-spacing: .03em; }
.tc-blurb { margin: 14px 0 0; max-width: 46ch; font-size: 13.5px; line-height: 1.8; color: var(--ink2); }
.tc-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink2);
}
.tc-counts { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; color: var(--ink3); white-space: nowrap; }
.tc-counts b { color: var(--ink); font-weight: 600; }

/* ---- 地图 ---- */
.map-wrap {
  display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, .92fr);
  gap: clamp(24px, 3vw, 46px); margin-top: clamp(34px, 5vw, 58px); align-items: start;
}
.map-panel {
  position: relative; overflow: hidden; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.08); background: #101012;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 60px rgba(0,0,0,.5);
}
#mapSvg { display: block; width: 100%; height: auto; }
.map-corner { position: absolute; right: 14px; top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.42); }
.map-scale { position: absolute; left: 14px; bottom: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: rgba(255,255,255,.28); }

.map-list { display: flex; flex-direction: column; gap: 14px; }
.ml-item {
  display: flex; gap: 13px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(150,180,225,.035) 60%, rgba(255,255,255,.02));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.ml-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.ml-body { min-width: 0; }
.ml-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ml-top b { font-weight: 600; }
.ml-top span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink3); white-space: nowrap; }
.ml-route { margin: 9px 0 0; font-size: 12px; line-height: 1.75; color: var(--ink2); }

/* ---- 时间轴 ---- */
.tl { position: relative; list-style: none; margin: clamp(34px, 5vw, 58px) 0 0; padding: 0; }
.tl::before {
  content: ""; position: absolute; left: 125px; top: 8px; bottom: 26px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-dark) 10%, var(--line-dark) 90%, transparent);
}
.tl-item { display: grid; grid-template-columns: 106px 38px minmax(0, 1fr); align-items: start; padding: 24px 0; }
.tl-year { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink3); padding-top: 5px; white-space: nowrap; }
.tl-dot {
  position: relative; z-index: 1; justify-self: center; width: 9px; height: 9px; margin-top: 6px;
  border-radius: 50%; border: 1px solid rgba(200,168,130,.8); background: rgba(200,168,130,.28);
  box-shadow: 0 0 0 6px rgba(10,15,32,.9);
}
.tl-body { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.tl-item:last-child .tl-body { border-bottom: 0; padding-bottom: 0; }
.tl-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tl-head h3 { margin: 0; font-size: clamp(21px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.tl-place { font-size: 12.5px; color: var(--ink2); }
.tl-note { margin: 9px 0 0; font-size: 12.5px; color: var(--ink3); letter-spacing: .02em; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink3); }
.tl-meta b { color: var(--ink); font-weight: 600; margin-right: 5px; }
.tl-link {
  display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--accent);
  border-bottom: 1px solid rgba(143,179,217,.32); padding-bottom: 2px; transition: color .3s, border-color .3s;
}
.tl-link:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.tl-link i { font-family: var(--mono); font-size: 10px; margin-left: 4px; }

/* ---- 关于 ---- */
.sec-about {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 520px at 50% 118%, rgba(89,130,193,.22), transparent 66%),
    linear-gradient(180deg, rgba(20,26,52,.35) 0%, rgba(28,36,68,.28) 55%, rgba(42,54,98,.30) 100%);
}
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 4vw, 64px);
  margin-top: clamp(36px, 5vw, 58px); align-items: start;
}
.about-text p { margin: 0 0 18px; max-width: 52ch; font-size: 15px; line-height: 1.95; color: var(--ink2); }
.about-text .about-note {
  margin-top: 26px; padding-left: 15px; border-left: 2px solid var(--line-dark);
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; line-height: 1.95; color: var(--ink3);
}
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.about-stats .stat b { font-size: clamp(40px, 5vw, 74px); }
.page-home .colophon { margin-top: clamp(44px, 6vw, 76px); }

/* ==========================================================================
   相册页（沿用原版式，只做呼应性调整）
   ========================================================================== */
/* 相册首屏：竖版封面上方偏亮，压深一点保住导航与标题的对比 */
.page-album .hero-veil {
  background:
    linear-gradient(180deg, rgba(8,11,24,.62) 0%, rgba(8,11,24,.14) 26%, rgba(8,11,24,.40) 62%, rgba(6,9,20,.86) 100%);
}
.page-album .hero-img { object-position: center 58%; }

.page-album .brand span { color: var(--accent2); }
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink2); transition: color .3s;
}
.nav-back:hover { color: var(--ink); }
.nav-back i { font-family: var(--mono); font-size: 11px; color: var(--accent2); }
.nav-links .nav-home { color: var(--accent); }
.nav-links .nav-home:hover { color: #fff; }
.page-album .hero-copy h1 { letter-spacing: -.05em; }
.page-album .about { border-top: 1px solid var(--line); }

/* 相册页尾部的"其他旅行"入口 */
.others { margin-top: clamp(40px, 6vw, 76px); }
.others-label { margin: 0 0 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink3); }
.others-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.other-card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10;
  border-radius: var(--r); border: 1px solid rgba(255,255,255,.1); background: var(--paper);
}
.other-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.other-card:hover img { transform: scale(1.05); }
.oc-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(7,10,22,.82));
}
.oc-body b { font-size: 15px; font-weight: 600; }
.oc-body i { font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.page-album .card-meta { border-radius: 15px; }
.page-album .detail-hero, .page-album .detail-hero img { border-radius: var(--r); }
.page-album .tag { border-color: rgba(200,168,130,.28); color: rgba(232,214,192,.9); }
.page-album .filters button.on::after { background: var(--accent2); }
.page-album .sec-no { color: var(--accent2); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-side { display: none; }
  .map-wrap { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .sec-en { font-size: 10px; letter-spacing: .13em; }
  /* 窄屏首屏四栏缩成 2×2，标签不再折行 */
  .hero-facts { grid-template-columns: repeat(2, 1fr); padding-right: 76px; }
  .hero-facts .hf { border-right: 0; padding-left: 0; }
  .hero-facts .hf:nth-child(3), .hero-facts .hf:nth-child(4) { border-top: 1px solid rgba(255,255,255,.16); }
  .hero-facts .hf span { font-size: 9.5px; letter-spacing: .1em; }
  .hero-scroll { display: none; }
}
@media (max-width: 1000px) {
  .trip-card, .trip-card[data-span="5"], .trip-card[data-span="6"] { grid-column: span 6; }
  .trip-card.portrait .tc-media { aspect-ratio: 3 / 4; }
  .tl::before { left: 78px; }
  .tl-item { grid-template-columns: 60px 34px minmax(0, 1fr); }
  .tl-year { font-size: 10.5px; }
}
@media (max-width: 680px) {
  .page-home .hhero { min-height: 100svh; }
  .page-home .hhero-copy h1 { font-size: clamp(36px, 11.5vw, 56px); line-height: 1.05; }
  .section { padding-left: 20px; padding-right: 20px; }
  .trip-grid { grid-template-columns: 1fr; gap: 44px; }
  .trip-card, .trip-card[data-span="5"], .trip-card[data-span="6"] { grid-column: span 1; }
  .trip-card.portrait .tc-media { aspect-ratio: 4 / 5; }
  .tc-go { display: none; }
  .hero-facts { padding-right: 0; }
  .tc-blurb { font-size: 13px; }
  .tc-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map-list { gap: 10px; }
  .tl::before { left: 4px; }
  .tl-item { grid-template-columns: 1fr; padding: 20px 0 0 24px; }
  .tl-year { padding-top: 0; margin-bottom: 6px; }
  .tl-dot { position: absolute; left: 0; margin-top: 0; }
  .tl-item { position: relative; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .others-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .oc-body { padding: 10px 12px; }
  .oc-body b { font-size: 13px; }
  .oc-body i { display: none; }
  .about-text p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hhero-img, .tc-media img, .tc-media { animation: none !important; transition: none !important; }
  .page-home .hhero-img { opacity: 1; transform: none; }
}
