/* ============================================================
   全局设计系统
   ============================================================ */
:root {
  --ink:   #090A0E;
  --paper: #F0EDE7;
  --mute:  rgba(240, 237, 231, 0.52);
  --halo:  #4C7DFF;
  --ember: #B98250;
  --line:  rgba(240, 237, 231, 0.105);

  --font-display: "Fraunces", Georgia, "Songti SC", serif;
  --font-body: "Inter", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html { scroll-padding-top: 0; }

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

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

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

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

:focus-visible {
  outline: 2px solid var(--halo);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--halo); color: var(--ink); }

/* ---- shared bits ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 18px;
}

.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(110px, 17vh, 210px) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.section + .section {
  margin-top: clamp(72px, 9vh, 128px);
}
.hero + .section {
  margin-top: clamp(72px, 9vh, 128px);
}
.section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(236, 231, 221, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 231, 221, 0.035) 1px, transparent 1px);
  background-size: clamp(64px, 6.6vw, 92px) clamp(64px, 6.6vw, 92px);
  opacity: 0.55;
}
.section::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(12,12,16,0.84) 18%, rgba(12,12,16,0.84) 82%, var(--ink) 100%);
}
.section__ghost {
  position: absolute;
  top: 12%;
  right: max(-0.08em, calc(50% - 50vw + 24px));
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(76px, 16vw, 230px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: 0;
  color: rgba(236, 231, 221, 0.032);
  pointer-events: none;
  white-space: nowrap;
}
.section__head,
.about__inner,
.card-grid,
.marquee,
.video-grid,
.contact__links,
.contact__hint,
.contact__copy {
  position: relative;
  z-index: 1;
}
.works .section__ghost { top: 10%; }
.writing .section__ghost { top: 14%; right: max(-0.16em, calc(50% - 50vw + 16px)); }
.sharing .section__ghost { top: 10%; }
.contact .section__ghost { top: 16%; }

.section__head { margin-bottom: clamp(36px, 6vw, 64px); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

/* ============================================================
   Topbar + menu toggle
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 46px) clamp(28px, 5.2vw, 96px);
  mix-blend-mode: difference;
}

.brand {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px;
}
.menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 6px; width: 30px; }
.menu-toggle__bars i {
  height: 1.5px; width: 100%; background: #fff;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
body.menu-open .menu-toggle__bars i:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .menu-toggle__bars i:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================================
   Fullscreen menu
   ============================================================ */
.fullmenu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease), visibility 0s linear 0.7s;
  pointer-events: none;
  visibility: hidden;
}
body.menu-open .fullmenu { transform: translateY(0); pointer-events: auto; visibility: visible; transition: transform 0.7s var(--ease); }

.fullmenu__list { list-style: none; margin: 0; padding: 0; max-width: var(--maxw); margin-inline: auto; width: 100%; }
.fullmenu__list li { border-top: 1px solid var(--line); }
.fullmenu__list li:last-child { border-bottom: 1px solid var(--line); }
.fullmenu__list a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: clamp(14px, 2.4vw, 26px) 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 76px);
  font-weight: 400;
  color: var(--paper);
  transition: color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.fullmenu__list a:hover { color: var(--ember); padding-left: 14px; }
