/* ===== 代工定制栏目专属样式（lists_dingzhi.htm / view_dingzhi.htm） ===== */
.dz-page { padding: 0 0 80px; }

.dz-page .dz-sec { margin-top: 72px; }
.dz-page .dz-sec:first-child { margin-top: 56px; }
.dz-page .dz-sec .section-title { margin-bottom: 8px; }
.dz-page .dz-sec .section-desc { margin-bottom: 40px; }

/* ---- 1. 定位引言（居中排版） ---- */
.dz-intro-text {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.dz-intro-title {
  font-size: 34px;
  line-height: 1.4;
  color: var(--dark);
  margin: 0 0 18px;
}
.dz-intro-title span { display: block; color: var(--green); }
.dz-intro-desc {
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  margin: 0 0 22px;
  text-align: justify;
}
.dz-intro-tags {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.dz-intro-tags li {
  padding: 6px 16px;
  border: 1px solid var(--green-light);
  border-radius: var(--radius-full);
  color: var(--green);
  font-size: 14px;
  background: var(--white);
  transition: all var(--transition);
}
.dz-intro-tags li:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.dz-intro-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---- 2. 可定制范围 ---- */
.dz-scope {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 48px 40px;
}
.dz-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dz-scope-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.dz-scope-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-light);
}
.dz-scope-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.dz-scope-card:hover .dz-scope-icon { background: var(--green); color: var(--white); }
.dz-scope-icon svg { width: 28px; height: 28px; }
.dz-scope-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--dark); }
.dz-scope-card p { font-size: 14px; line-height: 1.8; color: var(--text-light); margin: 0; }

