/* CNC Machining page sections */

.cnc-hero {
  position: relative;
  margin-top: 88px;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0a1528;
}

.cnc-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/CNC加工/矩形 628 拷贝 4.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.cnc-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.cnc-hero .container {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  text-align: left;
}

.cnc-hero-inner {
  max-width: 640px;
}

.cnc-hero-label {
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.cnc-hero-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 32px;
}

.cnc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-cnc-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #f07a20;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.btn-cnc-primary:hover {
  background-color: #e06a10;
}

.btn-cnc-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-cnc-ghost:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.cnc-overview {
  padding: 80px 0;
  background-color: #ffffff;
}

.cnc-overview-heading {
  margin-bottom: 36px;
}

.cnc-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.cnc-section-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  line-height: 1.25;
}

.cnc-overview-text {
  font-size: 15px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.cnc-overview-text:last-of-type {
  margin-bottom: 28px;
}

.cnc-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cnc-checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: #555555;
  line-height: 1.65;
}

.cnc-checklist li strong {
  font-weight: 700;
  color: #333333;
}

.cnc-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background-color: #f07a20;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M4.5 8.2 2.3 6l-.8.8 3 3 6-6-.8-.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.cnc-overview-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.cnc-overview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.cnc-processes {
  padding: 56px 0 64px;
  background-color: #eceef5;
}

.cnc-processes-head {
  display: grid;
  grid-template-columns: minmax(260px, 50%) minmax(0, 1fr);
  column-gap: 72px;
  align-items: start;
  margin-bottom: 32px;
}

.cnc-processes-head .cnc-section-title {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 36px);
  color: #111111;
  line-height: 1.25;
}

.cnc-processes-desc {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  color: #555555;
  line-height: 1.8;
  padding-top: 8px;
  margin: 0;
}

.cnc-process-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cnc-process-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 28px 32px 32px;
  border: 1px solid #e8ebf2;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.cnc-process-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: #4346a8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cnc-process-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.cnc-process-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cnc-process-tag {
  font-size: 13px;
  font-weight: 400;
  color: #8a94a6;
  margin-bottom: 12px;
}

.cnc-process-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 18px;
}

.cnc-process-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cnc-process-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #555555;
  line-height: 1.75;
  margin-bottom: 8px;
}

.cnc-process-card ul li:last-child {
  margin-bottom: 0;
}

.cnc-process-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f07a20;
}

.cnc-equipment {
  padding: 72px 0 80px;
  background-color: #ffffff;
}

.cnc-equipment .cnc-section-title {
  margin-bottom: 28px;
  color: #111111;
}

.cnc-equipment-table-box {
  background-color: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.08);
}

.cnc-table-wrap {
  overflow-x: auto;
}

.cnc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cnc-table thead {
  background-color: #2e3268;
  color: #ffffff;
}

.cnc-table th {
  padding: 15px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.cnc-table td {
  padding: 14px 12px;
  text-align: center;
  color: #333333;
  font-size: 13px;
  line-height: 1.45;
}

.cnc-table tbody tr {
  background-color: #ffffff;
}

.cnc-table tbody tr:nth-child(even) {
  background-color: #f0f2f7;
}

.cnc-equipment-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #2e3268;
  color: #ffffff;
}

.cnc-stat {
  padding: 26px 16px 28px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cnc-stat:last-child {
  border-right: none;
}

.cnc-stat strong {
  display: block;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #f07a20;
  margin-bottom: 8px;
  line-height: 1.2;
}

.cnc-stat span {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 220px;
  margin: 0 auto;
}

.cnc-parts {
  padding: 80px 0;
  background-color: #ffffff;
}

.cnc-parts-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 48px;
}

.cnc-parts-head .cnc-section-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.cnc-parts-head-right {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.cnc-parts-subtitle {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: #555555;
  line-height: 1.45;
}

.cnc-parts-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #777777;
  line-height: 1.65;
}

.cnc-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cnc-part-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef1f6;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.cnc-part-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #f8fafc;
}

.cnc-part-body {
  padding: 20px 22px 22px;
}

