/* ========== 全局基础 ========== */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #333;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ========== 顶部导航栏 ========== */
.site-header {
  background: #001e3c;
  padding: 12px 5%;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 60px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links ul {
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: #fff;
  font-size: 15px;
}
.nav-links a:hover {
  text-decoration: underline;
}
#language-select {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 4px 8px;
}

/* ========== Banner ========== */
.mechanical-banner {
  background: url("../img/banner.jpg") center/cover no-repeat;
  height: 60vh;
  position: relative;
}
.banner-overlay {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
}
.banner-text {
  background: rgba(0, 0, 0, 0.5);
  padding: 24px 48px;
  border-radius: 10px;
  text-align: center;
}
.banner-text h1 {
  font-size: 42px;
  color: #fff;
  margin-bottom: 12px;
}
.banner-text p {
  font-size: 20px;
  color: #f1f1f1;
}

/* ========== 机加工/钣金加工模块 ========== */
.machining-merged {
  display: flex;
  flex-wrap: wrap;
}
.machining-half {
  flex: 1;
  padding: 60px 5%;
  color: #fff;
}
.machining-left-side {
  background: linear-gradient(to right, #1c6dd0, #2da8e0);
}
.machining-right-side {
  background: linear-gradient(to left, #159b8f, #3fcfc2);
}
.machining-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.machining-left-side .machining-content {
  flex-direction: row;
}
.machining-right-side .machining-content {
  flex-direction: row-reverse;
}
.machining-content img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.machining-content .text {
  flex: 1;
}
.machining-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #fff;
}
.machining-content p {
  font-size: 16px;
  margin: 6px 0;
  color: #fff;
}
/* ========== 分类切换按钮 ========== */
.machining-tabs {
  padding: 60px 5%;
}
.tab-buttons {
  text-align: center;
  margin-bottom: 30px;
}
.tab {
  display: inline-block;
  margin: 0 12px;
  padding: 10px 22px;
  border: 2px solid #157fd0;
  background: #fff;
  color: #157fd0;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}
.tab.active,
.tab:hover {
  background: #157fd0;
  color: #fff;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ========== 工艺图展示（三图/四图） ========== */
.process-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}
.process-grid div {
  text-align: center;
  transition: transform 0.3s ease;
}
.process-grid img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.process-grid p {
  margin-top: 8px;
  font-size: 15px;
  color: #333;
}
.process-grid div:hover {
  transform: translateY(-6px);
}

/* ========== 表格区域样式 ========== */
.table-title {
  text-align: center;
  font-size: 20px;
  color: #157fd0;
  margin: 30px 0 15px;
}
.table-container {
  overflow-x: auto;
  margin-bottom: 40px;
}
.materials-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.materials-table th, .materials-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
  font-size: 14px;
}
.materials-table thead th {
  background: #e6f7ff;
}
.materials-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* ========== 示例图展示 ========== */
.examples-title {
  text-align: center;
  font-size: 20px;
  color: #157fd0;
  margin: 30px 0 20px;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.example-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}
.example-grid img:hover {
  transform: scale(1.03);
}
/* ========== 客户之声 ========== */
.voice-section {
  background: #f0f6ff;
  padding: 60px 5%;
  text-align: center;
}
.voice-section h3 {
  font-size: 24px;
  color: #0d2b5f;
  margin-bottom: 30px;
}
.voice-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.voice-grid div {
  font-size: 14px;
  color: #333;
  width: 180px;
}
.voice-grid strong {
  display: block;
  font-size: 32px;
  color: #157fd0;
  margin-bottom: 8px;
}

/* ========== 企业实力 & 我们的优势 ========== */
.strength-section,
.advantages-section {
  padding: 60px 5%;
  background: #fff;
  text-align: center;
}
.strength-section h3,
.advantages-section h3 {
  font-size: 24px;
  color: #0d2b5f;
  margin-bottom: 30px;
}
.strength-grid,
.advantage-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.strength-grid div,
.advantage-grid div {
  background: #f5f5f5;
  padding: 24px 32px;
  border-radius: 12px;
  font-size: 16px;
  width: 260px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.advantage-grid h4 {
  font-size: 18px;
  color: #157fd0;
  margin-bottom: 12px;
}
.advantage-grid p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* ========== 联系我们（Footer） ========== */
.footer {
  background: #0d2b5f;
  color: #fff;
  padding: 60px 5% 20px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.contact-info {
  flex: 1 1 300px;
  font-size: 16px;
  line-height: 2;
}
.contact-form {
  flex: 1 1 400px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form button {
  width: 100%;
  padding: 12px;
  background: #157fd0;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}
.contact-form button:hover {
  background: #105ea6;
}
.footer h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}
.footer .copyright {
  text-align: center;
  font-size: 13px;
  color: #ccc;
  margin-top: 30px;
}

/* ========== 响应式支持 ========== */
@media (max-width: 768px) {
  .machining-merged {
    flex-direction: column;
    text-align: center;
  }
  .machining-content {
    flex-direction: column !important;
    text-align: center;
  }
  .machining-content img {
    margin-bottom: 20px;
  }
  .process-grid {
    flex-direction: column;
    gap: 20px;
  }
  .voice-grid {
    flex-direction: column;
    gap: 20px;
  }
  .footer-container {
    flex-direction: column;
  }
}
.section-subtitle {
  font-size: 16px;
  color: #777;
  margin-top: -10px;
  margin-bottom: 40px;
}

/* 卡片基础 */
.strength-grid, .advantage-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.strength-card, .advantage-card {
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  padding: 24px 32px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.strength-card:hover, .advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.strength-card img,
.advantage-card img {
  height: 48px;
  margin-bottom: 18px;
}
.strength-card h4,
.advantage-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #157fd0;
}
.strength-card p,
.advantage-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
/* 高级蓝光网格感背景（适用于 .strength-section） */
.strength-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(200, 225, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(180, 210, 255, 0.15) 0%, transparent 60%),
    linear-gradient(145deg, #eef3f9, #dbe7f2);
  background-blend-mode: overlay;
  position: relative;
  overflow: hidden;
}

/* 玻璃光泽卡片 */
.strength-card,
.advantage-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 64, 128, 0.08);
  padding: 32px 24px;
  transition: all 0.3s ease;
}
.strength-card:hover,
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 64, 128, 0.18);
}

