/* ========================================
   北京中科光析科学技术研究所山东分所
   严谨大气 · 蓝白主调 · 研究所风格
   ======================================== */

/* ===== CSS变量 ===== */
:root {
  --primary: #1a5ca8;
  --primary-dark: #0d3a70;
  --primary-light: #e8f1fb;
  --secondary: #f5f7fa;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(26,92,168,0.1);
  --shadow-lg: 0 8px 24px rgba(26,92,168,0.15);
  --radius: 6px;
  --transition: all 0.3s ease;
  --container: 1200px;
}

/* ===== 重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; border: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* ===== 通用容器 ===== */
.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 通用区块 ===== */
.section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding: 0 30px;
}
.section-title h2::before,
.section-title h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--primary);
}
.section-title h2::before { left: 0; }
.section-title h2::after { right: 0; }
.section-title p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
}

/* ===== 顶部信息栏 ===== */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; align-items: center; }
.topbar-left span {
  margin-right: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-left svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-right a {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.topbar-right a:hover { opacity: 1; }
.topbar-right svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ===== 导航栏 ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; fill: #fff; }
.logo-text h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  white-space: nowrap;
}
.logo-text p {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-top: 2px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; }
.nav ul {
  display: flex;
  align-items: center;
}
.nav ul li { margin: 0 2px; }
.nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-main);
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}
.nav ul li a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav .btn-consult {
  margin-left: 16px;
  background: var(--primary);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav .btn-consult:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--primary-dark); }

/* ===== Banner 轮播 ===== */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13,58,112,0.75) 0%, rgba(13,58,112,0.3) 60%, rgba(13,58,112,0.1) 100%);
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
}
.hero-content .container { max-width: 1200px; }
.hero-text {
  max-width: 560px;
  color: #fff;
}
.hero-text .tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-text h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.hero-text p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 30px;
}
.hero-btns {
  display: flex;
  gap: 16px;
}
.hero-btns .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}
.hero-btns .btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.hero-btns .btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.hero-btns .btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  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;
  transition: var(--transition);
}
.hero-arrow:hover { background: rgba(255,255,255,0.35); }
.hero-arrow svg { width: 20px; height: 20px; stroke: #fff; }
.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 12px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  width: 30px;
  background: #fff;
}

