:root {
  --ink: #1c2430;
  --ink-soft: #3a4556;
  --paper: #fff8f2;
  --paper-2: #ffe8d6;
  --apricot: #f0783c;
  --apricot-deep: #d45a1f;
  --sage: #1f6f6a;
  --sage-soft: #3a9a93;
  --blush: #ffc9a8;
  --line: rgba(28, 36, 48, 0.1);
  --glass: rgba(255, 248, 242, 0.72);
  --shadow: 0 18px 50px rgba(28, 36, 48, 0.12);
  --radius: 22px;
  --max: 1120px;
  --nav-h: 64px;
  --font-display: "ZCOOL XiaoWei", "STKaiti", 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%, #ffd7b8 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #c8ebe6 0%, transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, #fff 45%, #fff5ec 100%);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--apricot-deep);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(240, 120, 60, 0.28);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
  gap: 22px;
  align-items: center;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--apricot), var(--sage));
  transition: width 0.25s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  width: 100%;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s ease;
}

.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 242, 0.96);
  padding: 12px 0 20px;
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}

.promo-block {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 14px;
}

.promo-block .promo-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.ad-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px 8px;
}

.ad-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.ad-chip img {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ad-chip:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.ad-chip span {
  display: block;
  margin-top: 4px;
  max-width: 100px;
  height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dock-dl {
  position: sticky;
  top: var(--nav-h);
  z-index: 70;
  display: none;
  padding: 10px 0;
  background: rgba(28, 36, 48, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#dock-dl.is-visible {
  display: block;
}

body.dock-on {
  scroll-padding-top: calc(var(--nav-h) + 96px);
}

#dock-ads {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}

#dock-ads .ad-chip {
  width: auto;
  color: rgba(255, 255, 255, 0.88);
}

#dock-ads .ad-chip img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(240, 120, 60, 0.28), transparent 70%);
  pointer-events: none;
  animation: pulse 7s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--sage);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--apricot);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.25;
  margin: 12px 0 16px;
  font-weight: 400;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 36em;
}

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.hero-glow {
  position: absolute;
  inset: auto 12% -20px 12%;
  height: 40px;
  background: rgba(240, 120, 60, 0.35);
  filter: blur(22px);
}

.section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  margin: 0 0 10px;
  font-weight: 400;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46em;
}

.prose p {
  margin: 0 0 1.1em;
  text-align: justify;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.6em 0 0.7em;
  color: var(--ink);
}

.mosaic {
  display: grid;
  gap: 18px;
}

.tile {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(28, 36, 48, 0.05);
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.tile p {
  margin: 0;
  color: var(--ink-soft);
}

.split {
  display: grid;
  gap: 24px;
  align-items: center;
}

.split-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.split-media img {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.split.reverse .split-media {
  order: -1;
}

.feature-strip {
  display: grid;
  gap: 14px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78%);
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.feature-card {
  scroll-snap-align: start;
  background: linear-gradient(160deg, #fff, #fff1e6);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 100%;
}

.feature-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.feature-card .body {
  padding: 16px 18px 20px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-band {
  margin: 20px 0;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(31, 111, 106, 0.92), rgba(240, 120, 60, 0.88)),
    var(--sage);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
}

.cta-band p {
  margin: 0 0 18px;
  opacity: 0.95;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(240, 120, 60, 0.1);
  color: var(--apricot-deep);
  font-size: 0.9rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--apricot-deep);
}

.stat span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--apricot-deep);
}

.page-hero {
  padding: 28px 0 10px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 8px 0 12px;
  font-weight: 400;
}

.legal {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px;
  margin: 18px 0 40px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 1.5em 0 0.6em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.2em;
}

.error-panel {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0 60px;
}

.error-panel .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--apricot), var(--sage));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: #1c2430;
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0 28px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffc9a8;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 18px 0;
}

.footer-copy {
  font-size: 0.86rem;
  opacity: 0.7;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease var(--d, 0ms), transform 0.55s ease var(--d, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-drawer {
    display: none !important;
  }

  #dock-ads {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }

  .mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .mosaic .tile.wide {
    grid-column: 1 / -1;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .split.reverse .split-copy {
    order: -1;
  }

  .feature-strip {
    grid-auto-columns: minmax(280px, 32%);
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .legal {
    padding: 36px 40px;
  }
}

@media (min-width: 1024px) {
  .mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .mosaic .tile.wide {
    grid-column: span 2;
  }
}
