/**
 * H5 社交展示页样式
 *
 * 两类页面共用：
 *   .h5-page  画廊索引（/h5/）
 *   .h5-deck  路线竖屏滑动图册（/h5/<slug>/）
 *
 * 移动优先：竖屏全屏、scroll-snap 吸附、安全区适配（刘海屏）。
 * 配色与主站一致：纸白 + 近黑 + 低饱和靛蓝 + 品牌金（194,158,103）。
 */

:root {
  --paper: #fff;
  --ink: #16181c;
  --ink-soft: #4a4f57;
  --ink-mute: #7c828c;
  --gold: rgba(194, 158, 103, 0.92);
  --gold-deep: #c29e67;
  --accent: #486078;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Arial, sans-serif;
  --serif: "Playfair Display", "Didot", Georgia, "Songti SC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ------------------------------------------------------- 品牌条 */

.h5-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.h5-brand span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.h5-brand em {
  display: block;
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

/* ------------------------------------------------------- 索引页 */

.h5-page { min-height: 100svh; }

.h5-hero {
  position: relative;
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: max(20px, env(safe-area-inset-top)) 22px 34px;
  background:
    linear-gradient(180deg, rgba(22,24,28,0.42) 0%, rgba(22,24,28,0.05) 40%, rgba(22,24,28,0.82) 100%),
    url("/assets/img/dest-hong-kong-1.webp") center 38% / cover no-repeat, #16181c;
  color: #fff;
}
.h5-hero .h5-brand { position: absolute; top: max(18px, env(safe-area-inset-top)); left: 22px; }
.h5-hero .h5-brand em { color: rgba(255,255,255,0.62); }
.h5-hero-text { max-width: 620px; }
.h5-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.h5-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 8.4vw, 44px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.h5-lead {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
}

/* 路线画廊：单列大图卡，拇指滑动 */
.h5-grid {
  display: grid;
  gap: 22px;
  padding: 26px 18px 8px;
  max-width: 640px;
  margin-inline: auto;
}
.h5-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 5;
  background: #16181c;
  box-shadow: 0 10px 30px rgba(22,24,28,0.14);
}
.h5-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.h5-card:active img { transform: scale(1.03); }
.h5-card-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 64px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(22,24,28,0.86));
  color: #fff;
}
.h5-card-days {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.h5-card-text h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.22;
}
.h5-card-price { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.85); }
.h5-card-price strong { color: #fff; font-weight: 700; }

/* 页脚 */
.h5-foot {
  max-width: 640px;
  margin: 34px auto 0;
  padding: 26px 20px calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(22,24,28,0.08);
  text-align: center;
}
.h5-foot-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
}
.h5-foot-qr img {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(22,24,28,0.12);
  border-radius: 12px;
}
.h5-foot-qr p { font-size: 14px; color: var(--ink-soft); }
.h5-foot-qr a { color: var(--accent); }
.h5-foot-legal {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------- 路线 deck */

.h5-deck {
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  background: #16181c;
}
.h5-deck-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  background: linear-gradient(180deg, rgba(22,24,28,0.55), transparent);
  pointer-events: none;
}
.h5-deck-top > * { pointer-events: auto; }
.h5-deck-top .h5-brand { color: #fff; }
.h5-deck-top .h5-brand em { color: rgba(255,255,255,0.6); }
.h5-back {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(22,24,28,0.35);
  backdrop-filter: blur(8px);
}

.h5-slide {
  position: relative;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #16181c;
}
/* 只把「直接子级」的图片当全屏背景；嵌套在内容里的图（品牌标、二维码）不受影响 */
.h5-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.h5-slide-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 90px 22px calc(30px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(22,24,28,0.82));
  color: #fff;
}
.h5-slide-city {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}
.h5-slide-city em {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 6px;
}

/* 封面屏 */
.h5-cover-cap { padding-top: 120px; }
.h5-cover-cap h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.h5-cover-price { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.9); }
.h5-cover-price strong { font-size: 19px; color: #fff; }
.h5-swipe {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  animation: h5-nudge 2.2s ease-in-out infinite;
}
@keyframes h5-nudge {
  0%, 100% { transform: translateY(0); opacity: 0.66; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* 结尾 CTA 屏（纸白） */
.h5-cta {
  background: var(--paper);
  scroll-snap-align: start;
}
.h5-cta-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 26px calc(36px + env(safe-area-inset-bottom));
  gap: 14px;
}
.h5-cta-mark { width: 54px; height: 54px; }
.h5-cta-inner h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 18ch;
}
.h5-cta-price { font-size: 14px; color: var(--ink-soft); }
.h5-cta-price strong { font-size: 19px; color: var(--ink); }
.h5-cta-lead { font-size: 14px; color: var(--ink-soft); max-width: 40ch; line-height: 1.7; }
.h5-btn {
  display: inline-block;
  margin-top: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
}
.h5-cta-qr { margin-top: 10px; }
.h5-cta-qr img {
  width: 140px;
  height: 140px;
  border: 1px solid rgba(22,24,28,0.14);
  border-radius: 12px;
  margin-inline: auto;
}
.h5-cta-qr p { margin-top: 8px; font-size: 12.5px; color: var(--ink-mute); }
.h5-cta-more {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(72,96,120,0.35);
  padding-bottom: 2px;
}

/* ------------------------------------------------------- 桌面适配
   H5 主要给手机社交流量；桌面打开时限制内容宽度居中，
   deck 保持全屏体验。 */
@media (min-width: 720px) {
  .h5-grid { grid-template-columns: 1fr 1fr; }
  .h5-hero { min-height: 60svh; padding-left: max(22px, calc(50% - 320px)); }
  .h5-slide-cap, .h5-cover-cap { padding-left: max(22px, calc(50% - 320px)); padding-right: max(22px, calc(50% - 320px)); }
  .h5-cta-inner { max-width: 640px; margin-inline: auto; }
}
