/* =========================================================
   聚淼成型科技 - 服务区块通用样式（最终版）
   适用于：.printing-page / .cnc-page / .silicone-page / .modeling-page
   Author: Jumiao Prototyping
   Version: 1.0.0
   ========================================================= */

/* ===== 通用结构与字体 ===== */
.printing-page, .cnc-page, .silicone-page, .modeling-page {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.7;
}

/* ===== 通用区块间距 ===== */
.printing-page section,
.cnc-page section,
.silicone-page section,
.modeling-page section {
  padding: 60px 20px;
}

/* ===== 容器布局 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 标题样式 ===== */
.section-title {
  text-align: center;
  font-size: 28px;
  color: #0b6cff;
  font-weight: 800;
  margin-bottom: 40px;
}

/* ===== 背景层 ===== */
.bg-white { background: #fff; }
.bg-gray { background: #f9fafb; }
.bg-blue-light { background: #eef4ff; }

/* ===== Hero 模块 ===== */
.fullwidth {
  width: 100%;
  margin: 0;
  padding: 100px 20px; /* 上下间距与左右间距 */
  text-align: center;
  color: #fff;
  box-sizing: border-box; /* 确保包含内边距 */
}

.hero {
  background: linear-gradient(135deg, #0b6cff 0%, #6ba8ff 100%);
  padding: 50px 20px;
  box-sizing: border-box; /* 确保包含内边距 */
}

.hero-inner {
  max-width: 1200px; /* 确保内容宽度不超过一定范围 */
  margin: 0 auto; /* 居中 */
  padding: 0 15px; /* 留出左右间距 */
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.btn-hero {
  display: inline-block;
  background: #fff;
  color: #0b6cff;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: #e6f0ff;
  transform: translateY(-2px);
}

/* ===== 响应式布局调整 ===== */
@media (max-width: 992px) {
  .hero h1 { 
    font-size: 30px; 
  }
  .hero p { 
    font-size: 16px; 
  }
  .btn-hero {
    padding: 10px 24px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 20px; /* 适当增加顶部和底部的间距 */
  }
  .hero-inner {
    padding: 0 15px; /* 保证内容两侧有间距 */
  }
  .hero h1 { 
    font-size: 24px; 
    margin-bottom: 10px; /* 减少标题与文本之间的间距 */
  }
  .hero p { 
    font-size: 15px; 
    margin-bottom: 15px;
  }
  .btn-hero { 
    padding: 10px 20px;
    font-size: 14px;
  }
}





/* ===== 通用卡片网格 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  padding: 25px;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.card img {
  width: 100%;
  height: auto;
  margin: 0 auto 15px;
  object-fit: contain;
  display: block;
}
.card h3 {
  font-size: 18px;
  color: #0b6cff;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* CNC 应用行业图片：固定展示比例，保留完整图片并避免卡片高度随原图变化。 */
.cnc-page .industry-section .card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

/* ===== 通用表格样式 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  background: #f1f5ff;
  color: #0b6cff;
  font-weight: 600;
}
td {
  color: #333;
  font-size: 14px;
}

/* ===== 动画淡入效果 ===== */
.fade-in {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 响应式布局 ===== */
@media (max-width: 992px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
  .btn-hero { padding: 10px 24px; font-size: 14px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}
