/* ==========================================================================
   ZOKEY 中科苑 · 品牌官网
   ========================================================================== */

:root {
  --forest: #0b2c23;
  --forest-2: #123c2f;
  --forest-3: #1a4a39;
  --ink: #16231d;
  --cream: #f4eee2;
  --cream-2: #ebe1d0;
  --cream-3: #faf5ea;
  --muted: #617066;
  --gold: #dfb45a;
  --gold-2: #efd89d;
  --sage: #8fb59a;
  --coral: #d58d6a;
  --line: rgba(22, 35, 29, 0.16);
  --line-light: rgba(244, 238, 226, 0.24);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: clamp(22px, 5.6vw, 94px);
  --header-h: clamp(92px, 11.5vh, 126px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html.js {
  scroll-behavior: auto;
}

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

body.is-locked {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.25s;
}
.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   预加载
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--forest);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.preloader__logo {
  width: min(220px, 44vw);
  height: auto;
}
.preloader__line {
  width: 166px;
  height: 1px;
  background: rgba(244, 238, 226, 0.18);
  overflow: hidden;
}
.preloader__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  animation: loadLine 1.4s var(--ease) infinite;
}
.preloader p {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(244, 238, 226, 0.46);
}
@keyframes loadLine {
  0% { transform: scaleX(0); }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* --------------------------------------------------------------------------
   通用文字 / 按钮
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  color: rgba(244, 238, 226, 0.7);
  text-transform: uppercase;
}
.eyebrow__line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.eyebrow--gold {
  color: var(--gold-2);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 174px;
  padding: 15px 20px 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.55s var(--ease);
}
.btn span,
.btn i {
  position: relative;
  z-index: 1;
}
.btn i {
  font-style: normal;
  font-size: 17px;
  transition: transform 0.45s var(--ease);
}
.btn:hover i {
  transform: translate(2px, 2px);
}
.btn--cream {
  background: var(--cream);
  color: var(--forest);
}
.btn--cream::before {
  background: var(--gold);
}
.btn--cream:hover {
  color: var(--forest);
}
.btn--cream:hover::before {
  transform: translateY(0);
}
.btn--ghost {
  border-color: rgba(244, 238, 226, 0.35);
  color: var(--cream);
  background: rgba(244, 238, 226, 0.02);
}
.btn--ghost::before {
  background: var(--cream);
}
.btn--ghost:hover {
  color: var(--forest);
  border-color: var(--cream);
}
.btn--ghost:hover::before {
  transform: translateY(0);
}
.btn--dark {
  background: var(--forest);
  color: var(--cream);
}
.btn--dark::before {
  background: var(--gold);
}
.btn--dark:hover {
  color: var(--forest);
}
.btn--dark:hover::before {
  transform: translateY(0);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 6px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.text-link span {
  transition: transform 0.35s var(--ease);
}
.text-link:hover span {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 2.4vw;
  padding: 24px var(--gutter);
  color: var(--cream);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 24, 19, 0.5), transparent);
  opacity: 1;
  transition: opacity 0.5s;
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(244, 238, 226, 0.94);
  box-shadow: 0 1px 0 rgba(22, 35, 29, 0.12);
  padding-top: 14px;
  padding-bottom: 14px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header.is-solid::before {
  opacity: 0;
}
.site-header.is-quiet {
  transform: translateY(-102%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  line-height: 0;
}
.brand__logo {
  width: auto;
  height: clamp(46px, 4.6vw, 68px);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.brand:hover .brand__logo {
  transform: scale(1.025);
}
.brand__logo--dark {
  display: none;
}
.site-header.is-solid .brand__logo--light {
  display: none;
}
.site-header.is-solid .brand__logo--dark {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 2.9vw, 54px);
}
.site-nav--left {
  justify-self: end;
}
.site-nav--right {
  justify-self: start;
}
.site-nav__link {
  position: relative;
  padding: 9px 0;
  font-size: clamp(14px, 1.06vw, 16px);
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: inherit;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.site-nav__link:hover {
  opacity: 1;
}
.site-nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-self: start;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 12px 8px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  width: 26px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.menu-toggle span:last-child {
  width: 17px;
}
.menu-toggle:hover span:last-child {
  width: 26px;
}

.header-rule {
  position: absolute;
  left: var(--gutter);
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 92px;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
  opacity: 0.36;
  transition: opacity 0.4s;
}
.header-rule i {
  height: 1px;
  flex: 1;
  background: currentColor;
}
.site-header.is-solid .header-rule {
  opacity: 0.24;
  bottom: 7px;
}

/* --------------------------------------------------------------------------
   移动菜单
   -------------------------------------------------------------------------- */
.menu-drawer {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter) 32px;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-101%);
  transition: transform 0.75s var(--ease);
  visibility: hidden;
}
.menu-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
}
.menu-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.menu-drawer__top .brand__logo {
  height: 42px;
}
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.menu-close span {
  position: relative;
  width: 20px;
  height: 20px;
}
.menu-close span::before,
.menu-close span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 21px;
  height: 1px;
  background: currentColor;
}
.menu-close span::before {
  transform: rotate(45deg);
}
.menu-close span::after {
  transform: rotate(-45deg);
}
.menu-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 7vh, 64px) 0;
  gap: 2px;
}
.menu-drawer__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(22, 35, 29, 0.09);
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.menu-drawer__nav a span {
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.menu-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
}
.menu-drawer__foot p {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.menu-drawer__lineart {
  position: absolute;
  right: -12%;
  bottom: -6%;
  width: 64%;
  max-width: 420px;
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   首页主视觉
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  width: 100%;
}

.hero {
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--forest);
  isolation: isolate;
}
.hero-bg,
.hero-shade,
.hero-noise {
  position: absolute;
  inset: 0;
}
.hero-bg {
  z-index: -3;
  background: var(--forest);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.09);
  transition: transform 9s linear;
}
.hero-slide.is-active img {
  transform: scale(1.005);
}
.hero-slide--kitchen img {
  object-position: 50% 45%;
}
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 22, 17, 0.9) 0%, rgba(4, 22, 17, 0.64) 34%, rgba(4, 22, 17, 0.13) 68%, rgba(4, 22, 17, 0.46) 100%),
    linear-gradient(0deg, rgba(4, 22, 17, 0.92) 0%, rgba(4, 22, 17, 0.2) 42%, rgba(4, 22, 17, 0.12) 100%);
}
.hero-noise {
  z-index: -1;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3vw;
  padding: calc(var(--header-h) + 4vh) var(--gutter) 2vh;
}
.hero-main {
  max-width: min(820px, 64vw);
  padding-bottom: 4vh;
}
.hero-eyebrow {
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 7.9vw, 124px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--cream);
  white-space: pre-line;
  text-wrap: balance;
}
.hero-title span {
  display: inline-block;
}
.hero-title span:last-child {
  color: var(--gold-2);
}
.hero-sub {
  max-width: 520px;
  margin-top: clamp(22px, 3.2vh, 34px);
  color: rgba(244, 238, 226, 0.72);
  font-size: clamp(13px, 1.06vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.025em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 4vh, 42px);
}

