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

:root {
  --ink: #12231f;
  --ink-soft: #2c4540;
  --foam: #e7f3f0;
  --paper: #f7fbfa;
  --coral: #e4573d;
  --coral-deep: #c43d28;
  --teal: #1a6b63;
  --teal-bright: #2a9a8f;
  --sun: #f2c14e;
  --mist: rgba(18, 35, 31, 0.06);
  --glass: rgba(247, 251, 250, 0.72);
  --shadow: 0 18px 48px rgba(18, 35, 31, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --nav-h: 64px;
  --promo-gap: 0px;
  --dock-h: 0px;
  --max: 1120px;
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 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(42, 154, 143, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(228, 87, 61, 0.14), transparent 55%),
    linear-gradient(180deg, #eef7f5 0%, var(--paper) 38%, #eef4f2 100%);
  line-height: 1.85;
  font-size: 16px;
  padding-top: calc(var(--nav-h) + var(--promo-gap));
  padding-bottom: calc(72px + var(--dock-h));
}

body.has-promo {
  --promo-gap: 118px;
}

body.dock-on {
  --dock-h: 96px;
}

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

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

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

.skip-jump {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-jump:focus {
  left: 12px;
}

/* Top promo strip */
.promo-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, rgba(26, 107, 99, 0.95), rgba(228, 87, 61, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 10px 6px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.promo-rail.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

body.has-promo.promo-scrolled {
  --promo-gap: 0px;
}

.promo-rail .orbit-ads {
  max-width: var(--max);
  margin: 0 auto;
}

.promo-rail .orbit-ads .caption {
  color: rgba(255, 255, 255, 0.92);
}

/* Header */
.mast-bar {
  position: fixed;
  top: var(--promo-gap);
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(18, 35, 31, 0.08);
  transition: top 0.25s ease, box-shadow 0.25s ease;
}

.mast-bar.is-solid {
  box-shadow: 0 8px 28px rgba(18, 35, 31, 0.08);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(26, 107, 99, 0.25);
}

.brand-mark span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.nav-links a:hover,
.nav-links a.is-here {
  background: rgba(26, 107, 99, 0.12);
  color: var(--teal);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(26, 107, 99, 0.12);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Sticky download dock */
.orbit-dock {
  position: fixed;
  top: calc(var(--promo-gap) + var(--nav-h));
  left: 0;
  right: 0;
  z-index: 990;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: rgba(247, 251, 250, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 35, 31, 0.08);
  padding: 8px 12px;
}

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

.orbit-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
  max-width: var(--max);
  margin: 0 auto;
}

.orbit-ads > div {
  width: 12.5%;
  min-width: 70px;
  max-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.orbit-ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.orbit-ads img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(18, 35, 31, 0.14);
  transition: transform 0.2s ease;
}

.orbit-ads a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.orbit-ads .caption {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 16px;
}

/* Layout shells */
.wrap-lane {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.crumb-trail {
  width: min(100% - 32px, var(--max));
  margin: 18px auto 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.crumb-trail a {
  text-decoration: none;
}

.crumb-trail span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Hero — diagonal ribbon composition */
.hero-ribbon {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h) - var(--promo-gap));
  display: grid;
  place-items: center;
  padding: 48px 0 64px;
}

.hero-ribbon::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto;
  height: 58%;
  background: linear-gradient(115deg, rgba(26, 107, 99, 0.18), rgba(228, 87, 61, 0.16) 55%, rgba(242, 193, 78, 0.2));
  transform: rotate(-6deg);
  border-radius: 40px;
  filter: blur(0.5px);
  animation: ribbon-drift 12s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  display: grid;
  gap: 28px;
  text-align: left;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin: 0;
  background: linear-gradient(120deg, var(--ink) 20%, var(--teal) 55%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-rise 0.9s ease both;
}

.hero-lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--ink-soft);
  animation: brand-rise 1s ease 0.12s both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  animation: brand-rise 0.8s ease both;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--coral);
}

@keyframes ribbon-drift {
  from { transform: rotate(-6deg) translateX(-1%); }
  to { transform: rotate(-5deg) translateX(2%); }
}

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

@keyframes float-soft {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* Section primitives — unique names */
.chapter-block {
  padding: 56px 0;
}

.chapter-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin: 0 0 14px;
  line-height: 1.3;
}

.chapter-block h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--teal);
}

.chapter-block p {
  margin: 0 0 1.05em;
  color: var(--ink-soft);
}

.ink-rule {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral), var(--sun));
  margin-bottom: 18px;
}

/* Text-only longform */
.scroll-prose {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(18, 35, 31, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.scroll-prose .pull-note {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  background: linear-gradient(90deg, rgba(228, 87, 61, 0.08), transparent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.5;
}

/* Asymmetric image + text */
.pair-slant {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.pair-slant.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.pair-slant.reverse .phone-stage {
  order: 2;
}

.pair-slant.reverse .pair-copy {
  order: 1;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px;
}

.phone-stage::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.35), transparent 70%);
  z-index: 0;
  animation: float-soft 4s ease-in-out infinite alternate;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(280px, 72vw);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  transition: transform 0.35s ease;
}

.phone-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-frame.tilt-right {
  transform: rotate(4deg);
}

.phone-frame.tilt-right:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}

