/* ===== 标检（北京）质量检测中心 - 经典政企风格 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0d4e9c;
  --primary-dark: #0a3d7a;
  --primary-light: #e6f0fb;
  --secondary: #1890ff;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --border: #e5e7eb;
  --bg-light: #f5f8fc;
  --bg-white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(13,78,156,0.12);
  --radius: 4px;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; border: 0; }
svg { vertical-align: middle; }

/* ===== 通用 ===== */
.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-title h2::before,
.section-title h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--primary-light);
}
.section-title h2::before { right: -60px; }
.section-title h2::after { left: -60px; }
.section-title p {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== 顶部信息栏 ===== */
.top-bar {
  background: #f0f4f8;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.top-bar-left span { margin-right: 24px; }
.top-bar-left svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 5px;
  color: var(--primary);
}
.top-bar-right a {
  margin-left: 20px;
  color: var(--text-light);
  transition: color 0.3s;
}
.top-bar-right a:hover { color: var(--primary); }

/* ===== Header ===== */
.header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}
.logo-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}
.logo-text h1 {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text p {
  font-size: 12px;
  color: var(--text-lighter);
  margin-top: 4px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.nav ul {
  display: flex;
}
.nav li {
  margin-left: 8px;
}
.nav a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius);
  transition: all 0.3s;
  font-weight: 500;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.header-btn {
  margin-left: 20px;
}
.header-btn .btn {
  padding: 8px 20px;
  font-size: 13px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10,61,122,0.75) 0%, rgba(13,78,156,0.35) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hero-tag {
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 560px;
}
.hero-btns {
  display: flex;
  gap: 16px;
}
.hero-btns .btn {
  padding: 12px 32px;
  font-size: 15px;
}
.hero-btns .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.hero-btns .btn-outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s;
  color: #fff;
}
.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }
.hero-arrow svg { width: 20px; height: 20px; }

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
}
.hero-dot.active {
  background: #fff;
  width: 50px;
}

/* ===== 快速数据栏 ===== */
.quick-stats {
  background: var(--primary);
  padding: 0;
}
.quick-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 30px 20px;
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-item h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
}
.stat-item h3 span {
  font-size: 16px;
  font-weight: normal;
  margin-left: 2px;
}
.stat-item p {
  font-size: 14px;
  opacity: 0.85;
}

/* ===== 检测领域 ===== */
.services {
  background: var(--bg-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: var(--primary);
}
.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: all 0.3s;
}
.service-card:hover .service-icon svg {
  color: #fff;
}
.service-card h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tag {
  font-size: 12px;
  padding: 3px 8px;
  background: var(--bg-light);
  color: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s;
}
.service-card:hover .service-tag {
  background: var(--primary-light);
  color: var(--primary);
}
.service-more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.service-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}
.service-card:hover .service-more svg {
  transform: translateX(4px);
}

/* ===== 关于我们 ===== */
.about {
  background: var(--bg-white);
}
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius);
  height: 380px;
  object-fit: cover;
}
.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 80px;
  height: 80px;
  border-top: 4px solid var(--primary);
  border-left: 4px solid var(--primary);
  z-index: 1;
}
.about-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 80px;
  height: 80px;
  border-bottom: 4px solid var(--primary);
  border-right: 4px solid var(--primary);
  z-index: 1;
}
.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}
.about-content .section-title h2::before { display: none; }
.about-content .section-title h2::after {
  left: 0;
  top: auto;
  bottom: -10px;
  width: 50px;
}
.about-desc {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
  text-indent: 2em;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.about-feature:hover {
  background: var(--primary-light);
}
.about-feature svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-right: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feature span {
  font-size: 14px;
  color: var(--text);
}

/* ===== 资质荣誉 ===== */
.qualification {
  background: var(--bg-light);
}
.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.qual-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.qual-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.qual-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  flex-shrink: 0;
}
.qual-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}
.qual-text h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}
.qual-text p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== 检测流程 ===== */
.process {
  background: var(--bg-white);
}
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--primary-light);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 10px;
}
.step-num {
  width: 64px;
  height: 64px;
  background: var(--bg-white);
  border: 3px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s;
  position: relative;
}
.step-num svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  transition: all 0.3s;
}
.step-num span {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step:hover .step-num {
  background: var(--primary);
  border-color: var(--primary);
}
.process-step:hover .step-num svg {
  color: #fff;
}
.process-step h4 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}
.process-step p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== 联系我们 ===== */
.contact {
  background: var(--bg-light);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--bg-white);
  padding: 30px 20px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.contact-card:hover .contact-icon {
  background: var(--primary);
  transform: rotateY(360deg);
}
.contact-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  transition: all 0.3s;
}
.contact-card:hover .contact-icon svg {
  color: #fff;
}
.contact-card h4 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}
.contact-card .highlight {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
  display: block;
}