.fullmenu__en {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.fullmenu__foot {
  max-width: var(--maxw);
  margin: 40px auto 0;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

/* reveal stagger for menu items */
.fullmenu__list li { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
body.menu-open .fullmenu__list li { opacity: 1; transform: none; }
body.menu-open .fullmenu__list li:nth-child(1) { transition-delay: 0.15s; }
body.menu-open .fullmenu__list li:nth-child(2) { transition-delay: 0.22s; }
body.menu-open .fullmenu__list li:nth-child(3) { transition-delay: 0.29s; }
body.menu-open .fullmenu__list li:nth-child(4) { transition-delay: 0.36s; }
body.menu-open .fullmenu__list li:nth-child(5) { transition-delay: 0.43s; }

/* ============================================================
   5.1 Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(rgba(240, 237, 231, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 237, 231, 0.045) 1px, transparent 1px),
    var(--ink);
  background-size: clamp(72px, 6.65vw, 128px) clamp(72px, 6.65vw, 128px);
  color: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 42%, rgba(76, 125, 255, 0.16), transparent 29%),
    linear-gradient(90deg, rgba(9, 10, 14, 0.1), rgba(9, 10, 14, 0.42) 45%, rgba(9, 10, 14, 0.04));
  z-index: 1;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
body.sphere-dragging .hero__canvas { cursor: grabbing; }

.hero__overlay {
  position: absolute;
  left: clamp(48px, 5vw, 96px);
  top: clamp(150px, 22vh, 230px);
  bottom: auto;
  z-index: 2;
  max-width: min(980px, 78vw);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__overlay .eyebrow {
  color: var(--ember);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.hero__overlay .eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(240, 237, 231, 0.42);
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(60px, 11.6vw, 156px);
  line-height: 0.86;
  letter-spacing: 0;
  margin: 0 0 28px;
  color: var(--paper);
}
.hero__tagline {
  color: var(--mute);
  font-size: clamp(17px, 2.05vw, 26px);
  line-height: 1.45;
  margin: 0 0 34px;
  white-space: nowrap;
}
.hero__enter {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(255,255,255,0.035);
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.4s var(--ease), gap 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.hero__enter:hover { transform: translateY(-2px); gap: 14px; border-color: var(--halo); color: var(--halo); }
.hero__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(10px, 2.4vh, 26px);
  z-index: 3;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero__rail-track {
  display: flex;
  width: max-content;
  animation: hero-rail 24s linear infinite;
}
.hero__rail:hover .hero__rail-track { animation-play-state: paused; }
.hero__rail a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  margin: 0 11px;
  padding: 0 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--mute);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.24vw, 22px);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__rail a:hover {
  background: rgba(76, 125, 255, 0.12);
  color: var(--paper);
  transform: translateY(-2px);
}
@keyframes hero-rail { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   5.2 About — animated paragraph (逐句浮现)
   ============================================================ */
.about {
  align-items: stretch;
  background: #000;
}
.about::before {
  z-index: -3;
  background: #000;
  opacity: 1;
}
.about::after {
  z-index: -4;
  background: linear-gradient(180deg, #090A0E 0%, rgba(0,0,0,0.22) 20%, rgba(0,0,0,0.08) 74%, #090A0E 100%);
}
.about__moon {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 1;
  pointer-events: none;
  background: url("../assets/images/about-moon-cutout.png") center 50% / clamp(520px, 82vw, 1080px) auto no-repeat;
  opacity: 0;
  transform: translateY(44px) scale(1.04);
  will-change: opacity, transform;
}
.about__ghost {
  position: absolute;
  top: 8%;
  right: -0.08em;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: 0;
  color: rgba(236, 231, 221, 0.18);
  pointer-events: none;
}
.book-rails {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: clamp(28px, 4vw, 78px);
  padding-right: clamp(20px, 8vw, 160px);
  overflow: hidden;
  opacity: 0.74;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.book-rail {
  width: clamp(84px, 8vw, 132px);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid rgba(236, 231, 221, 0.055);
  border-right: 1px solid rgba(236, 231, 221, 0.03);
  transform: translateY(-14%);
}
.book-rail__set {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3.4vh, 42px);
  padding: clamp(18px, 3vh, 34px) 0;
  animation: book-rail-up 52s linear infinite;
}
.book-rail--down .book-rail__set {
  animation-name: book-rail-down;
  animation-duration: 58s;
}
.book-rail--slow .book-rail__set { animation-duration: 66s; }
.book-rail span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.2vw, 21px);
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: rgba(236, 231, 221, 0.34);
  white-space: nowrap;
}
@keyframes book-rail-up { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes book-rail-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.about__inner { z-index: 3; }
.about__inner { max-width: min(920px, 92vw); }
.about__id {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin: 0 0 28px;
}
.about__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.7vw, 33px);
  line-height: 1.6;
  margin: 0;
  max-width: none;
}
.about__text .clause { display: inline; }
.about__text .clause__i { display: inline-block; will-change: opacity, transform, filter; }

/* ============================================================
   Cards (Works / Writing / Sharing)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  max-height: none;
  overflow: visible;
}
.card-grid--text { grid-template-columns: repeat(3, 1fr); }
.card-grid--video { grid-template-columns: repeat(2, 1fr); }

/* Works card */
.work {
  display: flex;
  flex-direction: column;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.work:hover { transform: translateY(-4px); border-color: var(--ember); }
.work__cover { aspect-ratio: 16 / 10; overflow: hidden; background: #15151c; }
.work__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work:hover .work__cover img { transform: scale(1.04); }
.work__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work__title { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0; }
.work__desc { color: var(--mute); margin: 0; font-size: 15px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.work__tags span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute);
}
.work__links { display: flex; gap: 18px; margin-top: 8px; }
.work__link {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work:hover .work__link { color: var(--halo); border-color: var(--halo); }

/* Writing card */
.article {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.article:hover { transform: translateY(-4px); border-color: var(--ember); }
.article__title { font-family: var(--font-display); font-size: 21px; font-weight: 400; margin: 0; line-height: 1.25; }
.article__excerpt { color: var(--mute); font-size: 15px; margin: 0; flex: 1; }
.article__more {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--halo); display: inline-flex; gap: 6px; transition: gap 0.3s var(--ease);
}
.article:hover .article__more { gap: 12px; }

/* Video card */
.video { display: flex; flex-direction: column; gap: 14px; }
.video__frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000;
}
.video__title { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin: 0; }
.video__desc { color: var(--mute); font-size: 14px; margin: 0; }

/* ============================================================
   5.4 Writing — 三排横向跑马灯
   ============================================================ */
.marquee {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(20px, 5vh, 64px) 0 0;
  cursor: grab;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee.is-dragging { cursor: grabbing; }
.marquee__row { overflow: hidden; }
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__track--rev { }
.marquee__set { display: flex; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: clamp(64px, 7vw, 92px);
  min-width: clamp(280px, 30vw, 560px);
  margin: 0 clamp(12px, 1.7vw, 26px);
  padding: clamp(18px, 2.1vw, 28px) clamp(28px, 4vw, 64px);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.55vw, 25px);
  font-weight: 400;
  line-height: 1.22;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.chip:hover { color: var(--ink); background: var(--ember); border-color: var(--ember); }
.chip__a { font-family: var(--font-mono); font-size: clamp(13px, 1.1vw, 18px); color: var(--mute); transition: color 0.3s var(--ease); }
.chip:hover .chip__a { color: var(--ink); }
.chip--photo {
  min-width: clamp(220px, 22vw, 420px);
  width: clamp(220px, 22vw, 420px);
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #15151c;
}
.chip--photo img {
  width: 100%;
  height: clamp(64px, 7vw, 92px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.82;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}
.chip--photo:hover img { transform: scale(1.06); opacity: 1; }

/* ============================================================
   5.5 Sharing — 三列视频网格
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  max-height: none;
  overflow-y: visible;
  padding-right: 6px;
}
.vcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  min-width: 0;
}
.vcard__frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.vcard__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
}
.vcard__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.vcard__loading--fallback {
  inset: auto 14px 14px auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.64);
  color: var(--paper);
}
.vcard__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.28;
  font-weight: 400;
  margin: 0;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
.vcard:hover .vcard__frame { border-color: var(--ember); transform: translateY(-3px); }
.vcard:hover .vcard__frame img { transform: scale(1.04); opacity: 0.9; }
.vcard:hover .vcard__title { color: var(--ember); }

/* ============================================================
   Contact
   ============================================================ */
.contact { border-top: 1px solid var(--line); justify-content: center; }
.contact__links button.wx {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 400;
  background: none; border: none; color: var(--paper); cursor: pointer; padding: 0;
  transition: color 0.3s var(--ease);
}
.contact__links button.wx:hover { color: var(--ember); }
.contact__hint { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--mute); margin: 0 0 28px; }
.contact__links { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.contact__links a {
  font-family: var(--font-display); font-size: clamp(22px, 4vw, 40px); font-weight: 400;
  transition: color 0.3s var(--ease);
}
.contact__links a:hover { color: var(--ember); }
.contact__copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--mute); margin: 0; }

.site-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
}
.site-chatbot__button {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background:
    url("../assets/images/dify-chat-avatar.jpg") center / cover no-repeat,
    var(--ink) !important;
  border: 1px solid rgba(240, 237, 231, 0.28) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5) !important;
  cursor: pointer;
  overflow: hidden !important;
  padding: 0;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-chatbot__button:hover {
  border-color: var(--ember) !important;
  transform: translateY(-2px);
}
.site-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(24rem, calc(100vw - 28px)) !important;
  height: min(40rem, calc(100svh - 96px)) !important;
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid rgba(240, 237, 231, 0.18);
  background: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}
