:root {
  --cream: #fff8ee;
  --cream-soft: #fffdf8;
  --ink: #2d3748;
  --ink-soft: #3d4a5c;
  --muted: #718096;
  --sun: #ffd66b;
  --sky: #78c8ff;
  --coral: #ff8e72;
  --mint: #8adfb2;
  --cta-from: #2d3748;
  --cta-to: #3d5568;
  --white: #ffffff;
  --line: rgba(45, 55, 72, 0.1);
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav-h: 72px;
  --max: 1120px;
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  background: var(--cream);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 8% -10%, rgba(255, 214, 107, 0.28), transparent 58%),
    radial-gradient(900px 520px at 92% 0%, rgba(120, 200, 255, 0.24), transparent 55%),
    radial-gradient(700px 420px at 60% 100%, rgba(255, 142, 114, 0.12), transparent 50%),
    linear-gradient(180deg, var(--cream-soft), var(--cream));
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite alternate;
}

.glow--sun {
  width: 38vw;
  height: 38vw;
  min-width: 240px;
  min-height: 240px;
  top: -6%;
  left: -4%;
  background: radial-gradient(circle, rgba(255, 214, 107, 0.5), transparent 70%);
}

.glow--sky {
  width: 34vw;
  height: 34vw;
  min-width: 220px;
  min-height: 220px;
  top: 10%;
  right: -6%;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.45), transparent 70%);
  animation-delay: -5s;
}

.glow--coral {
  width: 28vw;
  height: 28vw;
  min-width: 200px;
  min-height: 200px;
  bottom: 12%;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 142, 114, 0.28), transparent 70%);
  animation-delay: -9s;
}

.spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2.5%, 3%, 0) scale(1.05); }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 238, 0.8);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 24px rgba(45, 55, 72, 0.04);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav__mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 32%, #fff8ee 0 28%, transparent 29%),
    linear-gradient(135deg, var(--sky), var(--coral));
  box-shadow: 0 8px 18px rgba(120, 200, 255, 0.28);
}

.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.nav__menu {
  display: flex;
  gap: 28px;
}

.nav__menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}

.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--sun));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--coral);
}

.nav__menu a:hover::after,
.nav__menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero__brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--ink);
  animation: rise 0.85s ease both;
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
  animation: rise 0.85s ease 0.08s both;
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--muted);
  animation: rise 0.85s ease 0.14s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.85s ease 0.2s both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--coral), #ff7a58);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(255, 142, 114, 0.32);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 142, 114, 0.4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border: 1px solid rgba(45, 55, 72, 0.12);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: #fff8ee;
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta__phone {
  margin: 18px 0 0 !important;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: rgba(238, 243, 247, 0.92) !important;
}

.cta__phone a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.cta__phone a:hover,
.cta__phone a:focus-visible {
  border-bottom-color: #fff;
}

