@charset "UTF-8";
/* ============================================================
   Timed Cards — 自动播放的旅行卡片幻灯片
   卡片在舞台中央轮转，详情面板随奇偶左右交替，
   顶部进度条按固定时长推进，走完自动翻页。
   ============================================================ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("../assets/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("../assets/oswald-latin.woff2") format("woff2");
}
:root {
  --ink: #0a0c0f;
  --ink-2: #14181f;
  --paper: #f5f2ec;
  --muted: rgba(245, 242, 236, 0.56);
  --faint: rgba(245, 242, 236, 0.26);
  --line: rgba(245, 242, 236, 0.12);
  --accent: #e0a253;
  --card-w: 300px;
  --card-h: 430px;
  --spread: 196px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- 舞台 ---------- */
.stage {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  isolation: isolate;
  /* 两团暖光，别让纯黑显得死板 */
}
.stage::before, .stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.stage::before {
  top: -18vh;
  left: -8vw;
  width: 52vw;
  height: 52vw;
  background: rgba(224, 162, 83, 0.13);
}
.stage::after {
  right: -10vw;
  bottom: -24vh;
  width: 46vw;
  height: 46vw;
  background: rgba(88, 132, 176, 0.12);
}

/* 背景里的大号页码（居中交给 JS 的 xPercent/yPercent） */
.ghost {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 12;
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(110px, 15vw, 210px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(245, 242, 236, 0.18);
  user-select: none;
  pointer-events: none;
}

/* ---------- 顶部进度条 ---------- */
.progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 导航 ---------- */
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(24px, 5vw, 64px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand__mark {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.brand__note {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dots__dot {
  position: relative;
  width: 34px;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(245, 242, 236, 0.18);
}
.dots__dot:hover {
  background: rgba(245, 242, 236, 0.34);
}
.dots__fill {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.dots__dot.is-done .dots__fill {
  transform: scaleX(1);
}

.round {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.round:hover {
  color: var(--paper);
  border-color: rgba(245, 242, 236, 0.34);
  background: rgba(245, 242, 236, 0.06);
}
.round svg {
  width: 15px;
  height: 15px;
}
.round {
  /* 播放中显示暂停图标，暂停中显示播放图标 */
}
.round--play[aria-pressed=true] .round__play, .round--play[aria-pressed=false] .round__pause {
  display: none;
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 84px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
}
.counter__now {
  font-size: 30px;
  letter-spacing: 0.02em;
}
.counter__sep, .counter__all {
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.1em;
}

/* ---------- 卡片 ---------- */
.track {
  position: absolute;
  top: 44%;
  left: 50%;
  z-index: 10;
  width: var(--card-w);
  height: var(--card-h);
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  list-style: none;
}

.card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 242, 236, 0.1);
  border-radius: 20px;
  background: var(--ink-2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  transform-origin: 50% 60%;
  will-change: transform, opacity;
}
.card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.1) 0%, rgba(10, 12, 15, 0.86) 100%);
}
.card__label {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card__no {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.card__place {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card__country {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- 详情面板：偶数在左，奇数在右 ---------- */
.detail {
  position: absolute;
  bottom: clamp(38px, 6vh, 74px);
  z-index: 15;
  width: min(470px, 40vw);
}

/* 文字不带底衬，只在下半屏压一层从下往上渐隐的暗角，压住画面也读得清 */
.detail::before {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 40%;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0) 0%, rgba(10, 12, 15, 0.4) 45%, rgba(10, 12, 15, 0.8) 82%, rgba(10, 12, 15, 0.9) 100%);
  pointer-events: none;
}
.detail__eyebrow {
  margin: 0 0 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.detail__title {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.detail__text {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 42ch;
}
.detail__meta {
  display: flex;
  gap: 30px;
  margin: 0 0 22px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.detail__meta dt {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.detail__meta dd {
  margin: 4px 0 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.detail__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.detail__cta span {
  transition: transform 0.25s var(--ease);
}
.detail__cta:hover {
  color: var(--accent);
}
.detail__cta:hover span {
  transform: translateX(4px);
}
.detail {
  /* 偶数页：贴左边 */
}
.detail--even {
  left: clamp(24px, 5vw, 64px);
}
.detail {
  /* 奇数页：贴右边，整体镜像 */
}
.detail--odd {
  right: clamp(24px, 5vw, 64px);
  text-align: right;
}
.detail--odd .detail__text {
  margin-left: auto;
}
.detail--odd .detail__meta {
  justify-content: flex-end;
}
.detail:not(.is-active) {
  visibility: hidden;
}

/* ---------- 启动覆盖层 ---------- */
.intro {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-content: center;
  gap: 22px;
  justify-items: center;
  text-align: center;
  background: radial-gradient(120% 80% at 50% 15%, #1a1f27 0%, var(--ink) 64%);
}
.intro__mark {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
}
.intro__line {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
}
.intro__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}
.intro__btn:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent);
}

.is-hidden {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --spread: 130px;
  }
  .detail {
    width: min(430px, 84vw);
  }
  .detail--odd {
    text-align: left;
  }
  .detail--odd .detail__text {
    margin-left: 0;
  }
  .detail--odd .detail__meta {
    justify-content: flex-start;
  }
  .brand__note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .progress {
    display: none;
  }
}