.cnc-part-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f07a20;
  margin-bottom: 6px;
}

.cnc-part-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 14px;
}

.cnc-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  padding: 6px 0;
  border-bottom: 1px dotted #e2e8f0;
}

.cnc-spec-row:last-child {
  border-bottom: none;
}

.cnc-spec-row span:last-child {
  color: #334155;
  font-weight: 500;
  text-align: right;
}

.cnc-why {
  position: relative;
  min-height: 860px;
  padding: 80px 0 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cnc-why-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/CNC加工/矩形 640 拷贝.png");
  background-size: cover;
  background-position: center;
}

.cnc-why .container {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cnc-why-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: #ffffff;
  max-width: 520px;
  line-height: 1.3;
  margin: 0;
  flex-shrink: 0;
}

.cnc-value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: auto;
  padding-top: 0;
}

.cnc-value-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 40px 32px;
  min-height: 280px;
  background-color: #ffffff;
  transition: background 0.3s ease;
}

.cnc-value-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #4346a8;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.cnc-value-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.cnc-value-card:hover {
  background: linear-gradient(145deg, #1e2248 0%, #252b61 100%);
}

.cnc-value-card:hover h3 {
  color: #ffffff;
}

.cnc-value-card:hover p {
  color: rgba(255, 255, 255, 0.78);
}

.cnc-faq {
  padding: 80px 0 96px;
  background-color: #ffffff;
}

.cnc-faq-head {
  text-align: center;
  margin-bottom: 48px;
}

.cnc-faq-head .cnc-section-title {
  margin-bottom: 14px;
  color: #111111;
}

.cnc-faq-sub {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #8a94a6;
  line-height: 1.5;
}

.cnc-faq-list {
  width: 100%;
  margin: 0 auto;
}

.cnc-faq-item {
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  margin-bottom: 14px;
  background-color: #ffffff;
  overflow: hidden;
}

.cnc-faq-item:last-child {
  margin-bottom: 0;
}

.cnc-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.cnc-faq-question-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.45;
}

.cnc-faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #eef0f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.cnc-faq-icon {
  line-height: 1;
  font-weight: 400;
}

.cnc-faq-icon--plus {
  display: flex;
  font-size: 22px;
  color: #4346a8;
}

.cnc-faq-icon--close {
  display: none;
  font-size: 20px;
  color: #ffffff;
}

.cnc-faq-item.is-open .cnc-faq-toggle {
  background-color: #f07a20;
}

.cnc-faq-item.is-open .cnc-faq-icon--plus {
  display: none;
}

.cnc-faq-item.is-open .cnc-faq-icon--close {
  display: flex;
}

.cnc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.cnc-faq-item.is-open .cnc-faq-answer {
  max-height: 320px;
}

.cnc-faq-answer p {
  margin: 0;
  padding: 0 28px 26px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .cnc-overview-grid,
  .cnc-process-cards,
  .cnc-parts-grid,
  .cnc-value-cards {
    grid-template-columns: 1fr;
  }

  .cnc-processes-head {
    column-gap: 40px;
    grid-template-columns: minmax(200px, 38%) minmax(0, 1fr);
  }

  .cnc-equipment-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cnc-stat:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .cnc-processes-head {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .cnc-processes-head .cnc-section-title,
  .cnc-processes-desc {
    grid-column: 1;
    grid-row: auto;
  }

  .cnc-processes-desc {
    padding-top: 0;
  }

  .cnc-parts-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cnc-parts-head-right {
    flex: none;
    max-width: none;
    text-align: left;
    white-space: normal;
  }

  .cnc-why {
    min-height: auto;
    padding-bottom: 48px;
  }

  .cnc-why .container {
    flex: none;
  }

  .cnc-value-cards {
    margin-top: 32px;
    padding-top: 0;
  }

  .cnc-value-card {
    min-height: 200px;
  }

  .cnc-hero {
    min-height: 440px;
  }

  .cnc-equipment-stats {
    grid-template-columns: 1fr;
  }

  .cnc-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cnc-stat:last-child {
    border-bottom: none;
  }
}
