:root {
  --bg: #030712;
  --bg-elevated: #07101f;
  --ink: #e8f1ff;
  --muted: rgba(200, 220, 245, 0.68);
  --line: rgba(96, 180, 255, 0.18);
  --accent: #3aa0ff;
  --accent-soft: rgba(58, 160, 255, 0.14);
  --glow: rgba(56, 189, 255, 0.35);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 18px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(30, 90, 180, 0.28), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(18, 70, 140, 0.2), transparent 50%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(3, 7, 18, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(58, 160, 255, 0.35), 0 0 24px rgba(58, 160, 255, 0.25);
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.35) 0%, transparent 28%, transparent 72%, rgba(3, 7, 18, 0.55) 100%);
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, #7ec8ff 0%, #3aa0ff 55%, #1f7fe0 100%);
  box-shadow: 0 10px 40px rgba(58, 160, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 48px rgba(58, 160, 255, 0.4);
}

.btn-ghost {
  color: var(--ink);
  border-color: rgba(180, 210, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(122, 190, 255, 0.55);
  background: rgba(58, 160, 255, 0.1);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 1;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  animation: rise 1s ease 0.7s both;
}

.sound-toggle {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 1.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  border: 1px solid rgba(180, 210, 255, 0.28);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(5, 12, 24, 0.55);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sound-toggle:hover {
  background: rgba(58, 160, 255, 0.16);
  border-color: rgba(122, 190, 255, 0.55);
  box-shadow: 0 0 24px rgba(58, 160, 255, 0.18);
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sound-toggle .icon-unmuted {
  display: none;
}

.sound-toggle:not(.is-muted) .icon-muted {
  display: none;
}

.sound-toggle:not(.is-muted) .icon-unmuted {
  display: block;
}

.sound-label {
  opacity: 0.85;
}

.scroll-hint i {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: drip 1.8s ease-in-out infinite;
}

.services,
.method,
.contact {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.section-head h2,
.method-copy h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.section-desc,
.method-copy > p,
.contact-panel > p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-item {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border-top: 1px solid rgba(122, 190, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(58, 160, 255, 0.08), transparent 42%),
    rgba(7, 16, 31, 0.55);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  opacity: 0;
  transform: translateY(24px);
}

.service-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 0.12s);
}

.service-item:hover {
  border-top-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(58, 160, 255, 0.14), transparent 48%),
    rgba(10, 22, 42, 0.8);
  transform: translateY(-4px);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(122, 190, 255, 0.28);
  border-radius: 14px;
  color: #8fd0ff;
  background:
    radial-gradient(circle at 30% 25%, rgba(120, 200, 255, 0.18), transparent 60%),
    rgba(58, 160, 255, 0.06);
  box-shadow: inset 0 0 20px rgba(58, 160, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.module-icon svg {
  width: 28px;
  height: 28px;
}

.service-item:hover .module-icon {
  border-color: rgba(143, 208, 255, 0.55);
  color: #b7e2ff;
  box-shadow: 0 0 24px rgba(58, 160, 255, 0.22), inset 0 0 20px rgba(58, 160, 255, 0.12);
}

.service-index {
  display: block;
  color: rgba(122, 190, 255, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.service-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.service-item > p {
  margin: 0.85rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-item li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1rem;
  color: rgba(220, 232, 248, 0.82);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.method {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.method-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.orbit {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(90, 170, 255, 0.25);
  background:
    radial-gradient(circle at center, rgba(58, 160, 255, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 60px rgba(58, 160, 255, 0.12), 0 0 80px rgba(30, 100, 200, 0.15);
  animation: spin 28s linear infinite;
}

.orbit::before {
  content: "企三元";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  animation: spin-reverse 28s linear infinite;
}

.orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8fd0ff;
  box-shadow: 0 0 18px rgba(120, 200, 255, 0.8);
}

.orbit span:nth-child(1) {
  top: -6px;
  left: 50%;
  margin-left: -6px;
}

.orbit span:nth-child(2) {
  right: 18%;
  bottom: 16%;
}

.orbit span:nth-child(3) {
  left: 14%;
  bottom: 22%;
}

.steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-left: none;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 0.1rem;
  border: 1px solid rgba(122, 190, 255, 0.3);
  border-radius: 12px;
  color: #8fd0ff;
  background: rgba(58, 160, 255, 0.08);
}

.step-icon svg {
  width: 18px;
  height: 18px;
}

.steps li > div {
  display: grid;
  gap: 0.25rem;
  padding-left: 0.95rem;
  border-left: 2px solid rgba(58, 160, 255, 0.35);
}

.steps strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.steps li > div > span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.contact-panel {
  padding: clamp(2rem, 5vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(58, 160, 255, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(12, 24, 44, 0.9), rgba(6, 12, 24, 0.95));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  margin-top: 2rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label.full,
.contact-form .btn {
  grid-column: 1 / -1;
}

.contact-form span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.field-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0.9;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(120, 170, 230, 0.22);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(90, 180, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin: 1rem 0 0;
  color: #8fd0ff;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: 0.12em;
}

.footer-brand span {
  font-size: 0.78rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.icp {
  color: var(--muted);
  transition: color 0.25s ease;
}

.icp:hover {
  color: var(--ink);
}

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

@keyframes drip {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

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

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

@media (max-width: 900px) {
  .service-list,
  .method {
    grid-template-columns: 1fr;
  }

  .method-visual {
    order: -1;
    min-height: 260px;
  }
}

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

  .nav-toggle {
    display: inline-block;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(5, 10, 22, 0.95);
    backdrop-filter: blur(16px);
  }

  .site-header.is-open .nav a {
    padding: 0.85rem 0.9rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

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

  .scroll-hint,
  .orbit,
  .orbit::before,
  .scroll-hint i {
    animation: none !important;
  }

  .service-item {
    opacity: 1;
    transform: none;
  }
}
