/* ============================================================
   style-cases.css — 成功案例总览（独立布局：案例圆环 + 斜向网格）
   OMICA 网站建设 · 极简卫浴风
   ============================================================ */

/* ---------- Hero：案例圆环 ---------- */
.ca-hero {
  position: relative;
  background: var(--white);
  padding: 178px 0 84px;
  overflow: hidden;
}
.ca-hero::before {
  content: "";
  position: absolute;
  right: -240px; top: -240px;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(27,27,27,.06), transparent 62%);
  pointer-events: none;
}
.ca-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ca-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .34em;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.ca-hero-kicker::before { content: ""; width: 34px; height: 1px; background: var(--ink); }
.ca-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--ink); line-height: 1.28; }
.ca-hero-desc { margin: 24px 0 34px; font-size: 16px; line-height: 2; color: var(--ink-mute); max-width: 540px; }
.ca-ring { position: relative; justify-self: center; width: min(400px, 40vw); height: min(400px, 40vw); }
.ca-ring-big {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  animation: caSpin 46s linear infinite;
}
.ca-ring-big::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
}
.ca-ring-big.outer { inset: -8%; border-style: dashed; animation-direction: reverse; }
@keyframes caSpin { to { transform: rotate(360deg); } }
.ca-ring-disc {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.ca-ring-disc b { font-size: 44px; font-weight: 800; line-height: 1; }
.ca-ring-disc span { font-size: 13px; color: #CFCFCA; margin-top: 8px; letter-spacing: .18em; }
.ca-ring-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.ca-ring-tag.t1 { left: -14px; top: 16%; }
.ca-ring-tag.t2 { right: -12px; top: 42%; }
.ca-ring-tag.t3 { left: 4%; bottom: 12%; }

/* ---------- 数据条 ---------- */
.ca-stats { background: var(--gray-50); overflow: hidden; position: relative; }
.ca-stats::before {
  content: "";
  position: absolute;
  left: -160px; bottom: -160px;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,27,27,.05), transparent 62%);
  pointer-events: none;
}
.ca-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.ca-stat { text-align: center; padding: 30px 20px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); transition: all var(--transition); }
.ca-stat:nth-child(2), .ca-stat:nth-child(4) { transform: translateY(20px); }
.ca-stat:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.ca-stat:nth-child(2):hover, .ca-stat:nth-child(4):hover { transform: translateY(-4px); }
.ca-stat b { display: block; font-size: 34px; font-weight: 800; color: var(--ink); }
.ca-stat b i { font-style: normal; font-size: 18px; margin-left: 2px; }
.ca-stat span { display: block; font-size: 13px; color: var(--gray-600); margin-top: 6px; letter-spacing: .06em; }

/* ---------- 案例网格 ---------- */
.ca-list { background: var(--white); position: relative; overflow: hidden; }
.ca-list::after {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px dashed var(--gray-300);
  pointer-events: none;
}
.ca-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; z-index: 2; }
.ca-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: all var(--transition); }
.ca-card:nth-child(2), .ca-card:nth-child(5) { transform: translateY(24px); }
.ca-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.ca-card:nth-child(2):hover, .ca-card:nth-child(5):hover { transform: translateY(-6px); }
.ca-card-media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.ca-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ca-card:hover .ca-card-media img { transform: scale(1.06); }
.ca-card-tag {
  position: absolute;
  left: 16px; top: 16px;
  background: rgba(27,27,27,.82);
  color: #fff;
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 14px;
  letter-spacing: .06em;
}
.ca-card-body { padding: 24px 26px 28px; }
.ca-card-body h3 { font-size: 18px; color: var(--ink); font-weight: 800; margin-bottom: 10px; }
.ca-card-body h3 a { color: inherit; }
.ca-card-body h3 a:hover { color: var(--ink-soft); }
.ca-card-body p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.8; margin-bottom: 14px; }
.ca-card-metrics { display: flex; gap: 18px; border-top: 1px solid var(--gray-200); padding-top: 14px; }
.ca-card-metrics b { font-size: 17px; color: var(--ink); font-weight: 800; }
.ca-card-metrics span { display: block; font-size: 12px; color: var(--gray-600); margin-top: 2px; }

/* ---------- 客户评价 ---------- */
.ca-quote { background: var(--gray-50); overflow: hidden; position: relative; }
.ca-quote::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,27,27,.05), transparent 64%);
  pointer-events: none;
}
.ca-quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 2; }
.ca-quote-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 30px 28px; position: relative; transition: all var(--transition); }
.ca-quote-card:nth-child(2) { transform: translateY(24px); }
.ca-quote-card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.ca-quote-card:nth-child(2):hover { transform: translateY(-4px); }
.ca-quote-card::before {
  content: "\201C";
  position: absolute;
  right: 24px; top: 6px;
  font-size: 88px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
}
.ca-quote-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.9; position: relative; }
.ca-quote-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.ca-quote-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.ca-quote-who b { display: block; font-size: 14.5px; color: var(--ink); }
.ca-quote-who span { display: block; font-size: 12px; color: var(--gray-600); margin-top: 2px; }

/* ---------- CTA（本页专属） ---------- */
.ca-sec-cta { background: var(--ink); color: #fff; overflow: hidden; }
.ca-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;
}
.ca-sec-cta::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -180px;
  transform: translateX(-50%);
  width: 440px; height: 440px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16);
  pointer-events: none;
}
.ca-sec-cta .cta-inner p { color: rgba(255,255,255,.72); }
.ca-sec-cta .cta-contact { color: rgba(255,255,255,.85); }
.ca-sec-cta .cta-contact a { color: #fff; }
.ca-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) {
  .ca-hero { padding-top: 148px; }
  .ca-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ca-ring { width: min(340px, 72vw); height: min(340px, 72vw); }
  .ca-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ca-stat:nth-child(2), .ca-stat:nth-child(4) { transform: none; }
  .ca-list-grid { grid-template-columns: 1fr; }
  .ca-card:nth-child(2), .ca-card:nth-child(5) { transform: none; }
  .ca-quote-grid { grid-template-columns: 1fr; }
  .ca-quote-card:nth-child(2) { transform: none; }
}
@media (max-width: 640px) {
  .ca-hero { padding: 132px 0 56px; }
  .ca-stats-grid { grid-template-columns: 1fr; }
}
