/* Global styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* FAQ页面专用容器样式 */
.faq-page .container {
  max-width: 1150px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffffcc;
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: #111827;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: #374151;
  border-radius: 3px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-toggle.open span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #374151;
}

.nav-links a:hover {
  background: #f3f4f6;
}

.nav-links a.active {
  color: #0ea5e9;
  background: #e0f2fe;
}

/* Generic dropdown (hidden by default); pages can override on hover */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 1000;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #f8fafc 100%);
  padding: 80px 0 48px;
  position: relative;
  min-height: 51vh; /* 优化高度 */
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero.has-background {
  background-blend-mode: overlay;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero.has-background::before {
  background: transparent; /* 有背景图时移除默认渐变 */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--hero-overlay-color, transparent);
  opacity: var(--hero-overlay-opacity, 0);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0ea5e9;
}

.hero p {
  color: #4b5563;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 25px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary {
  background: #6ba3d6;
  color: #fff;
}

.btn-primary:hover { background: #5a92c5; }

.btn-secondary {
  background: #ffffff;
  color: #0ea5e9;
  border-color: #0ea5e9;
}

.btn-secondary:hover { background: #f0f9ff; }

/* Sections */
section {
  padding: 40px 0;
}

main { flex: 1; }

main > section:last-of-type { padding-bottom: 24px; }

.section-title {
  font-size: 28px;
  margin: 0 0 24px;
  font-weight: 700;
  color: #1f2937;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  border-radius: 2px;
}

/* 首页新闻改版样式 */
.home-news-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.home-news-card { background:#fff; border:1px solid #e5e7eb; border-radius: 16px; padding: 0; box-shadow: 0 6px 20px rgba(0,0,0,0.06); overflow:hidden; }
.home-news-card .home-news-image { padding: 12px 12px 0; }
.home-news-card .img-placeholder { height: 180px; border:none; border-radius: 12px; }
.home-news-list { list-style: none; margin: 0; padding: 8px 16px 16px; }
.home-news-item { display:flex; align-items:center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.home-news-item:last-child { border-bottom: none; }
.home-news-title { display:flex; align-items: flex-start; gap: 8px; color:#1f2937; font-size: 14px; line-height: 1.5; }
.home-news-title .dot { width:6px; height:6px; border-radius:50%; background:#60a5fa; margin-top: 7px; flex-shrink:0; }
.home-news-date { color:#6b7280; font-size: 13px; flex-shrink:0; margin-left: 12px; }

/* 标题悬停颜色 */
.home-news-item:hover .home-news-title { color:#0ea5e9; cursor: pointer; }

.home-news-grid { display:grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.home-news-grid-item { background:#fff; border:1px solid #e5e7eb; border-radius: 12px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display:flex; align-items:center; justify-content: space-between; }
.home-news-grid-title { font-size: 14px; color:#1f2937; margin-right: 10px; }
.home-news-grid-date { font-size: 12px; color:#9ca3af; }

@media (max-width: 960px) {
  .home-news-top { grid-template-columns: 1fr; }
  .home-news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 首页局部兜底：若旧版卡片被意外插入，强制隐藏，避免正文暴露 */
#news-section #news-grid { display: none !important; }
#news-section .card.news-card { display: none; }
#news-section .news-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 老版首页/频道新闻卡片样式（回滚保留） */
.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card.news-card {
  grid-column: span 4;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.news-card-image { width: 100%; height: 180px; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }

.news-card-content { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.news-card-title { font-size: 16px; font-weight: 600; color: #1f2937; margin: 0; }
.news-card-summary { font-size: 14px; color: #6b7280; margin: 0; }
.news-card-meta { display:flex; justify-content: space-between; align-items:center; font-size: 12px; color:#9ca3af; }

@media (max-width: 960px) {
  .card.news-card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .card.news-card { grid-column: span 12; }
}

.title-center { text-align: center; }

.muted { color: #6b7280; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 4;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.card.image-card {
  padding: 0;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
}

.img-placeholder {
  width: 100%;
  height: 280px;
  background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e5e7eb 10px, #e5e7eb 20px);
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  padding: 0;
  margin: 0;
}

.card.image-card .img-placeholder {
  border: none;
  border-radius: 16px;
}

.img-placeholder:hover {
  border-color: #0ea5e9;
  background: repeating-linear-gradient(45deg, #f0f9ff, #f0f9ff 10px, #dbeafe 10px, #dbeafe 20px);
}

.img-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

/* 首页服务卡片特殊样式 - 水平布局 */
.card.service-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  grid-column: span 12;
  margin-bottom: 16px;
  min-height: 140px;
}

.card.service-card .img-placeholder {
  width: 200px;
  height: 120px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 12px;
  border: none;
}

.card.service-card .service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card.service-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.card.service-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

/* 首页纯图片卡片样式 */
.card.pure-image-card {
  padding: 0;
  overflow: hidden;
}

.card.pure-image-card .img-placeholder {
  border: none;
  border-radius: 16px;
  height: 200px;
}

/* Contact page specific */
.contact-banner {
  background: linear-gradient(135deg, #e0f2fe, #ffffff);
  padding: 48px 0;
  min-height: 51vh; /* 与首页一致的高度 */
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.contact-banner.has-background {
  background-blend-mode: overlay;
}

.contact-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--about-overlay-color, transparent);
  opacity: var(--about-overlay-opacity, 0);
  pointer-events: none;
  z-index: 1;
}

.contact-banner .container {
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.about-left { padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.about-right { padding: 0; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; overflow: hidden; }

.about-right .img-placeholder {
  border: none;
  border-radius: 12px;
}

.map-left { border:1px solid #e5e7eb; border-radius: 12px; padding: 0; background:#fff; overflow: hidden; }

.map-left .img-placeholder {
  border: none;
  border-radius: 12px;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.stat { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; background: #fff; text-align: center; }
.stat-num { font-size: 20px; font-weight: 700; color: #0ea5e9; }
.stat-text { font-size: 12px; }

.badges-section { background: #f8fafc; padding: 24px 0; }
.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.badge-item { display:flex; align-items:center; gap:8px; border:1px solid #e5e7eb; border-radius: 10px; padding: 10px; background: #fff; font-size: 14px; }
.badge-icon { width: 22px; height: 22px; border-radius: 50%; background: #e0f2fe; border:1px solid #bae6fd; }

.map-grid { display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.map-right { display:grid; gap: 12px; }
.mapcard { display:flex; gap: 10px; align-items: center; border:1px solid #e5e7eb; border-radius: 12px; padding: 12px; background:#fff; }
.mapicon { width: 28px; height: 28px; border-radius: 50%; background:#fee2e2; border:1px solid #fecaca; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .badges { grid-template-columns: repeat(2, 1fr); }
}

/* Service detail pages (paternity / nipt / fetal) */
.page {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 24px 0;
  min-height: 51vh; /* 与首页一致的高度 */
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page.has-background {
  background-blend-mode: overlay;
}

.page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--page-overlay-color, transparent);
  opacity: var(--page-overlay-opacity, 0);
  pointer-events: none;
  z-index: 1;
}

.page .container {
  position: relative;
  z-index: 2;
}
.jiance { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: stretch; }
.jianceL { overflow: hidden; border-radius: 12px; }
.jianceL .img-placeholder { height: 360px; min-height: 360px; border: none; border-radius: 12px; }
.jianceR { border: none; border-radius: 12px; background: transparent; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; height: 360px; }
.jianceR h2 { margin: 0 0 12px; font-size: 24px; color: #111827; font-weight: 400; }
.jiancedes { color: #6b7280; margin: 8px 0 16px; line-height: 1.6; font-size: 12px; }
.shiyong { margin: 8px 0; padding: 8px 12px; background: #f8fafc; border-radius: 6px; border-left: 3px solid #1e40af; font-size: 14px; line-height: 1.3; }
.shiyong span { font-weight: 700; color: #0ea5e9; margin-right: 8px; }
.jianceR .btn { margin-top: 16px; align-self: flex-start; }

.pagetitle { font-size: 22px; text-align: center; margin: 48px 0 16px; }

.jianceintro { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 16px; max-width: 1130px; margin: 0 auto; }
.jianceintro h2 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.jianceintro p { color: #4b5563; }
.jianceintrotxt { margin-top: 12px; border-top: 1px dashed #e5e7eb; padding-top: 12px; display: grid; gap: 10px; }
.jianceintrotxt h4 { margin: 8px 0 4px; font-size: 16px; padding: 10px 14px; background: linear-gradient(135deg, #e0f7fa 0%, #f0fdff 100%); border-radius: 6px; border-left: 3px solid #00bcd4; color: #006064; font-weight: 600; }
.jianceintrotxt p { margin: 0 0 8px; color: #6b7280; padding-left: 14px; }

@media (max-width: 960px) {
  .jiance { grid-template-columns: 1fr; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kpi {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #fff;
}

/* 关于沙湖基因部分样式 */
.about-section {
  padding: 60px 0;
}

.about-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text-content {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-text-content h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
}

.about-text-content p {
  margin: 0 0 24px;
  line-height: 1.6;
  color: #374151;
}

.about-statistics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.about-statistics .kpi {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  background: #f9fafb;
}

.about-statistics .kpi h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: #0ea5e9;
}

.about-statistics .kpi p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.about-image {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-image .img-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  min-height: 300px;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .about-content-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .about-statistics {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .about-statistics .kpi {
    padding: 16px;
  }
  
  .about-statistics .kpi h3 {
    font-size: 24px;
  }
  
  .about-statistics .kpi p {
    font-size: 14px;
  }
  
  .about-image .img-placeholder {
    height: 250px;
    min-height: 250px;
  }
}

/* 首页统计数值样式强化 */
.kpi h3 {
  margin: 0 0 6px 0;
  font-size: 28px;
  font-weight: 700;
  color: #0ea5e9;
}
/* FAQ (问答列表版式，贴近目标站) */
.question {
  background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e5e7eb 10px, #e5e7eb 20px);
  padding: 60px 0;
  font-size: 24px;
  text-align: left;
  min-height: 51vh; /* 与首页一致的高度 */
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.question.has-background {
  background-blend-mode: overlay;
}

.question::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--faq-overlay-color, transparent);
  opacity: var(--faq-overlay-opacity, 0);
  pointer-events: none;
  z-index: 1;
}

.question .container {
  position: relative;
  z-index: 2;
}

.questioncon { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  max-width: 800px;
  margin: 0 auto;
}

.questioncon li { 
  background: #fff; 
  padding: 0; 
  margin-bottom: 15px; 
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.questioncon li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.ql { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  padding: 20px 24px;
  border-bottom: none;
}

.ql p { 
  margin: 0; 
  font-weight: 700; 
  color: #ffffff; 
  background-color: #4a90e2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ql h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.5;
}

.ql h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.6;
}

.ql.wen { 
  cursor: pointer; 
  transition: background-color 0.2s ease;
}

.ql.wen:hover {
  background-color: #f8fafc;
}

.ql.wen.on {
  background-color: #f0f9ff;
  border-bottom: 1px solid #e5e7eb;
}

.ql.da { 
  display: none; 
  background-color: #fafbfc;
  border-top: 1px solid #e5e7eb;
}

.ql.da p {
  background-color: #10b981;
}

.ql.wen.on + .ql.da { 
  display: flex; 
}

/* 移动端FAQ样式优化 */
@media (max-width: 768px) {
  .question {
    padding: 40px 0;
    font-size: 20px;
  }
  
  .questioncon {
    padding: 0 16px;
  }
  
  .ql {
    padding: 16px 20px;
    gap: 12px;
  }
  
  .ql p {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .ql h2 {
    font-size: 16px;
  }
  
  .ql h3 {
    font-size: 14px;
  }
}

/* Footer */
.site-footer {
  background-color: #4a5568;
  color: #ffffff;
  padding: 16px 0;
  margin-top: auto;
}

/* Footer text: larger and pure white */
.site-footer .container { text-align: center; }
.site-footer .container, .site-footer .container * { color: #ffffff !important; }

.footer-content {
  display: flex;
  flex-direction: row; /* 同一行展示三项 */
  justify-content: center;
  align-items: center;
  gap: 20px; /* 分开一些，间距更舒适 */
  flex-wrap: wrap;
}

.footer-item { 
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px; /* 更大字号 */
  color: #ffffff;
}

/* Footer layout with QR */
.footer-flex { display:flex; align-items:center; justify-content:center; gap:20px; }
.footer-qr { width: 110px; height: 110px; border: 1px dashed rgba(255,255,255,0.6); border-radius: 8px; overflow: hidden; display:flex; align-items:center; justify-content:center; margin-left: 30px; }
.footer-qr img { width:100%; height:100%; object-fit: cover; display:block; }

@media (max-width: 768px) {
  .footer-flex { flex-direction: column; gap: 12px; }
  .footer-qr { margin-left: 0; }
}

.footer-icon {
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #4a5568;
  font-weight: bold;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 12px;
  }
}

/* 优势图标样式 */
.advantage-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 改进的图标设计 */
.icon-certificate::before {
  content: "✓";
  font-weight: bold;
  font-size: 32px;
}
.icon-team::before {
  content: "👤";
  font-size: 26px;
}
.icon-speed::before {
  content: "⚡";
  font-size: 26px;
}
.icon-quality::before {
  content: "◆";
  font-size: 24px;
}
.icon-service::before {
  content: "⚙";
  font-size: 26px;
}
.icon-professional::before {
  content: "★";
  font-size: 26px;
}
.icon-star::before {
  content: "★";
  font-size: 26px;
}

/* 检测流程样式优化 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.step {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.step h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

/* 优势卡片文字对齐优化 */
.grid .card {
  text-align: center;
}

.grid .card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.grid .card p.muted {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

/* 新闻频道页与首页共用的老版卡片样式已移除（避免首页重复显示） */

/* 合作伙伴卡片样式（参考你提供的图） */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* 仅图片格子（铺满、无缝） */
.partner-only-img {
  grid-column: span 3;
  border-radius: 18px;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

@media (max-width: 960px) {
  .partner-card { grid-column: span 6; }
}

@media (max-width: 640px) {
  .partner-card { grid-column: span 12; }
}

/* 产品特性样式 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.feature-item {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-item:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-color: #0ea5e9;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  height: 64px;
  line-height: 64px;
}

.feature-item h3 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
}

.feature-item p {
  margin: 0;
  color: #0ea5e9;
  font-size: 18px;
  font-weight: 600;
}

/* 联系信息样式 */
.contact-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}

.contact-info p {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .card { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .card.service-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

/* ============ 新闻卡片样式 ============ */

/* 新闻加载状态 */
.news-loading, .news-empty, .news-error {
  text-align: center;
  padding: 40px 20px;
  grid-column: span 12;
}

/* 新闻卡片 */
.card.news-card {
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 320px;
}

.card.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 新闻卡片图片 */
.news-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

/* 旧版新闻卡片相关样式已移除 */

  /* 移动端图片文字重排 */
  .grid { grid-template-columns: 1fr !important; }
  .grid .card { grid-column: span 1 !important; }

  /* 合作伙伴部分在移动端使用2列布局 */
  .grid .card.pure-image-card {
    grid-column: span 6 !important;
  }

  /* 如果合作伙伴容器需要特殊处理 */
  section:has(.card.pure-image-card) .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  /* 调整图片卡片的顺序，让图片在上方 */
  .grid .card.image-card {
    order: -1;
  }

  .img-placeholder {
    height: 200px !important;
    min-height: 200px !important;
  }

  /* 合作伙伴图片高度调整 */
  .card.pure-image-card .img-placeholder {
    height: 120px !important;
    min-height: 120px !important;
  }
}

@media (max-width: 640px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 16px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0;
    font-size: 16px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background: transparent;
    color: #0ea5e9;
  }

  .card { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 28px; }
}

/* 移动端导航样式补充 */
@media (max-width: 768px) {
  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}
