/* 旅得好游官网
   版式取旅行杂志的编辑感：大字号衬线标题、整幅照片、大量留白。
   紫色只用在按钮和极少量强调上，其余是墨黑与纸白。 */

/* 字体按页面实际用到的字做了子集化，三份加起来约 360 KB；
   系统装了同名字体时优先用系统的，省掉下载。 */
@font-face {
  font-family: "LD Serif";
  src: url("assets/serif-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "LD Sans";
  src: url("assets/sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LD Sans";
  src: url("assets/sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #14121a;
  --ink-2: #2c2836;
  --ink-3: #514c5e;
  --muted: #7d7789;
  --paper: #fbfafc;
  --paper-2: #f2f0f6;
  --line: #e4e0ec;
  --plum: #16121f;
  --plum-2: #221b33;
  --accent: #5b2bc4;
  --accent-hover: #4a22a4;
  --accent-soft: #efe9fb;
  --serif: "LD Serif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "LD Sans", "PingFang SC", "Noto Sans SC", "HarmonyOS Sans SC", "MiSans", -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  --gutter: clamp(20px, 5vw, 40px);
  --measure: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- 页头 */

.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 22px var(--gutter);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}

.brand img { border-radius: 9px; }

.head-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 15px;
}

.head-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, .82);
  transition: color .18s ease;
}

.head-nav a:hover { color: #fff; }

.head-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff !important;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.head-cta:hover { background: rgba(255, 255, 255, .24); }

@media (max-width: 620px) {
  .head-nav > a:not(.head-cta) { display: none; }
}

/* ---------------------------------------------------------------- 首屏 */

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--plum);
  color: #fff;
}

.hero picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 10, 22, .5) 0%, rgba(14, 10, 22, 0) 26%),
    linear-gradient(to top, rgba(12, 8, 20, .94) 0%, rgba(12, 8, 20, .74) 30%, rgba(12, 8, 20, .18) 62%, rgba(12, 8, 20, 0) 82%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 104px);
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  /* 标题是一整句，不是四字短语，字号按句长收紧，避免在窄屏挤成五行。 */
  font-size: clamp(1.95rem, 4.1vw, 3.3rem);
  line-height: 1.34;
  letter-spacing: .005em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 30em;
  margin: 26px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, .84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 34px;
}

/* 宽屏上人物也在画面下半部，文案整体上移一档，不压到人。 */
@media (min-width: 621px) {
  .hero-inner { padding-bottom: clamp(96px, 17vh, 180px); }
}

/* 手机上人物在照片下方三分之一，文案整体上移，避免按钮压在人身上。 */
@media (max-width: 620px) {
  .hero-inner { padding-bottom: clamp(120px, 22vh, 200px); }
  /* 标题是一整句，窄屏再降一档，保证每行都是完整的意群，不出现单字落行。 */
  .hero h1 { font-size: clamp(1.55rem, 6.2vw, 2rem); line-height: 1.42; }
  .hero-lede { font-size: .98rem; }
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-solid:hover { background: var(--accent-hover); }

.btn-ghost {
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

/* 下载按钮里的版本号：小一号、半透明，读起来是按钮的附注而不是第二个按钮。 */
.btn-version {
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

@media (max-width: 420px) {
  .btn-version { margin-left: 8px; font-size: 12px; padding: 2px 7px; }
}

.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------------- 功能 */

.features {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 108px) var(--gutter) clamp(40px, 8vw, 80px);
}

.section-title {
  margin: 0 0 clamp(36px, 6vw, 64px);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.4;
}

.spread {
  display: grid;
  /* 图占的栏比文字宽一点：手机示意图在 3:4 画框里按高度撑满，栏宽了才显得够大。 */
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  margin-bottom: clamp(64px, 9vw, 112px);
}

.spread-media { display: flex; justify-content: center; }

.spread-reverse .spread-media { order: 2; }

/* 每段配两张图：风景照和功能界面，自动轮播，也能点圆点切换。
   两张共用 9:16 的画框，切换时高度不跳。 */
.carousel {
  position: relative;
  /* 9:16 和手机屏幕一致：示意图铺满画框，风景图也按同一比例出图。
     高度封顶，避免在宽屏上把一段撑得比文字高出一大截。 */
  aspect-ratio: 9 / 16;
  /* 居中由外层 .spread-media 负责：反序段落要让手机靠右，不能被居中覆盖。 */
  width: min(100%, 380px);
  overflow: hidden;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .55s ease;
}

.carousel-slide.is-active { opacity: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* 手机示意图是透明底的完整手机外形，直接落在页面底色上，不加任何衬底。 */
.carousel-slide.is-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.carousel-slide.is-phone img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* 圆点做成一颗半透明胶囊，压在浅色照片上也看得清。 */
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 18, 26, .32);
  backdrop-filter: blur(6px);
}

.carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background-color .2s ease, width .2s ease;
}

