@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700&display=swap");

/* ── tokens ── */
:root {
  --ink: #070a10;
  --ink-soft: #5e6675;
  --paper: #f5f6f8;
  --line: #d9dee7;
  --cyan: #39d8ee;
  --blue: #126dff;
  --shadow: 0 28px 90px rgba(7, 10, 16, 0.18);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Alibaba PuHuiTi", "AlibabaPuHuiTi", "Noto Sans SC", "Source Han Sans SC", "思源黑体", "黑体", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; }

/* ── shared layout ── */
.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid rgba(217, 222, 231, 0.72);
  background: rgba(245, 246, 248, 0.78);
  backdrop-filter: blur(22px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(7, 10, 16, 0.08);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }

.brand-mark { width: 44px; height: 34px; object-fit: contain; flex: 0 0 auto; }

.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: 1.04rem; font-weight: 840; }
.brand small { color: var(--ink-soft); font-size: 0.74rem; white-space: nowrap; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #343b48;
  font-size: 0.95rem;
  font-weight: 760;
}

.desktop-nav a { position: relative; padding: 25px 0; }

.desktop-nav a::after {
  position: absolute;
  right: 0; bottom: 15px; left: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle, .mobile-menu { display: none; }

/* ── precision-health sub-hero ── */
.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sub-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 24px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.sub-hero-bg { position: absolute; inset: 0; z-index: -2; }
.sub-hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.precision-sub-hero { color: #fff; background: #03060b; }

.precision-sub-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(3, 6, 11, 0.94), rgba(3, 6, 11, 0.48), rgba(3, 6, 11, 0.18));
}

.sub-hero-copy { max-width: 760px; }
.sub-hero h1 { max-width: 900px; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; }
.sub-hero-copy p { max-width: 680px; color: rgba(248, 251, 255, 0.72); font-size: 1.18rem; }

/* ── precision-health sections ── */
.section { padding: 112px 0; }

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

