@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #15202b;
  --ink-muted: #526274;
  --fog: #eef3f7;
  --sheet: #f7fafc;
  --glass: rgba(255, 255, 255, 0.68);
  --coral: #ff4f74;
  --coral-deep: #d93357;
  --teal: #14a3a0;
  --teal-deep: #0c7a78;
  --amber: #efb23a;
  --line: rgba(21, 32, 43, 0.1);
  --soft-shadow: 0 16px 42px rgba(21, 32, 43, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --nav-h: 64px;
  --promo-h: auto;
  --dock-h: auto;
  --max: 1120px;
  --font-display: "Ma Shan Zheng", "ZCOOL XiaoWei", cursive;
  --font-title: "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 79, 116, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 163, 160, 0.14), transparent 55%),
    linear-gradient(165deg, #f4f8fb 0%, #edf2f6 45%, #f8fafc 100%);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(21, 32, 43, 0.015) 11px,
      rgba(21, 32, 43, 0.015) 12px
    );
  z-index: 0;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-deep);
}

.folio-shell {
  position: relative;
  z-index: 1;
}

.folio-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 250, 252, 0.82);
  border-bottom: 1px solid var(--line);
}

.folio-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.folio-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.folio-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(217, 51, 87, 0.25);
}

.folio-brand strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.folio-brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  margin-top: -0.15rem;
}

.folio-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.folio-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.folio-links a:hover,
.folio-links a.is-on {
  background: rgba(255, 79, 116, 0.12);
  color: var(--coral-deep);
}

.folio-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.folio-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.promo-rail,
.dock-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.35rem;
  padding: 0.65rem 0.5rem;
  background: linear-gradient(90deg, rgba(255, 79, 116, 0.08), rgba(20, 163, 160, 0.1));
  border-bottom: 1px solid var(--line);
}

.promo-rail figure,
.dock-rail figure {
  margin: 0;
  width: 25%;
  max-width: 78px;
  text-align: center;
}

@media (min-width: 900px) {
  .promo-rail figure,
  .dock-rail figure {
    width: 12.5%;
  }
}

.promo-rail img,
.dock-rail img {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(21, 32, 43, 0.14);
  transition: transform 0.2s ease;
}

.promo-rail a:hover img,
.dock-rail a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.promo-rail figcaption,
.dock-rail figcaption {
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 70;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(21, 32, 43, 0.08);
}

.dock-wrap.is-shown {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.folio-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.folio-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.folio-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: soft-drift 18s ease-in-out infinite alternate;
}

.folio-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 32, 43, 0.25) 0%, rgba(21, 32, 43, 0.55) 48%, rgba(21, 32, 43, 0.88) 100%),
    radial-gradient(600px 320px at 80% 20%, rgba(255, 79, 116, 0.35), transparent 70%);
}

.folio-hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.1rem 3rem;
}

.folio-hero-copy .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.8rem;
}

.folio-hero h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.85rem, 5.2vw, 3.1rem);
  line-height: 1.25;
  font-weight: 700;
  max-width: 16ch;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: rise-in 0.9s ease both;
}

.folio-hero p {
  margin: 1rem 0 0;
  max-width: 36ch;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  animation: rise-in 1s ease 0.12s both;
}

.folio-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.chapter {
  margin: 2.4rem 0;
  padding: 1.6rem 0;
}

.chapter-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--coral-deep);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.65rem;
}

.chapter-mark::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
}

.chapter h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.35;
}

.chapter h3 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.15rem;
  color: var(--teal-deep);
}

.chapter p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-muted);
}

.split-band {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  margin: 1.2rem 0;
}

@media (min-width: 860px) {
  .split-band {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }

  .split-band.is-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split-band.is-flip .split-visual {
    order: 2;
  }
}

.split-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: #fff;
  isolation: isolate;
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 116, 0.35), transparent 70%);
  z-index: -1;
}

.split-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
}

@media (min-width: 860px) {
  .split-visual img {
    aspect-ratio: 3 / 4;
    max-height: 560px;
  }
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

@media (min-width: 760px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mosaic figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.mosaic figure:hover {
  transform: translateY(-6px);
}

.mosaic img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.mosaic figcaption {
  padding: 0.55rem 0.7rem 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.glass-board {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 760px) {
  .glass-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(21, 32, 43, 0.12);
}

.glass-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.glass-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.ribbon {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ribbon::-webkit-scrollbar {
  height: 6px;
}

.ribbon::-webkit-scrollbar-thumb {
  background: rgba(21, 32, 43, 0.18);
  border-radius: 999px;
}

.ribbon-item {
  flex: 0 0 72%;
  max-width: 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

@media (min-width: 760px) {
  .ribbon-item {
    flex-basis: 240px;
  }
}

.ribbon-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ribbon-item p {
  margin: 0;
  padding: 0.75rem 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.timeline {
  position: relative;
  padding-left: 1.3rem;
  border-left: 2px solid rgba(20, 163, 160, 0.35);
  margin: 1.2rem 0;
}

.timeline article {
  position: relative;
  margin: 0 0 1.4rem;
  padding: 0.2rem 0 0.2rem 0.4rem;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  box-shadow: 0 0 0 4px rgba(255, 79, 116, 0.15);
}

.quote-slab {
  margin: 1.6rem 0;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 79, 116, 0.1), rgba(20, 163, 160, 0.12)),
    var(--sheet);
  border: 1px solid var(--line);
  font-family: var(--font-title);
  font-size: 1.2rem;
  line-height: 1.7;
}

.cta-lane {
  margin: 2.2rem 0;
  padding: 1.6rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #15202b, #1f3648 55%, #0c7a78);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--soft-shadow);
}

.cta-lane p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.9);
}

.btn-coral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(217, 51, 87, 0.35);
  transition: transform 0.2s ease;
}

.btn-coral:hover {
  transform: translateY(-2px);
}

.crumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.crumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--coral-deep);
}

.crumb span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.page-hero {
  max-width: var(--max);
  margin: 0.6rem auto 0;
  padding: 1.4rem 1rem 0.4rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.page-hero p {
  margin: 0.7rem 0 0;
  color: var(--ink-muted);
  max-width: 52ch;
}

.legal-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

.legal-block section {
  margin: 1.6rem 0;
  padding: 1.2rem 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.legal-block h2 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
  font-family: var(--font-title);
}

.legal-block p,
.legal-block li {
  color: var(--ink-muted);
}

.legal-block ul {
  padding-left: 1.2rem;
}

.status-frame {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem 4rem;
}

.status-frame h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5.5rem);
  margin: 0;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status-frame p {
  max-width: 36ch;
  margin: 0.8rem auto 1.4rem;
  color: var(--ink-muted);
}

.folio-foot {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.folio-foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .folio-foot-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.folio-foot h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
}

.folio-foot a {
  display: inline-block;
  margin: 0.2rem 0;
  text-decoration: none;
  color: var(--ink-muted);
}

.folio-foot a:hover {
  color: var(--coral-deep);
}

.folio-copy {
  grid-column: 1 / -1;
  font-size: 0.84rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.4rem;
}

.inline-shot {
  float: right;
  width: min(42%, 220px);
  margin: 0 0 1rem 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.inline-shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .folio-menu-btn {
    display: inline-block;
  }

  .folio-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    background: rgba(247, 250, 252, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .folio-links.is-open {
    display: flex;
  }

  .inline-shot {
    float: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1rem;
  }
}