/* Constellation visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  animation: rise 1s ease 0.16s both;
}

.constellation {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
}

.constellation__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orbit-line {
  stroke: rgba(120, 200, 255, 0.35);
  stroke-width: 1.2;
}

.orbit-line--a {
  stroke-dasharray: 6 8;
  animation: spin 28s linear infinite;
  transform-origin: 200px 200px;
}

.orbit-line--b {
  stroke: rgba(255, 142, 114, 0.28);
  animation: spin 36s linear infinite reverse;
  transform-origin: 200px 200px;
}

.arc-draw {
  stroke: url(#none);
  stroke: var(--sun);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawArc 3.2s ease-in-out infinite;
  opacity: 0.7;
}

.arc-draw--2 {
  stroke: var(--sky);
  animation-delay: 1.6s;
}

@keyframes drawArc {
  0% { stroke-dashoffset: 240; opacity: 0.2; }
  40% { stroke-dashoffset: 0; opacity: 0.8; }
  100% { stroke-dashoffset: -240; opacity: 0.2; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.constellation__core {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(160deg, #3d4a5c, #2d3748 55%, #4a6278);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow:
    0 20px 50px rgba(45, 55, 72, 0.18),
    0 0 0 12px rgba(255, 214, 107, 0.12);
  animation: corePulse 3.4s ease-in-out infinite;
  z-index: 2;
}

.constellation__core strong {
  position: relative;
  z-index: 1;
}

.constellation__pulse {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, 0.45);
  animation: pulseRing 3.4s ease-out infinite;
}

.constellation__pulse--delay {
  animation-delay: 1.1s;
  border-color: rgba(255, 142, 114, 0.35);
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes pulseRing {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.node {
  position: absolute;
  z-index: 3;
  will-change: transform;
}

.node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(45, 55, 72, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.node--1 { top: 6%; left: 40%; animation: floatY 3.6s ease-in-out infinite; }
.node--2 { top: 42%; right: 0; animation: floatY 4s ease-in-out infinite 0.3s; }
.node--2 span { background: rgba(120, 200, 255, 0.22); }
.node--3 { bottom: 8%; left: 38%; animation: floatY 3.4s ease-in-out infinite 0.6s; }
.node--3 span { background: rgba(255, 214, 107, 0.35); }
.node--4 { top: 42%; left: 0; animation: floatY 3.8s ease-in-out infinite 0.9s; }
.node--4 span { background: rgba(255, 142, 114, 0.22); }

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

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  background: var(--sun);
  box-shadow: 0 0 12px rgba(255, 214, 107, 0.7);
}

.dot--1 { animation: orbit 9s linear infinite; }
.dot--2 { background: var(--sky); box-shadow: 0 0 12px rgba(120, 200, 255, 0.7); animation: orbit 12s linear infinite reverse; }
.dot--3 { background: var(--coral); box-shadow: 0 0 12px rgba(255, 142, 114, 0.7); animation: orbit 7s linear infinite; animation-delay: -2s; }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(148px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(148px) rotate(-360deg); }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}

.section--muted {
  max-width: none;
  margin: 0;
  background: linear-gradient(180deg, rgba(120, 200, 255, 0.08), rgba(255, 248, 238, 0.35));
  border-block: 1px solid var(--line);
}

.section--muted .section__head,
.section--muted .feature-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section--muted .section__head,
.section--muted .feature-list {
  padding-left: 0;
  padding-right: 0;
}

.section--muted > .section__head,
.section--muted > .feature-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.section__head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: var(--ink);
  letter-spacing: 0.02em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

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

.product-block {
  padding: 8px 0 20px;
  border-top: 1px solid var(--line);
}

.product-block h3 {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.product-block p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.feature:first-child {
  border-top: 1px solid var(--line);
}

.feature__index {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coral);
  padding-top: 4px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--muted);
}

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

.scene {
  padding-top: 18px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--coral), var(--sun), var(--sky)) 1;
}

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

.scene p {
  margin: 0;
  color: var(--muted);
}

.cta {
  padding-top: 40px;
  padding-bottom: 96px;
}

.cta__panel {
  text-align: center;
  padding: 56px 28px;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(560px 220px at 80% 0%, rgba(120, 200, 255, 0.22), transparent 60%),
    radial-gradient(480px 200px at 10% 100%, rgba(255, 142, 114, 0.18), transparent 55%),
    linear-gradient(145deg, var(--cta-from), #35485a 55%, var(--cta-to));
  color: #eef3f7;
  box-shadow: 0 24px 60px rgba(45, 55, 72, 0.16);
}

.cta__panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #f8fafc;
}

.cta__panel > p {
  margin: 0 auto 24px;
  max-width: 32rem;
  color: rgba(238, 243, 247, 0.8);
}

.cta__domain {
  margin: 20px 0 0 !important;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.footer__brand span,
.footer__meta p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__meta {
  text-align: right;
}

.footer__beian {
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(45, 55, 72, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.footer__beian:hover,
.footer__beian:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

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

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 48px;
    gap: 24px;
  }

  .hero__visual {
    min-height: 300px;
    order: -1;
  }

  .constellation {
    width: min(100%, 320px);
  }

  .product-grid,
  .scene-strip {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  @keyframes orbit {
    from { transform: rotate(0deg) translateX(112px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(112px) rotate(-360deg); }
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 64px;
  }

  .nav__toggle {
    display: inline-block;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 20px;
    background: rgba(255, 253, 248, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(45, 55, 72, 0.06);
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__menu a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav__menu a::after {
    display: none;
  }

  .section {
    padding: 64px 20px;
  }

  .cta__panel {
    padding: 44px 20px;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__meta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow,
  .orbit-line--a,
  .orbit-line--b,
  .arc-draw,
  .constellation__core,
  .constellation__pulse,
  .node,
  .dot,
  .reveal,
  .hero__brand,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__visual {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