.contact-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 40px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.contact-banner-text h3 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-banner-text p {
  font-size: 14px;
  opacity: 0.85;
}
.contact-banner .btn {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 600;
  padding: 12px 36px;
}
.contact-banner .btn:hover {
  background: transparent;
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: #1a2a3f;
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}
.footer-about {
  line-height: 1.8;
  font-size: 14px;
}
.footer-about .footer-logo {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-about p {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.8;
}
.footer-contact-info div {
  display: flex;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.footer-contact-info svg {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  flex-shrink: 0;
  color: var(--secondary);
  margin-top: 3px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: color 0.3s;
  display: block;
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}
.footer-links a::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 12px;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 20px;
}
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom p {
  margin-bottom: 6px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .container { width: 100%; padding: 0 20px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 12px; font-size: 14px; }
  .logo-text h1 { font-size: 16px; }
  .hero-title { font-size: 36px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header .container { height: 64px; }
  .logo-text h1 { font-size: 14px; }
  .logo-text p { display: none; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-icon svg { width: 20px; height: 20px; }

  .nav {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - 64px);
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s;
    z-index: 99;
    padding: 20px 0;
  }
  .nav.open { left: 0; }
  .nav ul {
    flex-direction: column;
  }
  .nav li { margin: 0; }
  .nav a {
    padding: 14px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .header-btn { display: none; }
  .menu-toggle { display: block; }

  .hero { height: 380px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 20px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; text-align: center; padding: 10px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .hero-arrow { width: 36px; height: 36px; }

  .section { padding: 40px 0; }
  .section-title h2 { font-size: 22px; }
  .section-title h2::before { right: -50px; width: 30px; }
  .section-title h2::after { left: -50px; width: 30px; }

  .quick-stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 10px; }
  .stat-item h3 { font-size: 28px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 16px; }
  .service-card h3 { font-size: 15px; }
  .service-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .service-icon svg { width: 20px; height: 20px; }

  .about-wrapper { grid-template-columns: 1fr; gap: 30px; }
  .about-image img { height: 260px; }

  .qual-grid { grid-template-columns: 1fr; gap: 14px; }
  .qual-card { padding: 20px; }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .process-steps::before { display: none; }
  .process-step {
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
  }
  .step-num {
    margin: 0 16px 0 0;
    width: 52px;
    height: 52px;
  }
  .step-num svg { width: 24px; height: 24px; }
  .step-num span {
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-card { padding: 20px 12px; }

  .contact-banner {
    padding: 30px 20px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 22px; }
  .hero { height: 320px; }
  .hero-tag { font-size: 12px; letter-spacing: 2px; }
  .section-title h2 { font-size: 20px; }
  .section-title h2::before,
  .section-title h2::after { display: none; }
  .about-features { grid-template-columns: 1fr; }
  .logo-text h1 { font-size: 13px; }
  .quick-stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item h3 { font-size: 24px; }
  .contact-banner-text h3 { font-size: 18px; }
}
