/* 全局变量 */
:root {
  --primary: #003366;
  --primary-light: #1976d2;
  --white: #fff;
  --gray-bg: #f5f7fa;
  --gray-text: #6c7a89;
  --footer-bg: #1a2233;
  --radius: 16px;
  --shadow: 0 4px 24px 0 rgba(0,51,102,0.08);
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --max-width: 1200px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans', Arial, sans-serif;
  background: var(--gray-bg);
  color: var(--primary);
  font-size: 16px;
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部悬浮导航 */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 12px 0 rgba(0,51,102,0.04);
  transition: var(--transition);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  font-size: 2rem;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a.active,
.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary-light);
  border-bottom: 2px solid var(--primary-light);
}
.nav-contact {
  color: var(--primary-light);
  font-size: 1.05rem;
  font-weight: bold;
}
.nav-phone {
  font-size: 1.1rem;
  color: var(--primary-light);
}

/* Banner主视觉 */
.banner {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 68px;
  background: linear-gradient(120deg, #003366 60%, #1976d2 100%);
  overflow: hidden;
}
.banner-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1464983953574-0892a716854b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  opacity: 0.18;
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  padding: 48px 0;
}
.banner-content h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.banner-content p {
  font-size: 1.18rem;
  margin-bottom: 32px;
  color: #e0e6f6;
}
.btn-primary {
  display: inline-block;
  background: var(--primary-light);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px 38px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/* 认证/EMC/检测服务区块 */
.service-cards-list {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 0 auto;
  flex-wrap: wrap;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 28px 32px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  min-width: 220px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
}
.service-card:hover {
  box-shadow: 0 8px 32px 0 rgba(25,118,210,0.16);
  transform: translateY(-4px) scale(1.03);
  color: var(--primary-light);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1976d2 60%, #003366 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}
.icon1 { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="8" x="2" y="8" rx="2"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon2 { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon3 { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect width="16" height="4" x="4" y="10" rx="2"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }

.service-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
}
.service-card p {
  color: var(--gray-text);
  font-size: 0.98rem;
}

/* 检测认证服务范围区块 */
.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.scope-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 18px 24px 18px;
  text-align: center;
  transition: var(--transition);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scope-card:hover {
  box-shadow: 0 8px 32px 0 rgba(25,118,210,0.16);
  transform: translateY(-4px) scale(1.03);
}
.scope-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1976d2 60%, #003366 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}
.icon-battery { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="7" width="16" height="10" rx="2" stroke="white" stroke-width="2" fill="none"/><rect x="19" y="10" width="2" height="4" rx="1" fill="white"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon-av { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="6" width="16" height="12" rx="2" stroke="white" stroke-width="2" fill="none"/><circle cx="8" cy="12" r="1.5" fill="white"/><rect x="14" y="10" width="4" height="4" rx="1" fill="white"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon-it { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="5" width="18" height="14" rx="2" stroke="white" stroke-width="2" fill="none"/><rect x="7" y="17" width="6" height="2" rx="1" fill="white"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon-motor { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="6" stroke="white" stroke-width="2" fill="none"/><rect x="18" y="10" width="4" height="4" rx="1" fill="white"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon-machine { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="8" width="16" height="8" rx="2" stroke="white" stroke-width="2" fill="none"/><rect x="8" y="16" width="8" height="2" rx="1" fill="white"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon-component { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="12" r="2" fill="white"/><circle cx="16" cy="12" r="2" fill="white"/><rect x="10" y="11" width="4" height="2" fill="white"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon-appliance { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="5" y="7" width="14" height="10" rx="2" stroke="white" stroke-width="2" fill="none"/><rect x="9" y="17" width="6" height="2" rx="1" fill="white"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }
.icon-light { background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><ellipse cx="12" cy="10" rx="6" ry="4" stroke="white" stroke-width="2" fill="none"/><rect x="10" y="14" width="4" height="4" rx="2" fill="white"/></svg>'); background-size: 60% 60%; background-repeat: no-repeat; background-position: center; }

.scope-card h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.scope-card p {
  color: var(--gray-text);
  font-size: 0.97rem;
  margin-bottom: 12px;
}
.btn-scope {
  display: inline-block;
  background: var(--primary-light);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 8px 22px;
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-scope:hover {
  background: var(--primary);
}

/* 实验室区块 */
.labs-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.lab-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 200px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  transition: var(--transition);
}
.lab-card:hover {
  box-shadow: 0 8px 32px 0 rgba(25,118,210,0.16);
  transform: translateY(-4px) scale(1.03);
}
.lab-img {
  width: 100%;
  height: 100px;
  background: var(--gray-bg);
  border-radius: 10px 10px 0 0;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
}
.lab-img1 { background-image: url('https://images.unsplash.com/photo-1517971071642-34a2d3eccb5e?auto=format&fit=crop&w=400&q=80'); }
.lab-img2 { background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=400&q=80'); }
.lab-img3 { background-image: url('https://images.unsplash.com/photo-1465101046530-73398c7f28ca?auto=format&fit=crop&w=400&q=80'); }
.lab-img4 { background-image: url('https://images.unsplash.com/photo-1464983953574-0892a716854b?auto=format&fit=crop&w=400&q=80'); }
.lab-desc {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

/* 客户案例LOGO墙 */
.cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
}
.case-logo {
  width: 100px;
  height: 48px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
}
.case-logo:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* 新闻资讯卡片 */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 18px 18px;
  transition: var(--transition);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-date {
  color: var(--primary-light);
  font-size: 0.98rem;
  font-weight: 600;
}
.news-title {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 500;
}
.news-card:hover {
  background: var(--primary-light);
  color: var(--white);
}
.news-card:hover .news-title {
  color: var(--white);
}

/* 页脚 */
.footer {
  background: var(--footer-bg);
  color: #bfc8e2;
  padding: 32px 0 18px 0;
  text-align: center;
  font-size: 0.98rem;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* 响应式适配 */
@media (max-width: 900px) {
  .container { padding: 0 12px; }
  .section { padding: 48px 0 32px 0; }
  .banner { height: 260px; }
  .banner-content h1 { font-size: 1.5rem; }
  .service-cards-list { flex-direction: column; gap: 18px; }
  .scope-list, .news-list, .cases-list { grid-template-columns: 1fr 1fr; }
  .labs-list { flex-direction: column; gap: 18px; }
}
@media (max-width: 600px) {
  .nav-container { flex-direction: column; height: auto; gap: 8px; }
  .nav-links { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .banner { height: 140px; }
  .banner-content { padding: 18px 0; }
  .section-title { font-size: 1.1rem; margin-bottom: 18px; }
  .scope-list, .news-list, .cases-list { grid-template-columns: 1fr; }
  .about-container { padding: 0; }
  .lab-card { width: 100%; }
  .case-logo { width: 80px; height: 36px; font-size: 0.9rem; }
} 