/* ===== 检测领域 ===== */
.services { background: var(--bg-gray); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); }
.service-card:hover .service-icon svg { stroke: #fff; fill: #fff; }
.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: var(--primary);
  transition: var(--transition);
}
.service-top h3 {
  font-size: 16px;
  color: var(--primary-dark);
  font-weight: 700;
}
.service-list {
  margin-bottom: 14px;
}
.service-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}
.service-more {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.service-card:hover .service-more { color: var(--primary-dark); }
.service-more svg { width: 14px; height: 14px; stroke: currentColor; transition: transform 0.3s; }
.service-card:hover .service-more svg { transform: translateX(4px); }

/* ===== 关于我们 ===== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.about-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.about-img-badge .num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.about-img-badge .label {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}
.about-text .section-title h2 {
  padding-left: 0;
  padding-right: 30px;
}
.about-text .section-title h2::before { display: none; }
.about-text > p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 14px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-gray);
  border-left: 3px solid var(--primary);
  border-radius: 2px;
}
.about-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  flex-shrink: 0;
}
.about-feature span {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.about-stat { text-align: center; }
.about-stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.about-stat .num span { font-size: 16px; }
.about-stat .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== 资质荣誉 ===== */
.qualification { background: var(--bg-gray); }
.qual-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.qual-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
}
.qual-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.qual-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qual-card:hover .qual-icon {
  background: var(--primary);
}
.qual-card:hover .qual-icon svg { stroke: #fff; fill: #fff; }
.qual-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
  fill: var(--primary);
  transition: var(--transition);
}
.qual-card h4 {
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.qual-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== 检测流程 ===== */
.process-wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
  padding: 24px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition);
}
.process-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: var(--transition);
}
.process-step:hover .step-num {
  background: var(--primary-dark);
  transform: scale(1.1);
}
.process-step h4 {
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-weight: 600;
}
.process-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.contact-card:hover .contact-icon { background: var(--primary); }
.contact-card:hover .contact-icon svg { stroke: #fff; fill: #fff; }
.contact-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
  fill: var(--primary);
  transition: var(--transition);
}
.contact-card h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 6px;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
}
.contact-cta-text h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.contact-cta-text p {
  opacity: 0.85;
  font-size: 15px;
}
.contact-cta-btn {
  background: #fff;
  color: var(--primary-dark);
  padding: 12px 36px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.contact-cta-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== 页脚 ===== */
.footer {
  background: #0f2a4a;
  color: #c9d3de;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}
.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.footer-logo-text h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.footer-logo-text p {
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 1px;
  margin: 2px 0 0;
  line-height: 1.2;
}

.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #c9d3de;
  font-size: 14px;
  opacity: 0.8;
  transition: var(--transition);
  display: inline-block;
}
.footer-col ul li a:hover {
  opacity: 1;
  color: #fff;
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact li svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  opacity: 0.6;
}

/* ===== 响应式：1024px ===== */
@media (max-width: 1024px) {
  .container { width: 100%; }
  .hero { height: 420px; }
  .hero-text h2 { font-size: 32px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .qual-grid { grid-template-columns: repeat(3, 1fr); }
  .process-wrap { grid-template-columns: repeat(3, 1fr); }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .about-wrap { gap: 30px; }
  .about-img img { height: 340px; }
  .nav ul li a { padding: 8px 10px; font-size: 13px; }
  .nav .btn-consult { padding: 9px 16px; font-size: 13px; margin-left: 10px; }
  .logo-text h1 { font-size: 14px; }
  .logo-text p { display: none; }
}

/* ===== 响应式：768px ===== */
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-title { margin-bottom: 35px; }
  .section-title h2 { font-size: 24px; }
  .topbar { display: none; }
  .header .container { height: 60px; }
  .logo-text h1 { font-size: 14px; }
  .logo-text p { display: none; }
  .mobile-toggle { display: block; }
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul li { margin: 4px 0; }
  .nav ul li a { padding: 10px 14px; font-size: 14px; }
  .nav .btn-consult { margin-left: 0; text-align: center; margin-top: 8px; }

  .hero { height: 360px; }
  .hero-text { max-width: 100%; padding-right: 20px; }
  .hero-text h2 { font-size: 26px; }
  .hero-text p { font-size: 14px; margin-bottom: 20px; }
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow.prev { left: 15px; }
  .hero-arrow.next { right: 15px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { padding: 10px 22px; font-size: 14px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service-card { padding: 18px 14px; }
  .service-top h3 { font-size: 15px; }
  .service-list li { font-size: 12px; }

  .about-wrap { grid-template-columns: 1fr; gap: 30px; }
  .about-img img { height: 280px; }
  .about-text .section-title { text-align: center; margin-bottom: 20px; }
  .about-text .section-title h2 { padding: 0 30px; }
  .about-text .section-title h2::before { display: block; }
  .about-text > p { font-size: 14px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .qual-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .qual-card { padding: 20px 10px; }
  .qual-icon { width: 44px; height: 44px; }
  .qual-icon svg { width: 22px; height: 22px; }
  .qual-card h4 { font-size: 13px; }
  .qual-card p { font-size: 11px; }

  .process-wrap { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-card { padding: 22px 16px; }
  .contact-icon { width: 44px; height: 44px; }

  .contact-cta {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
  }
  .contact-cta-text h3 { font-size: 20px; }

  .footer { padding-top: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col h4 { font-size: 15px; margin-bottom: 14px; }
}

/* ===== 响应式：480px ===== */
@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 20px; padding: 0 20px; }
  .section-title h2::before,
  .section-title h2::after { width: 14px; }
  .section-title p { font-size: 13px; }

  .hero { height: 300px; }
  .hero-text h2 { font-size: 22px; }
  .hero-text p { font-size: 13px; }
  .hero-btns { flex-wrap: wrap; }

  .services-grid { grid-template-columns: 1fr; }

  .qual-grid { grid-template-columns: 1fr 1fr; }

  .process-wrap { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .about-features { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { font-size: 12px; }
}
