/* 河北雄安速码科技 — 静态官网样式 */

:root {
  --bg-deep: #050f16;
  --bg-panel: rgba(10, 22, 36, 0.75);
  --bg-card: rgba(14, 28, 44, 0.58);
  --border: rgba(27, 183, 248, 0.14);
  --border-strong: rgba(27, 183, 248, 0.32);
  --text: #e8edf7;
  --text-muted: rgba(232, 237, 247, 0.62);
  --accent: #1bb7f8;
  --accent-bright: #5dd9ff;
  --accent-dim: #1393c8;
  --accent-glow: rgba(27, 183, 248, 0.38);
  --violet: #0ea5e9;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.92) 0%, rgba(5, 8, 16, 0.65) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--border);
}

.header__inner {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo__img {
  display: block;
  height: 40px;
  width: auto;
  aspect-ratio: 145.32 / 108.73;
  max-width: min(200px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav__cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(27, 183, 248, 0.22), rgba(14, 165, 233, 0.14));
  border: 1px solid var(--border-strong);
  color: var(--accent) !important;
}

.nav__cta:hover {
  background: linear-gradient(135deg, rgba(27, 183, 248, 0.32), rgba(14, 165, 233, 0.2));
  color: var(--text) !important;
}

.header__end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.lang-switch__btn {
  margin: 0;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s var(--ease);
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn.is-active {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  box-shadow: 0 4px 16px rgba(27, 183, 248, 0.2);
}

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

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

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

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

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

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 24px;
  background: rgba(5, 8, 16, 0.97);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .logo__img {
    width: 134px;
  }

  .nav {
    display: none;
  }

  .header__end {
    gap: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }
}

/* Hero */
main {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 0 80px;
  display: flex;
  align-items: center;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.hero__glow--1 {
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  top: -80px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.5;
}

.hero__glow--2 {
  width: min(400px, 70vw);
  height: min(400px, 70vw);
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
  opacity: 0.45;
}

.hero__content {
  animation: fadeUp 0.9s var(--ease) both;
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: linear-gradient(105deg, var(--text) 0%, var(--accent) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  box-shadow: 0 12px 40px rgba(27, 183, 248, 0.25);
}

.btn--ghost {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
}

.btn--block {
  width: 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.hero__stat dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero__stat dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

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

/* Sections */
.section {
  padding: 96px 0;
  position: relative;
}

.section--dim {
  background: linear-gradient(180deg, transparent, rgba(12, 18, 32, 0.5) 30%, rgba(12, 18, 32, 0.5) 70%, transparent);
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section__head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

/* Cards */
.cards {
  display: grid;
  gap: 22px;
}

.cards--six {
  grid-template-columns: repeat(3, 1fr);
}

.cards--pair {
  grid-template-columns: repeat(2, 1fr);
}

.cards--four {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .cards--six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards--six,
  .cards--pair,
  .cards--four {
    grid-template-columns: 1fr;
  }
}

.services-flex {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.careers__cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.careers__cta .btn {
  min-width: min(100%, 280px);
}

.section__head--narrow {
  max-width: 640px;
}

.services-flex__badge {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.services-flex__title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card--special {
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.1), rgba(18, 26, 44, 0.55));
}

.card__icon--violet {
  color: var(--violet);
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.card--accent {
  border-color: rgba(27, 183, 248, 0.35);
  background: linear-gradient(160deg, rgba(27, 183, 248, 0.1), rgba(18, 26, 44, 0.55));
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--accent);
  background: rgba(27, 183, 248, 0.1);
  border: 1px solid var(--border);
}

.card__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.card__text {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.card__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.card__list li {
  margin-bottom: 6px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.timeline__item {
  position: relative;
  padding: 24px 20px 24px 24px;
  border-left: 2px solid var(--border-strong);
  background: var(--bg-panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .timeline__item {
    border-left: none;
    border-top: 2px solid var(--border-strong);
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 0;
  }
}

.timeline__step {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.timeline__body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.timeline__body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.about__text {
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

.about__panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.about__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 16px;
}

.about__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about__tags li {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(27, 183, 248, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Contact */
.contact__inner {
  display: flex;
  justify-content: center;
}

.contact__card {
  width: min(480px, 100%);
  padding: 40px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(27, 183, 248, 0.08), var(--bg-panel));
  border: 1px solid var(--border-strong);
  text-align: center;
}

.contact__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.contact__text {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 15px;
}

.contact__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
}

.contact__list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact__list li:last-child {
  border-bottom: none;
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__value {
  font-size: 16px;
}

.contact__link {
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer__brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer__meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  max-width: 36rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer__legal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.footer__legal-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__police {
  gap: 8px;
}

.footer__police-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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