.carousel-dots button.is-active {
  width: 16px;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}

/* 每组上面一个短标签，下面两条价值点：标题给结论，正文给细节。 */
.spread-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--muted);
}

.points { margin: 0; }

.points dt {
  margin: 26px 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.points dt:first-of-type { margin-top: 20px; }

.points dd {
  margin: 0;
  max-width: 26em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-3);
}

.spread-copy h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.45;
}

.spread-copy p {
  margin: 0;
  max-width: 26em;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-3);
}

@media (max-width: 780px) {
  .spread {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .spread-reverse .spread-media { order: 0; }
}

/* ---------------------------------------------------------------- 下载 */

.download {
  background: var(--plum);
  color: #fff;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
}

.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  max-width: var(--measure);
  margin: 0 auto;
}

.download h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.35;
}

.download-lede {
  max-width: 30em;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.85;
}

.release {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 0 0 28px;
  padding: 0;
}

.release div { display: flex; align-items: baseline; gap: 10px; }

.release dt {
  font-size: 13px;
  color: rgba(255, 255, 255, .52);
}

.release dd {
  margin: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .92);
}

.release-notes {
  max-width: 34em;
  margin: 0 0 28px;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, .18);
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .66);
  white-space: pre-line;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}

.download-alt {
  font-size: 15px;
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 2px;
}

.download-alt:hover { color: #fff; border-color: rgba(255, 255, 255, .7); }

.download-qr {
  text-align: center;
}

.download-qr img {
  width: 200px;
  height: 200px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

.download-qr p {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .6);
}

@media (max-width: 780px) {
  .download-inner { grid-template-columns: 1fr; }
  .download-qr { display: none; }
}

/* ---------------------------------------------------------------- 安装 */

.install {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(64px, 11vw, 120px) var(--gutter);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step) " / 3";
  position: absolute;
  top: -30px;
  left: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.steps h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.steps p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-3);
}

.install-note {
  margin: clamp(36px, 5vw, 56px) 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------------------------------------------------------------- 页脚 */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.foot-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px 40px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
}

.foot-brand img { border-radius: 7px; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 14.5px;
}

.foot-nav a {
  color: var(--ink-3);
  text-decoration: none;
}

.foot-nav a:hover { color: var(--accent); }

.foot-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 620px) {
  .foot-inner { grid-template-columns: 1fr; }
  .foot-nav { order: 3; }
}

/* ---------------------------------------------------------------- 政策页 */

.legal-page { background: var(--paper); }

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand-ink { color: var(--ink); }

.legal-back {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
}

.legal-back:hover { color: var(--accent); }

.legal {
  max-width: 46em;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter) clamp(64px, 9vw, 104px);
}

.legal h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.3;
}

.legal-meta {
  margin: 0 0 32px;
  font-size: 13.5px;
  color: var(--muted);
}

.legal-notice {
  margin: 0 0 40px;
  padding: 14px 18px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 14px;
  line-height: 1.75;
}

.legal h2 {
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.5;
}

.legal h3 {
  margin: 26px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.legal p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

.legal li {
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.legal strong { font-weight: 600; color: var(--ink); }

.legal a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.legal-foot {
  margin-top: 52px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
  line-height: 2 !important;
  color: var(--muted) !important;
}