/* “我们的优势”统一感背景 */
.advantages-section {
  padding: 100px 0;
  background:
    linear-gradient(135deg, #f7fafe 0%, #e8eff8 100%);
  position: relative;
}
/* 弹窗遮罩 */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
/* 弹窗内容 */
.modal-content {
  background: #fff;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
  text-align: left;
}
.modal-content h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #0d2b5f;
}
/* 关闭按钮 */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}
.close-btn:hover {
  color: #333;
}
.product-gallery-section {
  max-width: 1300px;
  margin: 64px auto 48px auto;
  padding: 0 16px;
}

.product-gallery-title {
  text-align: center;
  font-size: 2.3em;
  color: #193679;
  letter-spacing: 0.05em;
  font-weight: 800;
  margin-bottom: 32px;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
}

.product-gallery-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(60,100,160,0.10);
  overflow: hidden;
  transition: box-shadow .19s, transform .19s;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 1 / 1; /* 保证图片正方形 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-item:hover {
  box-shadow: 0 12px 36px rgba(70,120,180,0.17);
  transform: translateY(-5px) scale(1.045);
}

.product-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}

@media (max-width: 1100px) {
  .product-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .product-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .product-gallery-grid { grid-template-columns: 1fr; }
  .product-gallery-title { font-size: 1.3em; margin-bottom: 18px; }
  .product-gallery-item { max-width: 96vw; }
}
