/* 命名空间前缀：beats-ad- */

/* 基础样式重置 */
[class^="beats-ad-"] {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
  }
  
  /* 重置 dl 和 dd 的默认样式 */
  .beats-ad-dl, .beats-ad-dd {
    margin: 0;
  }
  
  /* 防止文本选择干扰 */
  .beats-ad-no-select {
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* 轮播容器 - 调整最大宽度为 300px */
  .beats-ad-carousel {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* 轮播幻灯片容器 */
  .beats-ad-carousel-slides {
    display: flex;
    width: 300%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  /* 单个幻灯片 */
  .beats-ad-carousel-slide {
    width: 33.333%;
    min-width: 33.333%;
    flex-shrink: 0;
    position: relative;
  }
  
  /* 轮播控制指示器 */
  .beats-ad-carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }
  
  .beats-ad-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  }
  
  .beats-ad-carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  }
  
  /* 广告内容区 */
  .beats-ad-hero {
    position: relative;
    width: 100%;
    height: 300px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
  }
  
  .beats-ad-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  }
  
  .beats-ad-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    width: 100%;
    max-width: 350px;
  }
  
  .beats-ad-hero-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease;
  }
  
  .beats-ad-hero-subtitle {
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease 0.1s;
  }
  
  .beats-ad-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #0071e3;
    color: #fff;
    border-radius: 30px;
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease 0.2s;
  }
  
  .beats-ad-btn:hover {
    background: #0057b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 87, 184, 0.4);
  }
  
  /* 轮播动画增强 */
  .beats-ad-carousel-slide:not(.active) .beats-ad-hero-title {
    transform: translateY(10px);
    opacity: 0;
  }
  
  .beats-ad-carousel-slide:not(.active) .beats-ad-hero-subtitle {
    transform: translateY(10px);
    opacity: 0;
  }
  
  .beats-ad-carousel-slide:not(.active) .beats-ad-btn {
    transform: translateY(10px);
    opacity: 0;
  }
  
  /* 响应式适配 */
  @media (max-width: 576px) {
    .beats-ad-carousel {
      max-width: 90%;
      border-radius: 8px;
    }
  
    .beats-ad-hero {
      height: 220px;
    }
  
    .beats-ad-hero-content {
      padding: 0 15px;
    }
  
    .beats-ad-hero-title {
      margin-bottom: 0.5rem;
    }
  
    .beats-ad-hero-subtitle {
      margin-bottom: 1rem;
    }
  
    .beats-ad-btn {
      padding: 0.4rem 1rem;
    }
  
    .beats-ad-carousel-controls {
      bottom: 10px;
      gap: 6px;
    }
  
    .beats-ad-carousel-dot {
      width: 8px;
      height: 8px;
    }
  }