/* === 统一容器与全局样式 === */
.container,
.section,
.cards,
.features,
.split {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 28px;
}

body {
  background: #f7f9fb;
}

@media (max-width: 1440px) {
  .container,
  .section,
  .cards,
  .features,
  .split {
    max-width: 1200px;
  }
}

/* inner content 控制宽度 */
.page-inner {
  max-width: 1140px;
  margin: 0 auto;
}

section,
.container.grain_product_des {
  position: relative;
  margin-top: 56px;
}

section + section,
section + .container,
.container + section {
  margin-top: 28px;
}

section::before,
.container.grain_product_des::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e51f3a, #fc9abf);
  margin: -44px auto 18px;
}

h2 {
  font-weight: 700;
  color: #1f2d43;
}

/* === Split 横向内容区域 === */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 42px 24px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 45, 63, 0.06);
  margin-bottom: 40px;
}

.split-img,
.split-text {
  flex: 1 1 320px;
  min-width: 280px;
}

.split img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.split-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.split-head p,
.split-feature p {
  color: #4f5666;
  line-height: 1.75;
  font-size: 1.04rem;
}

.split-feature {
  margin-top: 20px;
  padding: 18px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 231, 239, 0.4), rgba(255, 250, 255, 0.7));
  border: 1px solid rgba(235, 138, 162, 0.35);
}

.split-list {
  margin-top: 26px;
}

.split-list h3 {
  font-size: 1.2rem;
  color: #1f2d43;
  margin-bottom: 10px;
}

.split-list p,
.split-list li {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
}

.split-list ul {
  list-style: disc inside;
  margin-top: 10px;
  padding-left: 0;
}

.contact-card {
  margin-top: 24px;
  border: 1px solid rgba(230, 80, 103, 0.25);
  background: #fff;
  padding: 18px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(31, 45, 63, 0.07);
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
  font-size: 1rem;
}

.contact-item span { color: #69738a; }
.contact-item strong { color: #e51f3a; font-size: 1.12rem; }

.contact-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #092a87, #1d4dcf);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 53, 155, 0.30);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn-secondary {
  background: linear-gradient(90deg, #f1b53d, #ffb43d);
  color: #102348;
}

.contact-btn:hover,
.contact-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 53, 155, 0.40);
}

/* === 卡片板块 === */
.cards {
  padding: 60px 0;
  text-align: center;
  background: #f8f9fb;
  border-radius: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(31, 45, 63, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(31, 45, 63, 0.14);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 14px;
}

/* === 能力表格 === */
.section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.95rem;
}

.section th,
.section td {
  border: 1px solid #e3e9f3;
  padding: 14px 12px;
  text-align: left;
}

.section th {
  background: #edf4ff;
  color: #21324a;
}

.section tr:nth-child(even) {
  background: #fbfcfe;
}

/* === 优势区域 === */
.features {
  padding: 60px 0;
  background: #f5f7fa;
  border-radius: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-grid div {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 10px 22px rgba(31, 45, 63, 0.06);
  color: #2b3b52;
  font-weight: 600;
}

/* === 响应式断点 === */
@media (max-width: 992px) {
  .split {
    padding: 34px 16px;
    gap: 20px;
  }

  .split-text h2,
  .cards h2,
  .features h2,
  .section h2 {
    font-size: 1.85rem;
  }

  .cards,
  .features {
    padding: 48px 0;
  }
}

@media (max-width: 768px) {
  .split {
    flex-direction: column;
    padding: 28px 14px;
  }

  .split-img,
  .split-text {
    min-width: 100%;
  }

  .container,
  .section,
  .cards,
  .features {
    padding-left: 12px;
    padding-right: 12px;
  }

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

@media (max-width: 576px) {
  .split {
    padding: 20px 10px;
    gap: 14px;
  }

  .split-text h2,
  .cards h2,
  .features h2,
  .section h2 {
    font-size: 1.3rem;
  }

  .section table {
    display: block;
    overflow-x: auto;
    width: 100%;
    min-width: 360px;
  }

  .section table th,
  .section table td {
    white-space: nowrap;
  }
}

/* === 2026 Redesign Overrides === */
/* Remove aggressive section top margin for redesigned sections */
#manxing_solution section,
#manxing_solution .container.grain_product_des {
  margin-top: 0;
}
#manxing_solution section::before,
#manxing_solution .container.grain_product_des::before {
  display: none;
}
/* Fix Bootstrap 5 table color in dark sections */
#manxing_solution .table td,
#manxing_solution .table th { color: #e0e8f0 !important; }
#manxing_solution .table thead th { color: #fff !important; background-color: #0052a4 !important; }

/* Fix h2 / fw-bold text in dark background sections */
[style*="background:#1a2340"] h2,
[style*="background:#1a2340"] h3,
[style*="background:#1a2340"] .fw-bold,
[style*="background:#1a2340"] .fw-semibold { color: #fff !important; }
[style*="background:#1a2340"] p { color: rgba(255,255,255,.82) !important; }