/* Mosaic tiles */
.mosaic-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.mosaic-tile {
  grid-column: span 4;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(18, 35, 31, 0.06);
  box-shadow: 0 10px 28px rgba(18, 35, 31, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mosaic-tile:nth-child(3n + 1) {
  grid-column: span 5;
}

.mosaic-tile:nth-child(3n + 2) {
  grid-column: span 3;
}

.mosaic-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.mosaic-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.mosaic-tile .tile-body {
  padding: 16px 16px 20px;
}

.mosaic-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.mosaic-tile p {
  margin: 0;
  font-size: 0.95rem;
}

/* Feature pillars */
.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-card {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(231, 243, 240, 0.9));
  border: 1px solid rgba(26, 107, 99, 0.12);
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 87, 61, 0.2), transparent 70%);
}

.pillar-card h3 {
  margin-top: 0;
  position: relative;
}

.pillar-card p {
  position: relative;
  margin-bottom: 0;
}

.pillar-index {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(26, 107, 99, 0.35);
  line-height: 1;
  margin-bottom: 8px;
}

/* Timeline */
.lane-timeline {
  position: relative;
  padding-left: 28px;
}

.lane-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--coral), var(--sun));
}

.lane-node {
  position: relative;
  margin-bottom: 26px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  border: 1px solid rgba(18, 35, 31, 0.06);
}

.lane-node::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(228, 87, 61, 0.2);
}

.lane-node h3 {
  margin-top: 0;
}

/* Manifesto band */
.manifest-band {
  margin: 20px 0;
  padding: 42px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(125deg, rgba(18, 35, 31, 0.92), rgba(26, 107, 99, 0.88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff12' stroke-width='1'/%3E%3C/svg%3E");
  color: #f7fbfa;
  text-align: center;
}

.manifest-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.manifest-band p {
  color: rgba(247, 251, 250, 0.88);
  max-width: 40em;
  margin: 0 auto 1em;
}

/* CTA panel — not in hero/nav */
.invite-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, rgba(242, 193, 78, 0.25), rgba(228, 87, 61, 0.15), rgba(42, 154, 143, 0.2));
  border: 1px solid rgba(228, 87, 61, 0.2);
}

.invite-panel h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.invite-panel p {
  margin: 0;
  max-width: 36em;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  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 10px 24px rgba(228, 87, 61, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.action-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(228, 87, 61, 0.42);
  color: #fff !important;
}

/* Horizontal shelf */
.shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shelf-card {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(18, 35, 31, 0.06);
}

.shelf-card img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.shelf-card p {
  margin: 0;
  padding: 12px 14px 16px;
  font-size: 0.92rem;
}

/* Legal / utility pages */
.legal-shell {
  width: min(100% - 32px, 860px);
  margin: 12px auto 48px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 28px 22px 36px;
  border: 1px solid rgba(18, 35, 31, 0.06);
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 12px;
}

.legal-shell h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--teal);
}

.legal-shell p,
.legal-shell li {
  color: var(--ink-soft);
}

.legal-shell ul {
  padding-left: 1.2em;
}

/* Error pages */
.fault-stage {
  min-height: calc(100vh - var(--nav-h) - 160px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.fault-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--teal), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.fault-stage h1 {
  font-family: var(--font-display);
  margin: 8px 0 12px;
}

.fault-stage p {
  max-width: 28em;
  margin: 0 auto 22px;
  color: var(--ink-soft);
}

/* Footer */
.site-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(18, 35, 31, 0.04));
  border-top: 1px solid rgba(18, 35, 31, 0.08);
}

.foot-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-foot h3 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.site-foot p,
.site-foot a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li {
  margin-bottom: 8px;
}

.site-foot a {
  text-decoration: none;
}

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

.foot-copy {
  width: min(100% - 32px, var(--max));
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 35, 31, 0.08);
  font-size: 0.85rem;
  color: rgba(18, 35, 31, 0.55);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .pair-slant,
  .pair-slant.reverse {
    grid-template-columns: 1fr;
  }

  .pair-slant.reverse .phone-stage,
  .pair-slant.reverse .pair-copy {
    order: initial;
  }

  .pillar-row {
    grid-template-columns: 1fr;
  }

  .mosaic-tile,
  .mosaic-tile:nth-child(3n + 1),
  .mosaic-tile:nth-child(3n + 2) {
    grid-column: span 12;
  }

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

  .orbit-ads > div {
    width: 25%;
    min-width: 72px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(247, 251, 250, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-bottom: 1px solid rgba(18, 35, 31, 0.08);
  }

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

  .nav-links a {
    border-radius: 12px;
  }

  body.has-promo {
    --promo-gap: 132px;
  }

  body.dock-on {
    --dock-h: 110px;
  }

  .scroll-prose {
    padding: 22px 16px;
  }

  .invite-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
