/* ============ 雪径北疆 · 新疆旅行攻略 ============
   首屏关键样式：设计变量、基础重置、顶栏、首页头图、内页页头。
   完整样式见 style.css / guide.css / plan.css。 */

:root {
  /* 与主站同一套品牌色 */
  --paper: #F7F2E7;
  --paper-2: #EFE7D6;
  --cream: #F3EBDA;
  --ink: #17392F;
  --deep: #102E26;
  --deep-2: #0B241E;
  --accent: #3F6B54;
  --lime: #CDEF63;
  --peach: #B96A3C;

  --muted: rgba(23, 57, 47, .72);
  --dim: rgba(23, 57, 47, .48);
  --line: rgba(23, 57, 47, .15);
  --line-2: rgba(23, 57, 47, .32);
  --on-deep: #F3EBDA;
  --on-deep-muted: rgba(243, 235, 218, .7);
  --line-deep: rgba(243, 235, 218, .18);

  /* 兼容旧组件 */
  --tint: var(--paper-2);
  --card: transparent;
  --ink-soft: #2C5145;
  --radius: 0;
  --shadow: none;
  --shadow-lg: 0 24px 60px rgba(11, 36, 30, .18);
  --amber: var(--peach);
  --north: #3F6B54;
  --south: #A85B33;
  --east: #8A7233;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --num: "Bahnschrift", "DIN Alternate", "Helvetica Neue", var(--sans);

  --pad: clamp(20px, 3.4vw, 46px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

::selection { background: var(--lime); color: var(--deep); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lime);
  color: var(--deep);
  padding: 10px 16px;
  z-index: 300;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  transition: background .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck,
.page-inner .topbar {
  background: rgba(16, 46, 38, .975);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-deep);
}
.topbar-in {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--on-deep); }
span.brand-logo {
  display: inline-block;
  width: 19px;
  height: 26px;
  flex: none;
  background: currentColor;
  -webkit-mask: url('/assets/brand/lizy-l-line-mask.png') center / contain no-repeat;
  mask: url('/assets/brand/lizy-l-line-mask.png') center / contain no-repeat;
  filter: drop-shadow(0 0 .4px currentColor);
}
.brand-word { display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.brand-word b { font-size: 14.5px; font-weight: 600; letter-spacing: .16em; }
.brand-word i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(243, 235, 218, .5);
  border-left: 1px solid rgba(243, 235, 218, .2);
  padding-left: 12px;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(243, 235, 218, .66);
  padding: 4px 0;
  transition: color .25s;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width .28s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--on-deep); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav .nav-sep { width: 1px; height: 12px; background: rgba(243, 235, 218, .22); }
.nav-cta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--on-deep);
  border: 1px solid rgba(243, 235, 218, .34);
  border-radius: 999px;
  padding: 9px 17px;
  transition: background .25s, color .25s, border-color .25s;
}
.nav-cta:hover, .nav-cta.is-active { background: var(--lime); border-color: var(--lime); color: var(--deep); }
.nav-cta::after { display: none; }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--on-deep);
  transition: transform .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }

/* ---------- 首页头图 ---------- */
.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--on-deep);
  overflow: hidden;
  background: var(--deep);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.92) contrast(1.02);
  transform: scale(1.02);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 26, 21, .62) 0%, rgba(8, 26, 21, .16) 34%, rgba(8, 26, 21, .74) 74%, rgba(8, 26, 21, .96) 100%),
    linear-gradient(90deg, rgba(8, 26, 21, .45), transparent 62%);
}
.hero-in {
  position: relative;
  z-index: 2;
  padding-top: 128px;
  padding-bottom: 0;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: rgba(243, 235, 218, .72);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: var(--lime); }
.hero h1 {
  font-size: clamp(44px, 8.4vw, 128px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 600;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero-sub {
  margin-top: 26px;
  max-width: 40em;
  font-size: clamp(13.5px, 1.25vw, 15.5px);
  line-height: 1.95;
  color: rgba(243, 235, 218, .8);
}
.hero-sub b { color: var(--on-deep); font-weight: 600; }
.hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 34px;
}
.hero-jump a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--on-deep);
  border-bottom: 1px solid rgba(243, 235, 218, .4);
  padding-bottom: 4px;
  transition: color .25s, border-color .25s;
}
.hero-jump a:hover { color: var(--lime); border-color: var(--lime); }
.hero-jump a.primary { color: var(--deep); background: var(--lime); border: 1px solid var(--lime); padding: 11px 20px; border-radius: 999px; }
.hero-jump a.primary:hover { background: var(--cream); border-color: var(--cream); color: var(--deep); }

