/* ============================================================
   PAGE CASE — 营销案例板块
   拓跋云 V4
   ============================================================ */

/* ─── Case Filter Bar ──────────────────────────── */
.case-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  align-items: center;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.case-filter-bar .filter-tag {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
}
.case-filter-bar .filter-tag:hover { border-color: var(--red-300); color: var(--red-500); }
.case-filter-bar .filter-tag.active { background: var(--red-500); color: #fff; border-color: var(--red-500); }

/* ─── Featured Case Card ──────────────────────── */
.case-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
}
.case-card-featured:hover { box-shadow: var(--shadow-hover); }
.ccf-image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.ccf-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ccf-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--red-500);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.ccf-body {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ccf-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ccf-industry {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.ccf-service-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.ccf-service-tag.seo { background: var(--red-50); color: var(--red-500); }
.ccf-service-tag.ad { background: #eff6ff; color: #2563eb; }
.ccf-service-tag.geo { background: #f0fdf4; color: #16a34a; }
.ccf-duration {
  font-size: 12px;
  color: var(--text-tertiary);
}
.ccf-body h2 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.ccf-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.ccf-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}
.ccf-stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--red-500);
  font-family: var(--font-en);
  margin-bottom: 4px;
}
.ccf-stat .label {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── Case Grid ───────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-200);
}
.cc-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.cc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.case-card:hover .cc-image img { transform: scale(1.05); }
.cc-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.cc-tag.seo { background: var(--red-50); color: var(--red-500); }
.cc-tag.ad { background: #eff6ff; color: #2563eb; }
.cc-tag.geo { background: #f0fdf4; color: #16a34a; }
.cc-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cc-body h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.cc-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}
.cc-results {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}
.cc-results strong {
  color: var(--red-500);
  font-family: var(--font-en);
  font-size: 18px;
}

/* ─── Metrics Grid ────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-base);
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.metric-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.metric-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--red-500);
  font-family: var(--font-en);
  margin-bottom: 8px;
}
.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.metric-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Case Detail Hero ──────────────────────────── */
/* Scope to case-detail pages only (all have a variant class) */
.case-hero-geo,
.case-hero-seo,
.case-hero-ad {
  color: #fff;
}
.case-hero-geo::before,
.case-hero-seo::before,
.case-hero-ad::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 40%);
  z-index: 0;
}
.case-hero-geo .container,
.case-hero-seo .container,
.case-hero-ad .container {
  position: relative;
  z-index: 1;
}
.case-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,.12);
}
.case-hero-title {
  font-size: clamp(28px,4vw,44px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #fff;
}
.case-hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 36px;
}
.case-hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.chs-item { text-align: center; }
.chs-num {
  font-size: clamp(32px,4vw,48px);
  font-weight: 700;
  color: var(--gold-400);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 6px;
}
.chs-label {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ─── Case Detail Section ───────────────────────── */
.case-section {
  padding: 60px 0;
}
@media (min-width: 1024px) {
  .case-section { padding: 80px 0; }
}

.case-block {
  max-width: 860px;
  margin: 0 auto;
}
.case-block-header {
  margin-bottom: 32px;
}
.case-block-header h2 {
  font-size: clamp(22px,3vw,32px);
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 4px;
}
.case-block-header h2 .red { color: var(--red-500); }
.case-block-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 12px;
}
.case-block-body {
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}
.case-block-body > p {
  margin-bottom: 16px;
}

/* ─── Case Info Grid ────────────────────────────── */
.case-info-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.case-info-item {
  padding: 20px 24px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.case-info-item:nth-child(3n) { border-right: none; }
.case-info-item:nth-last-child(-n+3) { border-bottom: none; }
.ci-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ci-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Challenge List ────────────────────────────── */
.challenge-list { margin-top: 20px; }
.challenge-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}
.challenge-item:last-child { margin-bottom: 0; }
.challenge-item:hover {
  border-color: var(--red-200);
  box-shadow: var(--shadow-card);
}
.challenge-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.challenge-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ─── Solution Blocks ───────────────────────────── */
.solution-block {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}
.solution-block:last-child { margin-bottom: 0; }
.solution-block:hover {
  border-color: var(--red-200);
  box-shadow: var(--shadow-card);
}
.sol-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.sol-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sol-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.sol-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.sol-list {
  list-style: none;
  padding: 0;
}
.sol-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.sol-list li:last-child { border-bottom: none; }
.sol-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  flex-shrink: 0;
}
.sol-list li strong {
  color: var(--text-primary);
}

/* ─── Results Table ─────────────────────────────── */
.results-table-wrapper {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.results-table thead {
  background: var(--red-50);
}
.results-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--red-500);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red-200);
}
.results-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.results-table tbody tr:last-child td { border-bottom: none; }
.results-table tbody tr:hover td { background: var(--gray-50); }
.result-up {
  color: var(--red-500);
  font-weight: 600;
  white-space: nowrap;
}
.result-up:not(:empty):not([class*="arrow"])::before {
  content: '↑ ';
  font-size: 14px;
}

/* ─── Testimonial ───────────────────────────────── */
.testimonial-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-quote-mark {
  font-size: 72px;
  line-height: 1;
  color: var(--red-200);
  font-family: Georgia, serif;
  margin-bottom: -12px;
}
.testimonial-quote {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
.testimonial-quote p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
  font-style: italic;
}
.testimonial-author { margin-top: 20px; }
.ta-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ta-title {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─── Case Hero Specific Backgrounds ────────────── */
.case-hero-geo { background: linear-gradient(135deg, #0d3b66, #1a5a8a) !important; }
.case-hero-seo { background: linear-gradient(135deg, var(--red-800), var(--red-600)) !important; }
.case-hero-ad  { background: linear-gradient(135deg, #1a3a2a, #2d6a4f) !important; }

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  /* Duplicate rules removed — now covered by responsive-mobile.css */
  
  /* Case detail responsive — case-info-grid nth-child logic (page-specific) */
  .case-info-grid { grid-template-columns: repeat(2, 1fr); }
  .case-info-item:nth-child(3n) { border-right: 1px solid var(--border-light); }
  .case-info-item:nth-child(2n) { border-right: none; }
  .case-info-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border-light); }
  .case-info-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 768px) {
  /* Duplicate rules removed — now covered by responsive-mobile.css */
  
  /* Case detail responsive — page-specific overrides */
  .ccf-stats { flex-wrap: wrap; gap: 20px; }
  .case-info-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-light); }
  .case-info-item:last-child { border-bottom: none; }
  .results-table th,
  .results-table td { padding: 10px 14px; font-size: 13px; }
}