.logic-card {
  min-height: 310px;
  padding: 28px;
  border: 1px solid rgba(217, 222, 231, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.logic-card span { display: inline-block; margin-bottom: 54px; color: var(--cyan); font-weight: 860; }
.logic-card p { color: var(--ink-soft); }

.dark-callout { color: #fff; background: #060a11; }

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: end;
}

.feature-band p { color: rgba(248, 251, 255, 0.66); font-size: 1.08rem; }

/* ── footer ── */
.site-footer {
  padding: 64px 0 54px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(1420px, calc(100% - 8vw));
  margin: 0 auto 0 max(4vw, calc((100% - 1420px) / 2));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand { text-decoration: none; }

.footer-verse {
  text-align: right;
}

.footer-verse p {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.8;
}

.footer-sign {
  margin-top: 8px !important;
  font-size: 0.82rem !important;
  color: rgba(0, 0, 0, 0.32) !important;
  letter-spacing: 0.06em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 30px;
}

.footer-grid > div { display: grid; align-content: start; gap: 8px; }
.footer-grid strong { color: #121824; }
.footer-grid span, .footer-grid a, .footer-grid p { margin: 0; color: var(--ink-soft); }

/* ── reveal ── */
.reveal { opacity: 0; transition: opacity 600ms ease; }
.reveal.is-visible { opacity: 1; }

/* ════════════════════════════════
   HOME — chaptered layout
════════════════════════════════ */
body[data-page="home"] { background: #000; }

.stage-header {
  height: 82px;
  padding-right: clamp(18px, 5vw, 96px);
  padding-left: clamp(18px, 5vw, 96px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  backdrop-filter: blur(28px);
}

.stage-header.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.stage-header .brand strong,
.stage-header .desktop-nav { color: #fff; }
.stage-header .brand small { color: rgba(255, 255, 255, 0.72); }
.stage-header .desktop-nav a::after { background: #fff; }
.stage-header .nav-toggle span { background: #fff; }

.home-stages { background: #000; }

.chapter {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 10vw, 132px) 0;
}

.chapter.is-dark { color: #fff; background: #000; }
.chapter.is-light { color: #030303; background: #fff; }

.stage-shell {
  position: relative;
  z-index: 2;
  width: min(1420px, calc(100% - 8vw));
  margin: 0 auto 0 max(4vw, calc((100% - 1420px) / 2));
}

.stage-image,
.stage-canvas,
.line-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage-image img { width: 100%; height: 100%; object-fit: cover; }

.stage-image-hero,
.stage-image-platform,
.stage-image-team { opacity: 0.9; }

.stage-image-hero::after,
.stage-image-platform::after,
.stage-image-team::after,
.precision-chapter::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.78));
}

.stage-image-platform img,
.stage-image-team img { object-position: 64% center; }
.stage-image-light { opacity: 0.58; }
.stage-image-light img { object-position: 72% center; }

/* ── hero ── */
.hero-stage { display: grid; gap: clamp(54px, 10vw, 132px); }

.hero-stage .hero-lockup {
  width: min(620px, 76vw);
  margin: 0;
  filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.38));
}

/* ── text hierarchy ── */

/* 1. 章节标签  —  小号等宽大写，统一所有章节 */
.stage-label {
  margin: 0 0 clamp(16px, 2.4vw, 36px);
  color: rgba(255, 255, 255, 0.5);
  font-family: "Cinzel", serif;
  font-size: clamp(1.76rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stage-label.is-dark { color: rgba(0, 0, 0, 0.4); }

/* 2. 章节主标题  —  h1 / h2 */
.chapter h1,
.chapter h2 { max-width: 1260px; margin: 0; letter-spacing: -0.01em; }

.chapter h1 { font-size: clamp(3rem, 6vw, 7.2rem); line-height: 0.96; font-weight: 900; }
.chapter h2 { font-size: clamp(2.2rem, 4.4vw, 5.6rem); line-height: 1.06; font-weight: 900; }

/* 3. 要点行  —  中等字号，章节正文核心信息 */
.stage-line {
  margin: clamp(14px, 2vw, 32px) 0 0;
  max-width: 1180px;
  font-size: clamp(1.2rem, 2.2vw, 2.8rem);
  line-height: 1.28;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
}

.chapter.is-light .stage-line { color: rgba(0, 0, 0, 1); }

.stage-line.is-strong {
  margin: clamp(32px, 5vw, 72px) 0 clamp(24px, 3.5vw, 56px);
  font-size: clamp(1.5rem, 2.8vw, 3.6rem);
  font-weight: 900;
  color: #fff;
}

.chapter.is-light .stage-line.is-strong { color: #000; }

/* 4. 说明段落  —  小一号，辅助文字 */
.stage-body {
  margin: clamp(20px, 3vw, 44px) 0 0;
  max-width: 900px;
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  line-height: 1.7;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.stage-body.is-dark { color: rgba(0, 0, 0, 0.8); }

/* ── stage-lines group (wetdry / precision) ── */
.stage-lines { margin-top: clamp(36px, 6vw, 88px); }
.stage-lines .stage-line + .stage-line { margin-top: clamp(12px, 1.8vw, 24px); }

/* ── stage-split (platform) ── */
.stage-split { margin-top: clamp(36px, 6vw, 86px); }

/* ── stage content width per section ── */
.stage-copy,
.platform-stage,
.wetdry-stage,
.media-stage,
.contact-intro { max-width: 1280px; }

.precision-stage { max-width: 1360px; }
.mission-stage h2 { max-width: 920px; line-height: 1.5; }
.media-stage { max-width: 1080px; }

/* ── scroll cue ── */
.stage-cue {
  position: absolute;
  right: clamp(20px, 5vw, 86px);
  bottom: 28px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

/* ── stage link ── */
.stage-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 58px);
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: rgba(0, 0, 0, 0.7);
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-link.light { color: rgba(255, 255, 255, 0.8); }
.stage-link:hover { opacity: 0.72; }

/* ── chapter-specific ── */
.mission-chapter { min-height: 100svh; align-items: start; padding-top: clamp(86px, 12vw, 180px); }
.wetdry-chapter { min-height: 104svh; align-items: start; }
.precision-chapter { min-height: 104svh; padding-top: clamp(88px, 10vw, 146px); }
.media-chapter { min-height: 100svh; }
.platform-chapter { min-height: 100svh; }
.team-chapter { min-height: 104svh; }
.contact-chapter { min-height: 100svh; align-items: start; padding-top: clamp(84px, 10vw, 154px); }

/* ── stage-visual (precision bg) ── */
.stage-visual { position: absolute; inset: 0; z-index: 0; }
.stage-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }

/* ── team ── */
.team-stage h2 { max-width: 1280px; }
.team-chapter .stage-shell { width: min(1400px, 100%); }

.team-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(42px, 6vw, 88px);
  justify-items: center;
}

.team-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #111;
}

.team-card div { min-height: 170px; padding: 18px 16px 20px; }
.team-card h3 { margin: 0; color: #fff; font-size: clamp(1.1rem, 1.4vw, 1.7rem); line-height: 1.1; font-weight: 800; }
.team-card p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; }
.team-card span { display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.42); font-size: 0.8rem; line-height: 1.5; }

/* ── contact ── */
.contact-stage { display: grid; gap: clamp(34px, 7vw, 110px); align-items: start; }
.email-stack { display: grid; gap: 28px; margin-top: clamp(30px, 5vw, 74px); }

.email-item { display: grid; gap: 6px; }

.email-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.58);
}

.email-stack a {
  width: fit-content;
  font-size: clamp(1.4rem, 2.4vw, 2.8rem);
  line-height: 1;
  font-weight: 700;
  opacity: 0.88;
}

.email-stack a:hover { opacity: 1; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1180px) {
  .team-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .desktop-nav { display: none; }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }

  .nav-toggle span {
    width: 19px;
    height: 2px;
    display: block;
    background: var(--ink);
    transition: transform 160ms ease;
  }

  .nav-toggle span + span { margin-top: -14px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    top: var(--header-h);
    right: 0; left: 0;
    z-index: 70;
    display: none;
    padding: 18px 22px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
  }

  body.menu-open .mobile-menu { display: grid; }

  .mobile-menu a { padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 820; }

  .logic-grid, .feature-band { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .stage-header { height: 68px; padding: 0 16px; }
  .stage-header .brand small { max-width: 180px; }

  .stage-header .mobile-menu,
  .mobile-menu { background: rgba(0, 0, 0, 0.96); color: #fff; border-bottom-color: rgba(255, 255, 255, 0.12); }

  .mobile-menu a { border-bottom-color: rgba(255, 255, 255, 0.12); }

  .chapter { min-height: auto; padding: 86px 0; }

  .hero-chapter,
  .mission-chapter,
  .precision-chapter,
  .team-chapter,
  .contact-chapter { min-height: 92svh; }

  .stage-shell { width: calc(100% - 32px); }
  .hero-stage { gap: 54px; }
  .hero-stage .hero-lockup { width: min(100%, 390px); }

  .chapter h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .chapter h2 { font-size: clamp(2rem, 9vw, 3.2rem); }

  .stage-line { font-size: clamp(1.1rem, 5.5vw, 1.9rem); }
  .stage-line.is-strong { font-size: clamp(1.3rem, 7vw, 2.2rem); }
  .stage-body { font-size: clamp(0.95rem, 4.5vw, 1.3rem); }

  .stage-image-hero img,
  .stage-image-platform img,
  .stage-image-team img { object-position: 72% center; }

  .stage-image-hero::after,
  .stage-image-platform::after,
  .stage-image-team::after,
  .precision-chapter::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.76)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.86));
  }

  .team-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .team-card div { min-height: 140px; padding: 14px 12px 16px; }
  .team-card p { font-size: 0.7rem; }
  .team-card span { font-size: 0.72rem; }

  .email-stack a { font-size: clamp(1.2rem, 6.5vw, 2rem); }
  .logic-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal { opacity: 1; }
}