.hero-meta {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 7vh, 76px);
  border-top: 1px solid rgba(243, 235, 218, .18);
  background: rgba(8, 26, 21, .34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-meta-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero-meta-in > div {
  padding: 16px 0 18px;
  border-right: 1px solid rgba(243, 235, 218, .14);
}
.hero-meta-in > div:not(:first-child) { padding-left: 24px; }
.hero-meta-in > div:last-child { border-right: 0; }
.hero-meta-in span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: rgba(243, 235, 218, .5);
  margin-bottom: 3px;
}
.hero-meta-in b { font-size: 14.5px; font-weight: 500; letter-spacing: .02em; }

.hero-side {
  position: absolute;
  right: 16px;
  bottom: 128px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .28em;
  color: rgba(243, 235, 218, .42);
}

/* ---------- 内页页头 ---------- */
.phead {
  position: relative;
  padding: clamp(112px, 14vh, 156px) 0 clamp(38px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.phead-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--dim);
  margin-bottom: 30px;
}
.phead-crumb a:hover { color: var(--ink); }
.phead-crumb i { font-style: normal; opacity: .5; }
.phead h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(38px, 6.6vw, 92px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 600;
  text-wrap: balance;
}
.phead .lede {
  position: relative;
  z-index: 1;
  max-width: 52em;
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
}
.phead-num {
  position: absolute;
  right: var(--pad);
  top: 90px;
  font-family: var(--num);
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 600;
  line-height: .7;
  letter-spacing: -.06em;
  color: rgba(23, 57, 47, .06);
  pointer-events: none;
  user-select: none;
}
.phead-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.phead-toc a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(23, 57, 47, .58);
  transition: color .2s;
}
.phead-toc a:hover, .phead-toc a.is-active { color: var(--ink); }

/* ---------- 行程流程指示条 ---------- */
.flow {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.flow ol {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.flow ol::-webkit-scrollbar { display: none; }
.flow li { display: flex; align-items: center; flex: none; }
.flow li + li::before {
  content: "→";
  margin: 0 16px 0 4px;
  font-size: 10px;
  color: rgba(23, 57, 47, .26);
}
.flow a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--dim);
  white-space: nowrap;
  transition: color .2s;
}
.flow a i {
  font-style: normal;
  font-family: var(--num);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(23, 57, 47, .34);
}
.flow a:hover { color: var(--ink); }
.flow a:hover i { color: var(--accent); }
.flow li.is-now a { color: var(--ink); }
.flow li.is-now a i { color: var(--peach); }
.flow li.is-now a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--peach);
}
.flow li.is-near a i { color: var(--accent); }
.flow-note {
  margin: 0;
  padding: 12px 0 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}
.flow-note b { color: var(--ink); font-weight: 600; }

@media (max-width: 1080px) and (min-width: 721px) {
  .nav { gap: 14px; }
  .nav a { letter-spacing: .08em; }
  .nav-cta { padding: 8px 13px; }
}

@media (max-width: 900px) {
  .hero-meta-in { grid-template-columns: repeat(2, 1fr); }
  .hero-meta-in > div:nth-child(2) { border-right: 0; }
  .hero-meta-in > div:nth-child(3) { padding-left: 0; }
  .hero-side { display: none; }
  .phead-num { top: 70px; }
}

@media (max-width: 720px) {
  .topbar-in { height: 62px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--pad) 22px;
    background: var(--deep);
    border-bottom: 1px solid var(--line-deep);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(243, 235, 218, .1); font-size: 12px; }
  .nav .nav-cta { margin-top: 14px; width: auto; text-align: center; }
  .nav .nav-sep { display: none; }
  .hero { min-height: 88svh; }
  .hero-in { padding-top: 104px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 64px); }
  .phead { padding-top: 104px; }
  .phead-num { display: none; }
  .flow { margin-top: 20px; }
  .flow ol { flex-wrap: wrap; column-gap: 18px; row-gap: 2px; overflow: visible; }
  .flow li + li::before { content: none; }
  .flow a { font-size: 9.5px; letter-spacing: .08em; padding: 8px 0 9px; }
  .flow li.is-now a::after { bottom: 2px; }
  .flow-note { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
