/* 案例详情页共享样式 */

/* Hero 区 */
.case-hero {
  position: relative;
  padding: 80px 0 60px;
  margin-top: 64px;
  background: linear-gradient(135deg, #0a1929 0%, #0d2847 35%, #0e3460 60%, #103d5e 100%);
  color: #fff;
  overflow: hidden;
}
.case-hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,147,72,0.22), transparent 65%);
  top: -350px;
  right: -200px;
  filter: blur(40px);
}
.case-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,152,236,0.15), transparent 65%);
  bottom: -250px;
  left: -100px;
  filter: blur(50px);
}
.case-hero .container { position: relative; z-index: 2; }

.cd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75) !important;
  font-size: 13px;
  text-decoration: none !important;
  margin-bottom: 24px;
  transition: all 0.25s ease;
}
.cd-back:hover {
  color: #fff !important;
  transform: translateX(-3px);
}

.case-hero .case-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 18px;
}

.case-hero h1 {
  font-size: 40px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  margin: 0 0 18px !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.case-hero-desc {
  font-size: 16px;
  color: #e5e7eb;
  line-height: 1.75;
  max-width: 760px;
  margin: 0 0 32px;
}

.case-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.case-hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-hero-meta .meta-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
.case-hero-meta .meta-value {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

/* 主体内容 */
.cd-wrap {
  background: #fff;
  padding: 60px 0 80px;
}
.cd-wrap .container {
  max-width: 1000px;
}

.cd-cover {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15,23,42,0.08);
  margin-bottom: 48px;
  background: #f3f4f6;
}
.cd-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.cd-section {
  margin-bottom: 56px;
}
.cd-section:last-child { margin-bottom: 0; }
.cd-section > h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 8px !important;
  padding-left: 14px;
  position: relative;
}
.cd-section > h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #00b35a, #009348);
}
.cd-section > h2 + .cd-lead {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 20px;
  padding-left: 14px;
}

.cd-section p {
  font-size: 15px !important;
  color: #374151 !important;
  line-height: 1.85 !important;
  margin: 0 0 14px !important;
}
.cd-section p:last-child { margin-bottom: 0 !important; }

.cd-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.cd-list li {
  position: relative;
  padding: 14px 16px 14px 40px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}
.cd-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b35a, #009348);
  box-shadow: 0 0 0 3px rgba(0,147,72,0.12);
}

/* 功能矩阵 */
.cd-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.cd-feature {
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.cd-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(0,147,72,0.12), transparent 70%);
}
.cd-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15,23,42,0.08);
  border-color: rgba(0,147,72,0.3);
}
.cd-feature .cd-f-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,147,72,0.08);
  color: #009348;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.cd-feature h5 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 6px !important;
}
.cd-feature p {
  font-size: 13.5px !important;
  color: #4b5563 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* 成效统计 */
.cd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.cd-stat {
  padding: 22px 18px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid rgba(0,147,72,0.15);
  border-radius: 14px;
  text-align: center;
}
.cd-stat b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #009348;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  font-feature-settings: 'tnum' 1;
}
.cd-stat span {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

/* CTA */
.cd-cta {
  margin-top: 56px;
  padding: 44px 32px;
  background: linear-gradient(135deg, #009348 0%, #00b35a 100%);
  border-radius: 18px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cd-cta::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -150px; right: -100px;
}
.cd-cta::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -100px; left: -50px;
}
.cd-cta > * { position: relative; z-index: 1; }
.cd-cta h3 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 8px !important;
}
.cd-cta p {
  font-size: 14px !important;
  color: rgba(255,255,255,0.85) !important;
  margin: 0 0 22px !important;
}
.cd-cta .cd-cta-btns {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
}
.cd-cta-btn-primary {
  background: #fff;
  color: #009348 !important;
}
.cd-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}
.cd-cta-btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3);
}
.cd-cta-btn-ghost:hover {
  background: rgba(255,255,255,0.25);
}

/* 相关案例 */
.cd-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e5e7eb;
}
.cd-related h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 22px !important;
}
.cd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cd-related-item {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cd-related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15,23,42,0.08);
  border-color: rgba(0,147,72,0.3);
  text-decoration: none !important;
}
.cd-related-item .cd-r-img {
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  overflow: hidden;
}
.cd-related-item .cd-r-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cd-related-item:hover .cd-r-img img {
  transform: scale(1.05);
}
.cd-related-item .cd-r-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cd-related-item .cd-r-body .case-tag {
  align-self: flex-start;
  font-size: 11px;
  padding: 3px 10px;
}
.cd-related-item h5 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
  line-height: 1.4;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .case-hero {
    padding: 48px 0 40px;
  }
  .case-hero .container {
    padding: 0 20px !important;
  }
  .case-hero h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  .case-hero-desc {
    font-size: 14px;
    line-height: 1.7;
  }
  .case-hero-meta {
    gap: 14px 20px;
  }
  .case-hero-meta .meta-value {
    font-size: 14px;
  }

  .cd-wrap {
    padding: 36px 0 48px;
  }
  .cd-wrap .container {
    padding: 0 16px !important;
  }
  .cd-cover { margin-bottom: 32px; border-radius: 12px; }
  .cd-section { margin-bottom: 40px; }
  .cd-section > h2 {
    font-size: 20px !important;
  }
  .cd-list { grid-template-columns: 1fr; }
  .cd-features { grid-template-columns: 1fr; gap: 12px; }
  .cd-feature { padding: 18px 16px; }
  .cd-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cd-stat { padding: 18px 12px; }
  .cd-stat b { font-size: 26px; }

  .cd-cta {
    margin-top: 40px;
    padding: 32px 20px;
    border-radius: 14px;
  }
  .cd-cta h3 { font-size: 18px !important; }
  .cd-cta-btn {
    padding: 11px 22px;
    font-size: 13px;
  }

  .cd-related { margin-top: 48px; padding-top: 32px; }
  .cd-related-grid { grid-template-columns: 1fr; gap: 14px; }
}
