/* ===== BDCX / 数字眼镜 — B2B SaaS marketing site ===== */
:root {
  --navy: #0a1f33;
  --navy-soft: #132a40;
  --blue: #0b7ea4;
  --blue-dark: #086688;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --sky: #e8f4f8;
  --mist: #f4f8fb;
  --white: #ffffff;
  --text: #1a2b3c;
  --muted: #5a6f82;
  --border: #d5e3ec;
  --shadow: 0 12px 40px rgba(10, 31, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 51, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

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

.section {
  padding: 5.5rem 0;
}

.section-alt { background: var(--mist); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(10, 31, 51, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover,
.nav a.active { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  box-shadow: 0 8px 24px rgba(11, 126, 164, 0.28);
}
.btn-primary:hover { color: white; box-shadow: 0 10px 28px rgba(11, 126, 164, 0.38); }
.btn-ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-outline {
  background: white;
  color: var(--blue);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }

.nav-cta { padding: 0.55rem 1.15rem; font-size: 0.875rem; }

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: var(--sky);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #071828 0%, #0a2f4a 45%, #0b5f7a 100%);
  color: white;
  padding: 5rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: #99f6e4;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(90deg, #5eead4, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 28rem;
}

.hero-stat {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #5eead4;
}

.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-wave {
  height: 4.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,48 C240,80 480,0 720,24 C960,48 1200,80 1440,32 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

/* ===== Cards / grids ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.pill {
  padding: 0.55rem 1.1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.pill strong { color: var(--blue); }

/* ===== Two-col feature ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: white;
}

.feature-media img { width: 100%; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230d9488'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.metric {
  background: var(--mist);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 0.2rem;
}

.metric span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Architecture ===== */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.arch-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
}

.arch-card .num {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.arch-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.arch-card p {
  font-size: 0.82rem;
  color: var(--muted);
}

.arch-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===== Process / loop ===== */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.process-step {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: center;
}

.process-step .step-num {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.process-step h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--muted);
}

.data-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.data-tag {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 1.35rem;
}

.data-tag h4 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: #5eead4;
}

.data-tag p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
}

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

.module-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.module-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top;
  background: var(--navy);
}

.module-card .body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.module-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.module-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

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

.value-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
}

.value-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.value-outro {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, var(--sky), #e6faf7);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  color: var(--navy-soft);
  font-weight: 500;
}

/* ===== Roadmap ===== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.roadmap-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  position: relative;
}

.roadmap-item .phase {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: white;
  background: var(--blue);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.roadmap-item:nth-child(2) .phase { background: var(--teal); }
.roadmap-item:nth-child(3) .phase { background: #0e7490; }
.roadmap-item:nth-child(4) .phase { background: var(--navy); }

.roadmap-item h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.roadmap-item p {
  font-size: 0.85rem;
  color: var(--muted);
}

.roadmap-note {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Gallery strip ===== */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shot-grid figure {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #071828 0%, #0a3d5c 50%, #0b6e7a 100%);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255,255,255,0.75);
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.cta-domain {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.cta-domain a { color: #99f6e4; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

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

.footer-brand {
  color: white;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
}

.footer-links a:hover { color: #99f6e4; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .card-grid,
  .arch-grid,
  .process,
  .roadmap,
  .value-grid,
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 36rem; margin: 0 auto; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 4.25rem 0 auto 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav .btn { margin-top: 0.75rem; width: 100%; }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }
  .card-grid,
  .arch-grid,
  .process,
  .roadmap,
  .value-grid,
  .module-grid,
  .shot-grid,
  .data-tags,
  .metric-row,
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .card-grid,
  .arch-grid,
  .process,
  .roadmap,
  .value-grid,
  .module-grid,
  .shot-grid,
  .data-tags,
  .metric-row,
  .hero-stats { grid-template-columns: 1fr; }
  .container { width: min(100% - 1.5rem, var(--max)); }
}
