/* ==========================================================================
   易游指南 · 共享站点样式 /assets/site.css
   主题：摊开的手绘路线图 —— 沙金、葡萄酒红、贺兰石青灰
   ========================================================================== */

/* ---------- 1. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; }

img, picture, svg, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --sand: #FFF8ED;
  --sand-2: #F7EAD8;
  --gold: #D9A24A;
  --gold-deep: #B77A25;
  --wine: #7A2333;
  --wine-deep: #4E1622;
  --wine-lift: #8E2B3D;
  --slate: #4F5D5E;
  --slate-light: #DCE3E0;
  --river: #B8874B;
  --ember: #FF9F1C;
  --ember-soft: #FFB443;
  --ink: #231A14;

  --font-display: "ZCOOL QingKe HuangYou", "站酷庆科黄油体", "ZCOOL KuaiLe",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "Archivo Black", Impact, "DIN Condensed", "Arial Narrow",
    var(--font-display);

  --shell-w: min(1180px, calc(100% - 2.5rem));
  --cut: 20px;
  --ease: cubic-bezier(.22, .68, .24, 1);
  --shadow-lift: 0 24px 48px -34px rgba(35, 26, 20, .6);
}

/* ---------- 3. 中文排版基础 ---------- */
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .02em;
  color: var(--wine-deep);
  margin-bottom: .6em;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .7vw, 1.5rem); }
h4 { font-size: 1.06rem; letter-spacing: .05em; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--wine);
  text-decoration-thickness: .06em;
  text-underline-offset: .2em;
  transition: color .2s var(--ease);
}
a:hover { color: var(--gold-deep); }

strong { font-weight: 700; color: var(--wine-deep); }

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

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 3px;
}
.header-route :focus-visible { outline-color: var(--sand); }
.site-footer :focus-visible { outline-color: #FFD9A0; }
.btn:focus-visible,
.header-cta:focus-visible,
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--ink);
}

/* ---------- 4. 容器与基础布局 ---------- */
.shell {
  width: var(--shell-w);
  margin-inline: auto;
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--slate { background: var(--slate-light); }

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.grid--split {
  grid-template-columns: minmax(200px, 4fr) minmax(0, 8fr);
}
.grid--halves {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--sand);
  box-shadow: 0 1px 0 rgba(183, 122, 37, .3), 0 14px 34px -30px rgba(35, 26, 20, .7);
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: 1rem;
  z-index: 200;
  padding: .7rem 1.15rem;
  background: var(--wine-deep);
  color: var(--sand);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--sand); }

.header-top {
  position: relative;
  background:
    radial-gradient(120% 200% at 4% -60%, rgba(217, 162, 74, .45), transparent 58%),
    radial-gradient(90% 180% at 96% -70%, rgba(184, 135, 75, .34), transparent 60%),
    var(--sand);
  border-bottom: 1px solid rgba(183, 122, 37, .28);
}

.header-top__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand__mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(150deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  background: var(--ember);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: .1em;
  color: var(--wine-deep);
}
.brand__note {
  font-size: .76rem;
  color: var(--slate);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.header-coords {
  font-family: var(--font-num);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--gold-deep);
  padding: .28rem .65rem;
  border: 1px dashed rgba(183, 122, 37, .55);
  border-radius: 999px;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  padding: .4rem .85rem;
  font-size: .84rem;
  letter-spacing: .04em;
  color: var(--slate);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.utility-link:hover {
  background: rgba(217, 162, 74, .2);
  color: var(--wine-deep);
}

.utility-link--accent {
  background: var(--wine);
  color: var(--sand);
  font-weight: 700;
}
.utility-link--accent:hover {
  background: var(--wine-lift);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
  padding: .55rem .9rem;
  background: var(--wine-deep);
  color: var(--sand);
  border: 1px solid rgba(255, 159, 28, .45);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .18s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { white-space: nowrap; }

.header-route {
  position: relative;
  background: linear-gradient(100deg, var(--wine-deep) 0%, var(--wine) 52%, #6b1e2d 100%);
  color: var(--sand);
}
.header-route::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 248, 237, .07) 0 1px,
    transparent 1px 15px
  );
  opacity: .65;
  pointer-events: none;
}