.site-chatbot__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.site-chatbot__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(240, 237, 231, 0.22);
  border-radius: 50%;
  background: rgba(9, 10, 14, 0.72);
  color: var(--paper);
  cursor: pointer;
  font-size: 20px;
  line-height: 24px;
}
@media (max-width: 560px) {
  .site-chatbot {
    right: 14px;
    bottom: 14px;
  }
  .site-chatbot__button {
    width: 58px !important;
    height: 58px !important;
  }
  .site-chatbot__panel {
    right: -2px;
    bottom: 70px;
  }
}

/* ============================================================
   Reveal (GSAP toggles .is-in; CSS fallback if no JS)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .card-grid, .card-grid--text, .card-grid--video { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__overlay {
    left: clamp(28px, 7vw, 56px);
    right: clamp(28px, 7vw, 56px);
    top: clamp(120px, 17vh, 160px);
    max-width: 78vw;
  }
  .hero__name { font-size: clamp(50px, 15vw, 86px); }
  .hero__tagline { font-size: clamp(13px, 3.6vw, 16px); }
  .book-rails { opacity: 0.28; gap: 20px; padding-right: 12px; }
  .book-rail { width: 72px; }
  .book-rail:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .menu-toggle__label { display: none; }
  .fullmenu__list a { gap: 12px; }
  .fullmenu__en { display: none; }
  .hero { min-height: 680px; }
  .hero__overlay { top: 118px; }
  .hero__overlay .eyebrow { font-size: 10px; gap: 12px; max-width: 82vw; }
  .hero__name { font-size: clamp(52px, 16vw, 72px); }
  .hero__tagline { font-size: clamp(12px, 4vw, 15px); }
  .hero__rail a { min-height: 56px; padding: 0 24px; font-size: 13px; }
  .book-rails { opacity: 0.18; }
  .chip {
    min-width: 78vw;
    white-space: normal;
    text-align: center;
  }
  .chip--photo {
    min-width: 64vw;
    width: 64vw;
  }
  .video-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html.lenis { scroll-behavior: auto; }
  /* 跑马灯改为可手动横向滚动 */
  .marquee__track { animation: none !important; transform: none !important; width: auto; }
  .marquee__row { overflow-x: auto; }
  .marquee__set:not(:first-child) { display: none; }
  .book-rail__set { animation: none !important; }
  .about__text .clause__i { opacity: 1 !important; transform: none !important; }
}
