/* ========================================
   中安通科技（中山）有限公司 企业官网
   Domain: zatcn.com
   ======================================== */

:root {
  --primary: #0d2b4e;
  --primary-light: #1a4a7a;
  --accent: #b8942d;
  --accent-light: #d4b85c;
  --bg: #f7f8fa;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --text-muted: #888888;
  --border: #e0e0e0;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --max-width: 1100px;
  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.logo h1 span { color: var(--accent); }

.nav { display: flex; gap: 8px; list-style: none; }
.nav a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav a:hover,
.nav a.active {
  background: var(--primary);
  color: var(--white);
}

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

/* ===== Hero ===== */
.hero {
  background: var(--white);
  color: var(--primary);
  padding: 240px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-map {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  top: 0;
  object-fit: contain;
  object-position: top center;
  opacity: 1;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h2 {
  font-size: 47px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
  color: var(--primary);
}
.hero p {
  font-size: 18px;
  color: var(--primary-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
}

/* ===== Page Banner (inner pages) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0f3c66 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.page-banner h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== Sections ===== */
.section {
  padding: 64px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h3 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.section-title h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
}

/* ===== Company Info Card ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.info-card h4 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 10px;
}
.info-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== Feature list ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.feature-item {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.feature-item:hover { transform: translateY(-4px); }
.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.feature-item h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-4px); }
.product-img {
  height: 200px;
  background: linear-gradient(135deg, #e8edf2, #d5dde5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary-light);
}
.product-body { padding: 20px; }
.product-body h4 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.product-body p { font-size: 13px; color: var(--text-light); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.contact-text h4 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.contact-text p { font-size: 14px; color: var(--text-light); }

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 32px 0;
  font-size: 13px;
  text-align: center;
  line-height: 2;
}
.footer strong { color: var(--white); }

/* ===== About Page ===== */
.about-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}
.about-content h3 {
  font-size: 20px;
  color: var(--primary);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.about-content h3:first-child { margin-top: 0; }
.about-content p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  text-indent: 2em;
}
.about-content ul {
  list-style: disc;
  padding-left: 2em;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}
.about-content ul li { margin-bottom: 4px; }
.cert-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.cert-table th,
.cert-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.cert-table th {
  background: var(--bg);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}
.cert-table td { color: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .logo h1 { font-size: 18px; }

  .menu-toggle { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow);
    padding: 12px 24px;
    gap: 4px;
    z-index: 99;
  }
  .nav.open { display: flex; }

  .hero { padding: 48px 0; }
  .hero h2 { font-size: 26px; }
  .hero p { font-size: 15px; }

  .contact-grid { grid-template-columns: 1fr; }
  .about-content { padding: 24px; }

  .info-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