.header-route__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.primary-nav { min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .1rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .95rem .9rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .08em;
  color: rgba(255, 248, 237, .84);
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .45rem;
  height: 3px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 248, 237, .07); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: #FFD9A0; background: rgba(255, 248, 237, .09); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: none;
  padding: .62rem 1.15rem;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .08em;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.header-cta:hover {
  background: var(--ember-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.route-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 159, 28, .18);
  z-index: 2;
  pointer-events: none;
}
.route-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  transition: width .12s linear;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  color: rgba(255, 248, 237, .82);
  font-size: .95rem;
  background:
    radial-gradient(110% 80% at 88% -10%, rgba(217, 162, 74, .22), transparent 60%),
    radial-gradient(85% 70% at 0% 0%, rgba(142, 43, 61, .55), transparent 62%),
    var(--wine-deep);
  overflow: hidden;
}

.footer-ridge {
  height: 56px;
  background: var(--sand);
  clip-path: polygon(
    0 100%, 0 68%, 6% 44%, 12% 62%, 19% 30%, 26% 56%, 33% 38%, 41% 64%,
    48% 34%, 56% 58%, 63% 42%, 71% 66%, 78% 46%, 85% 68%, 92% 48%,
    100% 62%, 100% 100%
  );
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, .85fr) 1.25fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(1.75rem, 4vw, 2.75rem);
}

.footer-brand { min-width: 0; }

.footer-brand__line {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  letter-spacing: .03em;
  color: #FFF8ED;
  max-width: 24ch;
  margin-bottom: .9rem;
}