.hero-mascot {
  position: absolute;
  z-index: 4;
  right: clamp(38px, 6.5vw, 118px);
  bottom: clamp(158px, 21vh, 238px);
  width: clamp(190px, 20vw, 330px);
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: left, top;
}
.hero-mascot:focus-visible,
.footer-ip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
}
.hero-mascot.is-dragging,
.footer-ip.is-dragging {
  cursor: grabbing;
}
.hero-mascot.is-reacting,
.footer-ip.is-reacting {
  animation: ipReact 0.58s var(--ease);
}
@keyframes ipReact {
  0% { transform: translateY(0) scale(1); }
  24% { transform: translateY(-12px) scale(1.035) rotate(-1.5deg); }
  52% { transform: translateY(1px) scale(0.99) rotate(1deg); }
  78% { transform: translateY(-4px) scale(1.012); }
  100% { transform: translateY(0) scale(1); }
}
.hero-mascot__halo {
  position: absolute;
  z-index: -1;
  left: -22%;
  top: -14%;
  width: 140%;
  aspect-ratio: 1;
  border: 1px dashed rgba(244, 238, 226, 0.28);
  border-radius: 50%;
  animation: rotateSlow 40s linear infinite;
  pointer-events: none;
}
.hero-mascot__halo::before,
.hero-mascot__halo::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-mascot__halo::before {
  top: 17%;
  left: 5%;
}
.hero-mascot__halo::after {
  bottom: 9%;
  right: 9%;
  width: 4px;
  height: 4px;
  opacity: 0.7;
}
.hero-mascot > img {
  width: 100%;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.38));
  animation: mascotFloat 7s ease-in-out infinite;
  transform-origin: 50% 85%;
  pointer-events: none;
}
.hero-mascot__tag {
  position: absolute;
  left: -12%;
  bottom: 19%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(11, 44, 35, 0.2);
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
  transform: rotate(-4deg);
  pointer-events: none;
}
.hero-mascot__tag span {
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero-mascot__tag strong {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.hero-mascot__quote {
  position: absolute;
  left: 8%;
  bottom: -18px;
  width: 100%;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 238, 226, 0.6);
  white-space: nowrap;
  pointer-events: none;
}

/* 小葵对话框 */
.ip-speech {
  position: absolute;
  z-index: 8;
  right: -4%;
  bottom: calc(100% - 4px);
  width: min(270px, 30vw);
  padding: 15px 19px;
  border: 1px solid rgba(11, 44, 35, 0.06);
  border-radius: 17px 17px 4px 17px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  font-family: var(--serif);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(9px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.32s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.ip-speech[hidden] {
  display: none;
}
.ip-speech.is-visible {
  opacity: 1;
  transform: none;
}
.ip-speech i {
  position: absolute;
  right: 24px;
  bottom: -9px;
  width: 0;
  height: 0;
  border-top: 10px solid var(--cream);
  border-left: 10px solid transparent;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.04));
}
.ip-action-image {
  transition: opacity 0.2s ease;
}
.ip-action-image.is-swapping {
  opacity: 0;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

.hero-bottom {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 38%);
  align-items: end;
  gap: 4vw;
  padding: 20px var(--gutter) 24px;
  border-top: 1px solid rgba(244, 238, 226, 0.17);
  background: linear-gradient(180deg, rgba(4, 22, 17, 0.06), rgba(4, 22, 17, 0.38));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.hero-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 22px;
}
.hero-service {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
}
.hero-service span {
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.hero-service strong {
  font-family: var(--serif);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(244, 238, 226, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-slide-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.hero-slide-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-slide-copy > span {
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.hero-slide-copy strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-slide-copy p {
  color: rgba(244, 238, 226, 0.56);
  font-size: 11px;
  line-height: 1.6;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-pager {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}
.hero-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(244, 238, 226, 0.55);
}
.hero-counter span:first-child {
  color: var(--cream);
  font-size: 15px;
}
.hero-counter i {
  width: 18px;
  height: 1px;
  background: rgba(244, 238, 226, 0.35);
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-dot {
  position: relative;
  width: 22px;
  height: 18px;
  padding: 0;
}
.hero-dot::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 8px;
  height: 1px;
  background: rgba(244, 238, 226, 0.35);
  transition: background 0.35s;
}
.hero-dot.is-active::before {
  background: var(--gold);
}
.hero-dot:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.hero-side-label {
  position: absolute;
  z-index: 4;
  left: 16px;
  bottom: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: rgba(244, 238, 226, 0.44);
}
.hero-side-label i {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(244, 238, 226, 0.45), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* 首屏入场 */
.js .hero-eyebrow,
.js .hero-title,
.js .hero-sub,
.js .hero-actions,
.js .hero-mascot,
.js .hero-bottom,
.js .hero-side-label,
.js .site-nav,
.js .brand {
  opacity: 0;
  transform: translateY(24px);
}
.is-loaded .hero-eyebrow,
.is-loaded .hero-title,
.is-loaded .hero-sub,
.is-loaded .hero-actions,
.is-loaded .hero-mascot,
.is-loaded .hero-bottom,
.is-loaded .hero-side-label,
.is-loaded .site-nav,
.is-loaded .brand {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.is-loaded .hero-title { transition-delay: 0.1s; }
.is-loaded .hero-sub { transition-delay: 0.2s; }
.is-loaded .hero-actions { transition-delay: 0.3s; }
.is-loaded .hero-mascot { transition-delay: 0.38s; }
.is-loaded .hero-bottom { transition-delay: 0.46s; }
.is-loaded .site-nav,
.is-loaded .brand { transition-delay: 0.05s; }

/* --------------------------------------------------------------------------
   章节：Z / K / Y
   -------------------------------------------------------------------------- */
.chapter {
  min-height: 100svh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}
.chapter-media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--forest);
  isolation: isolate;
}
.chapter-media__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.11);
  transition: transform 1.8s var(--ease);
}
.chapter.in-view .chapter-media__bg {
  transform: scale(1.005);
}
.chapter-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 23, 18, 0.48), transparent 24%),
    linear-gradient(0deg, rgba(5, 23, 18, 0.74), transparent 34%);
  pointer-events: none;
}
.chapter-media--light::after {
  background:
    linear-gradient(180deg, rgba(5, 23, 18, 0.2), transparent 24%),
    linear-gradient(0deg, rgba(5, 23, 18, 0.55), transparent 30%);
}
.chapter-media--data .chapter-media__bg {
  object-position: center top;
}
.chapter-media--data .chapter-media__label {
  display: none;
}
.chapter-media--data .chapter-letter {
  opacity: 0.24;
  -webkit-text-stroke-color: rgba(244, 238, 226, 0.45);
  -webkit-text-stroke-width: 1px;
}
.chapter-media--photo::after {
  background:
    linear-gradient(180deg, rgba(5, 23, 18, 0.68), rgba(5, 23, 18, 0.12) 24%, transparent 34%),
    linear-gradient(0deg, rgba(5, 23, 18, 0.64), rgba(5, 23, 18, 0.08) 40%, transparent 55%);
}
.chapter-media--photo .chapter-letter {
  opacity: 1;
  color: rgba(246, 224, 166, 0.035);
  -webkit-text-stroke: 2.2px rgba(246, 224, 166, 0.68);
  text-stroke: 2.2px rgba(246, 224, 166, 0.68);
}
.chapter-media--photo .chapter-media__label,
.chapter-media--photo .chapter-media__badge,
.chapter-media--photo .chapter-media__caption {
  color: rgba(255, 250, 238, 0.92);
}
.chapter-media__label {
  position: absolute;
  z-index: 3;
  top: calc(var(--header-h) + 3vh);
  left: clamp(24px, 3.6vw, 54px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  letter-spacing: 0.19em;
  color: rgba(244, 238, 226, 0.72);
}
.chapter-media__label i {
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.chapter-media__badge {
  position: absolute;
  z-index: 3;
  top: calc(var(--header-h) + 1.7vh);
  right: clamp(22px, 3.4vw, 48px);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(244, 238, 226, 0.4);
  border-radius: 50%;
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(244, 238, 226, 0.8);
}
.chapter-letter {
  position: absolute;
  z-index: 2;
  left: -0.045em;
  bottom: -0.2em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(380px, 44vw, 760px);
  font-weight: 700;
  line-height: 0.74;
  letter-spacing: -0.06em;
  color: rgba(244, 238, 226, 0.075);
  -webkit-text-stroke: 2px rgba(244, 238, 226, 0.52);
  text-stroke: 2px rgba(244, 238, 226, 0.52);
  pointer-events: none;
  user-select: none;
  transform: translate3d(0, 8%, 0);
  opacity: 0.9;
  transition: transform 1.8s var(--ease), opacity 1.2s;
}
.chapter.in-view .chapter-letter {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.chapter-media__caption {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 3.4vw, 48px);
  bottom: clamp(26px, 4.2vh, 50px);
  max-width: 280px;
  padding-left: 14px;
  border-left: 1px solid rgba(244, 238, 226, 0.5);
  color: rgba(244, 238, 226, 0.8);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.chapter-media__caption span {
  display: block;
  margin-bottom: 5px;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--gold-2);
}
.chapter-media__scroll {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 3.6vw, 54px);
  bottom: clamp(28px, 4.4vh, 52px);
  display: flex;
  align-items: center;
  gap: 11px;
  writing-mode: vertical-rl;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(244, 238, 226, 0.5);
}
.chapter-media__scroll i {
  width: 1px;
  height: 30px;
  background: rgba(244, 238, 226, 0.4);
}
.chapter-media__tint {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  background: var(--chapter-accent, var(--gold));
  opacity: 0.08;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* 宽幅照片：以画框方式完整呈现 */
.chapter-media--framed {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 5vh) clamp(28px, 4vw, 62px) 12vh;
  background: #0a271f;
}
.chapter-media--framed::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8%;
  background-image: var(--chapter-image);
  background-size: cover;
  background-position: center;
  filter: blur(42px) brightness(0.42) saturate(0.8);
  transform: scale(1.08);
  opacity: 0.7;
  pointer-events: none;
}
.chapter-media--framed::after {
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 23, 18, 0.46), rgba(5, 23, 18, 0.04) 30%, rgba(5, 23, 18, 0.06) 68%, rgba(5, 23, 18, 0.62));
}
.chapter-media--framed .chapter-media__bg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  transform: none;
  outline: 1px solid rgba(244, 238, 226, 0.28);
  outline-offset: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}
