/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}
a { color: #0066CC; text-decoration: none; transition: color .2s; }
a:hover { color: #00A5B5; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* === Layout helpers === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: #ffffff; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #0a1f44;
}
.section-subtitle {
  text-align: center;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0a1f44;
  flex-shrink: 0;
}
.nav-logo img { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: #334155;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 4px 0;
}
.nav-links a:hover { color: #0066CC; }

/* === Hero === */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f7f9 100%);
}
.hero-tagline {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0a1f44;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-tagline span { color: #0066CC; }
.hero-sub {
  font-size: 1.2rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

/* === Cards grid === */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid #e2e8f0;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0,102,204,0.08);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0066CC 0%, #00A5B5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.5rem;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a1f44;
  margin-bottom: 10px;
}
.card p {
  color: #64748b;
  font-size: 0.95rem;
}

/* === About === */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: #475569;
}
.about-content p { margin-bottom: 16px; }
.about-content strong { color: #0a1f44; }

/* === Products === */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid #e2e8f0;
}
.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 8px;
}
.product-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0066CC;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-badge--placeholder {
  background: #f1f5f9;
  color: #64748b;
}
.product-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === Contact === */
.contact-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-block p {
  color: #475569;
  margin-bottom: 8px;
  font-size: 1rem;
}
.contact-block strong { color: #0a1f44; }

/* === Footer === */
.site-footer {
  background: #0a1f44;
  color: #cbd5e1;
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #ffffff; }
.footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

/* === Legal pages (privacy / terms) === */
.legal-header {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f7f9 100%);
  text-align: center;
}
.legal-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0a1f44;
  margin-bottom: 8px;
}
.legal-header .updated {
  color: #64748b;
  font-size: 0.95rem;
}
.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a1f44;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.legal-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 20px 0 8px;
}
.legal-body p, .legal-body li {
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 10px;
}
.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body strong { color: #1a1a2e; }
.legal-body .clause { margin-bottom: 24px; }

/* === Responsive === */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-tagline { font-size: 2.25rem; }
}
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 80px 0 64px; }
  .hero-tagline { font-size: 1.75rem; }
  .hero-sub { font-size: 1.05rem; }
  .section-title { font-size: 1.6rem; }
  .nav-links { gap: 18px; }
  .legal-header h1 { font-size: 1.75rem; }
  .legal-body { padding: 40px 20px 64px; }
}
