:root {
  --bg-0: #04130d;
  --bg-1: #07291b;
  --bg-2: #10432b;
  --bg-3: #1f6d46;
  --line: rgba(165, 255, 208, 0.22);
  --text-main: #effff6;
  --text-soft: #cde9da;
  --accent: #89e8b6;
  --accent-2: #61c88f;
  --panel: rgba(6, 32, 22, 0.5);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --font-title: "Noto Serif SC", "STSong", "Songti SC", serif;
  --font-art: "Ma Shan Zheng", "KaiTi", "STKaiti", cursive;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text-main);
  background: radial-gradient(circle at 16% 14%, rgba(90, 186, 133, 0.25), transparent 34%),
    radial-gradient(circle at 84% 86%, rgba(67, 166, 115, 0.22), transparent 34%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

body {
  cursor: none;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

main {
  width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 58px 0 90px;
}

#webglBg {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.68;
  filter: saturate(1.12) contrast(1.08);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.25) 1px, transparent 0);
  background-size: 3px 3px;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.6;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: rgba(100, 238, 164, 0.23);
  top: -150px;
  left: -110px;
  animation: floatA 18s ease-in-out infinite;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: rgba(95, 207, 149, 0.24);
  right: -120px;
  top: 28vh;
  animation: floatB 22s ease-in-out infinite;
}

.orb-c {
  width: 420px;
  height: 420px;
  background: rgba(40, 110, 75, 0.5);
  bottom: -190px;
  left: 30%;
  animation: floatA 16s ease-in-out infinite reverse;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #3cab74, #7bf0b7, #c7ffe2);
  box-shadow: 0 0 16px rgba(138, 255, 195, 0.7);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 120;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(195, 255, 221, 0.95);
}

.cursor-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(165, 255, 207, 0.55);
  background: rgba(121, 240, 177, 0.08);
  transition: width 0.24s ease, height 0.24s ease, border-color 0.24s ease,
    background 0.24s ease;
}

.cursor-ring.is-hover {
  width: 66px;
  height: 66px;
  border-color: rgba(201, 255, 228, 0.85);
  background: rgba(132, 251, 187, 0.16);
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, 92vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 20, 13, 0.6);
  backdrop-filter: blur(14px);
  z-index: 80;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-tag {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.outline-btn {
  border: 1px solid rgba(176, 255, 217, 0.46);
  background: rgba(7, 44, 29, 0.64);
  color: var(--text-main);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 74px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(26px, 4.6vw, 68px);
}

.hero-signature {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.site-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.site-title-wrap {
  display: grid;
  gap: 2px;
}

.site-name-cn {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.08rem;
  color: #ecfff4;
  letter-spacing: 0.11em;
}

.site-name-en {
  margin: 0;
  font-size: 0.72rem;
  color: #bdeed4;
  letter-spacing: 0.2em;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b6f5d4;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
}

[data-split] {
  position: relative;
}

[data-split] .split-word {
  display: inline-flex;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(1.05em) scale(0.96);
  filter: blur(6px);
  will-change: transform, opacity;
  transition: transform 0.78s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.78s ease,
    filter 0.78s ease;
  transition-delay: calc(var(--word-index) * 0.07s);
}

[data-split].split-word-in .split-word {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

[data-split] .split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.36em) rotate(2deg);
  filter: blur(5px);
  will-change: transform, opacity;
  transition: transform 0.62s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.62s ease,
    filter 0.62s ease;
  transition-delay: calc(0.2s + var(--word-index) * 0.07s + var(--char-index) * 0.018s);
}

[data-split].split-char-in .split-char {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  filter: blur(0);
}

#heroTitle {
  margin: 14px 0 16px;
  font-family: var(--font-art);
  font-size: clamp(2.9rem, 6.7vw, 6rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  color: #ecfff4;
  text-shadow: 0 4px 24px rgba(116, 236, 171, 0.24);
  text-wrap: balance;
}

.hero-subtitle {
  margin: 0;
  max-width: 40ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.65;
}

.counter-panel {
  margin-top: 30px;
  width: fit-content;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 16px 18px;
}

.counter-panel span {
  display: block;
  font-size: 0.85rem;
  color: #bdeed4;
  margin-bottom: 6px;
}

.counter-panel strong {
  font-size: clamp(1.12rem, 2.3vw, 1.45rem);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 610px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s ease;
}

.hero-visual:hover img {
  transform: scale(1.1);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 31, 21, 0.35), rgba(4, 31, 21, 0.65));
}

.float-chip {
  position: absolute;
  border: 1px solid rgba(211, 255, 231, 0.34);
  background: rgba(8, 47, 30, 0.62);
  color: #ddffed;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-a {
  left: 24px;
  bottom: 26px;
  animation: pulse 3.4s ease-in-out infinite;
}

.chip-b {
  right: 22px;
  top: 22px;
  animation: pulse 3.4s ease-in-out 1.3s infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(7, 33, 22, 0.54);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-7px);
  border-color: rgba(206, 255, 227, 0.55);
}

