@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .bg-gradient-primary {
    background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
  }
  .transition-all-300 {
    transition: all 300ms ease-in-out;
  }
  .tool-card {
    transition: all 0.3s ease;
  }
  .tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
  }
  .tag-active {
    background-color: #165DFF;
    color: white;
  }
  .modal-backdrop {
    backdrop-filter: blur(5px);
  }
  .video-container {
    aspect-ratio: 16 / 9;
  }
  .contact-float {
    transition: all 0.3s ease;
  }
  .phone-tooltip {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
  }
  .contact-item:hover .phone-tooltip {
    opacity: 1;
    transform: translateX(0);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
  background-color: #f9fafb;
  padding: 30px;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.case-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.case-industry {
  display: inline-block;
  padding: 3px 8px;
  background-color: #e6f4ff;
  color: #165dff;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.case-title {
  font-size: 16px;
  color: #1d2129;
  margin-bottom: 8px;
  font-weight: 600;
}

.case-desc {
  font-size: 14px;
  color: #4e5969;
  line-height: 1.5;
  margin-bottom: 15px;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #165dff;
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
}

.play-btn.playing {
  background-color: #ff4d4f;
}

.audio-info {
  flex: 1;
}

.audio-name {
  font-size: 13px;
  color: #4e5969;
  margin-bottom: 6px;
}

.progress-container {
  width: 100%;
  height: 3px;
  background-color: #e5e6eb;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: #165dff;
  width: 0%;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #86909c;
  margin-top: 4px;
}

/* 响应式布局 */
@media (min-width: 640px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .case-card:nth-child(n+5) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .case-card:nth-child(n+5) {
    display: block;
  }
  .case-card:nth-child(n+7) {
    display: none;
  }
}

@media (min-width: 1280px) {
  .case-card:nth-child(n+7) {
    display: block;
  }
}

@media (max-width: 767px) {
  .case-card:nth-child(n+4) {
    display: none;
  }
  body {
    padding: 15px;
  }
}