/* ============================================
   Components — 卡片、视频轮播、标签、流程图
   ============================================ */

/* ---- Service Type Cards ---- */
.service-card {
  flex: 1;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.service-icon--real {
  background: var(--color-primary-bg);
}

.service-icon--virtual {
  background: #FDF2F8;
}

.service-card h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  line-height: 1.5;
}

/* ---- Case Card ---- */
.case-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.case-header {
  padding: var(--space-5) var(--space-5) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.case-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-stats);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.case-avatar--client {
  background: linear-gradient(135deg, var(--color-success) 0%, #34D399 100%);
}

.case-info {
  flex: 1;
  min-width: 0;
}

.case-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-desc {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  margin-top: 2px;
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
  white-space: nowrap;
}

.tag--real {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.tag--virtual {
  background: #FDF2F8;
  color: var(--color-accent);
}

.tag--client {
  background: #ECFDF5;
  color: var(--color-success);
}

.case-tags {
  padding: 0 var(--space-5);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

/* ---- Video Carousel ---- */
.carousel {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-900);
}

.carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 9 / 16;
  cursor: pointer;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide .poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gray-800) 0%, var(--color-gray-700) 100%);
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
}

/* Play button overlay */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 2;
}

.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--color-primary);
  margin-left: 3px;
}

.play-btn:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  background: var(--color-white);
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-gray-300);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 20px;
  background: var(--color-primary);
}

/* Case footer description */
.case-footer {
  padding: var(--space-3) var(--space-5) var(--space-5);
}

.case-footer p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  line-height: 1.5;
}

/* ---- Process Label ---- */
.process-label {
  margin-bottom: var(--space-4);
}

.process-label .tag {
  font-size: var(--font-size-sm);
  padding: var(--space-1) var(--space-3);
}

/* ---- Process Steps ---- */
.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  width: 2px;
  height: calc(100% - 24px);
  background: var(--color-gray-200);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: var(--space-2);
}

.step-content h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
}

.step-content p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

/* ---- Stats ---- */
.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-1);
}

.stats-tagline {
  text-align: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-6);
  letter-spacing: 0.05em;
}

/* ---- Footer ---- */
.footer-note {
  font-size: var(--font-size-xl);
  color: var(--color-white);
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.12);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary-light);
}

.footer-cta {
  font-size: var(--font-size-sm);
  color: var(--color-gray-300);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.footer-cta strong {
  color: var(--color-primary-light);
}

.footer-brand {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
