/* ============================================================
   苏州浩康电子科技有限公司 - 网站样式
   风格：科技蓝白 · 清爽简洁
   ============================================================ */

:root {
  --blue-900: #0b2a5b;
  --blue-800: #103a7d;
  --blue-700: #1565c0;
  --blue-600: #1a73e8;
  --blue-500: #2f86ff;
  --blue-300: #8fbcff;
  --blue-100: #e8f1ff;
  --blue-50:  #f4f8ff;
  --ink:      #1f2d3d;
  --gray-600: #5b6b7e;
  --gray-400: #9aa7b5;
  --line:     #e2eaf4;
  --white:    #ffffff;
  --shadow:   0 8px 30px rgba(16, 58, 125, 0.08);
  --shadow-lg:0 16px 48px rgba(16, 58, 125, 0.14);
  --radius:   14px;
  --maxw:     1180px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--blue-900);
}
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-300));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(26,115,232,.35);
}
.brand small { display: block; font-size: 11px; color: var(--gray-400); font-weight: 500; letter-spacing: .5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue-600);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue-700); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 26px; color: var(--blue-700);
  cursor: pointer;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 8px 22px rgba(26,115,232,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26,115,232,.45); }
.btn-ghost {
  background: #fff;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-300);
}
.btn-ghost:hover { background: var(--blue-50); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  color: #fff;
  padding: 96px 0 110px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,188,255,.35), transparent 70%);
  filter: blur(8px);
}
.hero::before { width: 480px; height: 480px; top: -160px; right: -120px; }
.hero::after  { width: 360px; height: 360px; bottom: -160px; left: -100px; opacity: .6; }
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero p.lead {
  font-size: 18px;
  max-width: 620px;
  color: rgba(255,255,255,.9);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
}
.hero-stats .stat span { font-size: 14px; color: rgba(255,255,255,.8); }

/* ---------------- Section ---------------- */
.section { padding: 84px 0; }
.section.alt { background: var(--blue-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 32px;
  color: var(--blue-900);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p { color: var(--gray-600); font-size: 16px; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-300); }
.card .icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-100), #fff);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--blue-600);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; color: var(--blue-900); margin-bottom: 10px; }
.card p { color: var(--gray-600); font-size: 15px; }

/* ---------------- Product list ---------------- */
.product {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.product .badge {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-600);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
}

/* ---------------- About / Timeline ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-grid img, .about-visual {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
  position: relative;
  overflow: hidden;
}
.about-visual::after {
  content: "HK";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-size: 120px; font-weight: 900;
  color: rgba(255,255,255,.18);
  letter-spacing: 4px;
}
.about-text h2 { font-size: 30px; color: var(--blue-900); margin-bottom: 18px; }
.about-text p { color: var(--gray-600); margin-bottom: 16px; }

.info-list { list-style: none; margin-top: 8px; }
.info-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--gray-600);
  font-size: 15px;
}
.info-list li b { color: var(--blue-900); min-width: 86px; display: inline-block; }

/* ---------------- CTA band ---------------- */
.cta {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta h3 { font-size: 26px; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.9); }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info .item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .item .ic {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 12px; background: var(--blue-100);
  display: grid; place-items: center; color: var(--blue-600);
}
.contact-info .item h4 { font-size: 15px; color: var(--blue-900); }
.contact-info .item p { color: var(--gray-600); font-size: 15px; }

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow);
}
.form-card label { display: block; font-size: 14px; color: var(--blue-900); margin-bottom: 6px; font-weight: 600; }
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  margin-bottom: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47,134,255,.15);
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--gray-400); margin-top: -8px; margin-bottom: 16px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.78);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: var(--blue-300); }
.site-footer p { font-size: 14px; line-height: 1.9; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform .3s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 30px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
}