.chapter.in-view .chapter-media--framed .chapter-media__bg {
  transform: none;
}
.chapter-media--framed .chapter-letter {
  z-index: 2;
  font-size: clamp(330px, 38vw, 640px);
  bottom: -0.23em;
  -webkit-text-stroke-color: rgba(244, 238, 226, 0.34);
}
.chapter-media--framed .chapter-media__caption {
  bottom: clamp(22px, 3.4vh, 42px);
}
.chapter-media--framed .chapter-media__label {
  top: calc(var(--header-h) + 2.4vh);
}

.chapter-copy {
  position: relative;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 3.8vh) clamp(30px, 4.6vw, 82px) clamp(28px, 4.2vh, 58px);
  overflow: hidden;
  background:
    radial-gradient(90% 65% at 100% 0%, rgba(223, 180, 90, 0.12), transparent 60%),
    var(--cream);
}
.chapter-copy::before {
  content: "";
  position: absolute;
  left: clamp(22px, 4.6vw, 82px);
  top: calc(var(--header-h) + 0.6vh);
  width: 42px;
  height: 1px;
  background: var(--chapter-accent, var(--gold));
  opacity: 0.7;
}
.chapter-lineart {
  position: absolute;
  z-index: 0;
  right: -16%;
  top: 9%;
  width: 66%;
  max-width: 420px;
  opacity: 0.075;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.chapter-copy__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chapter-eyebrow {
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}
.chapter-heading {
  margin-top: clamp(18px, 2.8vh, 30px);
  font-family: var(--serif);
  font-size: clamp(37px, 3.55vw, 58px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: pre-line;
  text-wrap: balance;
}
.chapter-heading .big-char {
  display: inline-block;
  margin-right: 0.02em;
  font-size: 1.54em;
  line-height: 0.78;
  color: var(--chapter-accent, var(--gold));
  transform: translateY(0.06em);
  text-shadow: 0 10px 26px rgba(22, 35, 29, 0.08);
}
.chapter-desc {
  max-width: 30em;
  margin-top: clamp(18px, 2.6vh, 28px);
  color: #58665c;
  font-size: clamp(13px, 0.98vw, 15px);
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin-top: clamp(18px, 2.8vh, 28px);
  padding: 0;
  list-style: none;
}
.chapter-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(22, 35, 29, 0.15);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #4d5a50;
}
.chapter-tags li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--chapter-accent, var(--gold));
}
.chapter-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 27em;
  margin-top: clamp(18px, 2.7vh, 28px);
  padding-top: clamp(14px, 2vh, 20px);
  border-top: 1px solid rgba(22, 35, 29, 0.13);
  color: #4d5a50;
  font-family: var(--serif);
  font-size: clamp(12px, 0.88vw, 14px);
  line-height: 1.85;
  letter-spacing: 0.025em;
}
.chapter-note__mark {
  flex: 0 0 auto;
  margin-top: -7px;
  color: var(--chapter-accent, var(--gold));
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  opacity: 0.8;
}
.chapter-detail {
  margin-top: auto;
  padding-top: clamp(18px, 3vh, 32px);
}
.chapter-detail__frame {
  position: relative;
  height: clamp(138px, 20vh, 218px);
  overflow: hidden;
  background: #d8d0c1;
}
.chapter-detail__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 23, 18, 0.32));
  pointer-events: none;
}
.chapter-detail__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.chapter-detail__frame:hover img {
  transform: scale(1.045);
}
.chapter-detail__index {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 11px;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(244, 238, 226, 0.8);
}
.chapter-detail__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.chapter-detail__meta span:last-child {
  font-family: "Segoe UI", sans-serif;
  letter-spacing: 0.15em;
  color: var(--chapter-accent, var(--gold));
}

