/* ============================================================
   style-consult.css — 在线咨询（独立布局：居中三环 + 圆式步骤）
   OMICA 网站建设 · 极简卫浴风
   ============================================================ */

/* ---------- Hero：居中嵌套三环 ---------- */
.cn-hero {
  position: relative;
  background: var(--white);
  padding: 178px 0 84px;
  overflow: hidden;
  text-align: center;
}
.cn-hero::before {
  content: "";
  position: absolute;
  left: 50%; top: -300px;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(27,27,27,.055), rgba(27,27,27,.02) 46%, transparent 70%);
  pointer-events: none;
}
.cn-hero-ring {
  position: absolute;
  left: 50%; top: -210px;
  transform: translateX(-50%);
  width: 560px; height: 560px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  pointer-events: none;
}
.cn-hero-ring.r2 { width: 400px; height: 400px; top: -130px; border-style: dashed; animation: cnPulse 7s ease-in-out infinite; }
.cn-hero-ring.r3 { width: 240px; height: 240px; top: -40px; border: 1px solid var(--gray-400); animation: cnPulse 7s ease-in-out 1.2s infinite; }
@keyframes cnPulse { 50% { transform: translateX(-50%) scale(1.06); } }
.cn-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.cn-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .34em;
  color: var(--gray-600);
  margin-bottom: 22px;
}
.cn-hero-kicker::before, .cn-hero-kicker::after { content: ""; width: 30px; height: 1px; background: var(--gray-400); }
.cn-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--ink); line-height: 1.28; }
.cn-hero-desc { margin: 22px auto 0; font-size: 16px; line-height: 2; color: var(--ink-mute); max-width: 640px; }
.cn-hero-desc a { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--gray-400); }
.cn-hero-desc a:hover { border-color: var(--ink); }

/* ---------- 咨询表单大卡 ---------- */
.cn-form-sec { background: var(--gray-50); overflow: hidden; position: relative; }
.cn-form-sec::before {
  content: "";
  position: absolute;
  right: -160px; bottom: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,27,27,.05), transparent 62%);
  pointer-events: none;
}
.cn-form-wrap { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }
.cn-form-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 46px 48px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.cn-form-card::before {
  content: "";
  position: absolute;
  left: -90px; top: -90px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
}
.cn-form-card::after {
  content: "";
  position: absolute;
  left: -40px; top: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px dashed var(--gray-300);
}
.cn-form-head { text-align: center; margin-bottom: 36px; position: relative; z-index: 2; }
.cn-form-head h2 { font-size: 26px; font-weight: 800; color: var(--ink); }
.cn-form-head p { font-size: 14px; color: var(--ink-mute); margin-top: 10px; }
.cn-field { margin-bottom: 22px; position: relative; z-index: 2; }
.cn-field > label { display: block; font-size: 14px; color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.cn-field > label em { font-style: normal; color: var(--gray-400); font-weight: 400; font-size: 12.5px; }
.cn-field input, .cn-field textarea, .cn-field select {
  width: 100%;
  border: 1px solid var(--gray-300);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.cn-field input:focus, .cn-field textarea:focus, .cn-field select:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(27,27,27,.06); }
.cn-field textarea { min-height: 140px; resize: vertical; }
.cn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cn-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cn-opt { position: relative; }
.cn-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cn-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 11px 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--gray-50);
  cursor: pointer;
  transition: all var(--transition);
}
.cn-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.cn-opt span:hover { border-color: var(--ink); }
.cn-submit { width: 100%; padding: 15px 28px; font-size: 16px; margin-top: 8px; }
.cn-note { font-size: 12.5px; color: var(--gray-500); text-align: center; margin-top: 14px; }

/* ---------- 咨询流程：四步圆环 ---------- */
.cn-flow { background: var(--white); overflow: hidden; position: relative; }
.cn-flow::after {
  content: "";
  position: absolute;
  left: -120px; top: 40px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px dashed var(--gray-300);
  pointer-events: none;
}
.cn-flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; margin-top: 44px; position: relative; }
.cn-flow-grid::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: 46px;
  height: 1px;
  background: var(--gray-300);
}
.cn-flow-step { text-align: center; position: relative; z-index: 2; }
.cn-flow-circle {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition);
}
.cn-flow-step:hover .cn-flow-circle { background: var(--ink); }
.cn-flow-circle svg { color: var(--ink); transition: color var(--transition); }
.cn-flow-step:hover .cn-flow-circle svg { color: #fff; }
.cn-flow-step:nth-child(2) .cn-flow-circle { border-color: var(--gray-400); }
.cn-flow-step:nth-child(3) .cn-flow-circle { border-color: var(--gray-400); }
.cn-flow-step:nth-child(4) .cn-flow-circle { border-color: var(--gray-400); }
.cn-flow-step h3 { font-size: 16px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.cn-flow-step p { font-size: 13px; color: var(--ink-mute); line-height: 1.75; max-width: 200px; margin: 0 auto; }

/* ---------- 常见咨询问题（手风琴） ---------- */
.cn-faq { background: var(--gray-50); position: relative; overflow: hidden; }
.cn-faq::before {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,27,27,.05), transparent 64%);
  pointer-events: none;
}
.cn-faq-list { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.cn-faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.cn-faq-item:hover { border-color: var(--gray-400); }
.cn-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.cn-faq-item summary::-webkit-details-marker { display: none; }
.cn-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.cn-faq-item[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.cn-faq-item .cn-faq-body { padding: 0 26px 22px; font-size: 14px; color: var(--ink-mute); line-height: 1.9; }

/* ---------- CTA（本页专属） ---------- */
.cn-sec-cta { background: var(--ink); color: #fff; overflow: hidden; }
.cn-sec-cta::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -260px;
  transform: translateX(-50%);
  width: 640px; height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.cn-sec-cta::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -180px;
  transform: translateX(-50%);
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16);
  pointer-events: none;
}
.cn-sec-cta .cta-inner p { color: rgba(255,255,255,.72); }
.cn-sec-cta .cta-contact { color: rgba(255,255,255,.85); }
.cn-sec-cta .cta-contact a { color: #fff; }
.cn-sec-cta .cta-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.6); background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); box-shadow: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cn-hero { padding-top: 148px; }
  .cn-hero-ring { display: none; }
  .cn-form-card { padding: 36px 28px; }
  .cn-options { grid-template-columns: repeat(2, 1fr); }
  .cn-flow-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .cn-flow-grid::before { display: none; }
}
@media (max-width: 640px) {
  .cn-hero { padding: 132px 0 56px; }
  .cn-row { grid-template-columns: 1fr; }
  .cn-form-card { padding: 28px 18px; }
  .cn-flow-grid { grid-template-columns: 1fr; }
}
