:root {
  color-scheme: dark;
  --bg: #050713;
  --bg-soft: #0a1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f4f7ff;
  --muted: #aeb9cc;
  --soft: #d7e2f6;
  --cyan: #5cf2ff;
  --mint: #7df7c5;
  --rose: #ff7fc2;
  --gold: #f5d778;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(92, 242, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 14% 22%, rgba(255, 127, 194, 0.14), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(125, 247, 197, 0.1), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

[data-lang] {
  display: none;
}

body[data-language="zh"] [data-lang="zh"],
body[data-language="en"] [data-lang="en"] {
  display: revert;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.ambient {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.72;
}

.ambient-a {
  width: 38rem;
  height: 38rem;
  left: -18rem;
  top: 18rem;
  background: radial-gradient(circle, rgba(92, 242, 255, 0.16), transparent 64%);
}

.ambient-b {
  width: 44rem;
  height: 44rem;
  right: -24rem;
  top: 44rem;
  background: radial-gradient(circle, rgba(245, 215, 120, 0.13), transparent 66%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(5, 7, 19, 0.88);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "Segoe Print", "Comic Sans MS", "Marker Felt", "Bradley Hand ITC", cursive;
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  text-shadow: 0 0 10px rgba(92, 242, 255, 0.34);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 19, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.nav a {
  min-height: 36px;
  padding: 0.42rem 0.86rem;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.language-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 40px;
  padding: 0.4rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.language-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 6.4rem 0;
}

.hero {
  min-height: calc(100svh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.3rem, 13.5vw, 8.8rem);
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow:
    0 0 24px rgba(92, 242, 255, 0.5),
    0 0 90px rgba(255, 127, 194, 0.23);
}

.logo-script {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.08em;
  min-height: 1.36em;
  padding: 0.08em 0 0.2em;
  margin-bottom: 0.65rem;
  font-family: "Segoe Print", "Comic Sans MS", "Marker Felt", "Bradley Hand ITC", cursive;
  font-style: italic;
  font-weight: 700;
}

.logo-script span {
  display: inline-block;
  transform-origin: 50% 70%;
}

.script-alpha {
  transform: rotate(-8deg) translateY(0.04em) scaleX(1.08);
}

.script-gamma {
  transform: rotate(4deg) translateY(0.1em) scaleY(1.08);
}

.script-sigma {
  transform: rotate(-3deg) translateY(-0.04em) scaleX(1.12);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.tagline {
  margin: 1.15rem 0 0.38rem;
  font-family: "STXingkai", "KaiTi", "Kaiti SC", "FZKai-Z03", "Microsoft YaHei", serif;
  font-size: clamp(1.8rem, 3.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.08em;
  text-shadow: 0 0 22px rgba(244, 247, 255, 0.28);
}

.tagline-en {
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 600;
}

.hero-text {
  max-width: 740px;
  margin: 0.5rem 0 0;
  color: var(--soft);
  font-size: 1.12rem;
  text-align: left;
}

.english {
  max-width: 740px;
  margin-left: 0;
  margin-right: 0;
  color: var(--muted);
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  position: relative;
  color: #041018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--mint) 55%, var(--gold));
  box-shadow: 0 18px 44px rgba(92, 242, 255, 0.25);
  overflow: hidden;
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 32px rgba(92, 242, 255, 0.12);
}

.hero-orbit {
  position: relative;
  aspect-ratio: 1;
  min-height: 300px;
}

.orbit-ring,
.orbit-core {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 34px rgba(92, 242, 255, 0.06);
}

.ring-one {
  width: 86%;
  height: 86%;
  display: none;
  animation: spin 24s linear infinite;
}

.ring-two {
  width: 62%;
  height: 62%;
  border-color: rgba(92, 242, 255, 0.04);
  box-shadow: none;
  animation: spin 18s linear infinite reverse;
}

.ring-three {
  width: 36%;
  height: 36%;
  display: none;
  border-color: rgba(245, 215, 120, 0.04);
  box-shadow: none;
  animation: spin-pulse 7s ease-in-out infinite;
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 12%;
  left: 68%;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan);
}

.dot-two {
  top: 74%;
  left: 20%;
  background: var(--mint);
  box-shadow: 0 0 28px var(--mint);
}

.dot-three {
  top: 66%;
  left: 78%;
  background: var(--gold);
  box-shadow: 0 0 28px var(--gold);
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(92, 242, 255, 0.08) 44%, rgba(255, 255, 255, 0.03));
  color: var(--text);
  box-shadow: var(--shadow);
}

.symbol-knot {
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 247, 255, 0.18), transparent 24%),
    radial-gradient(circle, rgba(92, 242, 255, 0.15), rgba(255, 127, 194, 0.08) 48%, rgba(255, 255, 255, 0.035));
}

.symbol-knot::before,
.symbol-knot::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid transparent;
  pointer-events: none;
}

.symbol-knot::after {
  inset: 34px;
  border-color: transparent;
  box-shadow: none;
}

.knot-symbol {
  position: absolute;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 45% 55% 50% 50%;
  background:
    linear-gradient(145deg, rgba(244, 247, 255, 0.16), rgba(244, 247, 255, 0.03)),
    rgba(5, 7, 19, 0.34);
  font-family: "Segoe Print", "Comic Sans MS", "Marker Felt", "Bradley Hand ITC", cursive;
  font-size: 2.4rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 0 18px currentColor;
  mix-blend-mode: screen;
  animation-duration: 8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.knot-alpha {
  top: 50%;
  left: 50%;
  color: var(--cyan);
  z-index: 3;
  animation-name: knot-alpha-cycle;
}

.knot-gamma {
  top: 50%;
  left: 50%;
  color: var(--mint);
  z-index: 2;
  animation-name: knot-gamma-cycle;
}

.knot-sigma {
  top: 50%;
  left: 50%;
  color: var(--gold);
  z-index: 1;
  animation-name: knot-sigma-cycle;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.symbol-grid,
.service-list,
.method-flow,
.project-grid {
  display: grid;
  gap: 1rem;
}

.symbol-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.symbol-grid article,
.service-list article,
.method-flow article,
.project-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.symbol-grid article {
  min-height: 250px;
  padding: 1.35rem;
  border-radius: 8px;
}

.symbol-grid span {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--cyan);
  font-size: 4.5rem;
  line-height: 1;
  text-shadow: 0 0 28px rgba(92, 242, 255, 0.45);
}

.symbol-grid p,
.service-list p,
.method-flow p,
.project-grid p,
.contact p {
  color: var(--muted);
}

.service-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-list article {
  min-height: 280px;
  padding: 1.1rem;
  border-radius: 8px;
}

.service-number {
  margin-bottom: 4rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.method-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

.method-flow article {
  min-height: 230px;
  padding: 1.25rem;
  border-radius: 8px;
}

.method-flow strong {
  display: block;
  margin-bottom: 3.6rem;
  color: var(--mint);
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid article {
  min-height: 160px;
  padding: 1.25rem;
  border-radius: 8px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.project-grid article:hover,
.symbol-grid article:hover,
.service-list article:hover,
.method-flow article:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 242, 255, 0.35);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(92, 242, 255, 0.1);
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

.scroll-fade {
  opacity:0;
  transform: translateY(36px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.scroll-fade.visible {
  opacity:1;
  transform: translateY(0);
}

.scroll-fade:nth-child(2) { transition-delay: 100ms; }
.scroll-fade:nth-child(3) { transition-delay: 200ms; }
.scroll-fade:nth-child(4) { transition-delay: 300ms; }
.scroll-fade:nth-child(5) { transition-delay: 400ms; }

.nav a.active {
  background: rgba(92, 242, 255, 0.16);
  color: var(--cyan);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  position: relative;
  min-height: 150px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 700;
  counter-increment: step;
  transition: border-color 220ms ease, background 220ms ease;
}

.process-list li:first-child {
  border-radius: 8px 0 0 8px;
}

.process-list li:last-child {
  border-radius: 0 8px 8px 0;
}

.process-list li::after {
  content: counter(step);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(92, 242, 255, 0.18);
  line-height: 1;
}

.process-list li:hover {
  border-color: rgba(92, 242, 255, 0.35);
  background: rgba(92, 242, 255, 0.06);
}

.process-list li span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-list li em {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 500;
}

.contact {
  padding-bottom: 5rem;
}

.contact-inner {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 242, 255, 0.16), rgba(125, 247, 197, 0.08) 50%, rgba(245, 215, 120, 0.12)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.contact h2 {
  max-width: 980px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.social-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-link.douyin {
  color: #61f5ff;
}

.social-link.youtube {
  color: #ff5d6c;
}

.social-link.rednote {
  color: #ff6d7f;
}

.social-link.twitter {
  color: #f4f7ff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes spin-pulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  50% {
    opacity: 0.62;
    transform: translate(-50%, -50%) rotate(180deg) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

@keyframes knot-alpha-cycle {
  0%,
  18%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.82);
  }

  46%,
  70% {
    transform: translate(-50%, -50%) rotate(338deg) translateY(-42px) rotate(-360deg) scale(1);
  }
}

@keyframes knot-gamma-cycle {
  0%,
  18%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.82);
  }

  46%,
  70% {
    transform: translate(-50%, -50%) rotate(98deg) translateY(-42px) rotate(-264deg) scale(1);
  }
}

@keyframes knot-sigma-cycle {
  0%,
  18%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.82);
  }

  46%,
  70% {
    transform: translate(-50%, -50%) rotate(218deg) translateY(-42px) rotate(-354deg) scale(1);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-orbit {
    min-height: 250px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }

  .symbol-grid,
  .service-list,
  .method-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 4.2rem 0;
  }

  .hero {
    padding-top: 1.5rem;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6.8rem);
    line-height: 1.22;
  }

  .logo-script {
    min-height: 1.42em;
    margin-bottom: 0.9rem;
  }

  .tagline {
    margin-top: 1.2rem;
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.48;
    letter-spacing: 0.06em;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .symbol-grid,
  .service-list,
  .method-flow,
  .project-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .symbol-grid article,
  .service-list article,
  .method-flow article {
    min-height: 0;
  }

  .symbol-grid span,
  .service-number,
  .method-flow strong,
  .process-list span {
    margin-bottom: 1.2rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
