:root {
  --bg: #0c0f14;
  --bg-elevated: #12171f;
  --surface: #161d28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf1;
  --text-muted: #9aa3af;
  --accent: #3d9cf5;
  --accent-soft: rgba(61, 156, 245, 0.15);
  --accent-glow: rgba(61, 156, 245, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --max: 1120px;
  --font-sans: "Noto Sans SC", "DM Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #6bb4ff;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--text);
  opacity: 0.9;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), #1a5fb4);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 0 24px var(--accent-glow);
}

.logo-text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid rgba(61, 156, 245, 0.35);
}

.nav-cta:hover {
  background: rgba(61, 156, 245, 0.25);
  color: #9fd0ff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.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);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(12, 15, 20, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 6.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120, 80, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 20%, rgba(61, 156, 245, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(12, 15, 20, 0.2) 0%, rgba(12, 15, 20, 0.85) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr min(38vw, 420px);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-lead {
    margin-inline: auto;
  }
}

.hero-visual {
  margin: 0;
  justify-self: end;
}

.hero-visual-frame {
  position: relative;
  border-radius: 24px;
  padding: 0.65rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 0 60px rgba(61, 156, 245, 0.12);
  overflow: hidden;
}

.hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(61, 156, 245, 0.08), transparent 45%);
  pointer-events: none;
}

.hero-visual-frame img,
.hero-visual-frame svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

.hero-visual-caption {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

@media (min-width: 961px) {
  .hero-visual-caption {
    text-align: right;
    padding-right: 0.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual-frame {
    animation: hero-float 7s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-frame {
    animation: none;
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-accent {
  background: linear-gradient(120deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 0 2rem;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #2563c7);
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 40px rgba(61, 156, 245, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 52rem;
  margin: clamp(2.5rem, 5vw, 3.25rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-stats dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.section-head-light h2,
.section-head-light .section-sub {
  color: #fff;
}

.section-head-light .section-sub {
  opacity: 0.85;
}

/* About — 图文并排，避免「上图下文」割裂 */
.section-head-about {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: start;
}

.about-figure {
  margin: 0;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(22, 29, 40, 0.9), rgba(12, 15, 20, 0.6));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.about-figure-inner {
  overflow: hidden;
  border-radius: inherit;
  aspect-ratio: 4 / 3;
}

.about-figure-inner img,
.about-figure-inner svg {
  display: block;
  width: 100%;
  height: 100%;
}

.about-figure-inner img {
  object-fit: cover;
  object-position: center;
}

.about-figure-cap {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

@media (min-width: 901px) {
  .about-figure {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-figure {
    position: relative;
    top: auto;
    max-width: 520px;
    margin-inline: auto;
  }

  .about-figure-inner {
    aspect-ratio: 16 / 10;
  }

  .about-figure-cap {
    text-align: center;
  }
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.about-highlight {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: var(--text) !important;
  font-size: 1.02rem;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card-wide {
  grid-column: 1 / -1;
}

.service-card-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

.service-card-media {
  position: relative;
  min-height: 200px;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.service-card-media img,
.service-card-media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-card-media img {
  object-fit: cover;
  object-position: center;
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: linear-gradient(120deg, rgba(22, 29, 40, 0.35), rgba(12, 15, 20, 0.2));
}

.service-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card.service-card-split {
  padding: 0;
}

.service-card:hover {
  border-color: rgba(61, 156, 245, 0.35);
  transform: translateY(-2px);
}

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

  .service-card-wide {
    grid-column: auto;
  }

  .service-card-split {
    grid-template-columns: 1fr;
  }

  .service-card-media {
    height: 200px;
    min-height: 200px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

.service-icon {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.service-card > p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.service-card li {
  margin-bottom: 0.35rem;
}

/* Capabilities */
.caps-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 800px) {
  .caps-layout {
    grid-template-columns: 1fr;
  }
}

.caps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.caps-list li {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.caps-list strong {
  font-size: 1.02rem;
  color: var(--text);
}

.caps-list span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.caps-panel {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%);
  border: 1px solid rgba(61, 156, 245, 0.25);
}

.caps-figure {
  margin: 0 0 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.caps-figure img,
.caps-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.caps-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.metric-chips span {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.caps-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Process */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 700px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

.process-steps > li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.process-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.process-steps p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.value-quote {
  margin: 0;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.value-quote p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.value-quote strong {
  color: var(--text);
}

.values-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-item {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.value-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.value-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.section-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #0f1624 0%, var(--bg) 45%);
  border-top: 1px solid var(--border);
}

.contact-bg-img {
  position: absolute;
  inset: 0;
  /* 纯 CSS 背景，避免部分主机对独立 .svg 返回 500 导致联系区无图 */
  background-color: #0c0f14;
  background-image:
    radial-gradient(ellipse 75% 55% at 18% 78%, rgba(61, 156, 245, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 50% at 88% 18%, rgba(99, 102, 241, 0.16), transparent 52%),
    linear-gradient(105deg, transparent 0%, rgba(61, 156, 245, 0.1) 42%, rgba(124, 58, 237, 0.08) 100%);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.02);
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(12, 15, 20, 0.2), rgba(12, 15, 20, 0.92)),
    linear-gradient(180deg, rgba(12, 15, 20, 0.5) 0%, rgba(12, 15, 20, 0.88) 100%);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(22, 29, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
}

.contact-card a {
  font-weight: 500;
}

.contact-footnote {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.footer-brand strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-domain {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 36rem;
  text-align: right;
}

.footer-photo-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
    max-width: none;
  }
}
