/* ============================================
   案例详情页样式
   ============================================ */

.case-hero {
  padding-top: 110px;
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, var(--case-color, #6366f1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.case-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.case-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.case-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.case-industry,
.case-duration {
  padding: 0.375rem 0.875rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.case-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-primary) 60%, var(--case-color, #6366f1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-hero-desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.case-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 720px;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
}

@media (max-width: 768px) {
  .case-hero-stats { grid-template-columns: 1fr; }
}

/* 客户基本信息卡片 */
.case-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.overview-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease-out);
}

.overview-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.overview-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.overview-value {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
}

.overview-value a {
  color: var(--brand-primary);
  font-size: var(--fs-sm);
}

@media (max-width: 900px) {
  .case-overview { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .case-overview { grid-template-columns: 1fr; }
}

/* 痛点 */
.pain-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.pain-point {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease-out);
}

.pain-point:hover {
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateX(4px);
}

.pain-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.pain-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--fs-sm);
}

@media (max-width: 768px) {
  .pain-points { grid-template-columns: 1fr; }
}

/* 优化方案 */
.optimization-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.opt-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  align-items: flex-start;
  transition: all 0.3s var(--ease-out);
}

.opt-item:hover {
  border-color: var(--border-strong);
  transform: translateX(6px);
}

.opt-tag {
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.opt-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--fs-base);
}

@media (max-width: 768px) {
  .opt-item { flex-direction: column; gap: var(--space-sm); }
}

/* AI 引用截图 */
.section-ai-shots {
  background:
    radial-gradient(ellipse at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%),
    var(--bg-base);
}

.ai-shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.ai-shot {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
}

.ai-shot:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.ai-shot-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.ai-shot-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.ai-shot-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.ai-shot-meta {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.ai-shot-badge {
  margin-left: auto;
  padding: 0.25rem 0.625rem;
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border-radius: var(--r-full);
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
}

.ai-shot-question {
  padding: 1rem 1.25rem 0.25rem;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-shot-q {
  padding: 0 1.25rem 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

.ai-shot-answer {
  padding: 1rem 1.25rem;
  background: var(--bg-glass);
  margin: 0 1.25rem;
  border-radius: var(--r-md);
  border-left: 3px solid var(--brand-primary);
}

.ai-shot-answer-head {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ai-shot-answer p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-shot-source {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: var(--fs-xs);
  color: var(--brand-primary);
  font-weight: 500;
}

.ai-shot-metric {
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
}

.ai-shot-metric span { color: var(--text-tertiary); }

.ai-shot-metric strong {
  font-size: var(--fs-md);
  font-weight: 800;
}

@media (max-width: 1024px) {
  .ai-shots-grid { grid-template-columns: 1fr; }
}

/* 关键词排名 */
.keywords-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.keyword-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: all 0.3s var(--ease-out);
}

.keyword-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.keyword-text {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.keyword-platforms {
  display: flex;
  gap: 0.25rem;
}

.platform-tag {
  padding: 0.25rem 0.625rem;
  background: var(--bg-glass);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.keyword-status {
  font-size: var(--fs-sm);
  color: #10b981;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .keywords-grid { grid-template-columns: 1fr; }
  .keyword-card { flex-wrap: wrap; }
}

/* 效果数据 */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.result-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.result-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.result-label {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.result-change {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.result-detail {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* 客户证言 */
.section-testimonial {
  background:
    radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.testimonial-card {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  position: relative;
  backdrop-filter: blur(20px);
}

.testimonial-quote {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 5rem;
  font-family: serif;
  color: var(--brand-primary);
  opacity: 0.16;
  line-height: 1;
}

.testimonial-text {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--text-primary);
}

.testimonial-role {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}