/* 滚动揭示 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease), transform 1.05s var(--ease);
  transition-delay: var(--delay, 0s);
}
.chapter.in-view .reveal,
.footer.in-view .reveal {
  opacity: 1;
  transform: none;
}
.chapter.in-view .chapter-detail {
  transition: opacity 1s var(--ease) 0.18s, transform 1s var(--ease) 0.18s;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.footer {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  isolation: isolate;
}
.footer::before {
  content: "ZOKEY";
  position: absolute;
  z-index: -1;
  left: -0.06em;
  bottom: -0.28em;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(180px, 25vw, 440px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 238, 226, 0.09);
}
.footer-glow {
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(223, 180, 90, 0.12), transparent 65%);
  pointer-events: none;
}
.footer-lineart {
  position: absolute;
  z-index: -1;
  right: 1%;
  bottom: 2%;
  width: clamp(260px, 28vw, 470px);
  opacity: 0.055;
  filter: invert(1);
  pointer-events: none;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  align-items: start;
  gap: 6vw;
  padding-top: calc(var(--header-h) + 5vh);
}
.footer-cta {
  max-width: 690px;
}
.footer-cta h2 {
  margin-top: clamp(20px, 3.2vh, 34px);
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 88px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--cream);
  white-space: pre-line;
}
.footer-cta > p:not(.eyebrow) {
  max-width: 480px;
  margin-top: clamp(18px, 2.6vh, 28px);
  color: rgba(244, 238, 226, 0.62);
  font-size: 14px;
  line-height: 1.9;
}
.footer-cta .btn {
  margin-top: clamp(22px, 3.4vh, 36px);
}

.footer-qr {
  justify-self: end;
  width: min(100%, 470px);
}
.footer-qr__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(244, 238, 226, 0.17);
}
.footer-qr__head h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.footer-qr__head span {
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(244, 238, 226, 0.42);
}
.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 20px);
  padding-top: 17px;
}
.qr-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(244, 238, 226, 0.17);
  background: rgba(244, 238, 226, 0.035);
  transition: border-color 0.35s, background 0.35s;
}
.qr-card:hover {
  border-color: rgba(223, 180, 90, 0.55);
  background: rgba(244, 238, 226, 0.06);
}
.qr-card__code {
  position: relative;
  width: clamp(76px, 7.2vw, 108px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--cream);
}
.qr-card__code img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-card__code span {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  padding: 1px 5px;
  background: var(--forest);
  color: var(--gold-2);
  font-size: 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.qr-card__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.qr-card__meta strong {
  font-family: var(--serif);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 500;
  white-space: nowrap;
}
.qr-card__meta span {
  color: rgba(244, 238, 226, 0.46);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.footer-qr__note {
  margin-top: 11px;
  color: rgba(244, 238, 226, 0.36);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.footer-ip {
  position: absolute;
  z-index: 1;
  left: 44.8%;
  bottom: 160px;
  width: clamp(140px, 15vw, 220px);
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: left, top;
}
.footer-ip img {
  width: 100%;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.32));
  animation: mascotFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.footer-ip__bubble {
  position: absolute;
  left: -20%;
  bottom: calc(100% + 12px);
  width: 190px;
  padding: 10px 14px;
  border: 1px solid rgba(244, 238, 226, 0.22);
  border-radius: 16px 16px 16px 3px;
  background: rgba(244, 238, 226, 0.07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(244, 238, 226, 0.72);
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease);
  pointer-events: none;
}
.footer-ip.is-talking .footer-ip__bubble {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.footer-info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 28px;
  margin-top: auto;
  padding: clamp(20px, 3.4vh, 34px) 0;
  border-top: 1px solid rgba(244, 238, 226, 0.17);
}
.footer-info__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.footer-info__item > span {
  color: rgba(244, 238, 226, 0.38);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-info__item strong,
.footer-info__item a {
  color: rgba(244, 238, 226, 0.84);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.footer-info__item a:hover {
  color: var(--gold-2);
}
.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(244, 238, 226, 0.12);
}
.footer-logo img {
  width: clamp(112px, 10vw, 146px);
  height: auto;
  opacity: 0.9;
}
.footer-copyright {
  color: rgba(244, 238, 226, 0.38);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(244, 238, 226, 0.38);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.footer-legal a {
  transition: color 0.3s;
}
.footer-legal a:hover {
  color: var(--gold-2);
}

/* --------------------------------------------------------------------------
   右侧章节导航 / 进度
   -------------------------------------------------------------------------- */