.stat-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #d8ffee;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.duo-section {
  display: grid;
  gap: 32px;
}

.duo-card-min {
  padding: clamp(20px, 3vw, 32px);
}

.duo-card-min .duo-image {
  min-height: 420px;
}

.duo-card-min .duo-intro {
  max-width: 36ch;
  line-height: 1.75;
}

.duo-card-min .chip-list {
  margin-top: 14px;
}

.duo-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 28px;
  padding: 26px;
}

.duo-card.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.duo-card.reverse .duo-image {
  order: 2;
}

.duo-image {
  min-height: 470px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.duo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.duo-image:hover img {
  transform: scale(1.08);
}

.duo-content h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 8px 0 12px;
}

.duo-intro {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.95;
  color: var(--text-soft);
}

.chip-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 255, 220, 0.35);
  background: rgba(14, 56, 38, 0.5);
  font-size: 0.84rem;
}

.essence-section {
  padding-top: 24px;
}

.essence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.essence-card {
  padding: 24px;
}

.essence-card h3 {
  margin: 7px 0 14px;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.essence-list,
.essence-tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.essence-list {
  display: grid;
  gap: 10px;
}

.essence-list li {
  padding: 10px 0;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(178, 255, 218, 0.2);
}

.essence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.essence-tags li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(179, 255, 220, 0.35);
  background: rgba(14, 56, 38, 0.5);
  font-size: 0.9rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.timeline-shell {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
}

.timeline-rail {
  position: relative;
  width: 2px;
  margin: 14px auto;
  background: rgba(164, 255, 208, 0.2);
  border-radius: 999px;
}

.timeline-rail span {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(#8ff4be, #d6ffea);
  border-radius: inherit;
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  background: rgba(7, 35, 23, 0.54);
  transform: translateX(22px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 28px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8ff4be;
  box-shadow: 0 0 0 5px rgba(123, 240, 183, 0.15);
}

.timeline-date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #bdf9d8;
}

.timeline-title {
  margin: 7px 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
}

.timeline-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.favorite-panel {
  padding: 24px;
}

.favorite-panel h3 {
  margin: 8px 0 14px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.favorite-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.favorite-list li {
  border: 1px solid rgba(178, 255, 218, 0.26);
  background: rgba(14, 50, 34, 0.58);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.favorite-list li:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 255, 233, 0.5);
}

.favorite-title {
  font-size: 0.98rem;
}

.favorite-note {
  color: #b4e9cd;
  font-size: 0.82rem;
}

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
  padding: 14px 0;
}

.marquee {
  white-space: nowrap;
  display: inline-block;
  min-width: 200%;
  color: #bcf6d8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee 24s linear infinite;
}

.gallery-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 86px;
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  grid-column: span 2;
  grid-row: span 4;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(189, 255, 225, 0.2);
}

.gallery-item.tall {
  grid-row: span 6;
}

.gallery-item.wide {
  grid-column: span 4;
  grid-row: span 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.75s ease, filter 0.75s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
  filter: saturate(1.1) contrast(1.08);
}

.gallery-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(219, 255, 235, 0.45);
  background: rgba(3, 22, 14, 0.58);
}

.promise-section {
  text-align: center;
  padding: clamp(36px, 5vw, 62px);
}

.promise-section h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.promise-text {
  margin: 20px auto 0;
  max-width: 56ch;
  line-height: 2;
  color: var(--text-soft);
  font-size: 1.05rem;
  min-height: 4.4em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.85s ease, transform 0.85s ease, filter 0.85s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.tilt-card {
  will-change: transform;
  transition: transform 0.3s ease;
}

.tilt-card.is-tilting {
  transform: perspective(980px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
}

.magnetic {
  transition: transform 0.25s ease;
}

@keyframes floatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, 24px, 0) scale(1.08);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, -26px, 0) scale(1.09);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duo-card,
  .duo-card.reverse {
    grid-template-columns: 1fr;
  }

  .duo-card.reverse .duo-image {
    order: 0;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .essence-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 92px;
  }

  .gallery-item {
    grid-column: span 2;
    grid-row: span 3;
  }

  .gallery-item.tall {
    grid-row: span 5;
  }

  .gallery-item.wide {
    grid-column: span 4;
    grid-row: span 4;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 10px;
    width: 94vw;
    padding: 10px 13px;
  }

  .brand {
    font-size: 1rem;
  }

  .location-tag {
    display: none;
  }

  main {
    padding-top: 38px;
    width: 94vw;
  }

  .section {
    padding: 52px 0;
  }

  #heroTitle {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .hero-signature {
    margin-bottom: 10px;
  }

  .site-logo {
    width: 54px;
    height: 54px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline-shell {
    grid-template-columns: 24px 1fr;
    gap: 14px;
  }

  .timeline-item::before {
    left: -20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
