/* 页面加载骨架：顶栏对齐当前 gooey-nav，下方内容按页面变体区分 */
.chunse-page-shell {
  --shell-paper: #efe6da;
  --shell-ink: rgba(42, 36, 30, 0.12);
  --shell-ink-soft: rgba(42, 36, 30, 0.07);
  --shell-foam: #faf7f2;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 252, 247, 0.85), transparent 55%),
    linear-gradient(180deg, #f4ebe0 0%, var(--shell-paper) 42%, #e7dccf 100%);
  color: transparent;
}

/* 顶栏：品牌 + EN + 胶囊（宽度不一，不是同一块） */
.chunse-shell-nav {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem clamp(1rem, 3vw, 1.75rem);
  pointer-events: none;
  min-width: 0;
}

.chunse-shell-brand {
  color: #1e1a17;
  font-family: "Libre Bodoni", "Cormorant Infant", Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  padding-right: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.55;
}

.chunse-shell-lang {
  justify-self: end;
  width: 2.6rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--shell-foam);
  border: 1px solid rgba(42, 36, 30, 0.06);
  box-shadow: 0 2px 8px rgba(42, 36, 30, 0.06);
}

.chunse-shell-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.65rem;
  max-width: min(100%, 42rem);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--shell-foam);
  border: 1px solid rgba(42, 36, 30, 0.06);
  box-shadow:
    0 8px 24px rgba(42, 36, 30, 0.1),
    0 2px 6px rgba(42, 36, 30, 0.04);
  overflow: hidden;
}

.chunse-shell-pill i {
  display: block;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--shell-ink-soft);
}

.chunse-shell-pill i:nth-child(1) { width: 2.55rem; background: rgba(154, 82, 48, 0.55); }
.chunse-shell-pill i:nth-child(2) { width: 3.15rem; }
.chunse-shell-pill i:nth-child(3) { width: 2.75rem; }
.chunse-shell-pill i:nth-child(4) { width: 3.35rem; }
.chunse-shell-pill i:nth-child(5) { width: 2.2rem; }
.chunse-shell-pill i:nth-child(6) { width: 3.7rem; }

/* 主体：默认首页感大图 + 三块；联系/FAQ 各有不同排布 */
.chunse-shell-main {
  position: absolute;
  inset: 4.5rem 0 0;
  z-index: 1;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 100%),
    linear-gradient(var(--shell-ink), var(--shell-ink)),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft)),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft)),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft));
  background-size:
    40% 100%,
    min(92vw, 72rem) min(58vh, 32rem),
    min(26vw, 15rem) 8.5rem,
    min(26vw, 15rem) 8.5rem,
    min(26vw, 15rem) 8.5rem;
  background-position:
    -40% 0,
    50% 1.5rem,
    calc(50% - 17vw) calc(1.5rem + min(58vh, 32rem) + 1.5rem),
    50% calc(1.5rem + min(58vh, 32rem) + 1.5rem),
    calc(50% + 17vw) calc(1.5rem + min(58vh, 32rem) + 1.5rem);
  background-repeat: no-repeat;
  filter: blur(10px);
  transform: scale(1.02);
  opacity: 0.95;
  animation: chunse-shell-drift 1.8s ease-in-out infinite;
}

.chunse-shell-main--contact {
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 45%, transparent 100%),
    linear-gradient(var(--shell-ink), var(--shell-ink)),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft)),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft));
  background-size:
    40% 100%,
    min(92vw, 72rem) min(28vh, 16rem),
    min(52vw, 34rem) min(42vh, 24rem),
    min(28vw, 18rem) min(42vh, 24rem);
  background-position:
    -40% 0,
    50% 1.2rem,
    calc(50% - 16vw) calc(1.2rem + min(28vh, 16rem) + 1.4rem),
    calc(50% + 22vw) calc(1.2rem + min(28vh, 16rem) + 1.4rem);
}

.chunse-shell-main--faq {
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 45%, transparent 100%),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft)),
    linear-gradient(var(--shell-ink), var(--shell-ink)),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft)),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft)),
    linear-gradient(var(--shell-ink-soft), var(--shell-ink-soft));
  background-size:
    40% 100%,
    min(18rem, 50vw) 0.7rem,
    min(22rem, 60vw) 2rem,
    min(72vw, 48rem) 3.2rem,
    min(72vw, 48rem) 3.2rem,
    min(72vw, 48rem) 3.2rem;
  background-position:
    -40% 0,
    12% 2.5rem,
    12% 4rem,
    50% 8rem,
    50% 12.2rem,
    50% 16.4rem;
}

.chunse-page-shell::after {
  content: "LOADING";
  position: absolute;
  left: 50%;
  bottom: 12vh;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(42, 36, 30, 0.38);
  font-family: "Public Sans", "Noto Sans SC", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

@keyframes chunse-shell-drift {
  0%,
  100% {
    background-position:
      -40% 0,
      50% 1.5rem,
      calc(50% - 17vw) calc(1.5rem + min(58vh, 32rem) + 1.5rem),
      50% calc(1.5rem + min(58vh, 32rem) + 1.5rem),
      calc(50% + 17vw) calc(1.5rem + min(58vh, 32rem) + 1.5rem);
  }
  50% {
    background-position:
      120% 0,
      50% 1.5rem,
      calc(50% - 17vw) calc(1.5rem + min(58vh, 32rem) + 1.5rem),
      50% calc(1.5rem + min(58vh, 32rem) + 1.5rem),
      calc(50% + 17vw) calc(1.5rem + min(58vh, 32rem) + 1.5rem);
  }
}

@media (max-width: 1100px) {
  .chunse-shell-nav {
    grid-template-columns: auto 1fr auto;
  }
  .chunse-shell-lang {
    display: none;
  }
  .chunse-shell-pill {
    display: none;
  }
}

@media (max-width: 768px) {
  .chunse-shell-main--contact {
    background-size:
      40% 100%,
      min(92vw, 72rem) min(24vh, 12rem),
      min(88vw, 34rem) min(36vh, 18rem),
      0 0;
    background-position:
      -40% 0,
      50% 1.2rem,
      50% calc(1.2rem + min(24vh, 12rem) + 1.2rem),
      50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chunse-shell-main {
    animation: none;
  }
}

/* 导航切换遮罩也用同一套骨架 */
#gn-leave-veil {
  background: transparent;
}

#gn-leave-veil.is-on {
  background: transparent;
}

#gn-leave-veil .chunse-page-shell {
  min-height: 100%;
  height: 100%;
}