/* ---- 3. 定制流程（深色青花底） ---- */
.dz-process {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: var(--radius);
  padding: 48px 40px;
}
.dz-process .section-title { color: #fff; }
.dz-process .section-title::after {
  background: linear-gradient(90deg, #fff, rgba(255,255,255,.4));
}
.dz-process .section-desc { color: rgba(255,255,255,.75); }
.dz-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.dz-steps li { position: relative; text-align: center; padding: 0 4px; }
/* 步骤之间的虚线连接 */
.dz-steps li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(-50% + 26px);
  width: calc(100% - 52px);
  border-top: 1px dashed rgba(255,255,255,.35);
}
.dz-steps li:first-child::before { display: none; }
.dz-step-num {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.dz-steps li h3 { color: #fff; font-size: 16px; margin: 0 0 6px; }
.dz-steps li p { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.7; margin: 0; }

/* ---- 4. 起订量与打样方式 ---- */
.dz-sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dz-sample-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.dz-sample-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}
.dz-sample-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.dz-sample-card:hover::before { opacity: 1; }
.dz-sample-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--dark); }
.dz-sample-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
  margin: 0;
  min-height: 3.6em; /* 固定两行占位，说明行数不一时卡片内部对齐 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.dz-cycle {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dz-cycle-card {
  background: linear-gradient(135deg, var(--green-pale), var(--white));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dz-cycle-label { font-size: 14px; color: var(--text-light); letter-spacing: 2px; }
.dz-cycle-num { font-size: 30px; font-weight: 700; color: var(--green); line-height: 1.2; }
.dz-cycle-num i {
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-left: 4px;
}
.dz-cycle-card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-light); }

/* ---- 5. 品控标准 + 客户保密 ---- */
.dz-qc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 与模块4 dz-cycle 两卡同宽，上下视觉对齐 */
  gap: 20px;
  align-items: stretch;
}
.dz-qc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column; /* 内容撑满整卡高度，两张卡上下对齐 */
}
.dz-qc-card h3 { font-size: 20px; margin: 0 0 16px; color: var(--dark); }
.dz-qc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.dz-qc-list li {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.dz-qc-list li h4 { font-size: 15px; margin: 0 0 6px; }
.dz-qc-list li p { margin: 0; color: var(--text-light); }
.dz-qc-ok { background: var(--green-pale); }
.dz-qc-ok h4 { color: var(--green); }
.dz-qc-no { background: #F9EEE9; } /* 窑变红浅底 */
.dz-qc-no h4 { color: var(--accent); }
/* 客户保密：描金色调 */
.dz-qc-secret { background: linear-gradient(160deg, #FBF8F1, var(--white)); border-color: #E5DCC8; }
.dz-qc-secret h3 { color: var(--gold); }
.dz-qc-lead { font-size: 15px; line-height: 1.9; color: var(--text); margin: 0 0 14px; }
.dz-qc-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-evenly; /* 均匀撑满剩余高度，与左侧品控卡对齐 */
}
.dz-qc-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
}
.dz-qc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- 6. 适合合作的客户类型 ---- */
.dz-client-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.dz-client-tags li {
  padding: 10px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: all var(--transition);
}
.dz-client-tags li:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---- 6.5 定制案例（复用 page.css 的 gallery-grid；无文章时整块隐藏） ---- */
.dz-sec.dz-cases { display: none; }
.dz-sec.dz-cases:has(.gallery-item) { display: block; }

/* ---- 7. 咨询合作（深色面板：表单 + 联系方式） ---- */
.dz-contact-panel {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: var(--radius);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.dz-contact-form h3 { color: #fff; font-size: 24px; margin: 0 0 8px; }
.dz-contact-form > p { color: rgba(255,255,255,.75); font-size: 14px; margin: 0 0 22px; }
.dz-form { display: flex; flex-wrap: wrap; gap: 14px; }
.dz-form input,
.dz-form textarea {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: all var(--transition);
  box-sizing: border-box;
}
.dz-form input { flex: 1 1 calc(50% - 7px); max-width: calc(50% - 7px); }
.dz-form textarea { min-height: 110px; resize: vertical; }
.dz-form input::placeholder,
.dz-form textarea::placeholder { color: rgba(255,255,255,.55); }
.dz-form input:focus,
.dz-form textarea:focus { border-color: #fff; background: rgba(255,255,255,.16); }
.dz-form-btn {
  background: var(--accent); /* 窑变红 CTA */
  color: #fff;
  border-radius: var(--radius-full);
  padding: 13px 36px;
  font-size: 15px;
  transition: all var(--transition);
}
.dz-form-btn:hover { background: #8C3620; transform: translateY(-2px); }

.dz-contact-side { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.dz-qr { background: var(--white); border-radius: var(--radius); padding: 18px; text-align: center; }
.dz-qr img { width: 150px; height: 150px; object-fit: contain; display: block; margin: 0 auto; }
.dz-qr p { margin: 10px 0 0; font-size: 13px; color: var(--text-light); }
.dz-contact-lines { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dz-contact-lines a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  transition: all var(--transition);
}
.dz-contact-lines a:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ===== 内容页模板（view_dingzhi.htm） ===== */
/* 侧栏：咨询定制引导卡 */
.dz-side-cta {
  margin-bottom: 32px;
  background: linear-gradient(160deg, var(--green-pale), var(--white));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.dz-side-cta-tit {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.dz-side-cta-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
  margin: 0 0 14px;
}
.dz-side-cta-qr {
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-sizing: border-box;
}
.dz-side-cta-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dz-side-cta-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.dz-side-cta-tel:hover { color: var(--green-dark); }
.dz-side-cta-btn { width: 100%; justify-content: center; box-sizing: border-box; }

/* 文末转化 CTA 横幅 */
.dz-view-cta {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: var(--radius);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dz-view-cta-text h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.dz-view-cta-text p { color: rgba(255,255,255,.75); font-size: 14px; margin: 0; }
.dz-view-cta-btns { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.dz-view-cta-tel {
  color: #fff;
  font-size: 15px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.dz-view-cta-tel:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .dz-scope-grid { grid-template-columns: repeat(2, 1fr); }
  .dz-steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .dz-steps li:nth-child(3n+1)::before { display: none; }
  .dz-sample-grid { grid-template-columns: repeat(2, 1fr); }
  .dz-cycle { grid-template-columns: 1fr; }
  .dz-qc-grid { grid-template-columns: 1fr; }
  .dz-contact-panel { grid-template-columns: 1fr; gap: 32px; }
  .dz-contact-side { flex-direction: row; align-items: stretch; }
  .dz-qr { flex: 0 0 auto; }
  .dz-contact-lines { justify-content: center; }
  .dz-view-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .dz-page { padding: 0 0 56px; }
  .dz-page .dz-sec { margin-top: 48px; }
  .dz-intro-title { font-size: 26px; }
  .dz-scope,
  .dz-process { padding: 36px 20px; }
  .dz-scope-grid { grid-template-columns: 1fr; }
  .dz-steps { grid-template-columns: 1fr 1fr; }
  .dz-steps li:nth-child(3n+1)::before { display: block; }
  .dz-steps li:nth-child(2n+1)::before { display: none; }
  .dz-sample-grid { grid-template-columns: 1fr; }
  .dz-sample-card p { min-height: 0; }
  .dz-form input { flex: 1 1 100%; max-width: 100%; }
  .dz-contact-panel { padding: 32px 20px; }
  .dz-contact-side { flex-direction: column; align-items: center; }
  .dz-client-tags { gap: 10px; }
  .dz-client-tags li { padding: 8px 18px; font-size: 14px; }
  .dz-view-cta { padding: 28px 20px; }
  .dz-view-cta-btns { flex-direction: column; width: 100%; }
  .dz-view-cta-btns .btn-primary,
  .dz-view-cta-tel { width: 100%; justify-content: center; box-sizing: border-box; }
}