.footer-brand__meta {
  font-family: var(--font-num);
  font-size: .74rem;
  letter-spacing: .16em;
  color: rgba(217, 162, 74, .95);
  margin-bottom: 1rem;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #FFD9A0;
  font-size: .9rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding-bottom: .18rem;
  border-bottom: 1px solid rgba(255, 217, 160, .35);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-brand__link::after { content: "→"; }
.footer-brand__link:hover { color: #fff; border-bottom-color: var(--ember); }

.footer-col { min-width: 0; }

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .12em;
  color: #FFD9A0;
  margin-bottom: .85rem;
}

.footer-links {
  display: grid;
  gap: .5rem;
  font-size: .93rem;
}
.footer-links a {
  display: inline-block;
  padding-block: .1rem;
  color: rgba(255, 248, 237, .8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-links a:hover { color: #fff; border-bottom-color: var(--gold); }

.footer-contact { min-width: 0; }

.footer-contact__list {
  display: grid;
  gap: .7rem;
  font-size: .9rem;
}
.footer-contact__list li { display: grid; gap: .12rem; }

.footer-contact__label {
  font-size: .7rem;
  letter-spacing: .22em;
  color: rgba(255, 159, 28, .9);
}

.footer-contact__value {
  color: rgba(255, 248, 237, .86);
  line-height: 1.6;
  word-break: break-word;
}

.footer-legal {
  position: relative;
  border-top: 1px solid rgba(255, 248, 237, .16);
  background: rgba(0, 0, 0, .16);
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding-block: 1.05rem;
  font-size: .8rem;
  color: rgba(255, 248, 237, .62);
}

.footer-legal__text { margin: 0; }

.footer-legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.footer-legal__nav a {
  color: rgba(255, 248, 237, .72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-legal__nav a:hover { color: #FFD9A0; border-bottom-color: var(--gold); }

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .07em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.btn--ember { background: var(--ember); color: var(--ink); }
.btn--ember:hover { background: var(--ember-soft); color: var(--ink); transform: translateY(-2px); }

.btn--wine { background: var(--wine); color: var(--sand); }
.btn--wine:hover { background: var(--wine-lift); color: #fff; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--wine-deep);
  box-shadow: inset 0 0 0 2px rgba(122, 35, 51, .38);
}
.btn--ghost:hover {
  background: rgba(122, 35, 51, .08);
  color: var(--wine-deep);
  transform: translateY(-2px);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: 1.1rem .35rem;
  font-size: .82rem;
  color: var(--slate);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.breadcrumb__link {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 35, 51, .28);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.breadcrumb__link:hover { color: var(--gold-deep); border-bottom-color: var(--ember); }

.breadcrumb__sep {
  color: rgba(79, 93, 94, .5);
  font-family: var(--font-num);
}

.breadcrumb__current {
  color: var(--slate);
  font-weight: 700;
}

/* ---------- 9. 切角面板与标签 ---------- */
.cut-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(160deg, #FFFDF8 0%, var(--sand-2) 100%);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}
.cut-panel > :last-child { margin-bottom: 0; }

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem;
  background: rgba(217, 162, 74, .22);
  color: var(--wine);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  border-radius: 999px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.4rem;
  font-size: .84rem;
  color: var(--slate);
}

.legend__item {
  display: inline-flex;
  align-items: center;
}

.legend__dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: .45rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.legend__dot:nth-of-type(1) { background: var(--gold); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .75rem;
  background: rgba(79, 93, 94, .1);
  color: var(--slate);
  font-size: .8rem;
  letter-spacing: .04em;
  border-radius: 999px;
}

/* ---------- 10. 图片容器基础（页面阶段使用） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, var(--slate-light) 0%, #EFE3CE 52%, rgba(217, 162, 74, .85) 100%);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );
}
.media > img,
.media > picture > img,
.media > svg,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .45rem .85rem;
  background: rgba(78, 22, 34, .86);
  color: var(--sand);
  font-size: .74rem;
  letter-spacing: .12em;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--panorama { aspect-ratio: 32 / 9; }

/* ---------- 11. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1.5rem;
  }
}

@media (max-width: 900px) {
  .header-tools { display: none; }
  .nav-toggle { display: inline-flex; }

  .primary-nav { display: none; }
  .header-route__inner {
    flex-direction: column;
    align-items: stretch;
    padding-block: 0;
  }
  .site-header[data-open] .header-route__inner {
    padding-block: .55rem .75rem;
  }
  .site-header[data-open] .primary-nav { display: block; }
  .primary-nav[data-open] { display: block; }

  .nav-list { flex-direction: column; }
  .nav-item + .nav-item { border-top: 1px solid rgba(255, 248, 237, .12); }
  .nav-link {
    width: 100%;
    padding: .82rem .2rem;
    font-size: 1.05rem;
  }
  .nav-link::after {
    left: .2rem;
    right: auto;
    width: 30px;
    bottom: .5rem;
  }

  .header-cta { display: none; }
  .site-header[data-open] .header-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: .85rem;
  }

  .grid--split,
  .grid--halves { grid-template-columns: minmax(0, 1fr); }

  .media--tall { aspect-ratio: 4 / 5; }
}

@media (max-width: 640px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-contact__list { grid-template-columns: minmax(0, 1fr); }
  .footer-brand__line { max-width: none; }
  .footer-legal__inner { flex-direction: column; align-items: flex-start; }
  .media--panorama { aspect-ratio: 16 / 9; }
}

@media (max-width: 520px) {
  .brand__note { display: none; }
  .brand__name { font-size: 1.26rem; }
  .brand__mark { width: 38px; height: 38px; font-size: 1.15rem; }
  .header-top__inner { padding-block: .65rem; }
}

/* ---------- 13. 动效与可访问性偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .nav-link:hover,
  .header-cta:hover,
  .btn:hover { transform: none; }

  .route-progress__bar { transition: none; }
}