.page-rail {
  position: fixed;
  z-index: 55;
  right: clamp(14px, 1.75vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  transition: color 0.5s var(--ease);
}
.page-rail[data-theme="light"] {
  color: var(--cream);
}
.page-rail__line {
  position: relative;
  width: 1px;
  height: 68px;
  background: currentColor;
  opacity: 0.18;
  overflow: hidden;
}
.page-rail__line i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0.85;
}
.page-rail__dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.rail-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: inherit;
}
.rail-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.34;
  transition: opacity 0.35s, transform 0.45s var(--ease), border-radius 0.35s;
}
.rail-dot:hover::before {
  opacity: 0.8;
}
.rail-dot.is-active::before {
  opacity: 1;
  transform: scale(1.25);
  border-radius: 1px;
  box-shadow: 0 0 0 3px rgba(223, 180, 90, 0.16);
}
.rail-dot span {
  position: absolute;
  right: 100%;
  margin-right: 11px;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--forest);
  color: var(--cream);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.rail-dot:hover span,
.rail-dot:focus-visible span {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   预约弹窗
   -------------------------------------------------------------------------- */
.contact-modal {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 42px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 14, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.contact-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  width: min(1050px, 100%);
  max-height: min(88svh, 840px);
  overflow: auto;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(28px) scale(0.985);
  transition: transform 0.65s var(--ease);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.28);
}
.contact-modal.is-open .contact-modal__dialog {
  transform: none;
}
.modal-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 44, 35, 0.9);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}
.modal-close:hover {
  background: var(--forest-3);
}
.modal-close span {
  position: relative;
  width: 16px;
  height: 16px;
}
.modal-close span::before,
.modal-close span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 17px;
  height: 1px;
  background: currentColor;
}
.modal-close span::before {
  transform: rotate(45deg);
}
.modal-close span::after {
  transform: rotate(-45deg);
}
.contact-modal__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 580px;
  padding: clamp(30px, 4vw, 54px);
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 30% 15%, rgba(223, 180, 90, 0.2), transparent 65%),
    var(--forest);
  color: var(--cream);
}
.contact-modal__aside h2 {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.contact-modal__aside p:not(.eyebrow) {
  max-width: 290px;
  margin-top: 18px;
  color: rgba(244, 238, 226, 0.6);
  font-size: 12px;
  line-height: 1.85;
}
.contact-modal__aside img {
  align-self: flex-end;
  width: min(78%, 280px);
  margin-top: 30px;
  margin-bottom: -6px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.28));
  animation: mascotFloat 7s ease-in-out infinite;
}
.contact-modal__body {
  padding: clamp(38px, 4.6vw, 64px) clamp(26px, 4.4vw, 60px) clamp(28px, 4vw, 48px);
}
.contact-form__head > span {
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.contact-form__head h3 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
}
#contactForm {
  margin-top: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field > span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(22, 35, 29, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.7;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(22, 35, 29, 0.34);
}
.form-error {
  min-height: 18px;
  margin-top: 2px;
  color: #b65335;
  font-size: 11px;
}
.form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}
.form-footer p {
  max-width: 250px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.contact-success {
  padding: 50px 0 20px;
}
.contact-success__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-2);
  font-size: 23px;
}
.contact-success h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 30px;
}
.contact-success p {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.contact-success a {
  color: var(--forest);
  border-bottom: 1px solid currentColor;
}

/* --------------------------------------------------------------------------
   Toast / noscript
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 30px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.noscript {
  position: fixed;
  z-index: 500;
  left: 50%;
  top: 50%;
  width: min(420px, 88vw);
  padding: 30px;
  transform: translate(-50%, -50%);
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
}
.noscript a {
  border-bottom: 1px solid currentColor;
}

/* 焦点可见性 */
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .site-nav {
    gap: 20px;
  }
  .site-nav__link {
    font-size: 14px;
  }
  .hero-mascot {
    width: clamp(180px, 18vw, 280px);
  }
  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 36%);
  }
  .chapter-copy {
    padding-left: clamp(26px, 4vw, 48px);
    padding-right: clamp(26px, 4vw, 48px);
  }
  .chapter-heading {
    font-size: clamp(35px, 3.6vw, 52px);
  }
  .footer-ip {
    left: 45.4%;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 16px;
  }
  .site-nav__link {
    font-size: 13.5px;
  }
  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 40%);
  }
  .hero-services {
    gap: 8px 14px;
  }
  .hero-service strong {
    font-size: 13px;
  }
  .hero-slide-copy strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 15px;
    line-height: 1.4;
  }
  .hero-slide-copy p {
    display: none;
  }
  .hero-side-label {
    display: none;
  }
  .chapter-heading {
    font-size: clamp(32px, 3.5vw, 46px);
  }
  .chapter-copy {
    padding-top: calc(var(--header-h) + 3vh);
  }
  .chapter-detail__frame {
    height: clamp(126px, 17vh, 180px);
  }
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
    gap: 4vw;
  }
  .footer-ip {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 88px;
  }
  .site-nav {
    display: none;
  }
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .site-header__right {
    justify-self: end;
  }
  .menu-toggle {
    display: flex;
  }
  .header-rule {
    display: none;
  }
  .site-header.is-solid {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand__logo {
    height: 44px;
  }

  .hero {
    height: auto;
    min-height: 100svh;
  }
  .hero-inner {
    padding-top: calc(var(--header-h) + 6vh);
    padding-bottom: 0;
    align-items: flex-start;
  }
  .hero-main {
    max-width: 100%;
    padding-bottom: 0;
  }
  .hero-title {
    font-size: clamp(47px, 9vw, 82px);
  }
  .hero-sub {
    max-width: 88%;
  }
  .hero-mascot {
    position: absolute;
    right: var(--gutter);
    bottom: 16vh;
    width: clamp(130px, 18vw, 190px);
    opacity: 0.95;
  }
  .ip-speech {
    width: min(230px, 60vw);
    right: -2%;
    font-size: 12px;
  }
  .hero-mascot__quote {
    display: none;
  }
  .hero-mascot__tag {
    left: -23%;
    bottom: 8%;
    padding: 5px 9px;
  }
  .hero-mascot__tag strong {
    font-size: 12px;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 20px;
  }
  .hero-services {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-service strong {
    font-size: 12px;
  }
  .hero-slide-meta {
    align-items: center;
  }
  .hero-slide-copy p {
    display: none;
  }
  .hero-slide-copy strong {
    font-size: 15px;
  }

  .chapter {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(48svh, 52vh) auto;
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }
  .chapter-media {
    min-height: 0;
    height: 52vh;
  }
  .chapter-letter {
    font-size: clamp(250px, 58vw, 520px);
    bottom: -0.28em;
    opacity: 0.7;
  }
  .chapter-media__label {
    top: calc(var(--header-h) + 1.6vh);
  }
  .chapter-media__badge {
    display: none;
  }
  .chapter-media__caption {
    bottom: 22px;
    max-width: 220px;
    font-size: 10px;
  }
  .chapter-media__scroll {
    display: none;
  }
  .chapter-copy {
    min-height: 48svh;
    padding: 46px var(--gutter) 46px;
    overflow: visible;
  }
  .chapter-copy::before {
    top: 27px;
    left: var(--gutter);
  }
  .chapter-copy__content {
    height: auto;
  }
  .chapter-heading {
    font-size: clamp(36px, 5.6vw, 54px);
    margin-top: 20px;
  }
  .chapter-desc {
    max-width: 640px;
  }
  .chapter-detail {
    margin-top: 28px;
    padding-top: 0;
  }
  .chapter-detail__frame {
    height: 220px;
  }
  .chapter-lineart {
    width: 38%;
    right: -8%;
    top: -4%;
  }

  .footer {
    min-height: 100svh;
    padding: 0 var(--gutter);
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: calc(var(--header-h) + 5vh);
  }
  .footer-cta h2 {
    font-size: clamp(48px, 8.5vw, 76px);
  }
  .footer-qr {
    justify-self: stretch;
    width: 100%;
    max-width: 520px;
  }
  .footer-info {
    grid-template-columns: 1fr 1fr;
    gap: 24px 30px;
    margin-top: 56px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 14px 24px;
  }
  .footer-copyright {
    order: 3;
    width: 100%;
    text-align: left;
  }
  .footer-lineart {
    width: 50%;
    opacity: 0.045;
  }
  .page-rail {
    display: none;
  }
  .contact-modal__dialog {
    grid-template-columns: 1fr;
    max-height: 90svh;
  }
  .contact-modal__aside {
    min-height: auto;
    padding: 34px var(--gutter) 0;
    overflow: visible;
  }
  .contact-modal__aside h2 {
    margin-top: 18px;
    font-size: 32px;
  }
  .contact-modal__aside p:not(.eyebrow) {
    display: none;
  }
  .contact-modal__aside img {
    display: none;
  }
  .contact-modal__body {
    padding-top: 30px;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 22px;
  }
  .hero {
    min-height: 100svh;
  }
  .hero-inner {
    padding-top: calc(var(--header-h) + 4vh);
  }
  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 0.17em;
    margin-bottom: 18px;
  }
  .hero-title {
    font-size: clamp(42px, 13.2vw, 62px);
    line-height: 1.08;
  }
  .hero-sub {
    max-width: 100%;
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.8;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }
  .btn {
    min-width: 148px;
    padding: 13px 17px;
    gap: 20px;
    font-size: 12px;
  }
  .hero-mascot {
    width: 120px;
    right: 10px;
    bottom: 18vh;
    opacity: 0.9;
  }
  .ip-speech {
    width: 185px;
    right: 0;
    padding: 12px 14px;
    font-size: 11px;
    line-height: 1.65;
  }
  .hero-mascot__tag {
    left: -54%;
    bottom: -2%;
    white-space: nowrap;
  }
  .hero-mascot__halo {
    display: none;
  }
  .hero-services {
    display: none;
  }
  .hero-bottom {
    padding-top: 14px;
    padding-bottom: 16px;
  }
  .hero-slide-meta {
    gap: 14px;
  }
  .hero-slide-copy > span {
    font-size: 8px;
  }
  .hero-slide-copy strong {
    font-size: 13px;
    max-width: 190px;
  }
  .hero-pager {
    gap: 10px;
  }
  .hero-dot {
    width: 15px;
  }
  .hero-title span:last-child {
    display: inline;
  }

  .chapter {
    grid-template-rows: 46vh auto;
  }
  .chapter-media {
    height: 46vh;
  }
  .chapter-letter {
    font-size: 58vw;
    bottom: -0.22em;
    -webkit-text-stroke-width: 1px;
  }
  .chapter-media__label {
    left: var(--gutter);
    font-size: 8px;
  }
  .chapter-media__caption {
    right: var(--gutter);
    bottom: 16px;
    max-width: 170px;
    font-size: 9px;
    line-height: 1.65;
  }
  .chapter-copy {
    padding: 38px var(--gutter) 38px;
  }
  .chapter-copy::before {
    left: var(--gutter);
    top: 22px;
    width: 30px;
  }
  .chapter-eyebrow {
    font-size: 8px;
  }
  .chapter-heading {
    margin-top: 16px;
    font-size: clamp(30px, 9.2vw, 42px);
    line-height: 1.22;
  }
  .chapter-heading .big-char {
    font-size: 1.46em;
  }
  .chapter-desc {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.85;
  }
  .chapter-tags {
    margin-top: 17px;
    gap: 6px;
  }
  .chapter-tags li {
    padding: 6px 9px;
    font-size: 9px;
  }
  .chapter-detail {
    margin-top: 22px;
  }
  .chapter-detail__frame {
    height: 170px;
  }
  .chapter-detail__meta {
    font-size: 8px;
  }
  .chapter-lineart {
    width: 58%;
    right: -16%;
    opacity: 0.055;
  }

  .footer-main {
    gap: 40px;
    padding-top: calc(var(--header-h) + 4vh);
  }
  .footer-cta h2 {
    font-size: clamp(43px, 12vw, 62px);
  }
  .footer-cta > p:not(.eyebrow) {
    font-size: 12px;
  }
  .qr-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .qr-card__code {
    width: 100%;
  }
  .qr-card__meta strong {
    font-size: 13px;
  }
  .footer-info {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 38px;
    padding: 22px 0;
  }
  .footer-info__item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(244, 238, 226, 0.1);
  }
  .footer-info__item strong,
  .footer-info__item a {
    text-align: right;
    font-size: 11px;
  }
  .footer-bottom {
    padding-bottom: 22px;
  }
  .footer-logo img {
    width: 110px;
  }
  .footer-legal {
    gap: 12px;
    font-size: 8px;
  }
  .footer-legal a.back-top {
    display: none;
  }
  .modal-close {
    top: 12px;
    right: 12px;
  }
  .contact-modal {
    padding: 0;
    align-items: stretch;
  }
  .contact-modal__dialog {
    width: 100%;
    max-height: 100svh;
    min-height: 100svh;
    margin: 0;
  }
  .contact-modal__aside {
    padding-top: 58px;
    padding-bottom: 28px;
  }
  .contact-modal__aside h2 {
    font-size: 29px;
  }
  .contact-modal__body {
    padding: 26px var(--gutter) 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-footer .btn {
    width: 100%;
  }
  .toast {
    bottom: 20px;
    font-size: 11px;
    width: max-content;
    max-width: 90vw;
    text-align: center;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .chapter-copy {
    padding-top: calc(var(--header-h) + 1.5vh);
    padding-bottom: 22px;
  }
  .chapter-heading {
    font-size: clamp(31px, 3.1vw, 45px);
    margin-top: 14px;
  }
  .chapter-desc {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.75;
  }
  .chapter-tags {
    margin-top: 13px;
  }
  .chapter-detail__frame {
    height: 112px;
  }
  .chapter-detail {
    padding-top: 10px;
  }
  .chapter-detail__meta {
    margin-top: 6px;
  }
  .hero-title {
    font-size: clamp(52px, 7.2vw, 94px);
  }
  .hero-sub {
    margin-top: 18px;
  }
  .hero-actions {
    margin-top: 22px;
  }
  .footer-main {
    padding-top: calc(var(--header-h) + 1.5vh);
  }
  .footer-cta h2 {
    font-size: clamp(42px, 4.8vw, 66px);
    margin-top: 14px;
  }
  .footer-cta > p:not(.eyebrow) {
    margin-top: 12px;
    font-size: 12px;
  }
  .footer-cta .btn {
    margin-top: 16px;
  }
  .footer-info {
    padding: 16px 0;
  }
  .footer-bottom {
    padding: 14px 0 18px;
  }
}

/* 滚动吸附 */
@media (min-width: 901px) {
  html {
    scroll-snap-type: y proximity;
  }
  .panel {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-snap-type: none;
  }
}
