/* 基础样式 */
.course-container {
  max-width: 1220px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 0px;
  overflow: hidden;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

.course-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.course-header {
  display: flex;
  padding: 30px;
  gap: 30px;
}

.course-cover {
  flex: 0 0 350px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.course-cover:hover {
  transform: scale(1.02);
}

.cover-image {
    width: 100%;
    height: 290px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    background-size: 100% 100%;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.ceo-single-jieshao {
    color: #777;
    border-bottom: 0;
    font-size: 14px;
    line-height: 30px;
    margin-bottom: 5px;
}

.preview-button {
  background: rgba(255,255,255,0.95);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preview-button:hover {
  transform: scale(1.05);
  background: white;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.play-icon {
  width: 18px;
  height: 18px;
}

.course-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #222;
  line-height: 1.3;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 40px; /* 统一行高 */
  gap: 15px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
  background: #f8f8f8;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.meta-item:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.meta-icon {
  font-size: 16px;
}

.course-status-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
  flex-wrap: wrap;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.status-badge.updating {
  background: linear-gradient(135deg, #fff8e6, #ffedcc);
  color: #ff9500;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.1);
}

.status-badge.updating::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9500;
  margin-right: 8px;
  animation: pulse 1.5s infinite;
}

.course-price {
  font-size: 24px;
  font-weight: 700;
  color: #f23f4e;
  position: relative;
}

.course-price::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f23f4e, transparent);
  opacity: 0.5;
}

.action-buttons {
  display: flex;
  gap: 15px;
}

.purchase-button, .vip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
}

.purchase-button {
  background: linear-gradient(135deg, #f23f4e, #ff6b6b);
  color: white;
  box-shadow: 0 4px 12px rgba(242, 63, 78, 0.3);
}

.vip-button {
  background: linear-gradient(135deg, #4a6cf7, #6a8aff);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.purchase-button:hover, .vip-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.purchase-button:hover {
  box-shadow: 0 8px 20px rgba(242, 63, 78, 0.4);
}

.vip-button:hover {
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.4);
}

.purchase-button:active, .vip-button:active {
  transform: translateY(0);
}

.button-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.purchase-button:hover .button-icon {
  transform: translateX(3px);
}

.vip-button:hover .button-icon {
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .course-container {
    height: auto;
    margin-top: 10px;
  }
  
  .course-header {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  
  .course-cover {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }
  
  .cover-image {
    height: 180px;
  }
  
  .course-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .course-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .meta-item {
    justify-content: center;
  }
  
  .course-status-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
  }
  
  .action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
 
  /* 适配超小屏幕 */
  @media (max-width: 400px) {
    .action-buttons {
      grid-template-columns: 1fr;
    }
  }
  
  .purchase-button, .vip-button {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  
  .preview-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}
    