/* 创渊科技 — Premium Sci-Fi Corporate Site */
:root {
  --bg: #05070d;
  --bg-elevated: #0b101a;
  --surface: rgba(255, 255, 255, 0.03);
  --text: #f2f5fb;
  --muted: #8b95a8;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #1a4dff;
  --cyan: #00c8ff;
  --blue-deep: #0a2a9e;
  --grad: linear-gradient(135deg, #00c8ff 0%, #1a4dff 55%, #0a2a9e 100%);
  --grad-soft: linear-gradient(120deg, rgba(0, 200, 255, 0.18), rgba(26, 77, 255, 0.08));
  --glow: 0 0 60px rgba(0, 200, 255, 0.25);
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Outfit", sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  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");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  top: -12vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.35), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-b {
  width: 36vw;
  height: 36vw;
  bottom: 10vh;
  left: -12vw;
  background: radial-gradient(circle, rgba(26, 77, 255, 0.3), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vw, 3vh) scale(1.08); }
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.35));
}

.nav__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav__links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--grad);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(26, 77, 255, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.nav__cta--mobile {
  display: none;
  text-align: center;
  margin-top: 8px;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 200, 255, 0.35);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 6px auto;
  transition: 0.3s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  overflow: hidden;
  z-index: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: heroIn 1.1s var(--ease) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__logo {
  width: min(220px, 52vw);
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 40px rgba(0, 200, 255, 0.45));
  animation: logoFloat 5.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin-bottom: 18px;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero__title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 36px rgba(26, 77, 255, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 200, 255, 0.4);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(0, 200, 255, 0.5);
  background: rgba(0, 200, 255, 0.08);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* —— Sections —— */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  font-weight: 500;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section__desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  font-weight: 300;
}

/* —— About —— */
.about {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26, 77, 255, 0.12), transparent 60%),
    var(--bg);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Services —— */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, #070b14 50%, var(--bg) 100%);
}

.services .section__desc {
  margin-bottom: 72px;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service--reverse .service__visual {
  order: 2;
}

.service--reverse .service__body {
  order: 1;
}

.service__visual {
  aspect-ratio: 1.15 / 1;
  border-radius: 28px;
  background:
    var(--grad-soft),
    radial-gradient(circle at 30% 20%, rgba(0, 200, 255, 0.15), transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 200, 255, 0.06));
  pointer-events: none;
}

.service__screen {
  width: 68%;
  height: 58%;
  border-radius: 14px;
  background: #060910;
  border: 1px solid rgba(0, 200, 255, 0.2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--glow);
  position: relative;
}

.code-line {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.55), rgba(26, 77, 255, 0.25));
  width: 88%;
  animation: codePulse 3.2s ease-in-out infinite;
}

.code-line--short { width: 42%; animation-delay: 0.4s; }
.code-line--mid { width: 64%; animation-delay: 0.8s; }

.code-glow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad);
  opacity: 0.85;
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.5);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

@keyframes codePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

.service__shield {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.2), inset 0 0 30px rgba(26, 77, 255, 0.2);
  animation: spinSlow 16s linear infinite;
}

.shield-ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.shield-core {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  box-shadow: var(--glow);
}

.service__orbit {
  position: relative;
  width: 180px;
  height: 180px;
}

.service__orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(0, 200, 255, 0.25);
  animation: spinSlow 12s linear infinite;
}

.service__orbit span:nth-child(2) {
  inset: 22px;
  animation-duration: 9s;
  animation-direction: reverse;
  border-style: solid;
  border-color: rgba(26, 77, 255, 0.35);
}

.service__orbit span:nth-child(3) {
  inset: 48px;
  animation-duration: 7s;
  border-color: rgba(0, 200, 255, 0.4);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 28px rgba(0, 200, 255, 0.55);
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.service__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}

.service__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.service__body > p {
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 300;
}

.service__body ul {
  display: grid;
  gap: 12px;
}

.service__body li {
  position: relative;
  padding-left: 22px;
  color: #c5cddc;
  font-size: 0.98rem;
}

.service__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

/* —— Strength —— */
.strength__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.strength__item {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 60%);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}

.strength__item:hover {
  border-color: rgba(0, 200, 255, 0.35);
  transform: translateY(-4px);
  background: linear-gradient(160deg, rgba(0, 200, 255, 0.06), transparent 65%);
}

.strength__icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  margin-bottom: 20px;
}

.strength__icon svg {
  width: 100%;
  height: 100%;
}

.strength__item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.strength__item p {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
}

/* —— CTA band —— */
.cta-band {
  position: relative;
  z-index: 1;
  margin: 20px 24px 40px;
}

.cta-band__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 48px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 200, 255, 0.22), transparent 55%),
    linear-gradient(145deg, #0c1424, #080c16);
  border: 1px solid rgba(0, 200, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 300;
}

/* —— Contact —— */
.contact {
  padding-bottom: 100px;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.contact__panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
}

.contact__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.contact__row:last-child {
  border-bottom: none;
}

a.contact__row:hover {
  background: rgba(0, 200, 255, 0.06);
}

.contact__key {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.contact__val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  text-align: right;
  color: var(--text);
}

.contact__val em {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cyan);
  margin-top: 4px;
}

/* —— Footer —— */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  background: #04060a;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer__brand strong {
  font-family: var(--font-display);
  font-size: 1rem;
  display: block;
}

.footer__brand p {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 24px 28px 32px;
    background: rgba(5, 7, 13, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }

  .nav.is-open .nav__cta--mobile {
    display: block;
    color: #fff;
  }

  .service,
  .service--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service--reverse .service__visual,
  .service--reverse .service__body {
    order: unset;
  }

  .service__visual {
    aspect-ratio: 16 / 11;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .strength__grid {
    grid-template-columns: 1fr;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-band__inner {
    padding: 56px 28px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 88px 20px;
  }

  .hero {
    padding-bottom: 100px;
  }

  .contact__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact__val {
    text-align: left;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
