/* 暗黑模式规则已迁入 dark-mode-unified.css（原 Index.css） */
/* ===== 基础布局工具类 ===== */
.F_C {
  clear: both;
  float: none;
}
/* ===== 统一播放器组件样式 ===== */
.unified-player-wrapper {
  margin: 0 0 18px 0;
  width: 100%;
  display: flex; /* 🔧 避免 block 元素的基线对齐问题 */
  line-height: 1; /* 🔧 避免 line-height 导致的额外高度 */
}

.unified-player-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.unified-player-button {
  flex-shrink: 0;
}

.unified-player-button .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.unified-player-button .btn .play-icon {
  display: block;
  pointer-events: none;
}

.unified-player-time {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}
/* ========================================
   首页标题样式 - ElevenLabs 风格
   ======================================== */

.Public.Floor02,
.Public.Floor05 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 48px 0 22px 0;
  padding: 0;
  clear: both;
  width: 100%;
  border: none;
}

/* 标题文字 - 专业克制 */
.Public.Floor02 .Cn,
.Public.Floor05 .Cn {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  letter-spacing: -0.01em;
  padding-left: 0;
  position: relative;
}

.Public.Floor02 p,
.Public.Floor05 p {
  margin: 0;
}

/* 更多链接 - 带箭头动画 */
.Public.Floor02 p a,
.Public.Floor05 p a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.Public.Floor02 p a::after,
.Public.Floor05 p a::after {
    content: "\2192";
    display: inline-block;
    transition: transform 0.25s ease;
}

.Public.Floor02 p a:hover,
.Public.Floor05 p a:hover {
    color: #52525b;
}

.Public.Floor02 p a:hover::after,
.Public.Floor05 p a:hover::after {
    transform: translateX(3px);
}



/* 📱 移动端优化 */
@media (max-width: 768px) {
  .Public.Floor02 .Cn,
  .Public.Floor05 .Cn {
    font-size: 18px;
  }
  
  .Public.Floor02,
  .Public.Floor05 {
    margin: 32px 0 16px 0;
  }
}

/* ===== 推荐男声/女声 标签切换 ===== */
.voice-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px 0;
  padding: 0;
  width: 100%;
}
.voice-tab-bar {
  display: flex;
  gap: 0;
}
.voice-tab-more {
  margin: 0;
}
.voice-tab-more a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.voice-tab-more a:hover {
  color: #0a0a0a;
}


.voice-tab {
  padding: 6px 0;
  margin-right: 18px;
  font-size: 15px;
  font-weight: 500;
  color: #a1a1aa;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  letter-spacing: -0.01em;
}
.voice-tab:hover {
  color: #52525b;
}
.voice-tab.active {
  color: #000000;
  font-weight: 600;
  border-bottom-color: #000000;
}



.voice-tab-panel {
  display: none;
}
.voice-tab-panel.active {
  display: block;
}
@media (max-width: 768px) {
  .voice-tab-header {
    margin: 32px 0 16px 0;
  }
  .voice-tab {
    font-size: 16px;
    padding: 8px 0px;
  }
}

/* ===== 推荐男声/女声卡片容器 - 已移至 teacher_card.css ===== */
/* 配音师卡片基本样式 */
.TeacherCard {
  width: 20%;
  float: left;
  box-sizing: border-box;
  padding: 0 10px;
  margin-bottom: 20px;
}

/* .TeacherCardInner 已弃用：老师卡片外观统一在 components/teacher_card.css 的 .Teacher / .voice-card-inner / .discount-teacher-inner */

/* 卡片头部样式 */
.cardHeader {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.teacherPhoto {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.photoOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.1);
}

.teacherInfo {
  margin-left: 15px;
}

.teacherName {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}


.teacherTags {
  display: flex;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  margin-right: 8px;
  color: #666;
  font-size: 12px;
}


/* 音频区域样式 */
.audioSection {
  margin-bottom: 15px;
}

/* 按钮区域样式 */
.cardActions {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
  padding-top: 10px;
}


.cardActions li {
  flex: 1;
  text-align: center;
}

.cardActions li a {
  display: block;
  padding: 5px 0;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}


.cardActions li a:hover {
  color: #1890ff;
}

/* 价格弹窗样式 */
.pricePopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.pricePopupContent {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 90%;
  width: 400px;
  position: relative;
}


.closeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}

.popupTitle {
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}


.priceDetail {
  margin-bottom: 10px;
}

.priceType {
  display: inline-block;
  width: 100px;
  font-weight: 500;
}

.oldPrice {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

/* 响应式布局 */
/* ========================================
   横幅 - 极简扁平设计
   ======================================== */

.static-banner {
  position: relative;
  height: 100px; /* 📐 减小高度 - 更精简 */
  border-radius: 10px; /* 🎨 减小圆角 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px 0; /* 📐 底部留白 */
  background: #1a1a1a; /* 🎨 简单的深色背景 */
}


/* 小屏优化 */

/* 横幅背景 - 去掉复杂动画 */
.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a; /* 🎨 纯色背景 - 更干净 */
  z-index: 1;
}


/* 横幅内容 - 精简字号 */
.banner-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 0 40px;
  max-width: 800px;
  text-align: center;
}

.banner-content h2 {
  font-size: 20px; /* 📝 从36px大幅缩小 */
  font-weight: 600; /* 📝 适中字重 */
  margin-bottom: 12px;
  text-shadow: none; /* 🎨 去掉文字阴影 */
  letter-spacing: 0;
}

.banner-content p {
  font-size: 13px; /* 📝 从18px缩小 */
  margin-bottom: 16px;
  text-shadow: none;
  color: rgba(255, 255, 255, 0.85); /* 🎨 轻微透明 */
}

/* 横幅按钮 - 极简扁平 */
.banner-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.banner-btn {
  padding: 8px 20px; /* 📐 减小内边距 */
  border-radius: 6px; /* 🎨 更小的圆角 */
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.15s ease;
  box-shadow: none; /* 🎨 去掉阴影 */
}

.primary-btn {
  background: #0f766e;
  color: #ffffff;
}

.secondary-btn {
  background: rgba(255,255,255,0.15);
  backdrop-filter: none; /* 🎨 去掉模糊效果 */
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}

.accent-btn {
  background: #f44336;
  color: #ffffff;
}

/* 按钮悬停 - 简化效果 */
.primary-btn:hover {
  background: #115e59;
}

.accent-btn:hover {
  background: #e53935;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* ========================================
   推荐样音卡片 - 独立样式文件
   避免与 Index.css 冲突
   ======================================== */

/* ===== 基础容器样式 ===== */
.sound-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    clear: both;
}

/* ========================================
   样音卡片 - 极简扁平化设计
   ======================================== */

.sound-list-container .Sound {
    display: flex !important;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    min-height: 72px;
    background: var(--card-surface-panel, transparent);
    border: 1px solid var(--card-surface-outline, rgba(0, 0, 0, 0.1));
    border-radius: 10px;
    box-shadow: var(--card-shadow-rest, none);
    transform: translateY(0);
    transition:
        transform var(--card-hover-duration, 0.22s) var(--card-hover-easing, cubic-bezier(0.25, 0.72, 0.38, 1)),
        box-shadow var(--card-hover-duration, 0.22s) var(--card-hover-easing, cubic-bezier(0.25, 0.72, 0.38, 1)),
        border-color var(--card-hover-duration, 0.22s) ease;
    float: none !important;
    margin: 0 !important;
}

/* 卡片悬停效果 */
@media (hover: hover) and (pointer: fine) {
    .sound-list-container .Sound:hover {
        z-index: 2;
        border-color: var(--card-surface-outline-hover, rgba(0, 0, 0, 0.18));
        background: var(--card-surface-panel-hover, transparent);
        transform: translateY(var(--card-hover-lift-y, -2px));
        box-shadow: var(--card-shadow-hover-lift);
    }
}

/* 焦点状态 */
.sound-list-container .Sound:focus-within,
.sound-list-container .Sound:focus {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}




/* ===== 推荐样音元素布局样式 ===== */

/* ========================================
   头像样式 - 极简干净
   ======================================== */

.sound-list-container .Sound .HeadImg {
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: none; /* 🎨 去掉阴影 */
    transition: opacity 0.2s ease;
    border: none; /* 🎨 去掉边框 */
    overflow: hidden;
    position: relative;
}

.sound-list-container .Sound .HeadImg::before {
    display: none;
}

/* 悬停效果 - 简化为透明度变化 */
.sound-list-container .Sound:hover .HeadImg {
    opacity: 0.85; /* 🎨 轻微透明 */
}

/* ========================================
   标题区域 - 精简字体
   ======================================== */

.sound-list-container .Sound .sound-by {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 250px;
    overflow: hidden;
    align-self: center;
}

.sound-list-container .Sound .sound-by h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    line-height: 1.5;
}


/* 3. 播放器容器 - 靠右对齐 */
.sound-list-container .Sound .unified-player-wrapper,
.sound-list-container .Sound .unified-player-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    margin-left: auto;
}

/* 4. 播放按钮 - 固定尺寸 */
.sound-list-container .Sound .controls {
    flex-shrink: 0;
    align-self: center;
}

/* 5. 波形 - 占据播放器容器的剩余空间 */
.sound-list-container .Sound .waveform {
    flex: 1;
    min-width: 0;
    height: 40px;
    overflow: hidden;
}

/* ========================================
   功能按钮 - 极简扁平
   ======================================== */

.sound-list-container .Sound .Operate {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px; /* 📐 缩小间距 */
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.sound-list-container .Sound .Operate a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px; /* 📐 保持适中的点击区域 */
    background-color: transparent !important;
    transition: background-color 0.15s ease; /* ⚡ 快速响应 */
    border: none;
    text-decoration: none;
    box-shadow: none !important;
    border-radius: 6px;
}

/* 功能按钮悬停 */
.sound-list-container .Sound .Operate a:hover {
    background-color: #0f766e !important;
    border-color: #0f766e !important;
}


.sound-list-container .Sound .Operate svg {
    display: block;
    pointer-events: none;
    transition: all 0.2s ease; /* ⚡ 添加过渡 */
}

/* 🔧 修复：悬停时所有图标都变白色 */
.sound-list-container .Sound .Operate a:hover svg,
.sound-list-container .Sound .Operate a:hover .icon-order,
.sound-list-container .Sound .Operate a:hover .icon-download,
.sound-list-container .Sound .Operate a:hover .icon-star {
    stroke: #ffffff !important; /* 🎨 白色描边 */
    fill: #ffffff !important; /* 🎨 白色填充 */
}

/* 收藏图标样式已统一在 /css/web/components/card_actions.css 中控制 */

/* ========================================
   播放器按钮 - 极简圆形按钮
   ======================================== */

.sound-list-container .Sound .controls .btn-primary {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent !important;
    border: 1.5px solid #000000 !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: none !important;
    position: relative;
}

.sound-list-container .Sound .controls .btn-primary:hover {
    background: #000000 !important;
    border-color: #000000 !important;
}



/* 播放图标 - 三角形 */
.sound-list-container .Sound .controls .glyphicon-play {
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 5px 0 5px 8px !important; /* 📐 稍微缩小 */
    border-color: transparent transparent transparent #1a1a1a !important;
    background: none !important;
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    filter: none !important;
    border-radius: 0;
    transition: border-color 0.15s ease;
    margin-left: 1px;
}

.sound-list-container .Sound .controls .btn-primary:hover .glyphicon-play {
    border-left-color: #ffffff !important; /* 🎨 悬停时变白 */
}



/* 暂停图标 - 双竖线 */
.sound-list-container .Sound .controls .glyphicon-play.glyphicon-pause {
    width: 8px !important;
    height: 9px !important;
    border: none !important;
    background: none !important;
    left: 50%;
    margin-left: 0;
    transform: translate(-50%, -50%);
}

.sound-list-container .Sound .controls .glyphicon-play.glyphicon-pause::before,
.sound-list-container .Sound .controls .glyphicon-play.glyphicon-pause::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 9px;
    background: #ffffff !important;
    border-radius: 1px;
    top: 0;
}

.sound-list-container .Sound .controls .glyphicon-play.glyphicon-pause::before {
    left: 0;
}

.sound-list-container .Sound .controls .glyphicon-play.glyphicon-pause::after {
    right: 0;
}

/* 播放中状态 - 主题色填充 */
.sound-list-container .Sound .controls .btn-primary:has(.glyphicon-pause) {
    background: #0f766e !important;
    border-color: #0f766e !important;
}

.sound-list-container .Sound .controls .btn-primary:has(.glyphicon-pause):hover {
    background: #115e59 !important;
    border-color: #115e59 !important;
}


/* ========================================
   响应式布局
   ======================================== */

/* ========================================
   平板端 768px-1024px - 2列紧凑布局
   ======================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .sound-list-container {
        gap: 8px !important; /* 📐 更紧凑 */
    }
    
    .sound-list-container .Sound {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: calc((100% - 8px) / 2) !important; /* 2列 */
        flex: 0 0 calc((100% - 8px) / 2) !important;
        padding: 10px !important; /* 📐 减小内边距 */
        gap: 8px !important;
        align-items: flex-start !important;
    }
    
    /* 第一行：头像 + 标题 */
    .sound-list-container .Sound .HeadImg {
        order: 0 !important;
        width: 48px !important; /* 📐 缩小头像 */
        height: 48px !important;
        flex-shrink: 0 !important;
    }
    
    .sound-list-container .Sound .sound-by {
        order: 1 !important;
        flex: 1 1 auto !important;
        text-align: left !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        min-width: 0 !important;
    }
    
    .sound-list-container .Sound .sound-by h2 {
        font-size: 13px !important; /* 📝 统一字号 */
        margin-bottom: 3px !important;
    }
    
    .sound-list-container h2#sound_name2 {
        font-size: 12px !important;
    }
    
    /* 第二行：播放器（占据整行） */
    .sound-list-container .Sound .unified-player-wrapper,
    .sound-list-container .Sound .unified-player-container {
        order: 2 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .sound-list-container .Sound .unified-player-button,
    .sound-list-container .Sound .controls {
        flex-shrink: 0 !important;
    }
    
    /* 第三行：功能按钮（居中） */
    .sound-list-container .Sound .Operate {
        order: 3 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .sound-list-container .Sound .Operate a {
        padding: 8px !important;
    }
}

/* ========================================
   桌面端 ≥1025px - 固定 2 列（避免 3 列过窄导致标题/波形挤压）
   ======================================== */

@media (min-width: 1025px) {
    .sound-list-container {
        gap: 10px !important; /* 📐 缩小间距 */
    }
    
    .sound-list-container .Sound {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: calc((100% - 10px) / 2) !important; /* 2列 */
        flex: 0 0 calc((100% - 10px) / 2) !important;
        padding: 10px 14px !important; /* 📐 减小内边距 */
        gap: 10px !important;
        align-items: center !important;
    }
    
    /* 头像 - 稍微缩小 */
    .sound-list-container .Sound .HeadImg {
        order: 0 !important;
        width: 44px !important; /* 📐 从50px缩小 */
        height: 44px !important;
        flex-shrink: 0 !important;
    }
    
    /* 标题区域（两列下卡片更宽，放宽标题区避免「字挤爆」） */
    .sound-list-container .Sound .sound-by {
        order: 1 !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    
    .sound-list-container .Sound .sound-by h2 {
        font-size: 13px !important; /* 📝 统一字号 */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* 播放器 */
    .sound-list-container .Sound .unified-player-wrapper,
    .sound-list-container .Sound .unified-player-container {
        order: 2 !important;
        flex: 0 0 auto !important;
        min-width: 130px !important;
        max-width: 130px !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        margin-left: auto !important;
    }
    
    .sound-list-container .Sound .unified-player-button,
    .sound-list-container .Sound .controls {
        flex-shrink: 0 !important;
    }
    
    /* 功能按钮 */
    .sound-list-container .Sound .Operate {
        order: 3 !important;
        flex: 0 0 auto !important;
        width: 96px !important; /* 📐 稍微缩小 */
        gap: 4px !important;
        justify-content: flex-end !important;
        margin-left: 8px !important;
    }
    
    .sound-list-container .Sound .Operate a {
        padding: 6px !important;
    }
}

/* ===== 老师卡片样式已移至 components/teacher_card.css ===== */
/* 包含：.voice-card、.discount-teacher-card、头像、名字、标签、播放器容器、功能按钮等 */

/* 响应式设计 - 使用gap实现自适应间隔 */

/* 打折老师/最新入驻卡片容器 */
.discount-teachers-container,
.newest-teachers-container {
  width: 100%;
  position: relative;
  clear: both;
  overflow: visible; /* 允许卡片悬停向上移动时显示 */
  padding-top: 10px; /* 预留卡片悬停上移的空间 */
  margin-top: -10px; /* 抵消padding，保持视觉位置 */
}

/* 已移除右侧渐变遮罩（::after），与 discount-card 一致 */

/* ========================================
   左右箭头导航按钮 - 隐藏不显示，保留底部"左右滑动"文字提示
   ======================================== */

.discount-scroll-hint {
  display: none !important;
}

/* 列表下方横向滑动提示（弱提示 + 轻量动效，开始滚动后自动静下来） */
.discount-scroll-hint-bottom {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0 12px 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--card-text-secondary, #888);
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.discount-scroll-hint-bottom-chevron {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: var(--card-primary-color, #0f766e);
  opacity: 0.85;
  will-change: transform;
}

/* 左右箭头轻微「示意横滑」——比静态字更现代，幅度小不抢戏 */
@keyframes discount-hint-nudge-left {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(-5px); opacity: 1; }
}

@keyframes discount-hint-nudge-right {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(5px); opacity: 1; }
}

.discount-teachers-container:not(.scrolled) .discount-scroll-hint-bottom-chevron:first-of-type,
.newest-teachers-container:not(.scrolled) .discount-scroll-hint-bottom-chevron:first-of-type {
  animation: discount-hint-nudge-left 2.2s ease-in-out infinite;
}

.discount-teachers-container:not(.scrolled) .discount-scroll-hint-bottom-chevron:last-of-type,
.newest-teachers-container:not(.scrolled) .discount-scroll-hint-bottom-chevron:last-of-type {
  animation: discount-hint-nudge-right 2.2s ease-in-out infinite;
  animation-delay: 0.15s;
}

.discount-teachers-container.scrolled .discount-scroll-hint-bottom-chevron,
.newest-teachers-container.scrolled .discount-scroll-hint-bottom-chevron {
  animation: none;
  opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
  .discount-scroll-hint-bottom-chevron {
    animation: none !important;
    opacity: 0.85;
  }

  .discount-teachers-container.scrolled .discount-scroll-hint-bottom-chevron,
  .newest-teachers-container.scrolled .discount-scroll-hint-bottom-chevron {
    opacity: 0.75;
  }
}


/* 移动端与电脑端：只要可横向滚动即显示（由 JS 控制 no-horizontal-overflow） */
.discount-teachers-container:not(.no-horizontal-overflow) .discount-scroll-hint-bottom,
.newest-teachers-container:not(.no-horizontal-overflow) .discount-scroll-hint-bottom {
  display: flex;
}

/* 滑动提示上移：叠入 .newest-teachers-scroll 底部留白，靠近卡片；留白仍在 scroll 内，悬停阴影不裁切 */
.discount-teachers-container .discount-scroll-hint-bottom,
.newest-teachers-container .discount-scroll-hint-bottom {
  margin-top: -26px;
}

/* 打折老师/最新入驻卡片滚动区域 - 🚀 性能优化 */
.discount-teachers-scroll,
.newest-teachers-scroll {
  /* 叠在容器右侧渐变遮罩（::after z-index:10）之上，避免最右卡片角标被洗白像阴影 */
  position: relative;
  z-index: 11;
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  /* 悬停阴影约 16–40px 向下扩散，底部至少 ~52px，勿改小（改小会再现「阴影被切成一条线」） */
  padding: 10px 0 52px 0;
  overflow-x: auto;
  overflow-y: visible;
  /* 🚀 性能优化：使用原生滚动，移除 smooth 提升性能 */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* 允许横向滑动卡片 + 纵向滚动页面（仅 pan-x 会在触摸/触控板上「吸住」垂直滚动） */
  touch-action: pan-x pan-y;
  /* 不用 contain：layout+style 会参与层叠/裁剪，易把阴影裁成一条直线 */
}

/* WebKit浏览器（Chrome/Safari/Edge）隐藏滚动条 */
.discount-teachers-scroll::-webkit-scrollbar,
.newest-teachers-scroll::-webkit-scrollbar {
  display: none; /* 完全隐藏滚动条 */
}

/* 最新入驻 & 限时打折：老师卡片在横向滚动容器中的宽度统一 */
.newest-teachers-scroll .Teacher,
.newest-teachers-scroll .voice-card,
.discount-teachers-scroll .discount-teacher-card {
  flex-shrink: 0;
  min-width: 0;
  width: calc((100% - 60px) / 5);
  flex: 0 0 calc((100% - 60px) / 5);
}

/* 首页「最新入驻」「限时打折」：统一使用横向滑动（PC + 手机一致） */

/* 打折老师卡片样式 - 已移至 components/teacher_card.css */

/* 响应式布局 - 与推荐男声卡片宽度保持一致 */

/* ===================================
   图标样式 - 仅用于首页推荐样音卡片
   已整合到 index-sound-list-cards.css
   此文件保留为兼容性占位
   =================================== */

/* ========================================
   图标样式 - 统一简约
   ======================================== */

.icon-order, .icon-download, .icon-star {
  width: 18px;
  height: 18px;
  stroke: #8a8a8e;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  transition: stroke 0.15s ease;
}

/* 收藏图标填充状态 */
.icon-star.filled {
  fill: #0f766e;
  stroke: #0f766e;
}



/* 桌面端图标尺寸 */
@media (min-width: 1025px) {
  .sound-list-container .Sound .Operate .icon-order,
  .sound-list-container .Sound .Operate .icon-download,
  .sound-list-container .Sound .Operate .icon-star {
    width: 20px;
    height: 20px;
  }
}

/* 平板端图标尺寸 */
@media (min-width: 768px) and (max-width: 1024px) {
  .sound-list-container .Sound .Operate .icon-order,
  .sound-list-container .Sound .Operate .icon-download,
  .sound-list-container .Sound .Operate .icon-star {
    width: 18px;
    height: 18px;
  }
}

/* ⚠️ 以下 .Operate 样式已移至 index-sound-list-cards.css
   为避免全局冲突，使用更具体的选择器：.sound-list-container .Sound .Operate
   如需使用，请在目标元素外层包裹 .sound-list-container */


/* 深色模式：dark-mode-unified.css（Index 迁入） */

/* 收藏图标样式已统一在 /css/web/components/card_actions.css 中控制 */

/* ================= 动画效果 - 🚀 性能优化版 ================= */

/* Banner 背景缓慢缩放 */
.static-banner {
    overflow: hidden;
    position: relative;
    /* 🚀 性能优化：开启合成层 */
    contain: layout style;
}

.banner-background {
    /* 🚀 性能优化：使用 GPU 加速的 transform */
    will-change: transform;
    transform: translateZ(0);
    animation: slowZoom 20s infinite alternate ease-in-out;
}

/* 🚀 性能优化：使用 scale3d 触发 GPU 加速 */
@keyframes slowZoom {
    from { transform: scale3d(1, 1, 1); }
    to { transform: scale3d(1.1, 1.1, 1); }
}

/* 按钮微交互 - 🚀 明确指定过渡属性 */
button, .btn, .addBtn1, .addBtn2, .addBtn3, .voice-action-btn, .discount-action-btn, .action-icon {
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

button:active, .btn:active, .addBtn1:active, .addBtn2:active, .addBtn3:active, .voice-action-btn:active, .discount-action-btn:active {
    transform: scale(0.95);
}

/* 图片悬停 - 🚀 优化：使用 opacity 代替 scale（更省性能） */
.HeadImg {
    transition: opacity 0.15s ease;
}

/* 图片hover效果仅在PC端显示 */
@media (hover: hover) and (pointer: fine) {
    .Sound:hover .HeadImg {
        opacity: 0.85;
    }
}

/* 🚀 性能优化：尊重用户动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .banner-background {
        animation: none;
    }
    
    button, .btn, .addBtn1, .addBtn2, .addBtn3, .voice-action-btn, .discount-action-btn, .action-icon {
        transition: none;
    }
    
    .HeadImg {
        transition: none;
    }

    .Sound:hover,
    .sound-list-container .Sound:hover,
    .index-sample-item:hover {
        transform: none !important;
    }
}

/* 导航栏动效 */
.ul-li a {
    position: relative;
    color: #444; /* 优化导航文字颜色 */
}

.ul-li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #B92B27; /* 深红色点缀 */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
    .ul-li a:hover::after {
        width: 100%;
    }
}

/* 新闻列表 */
#Notice li {
    transition: padding-left 0.3s ease;
    border-bottom: 1px solid #f5f5f5 !important; /* 优化分割线 */
}

@media (hover: hover) and (pointer: fine) {
    #Notice li:hover {
        padding-left: 5px;
        background-color: rgba(0,0,0,0.01);
    }
}

/* 光标 */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(255, 255, 255, 0.7); }
}

/* 🚀 性能优化：移除永久的 will-change，仅在需要时使用 */
.Sound {
    contain: layout style;
}

/* 🚀 性能优化：悬停时才提升合成层 */
@media (hover: hover) and (pointer: fine) {
    .Sound:hover {
        will-change: transform;
    }
}


/* ========================================
   配色系统 - 极简黑白灰
   ======================================== */

/* 标题颜色 */
h1.Public, h1.Public1 {
    color: #000000 !important;
    background: transparent !important;
}

h1.Public span.Cn, h1.Public1 span.Cn1 {
    color: #000000 !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 18px;
}


/* 统一卡片基础样式 */
.Sound, 
.index-sample-item {
    background-color: var(--card-surface-panel, transparent);
    border: 1px solid var(--card-surface-outline, rgba(0, 0, 0, 0.1));
    border-radius: 10px !important;
    box-shadow: var(--card-shadow-rest, none);
    transform: translateY(0);
    transition:
        transform var(--card-hover-duration, 0.22s) var(--card-hover-easing, cubic-bezier(0.25, 0.72, 0.38, 1)),
        box-shadow var(--card-hover-duration, 0.22s) var(--card-hover-easing, cubic-bezier(0.25, 0.72, 0.38, 1)),
        border-color var(--card-hover-duration, 0.22s) ease !important;
}


/* 悬停效果 */
@media (hover: hover) and (pointer: fine) {
    .Sound:hover, 
    .index-sample-item:hover {
        z-index: 2;
        background-color: var(--card-surface-panel-hover, transparent) !important;
        border-color: var(--card-surface-outline-hover, rgba(0, 0, 0, 0.18)) !important;
        transform: translateY(var(--card-hover-lift-y, -1px));
        box-shadow: var(--card-shadow-hover-lift, 0 4px 12px rgba(0, 0, 0, 0.05)) !important;
    }

}

/* 卡片文字 */
.Sound h2 {
    color: #000000 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}


/* 价格颜色 */
.Number {
    color: #0f766e !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.oldPrice {
    color: #8a8a8e !important;
    font-size: 12px !important;
}


/* 按钮样式 - 已移至 components/teacher_card.css 和 card_actions.css */

/* 收藏按钮样式已统一在 /css/web/components/card_actions.css 中控制 */

/* 老师卡片标签样式 - 已移至 components/teacher_card.css */

/* 新闻模块 */
.Newest {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--card-border, #d4d4d8) !important;
    border-radius: 10px;
}

.News {
    background: #ffffff !important;
}

.News li a {
    color: #000000 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    transition: color 0.15s ease;
}

.News li a:hover {
    color: #0f766e !important;
}

.News li span {
    color: #8a8a8e !important;
    background: #ffffff !important;
    font-size: 12px !important;
}





/* 老师卡片标题 - 精简 */
.Teacher h2.Mr, .Teacher h2.Ms {
    background-image: none !important;
    padding-left: 0 !important;
}

.Teacher h2 span {
    font-size: 14px !important;
    color: #000000 !important;
    font-weight: 600 !important;
}


/* 波形进度条 */
.progress-bar-info {
    background-color: #0f766e !important; /* 🎨 使用主题色 */
}

/* 移除不必要的注释和空行 */

/* 页脚优化（假设有 footer） */
#footer {
    background: #2c3e50 !important;
    color: #bdc3c7 !important;
}

 

/* ========================================
   统一响应式样式区域
   ======================================== */

/* ===== PC端大屏 (min-width: 1024px) ===== */
/* ===== 大屏桌面端 (max-width: 1200px) ===== */
@media (max-width: 1200px) {
  /* 配音师卡片 */
  .TeacherCard {
    width: 25%;
  }
  
  /* 推荐男声/女声卡片 - 已移至 components/teacher_card.css */
  
  /* 限时打折/最新入驻卡片滚动容器 */
  .discount-teachers-scroll,
  .newest-teachers-scroll {
    gap: 15px;
  }
  
  .newest-teachers-scroll .Teacher,
  .newest-teachers-scroll .voice-card,
  .discount-teachers-scroll .discount-teacher-card {
    width: calc((100% - 45px) / 4);
    flex: 0 0 calc((100% - 45px) / 4);
  }
}

/* ===== 中等桌面端 (max-width: 992px) ===== */
@media (max-width: 992px) {
  /* 配音师卡片 */
  .TeacherCard {
    width: 33.33%;
  }

  /* 隐藏旧导航 */
  div#nav-2015 {
    height: 266px;
    display: none;
  }
  
  /* 推荐男声/女声卡片 - 已移至 components/teacher_card.css */
  
  /* 限时打折/最新入驻卡片滚动容器 */
  .discount-teachers-scroll,
  .newest-teachers-scroll {
    gap: 12px;
  }
  
  .newest-teachers-scroll .Teacher,
  .newest-teachers-scroll .voice-card,
  .discount-teachers-scroll .discount-teacher-card {
    width: calc((100% - 24px) / 3);
    flex: 0 0 calc((100% - 24px) / 3);
  }
}

/* ===== 小屏桌面端 (max-width: 960px) ===== */
@media (max-width: 960px) {
  /* Banner横幅 */
  .static-banner {
    height: 90px;
  }
}

/* ===== 平板端 (max-width: 768px) ===== */
@media (max-width: 768px) {
  
  .Public.Floor02 .Cn,
  .Public.Floor05 .Cn {
  font-size: 16px;
  }
  
  /* 配音师卡片 */
  .TeacherCard {
    width: 50%;
  }
  
  /* Banner横幅 */
  .static-banner {
    height: 80px;
  }

  .banner-content h2 {
    font-size: 28px;
  }

  .banner-content p {
    font-size: 16px;
  }

  .banner-btn {
    padding: 10px 20px;
  }

  .banner-actions {
    flex-wrap: wrap;
  }
  
  /* 推荐男声/女声卡片 - 已移至 components/teacher_card.css */
  
  /* 限时打折/最新入驻卡片滚动容器 */
  .discount-teachers-scroll,
  .newest-teachers-scroll {
    gap: 10px;
  }
  
  .newest-teachers-scroll .Teacher,
  .newest-teachers-scroll .voice-card,
  .discount-teachers-scroll .discount-teacher-card {
    width: calc((100% - 10px) / 2);
    flex: 0 0 calc((100% - 10px) / 2);
  }
}

/* ===== 移动端布局 (max-width: 767px) ===== */
@media (max-width: 767px) {
  /* 推荐样音列表容器 */
  .sound-list-container {
    gap: 10px !important;
  }
  
  /* 推荐样音卡片 - 移动端三行布局 */
  .sound-list-container .Sound {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 12px !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }
  
  /* 头像 - 第一行左侧 */
  .sound-list-container .Sound .HeadImg {
    order: 0 !important;
    width: 50px !important;
    height: 50px !important;
  }
  
  /* 配音师信息 - 第一行右侧 */
  .sound-list-container .Sound .sound-by {
    order: 1 !important;
    flex: 1 1 auto !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    min-width: 0 !important;
  }
  
  .sound-list-container .Sound .sound-by h2 {
    font-size: 13px !important;
    margin-bottom: 3px !important;
  }
  
  .sound-list-container h2#sound_name2 {
    font-size: 12px !important;
  }
  
  /* 播放器 - 第二行 */
  .sound-list-container .Sound .unified-player-wrapper,
  .sound-list-container .Sound .unified-player-container {
    order: 2 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
  }
  
  .sound-list-container .Sound .unified-player-button,
  .sound-list-container .Sound .controls {
    flex-shrink: 0 !important;
  }
  
  /* 功能按钮 - 第三行，居中显示 */
  .sound-list-container .Sound .Operate {
    order: 3 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    gap: 3px !important;
    justify-content: center !important;
  }
  
  .sound-list-container .Sound .Operate a {
    padding: 4px !important;
    font-size: 13px !important;
  }
  
  /* 移动端图标 */
  .sound-list-container .Sound .Operate .icon-order,
  .sound-list-container .Sound .Operate .icon-download,
  .sound-list-container .Sound .Operate .icon-star {
    width: 18px !important; /* 📐 保持适中大小 */
    height: 18px !important;
  }
  
  /* 移动端头像 */
  .sound-list-container .Sound .HeadImg {
    width: 44px !important;
    height: 44px !important;
  }
  
  /* 移动端字体 */
  .sound-list-container .Sound .sound-by h2 {
    font-size: 13px !important;
  }
}

/* ===== 移动端 (max-width: 480px) ===== */
@media (max-width: 480px) {
  /* 配音师卡片 */
  .TeacherCard {
    width: 100%;
}

  /* Banner横幅 */
  .static-banner {
    height: 70px;
  }
  
  .banner-content {
    padding: 0 30px;
  }
  
  .banner-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .banner-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .banner-actions {
    gap: 10px;
  }
  
  .banner-btn {
    padding: 8px 16px;
    width: 50%;
    text-align: center;
}

  /* 推荐男声/女声卡片 */
    /* .voice-cards-container 已移至 components/teacher_card.css */

    /* 老师卡片响应式 - 已移至 components/teacher_card.css */
  
  /* 限时打折卡片滚动容器 */
  .discount-teachers-scroll,
  .newest-teachers-scroll {
    gap: 8px;
  }
  
  .newest-teachers-scroll .Teacher,
  .newest-teachers-scroll .voice-card,
  .discount-teachers-scroll .discount-teacher-card {
    width: calc((100% - 8px) / 2);
    flex: 0 0 calc((100% - 8px) / 2);
  }
}

/* ========== 首页推荐样音列表样式 ========== */

/* 分页外层容器：仅包裹网格，宽度居中，右侧留出滚动条空间 */
.index-sample-pagination-outer {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    
}

/* 底部翻页导航条 */
.index-sample-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px auto 24px;
    position: relative;
    z-index: 10;
}

/* 翻页按钮 - 与 .action-icon 统一风格 */
.index-sample-page-btn {
    flex: 0 0 auto;
    width: var(--card-btn-size, 38px);
    height: var(--card-btn-size, 38px);
    border-radius: var(--card-border-radius, 8px);
    border: 1px solid var(--card-border, #e7e5e4);
    background: var(--card-bg-white, #fff);
    cursor: pointer;
    display: inline-flex;
    user-select: none;
    align-items: center;
    justify-content: center;
    color: var(--card-text-secondary, #666);
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow-small, 0 1px 3px rgba(0,0,0,0.04));
}
.index-sample-page-btn svg {
    width: 19px;
    height: 19px;
    stroke: var(--card-text-secondary, #666);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}
.index-sample-page-btn:hover:not(.disabled) {
    background-color: var(--card-primary-color, #0f766e);
    border-color: var(--card-primary-color, #0f766e);
    box-shadow: 0 2px 6px var(--card-primary-shadow, rgba(76,175,80,0.3));
    transform: translateY(-2px);
}
.index-sample-page-btn:hover:not(.disabled) svg {
    stroke: #ffffff;
}
.index-sample-page-btn:active:not(.disabled) {
    transform: translateY(0);
}
.index-sample-page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}





/* 分页指示点 */
.index-sample-page-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.index-sample-page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--card-border, #d9d9d9);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.index-sample-page-dot:hover {
    background: #bbb;
}
.index-sample-page-dot.active {
    background: var(--card-primary-color, #0f766e);
    transform: scale(1.25);
}



/* 网格容器 - 默认两列 */
.index-sound-list-wrapper {
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-content: start; /* 内容从顶部排列，保证少量条目时空白在底部 */
}

/* 卡片样式 */
.index-sample-item {
    padding: 12px 15px;
    overflow: visible; /* 确保下拉菜单不被裁剪 */
    position: relative; /* 为 z-index 提供定位上下文 */
    z-index: 1; /* 默认层级 */
}



/* 🎯 当更多菜单打开时，提升整个卡片的层级（防止被其他卡片覆盖） */
.index-sample-item:has(.action-dropdown.show) {
    z-index: 9999 !important;
}

/* 卡片内容容器 - 默认一行显示 */
.index-sample-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 头像容器：与声音列表 .info-avatar 同尺寸，保证头像与列表页一致 */
.index-sample-avatar-wrap {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.index-sample-avatar-wrap .headimg-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* 与 sound_list.css .sample-avatar 对齐（阴影、占位底、圆角） */
.index-sample-avatar {
    width: 100%;
    height: 100%;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f4f6;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.index-sample-item:hover .index-sample-avatar {
    transform: scale(1.05);
}

/* 样音信息 - 固定宽度，确保所有卡片布局一致 */
.index-sample-info {
    flex: 0 0 190px;
    width: 190px;
}

.index-sample-title {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    position: relative;
    z-index: 1;
}

.index-sample-item .sample-style {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px; /* 减小字体，建立层级 */
    color: #718096; /* 柔和的灰蓝色 */
}

.index-sample-item .style-tags {
    color: #888;
    font-size: 11px;
}

.index-sample-item .sample-play-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
}

.index-play-count svg {
    flex-shrink: 0;
}

.play-count-number {
    font-size: 12px;
}

/* 播放器 - 占据弹性空间 */
.index-sample-controls .unified-player-wrapper {
    flex: 1 1 0;
    min-width: 120px;
    margin: 0;
    
    display: flex;
    align-items: center;
}

.index-sample-controls .unified-player-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.index-sample-controls .unified-player-wrapper .waveform {
    flex: 1;
    min-width: 0;
    width: 100%;
    
}

/* 功能按钮 - 固定不缩小 */
.index-sample-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* 组件适配：让 .sample-actions 在首页布局中正常工作 */
.index-sample-controls .sample-actions {
    flex: 0 0 auto;
    gap: 8px;
}

/* 与 card_actions 一致：白底描边 + 悬停主题色（变量由 card_actions.js 写入） */
.index-sample-controls .sample-actions .index-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    /* 与 card_actions 后台「功能键圆角」一致，避免首页与其它页刷新后形状不一致 */
    border-radius: var(--card-icon-radius, 50%);
    border: var(--card-border-width, 1px) solid var(--card-border, #e0e0e0);
    background: var(--card-bg-white, #fff);
    box-shadow: var(--card-shadow-small, 0 1px 3px rgba(0, 0, 0, 0.04));
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.index-sample-controls .sample-actions .index-action-icon:hover {
    background: var(--card-primary-color, #818cf8);
    border-color: var(--card-primary-color, #818cf8);
    box-shadow: 0 2px 6px var(--card-primary-shadow, rgba(78, 86, 255, 0.28));
    transform: scale(1.04);
}

/* 悬停图标白色由 card_actions.css 末尾统一规则覆盖；此处仅补默认线条色 */
.index-sample-controls .sample-actions .index-action-icon svg {
    width: var(--card-icon-size, 18px);
    height: var(--card-icon-size, 18px);
    stroke: var(--card-icon-color, #71717a);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}

/* 确保播放器正常显示 */
.index-sample-controls .unified-player-wrapper .waveform {
    width: 100%;
    flex: 1;
}

.index-sample-controls .unified-player-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}





/* ========== 响应式 ========== */

/* 中等屏幕：卡片内两行布局 */
@media (max-width: 1150px) {
    .index-sample-controls {
        flex-wrap: wrap;
    }
    
    /* 让信息栏占满第一行，播放器自动到第二行 */
    .index-sample-info {
        flex: 1 1 auto;
        flex-basis: calc(100% - 52px);
        max-width: none;
        min-width: 0;
    }
    
    /* 播放器在第二行时也能更好地自适应 */
    .index-sample-controls .unified-player-wrapper {
        min-width: 80px;
    }
}

/* 小屏幕：单列网格 + 导航条按钮缩小 + 底部留出浮动栏高度 */
@media (max-width: 678px) {
    .index-sample-page-btn {
        width: var(--card-btn-size-mobile, 30px);
        height: var(--card-btn-size-mobile, 30px);
        border-radius: var(--card-border-radius-small, 6px);
    }
    .index-sample-page-btn svg {
        width: 17px;
        height: 17px;
    }
    .index-sample-page-nav {
        gap: 8px;
        margin-bottom: 12px;
    }
    /* 若无分页导航（1页时隐藏，JS会加 .no-page-nav 类），给网格留底部空间 */
    .index-sample-pagination-outer.no-page-nav {
        padding-bottom: 8px;
    }
    .index-sound-list-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* 让播放器能够更小，适应小屏幕 */
    .index-sample-controls .unified-player-wrapper {
        min-width: 0;
        flex: 1 1 0;
    }
}

/* ============================================
 * 样音标题链接悬停效果
 * 原 sample-title-hover.css，已合并
 * ============================================ */

/* 通用样音标题链接悬停效果 */
.sample-title-link:hover .sample-title,
.index-sample-title-link:hover .index-sample-title {
    color: #0f766e !important;
    transition: color 0.3s ease;
}

/* 样音列表页悬停效果 */
.sample-title-link:hover {
    cursor: pointer;
}

.sample-title-link .sample-title {
    transition: color 0.3s ease;
}

/* 首页推荐样音悬停效果 */
.index-sample-title-link:hover {
    cursor: pointer;
}

.index-sample-title-link .index-sample-title {
    transition: color 0.3s ease;
}

/* 老师主页样音悬停效果 */
.teacher-produce .sample-title-link:hover .sample-title {
    color: #0f766e !important;
}

/* 样音卡片组件悬停效果 */
.sample-card-item .sample-title-link:hover .sample-title {
    color: #0f766e !important;
}

/* ========================================
   首页专用布局（仅 templates/china/index.html 引入本文件）
   组件样式请在 components/*.css，勿在此写 body.index-page 下的卡片覆盖
   ======================================== */

.index-home-content {
    max-width: 1280px;
}

.Public.Floor02,
.Public.Floor05,
.voice-tab-header {
    margin-top: 40px;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.Public.Floor02:first-of-type,
.Public.Floor05:first-of-type {
    margin-top: 10px;
}

.Public.Floor02 .Cn,
.Public.Floor05 .Cn {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #000000;
}


@media (max-width: 768px) {
    .Public.Floor02 .Cn,
    .Public.Floor05 .Cn {
        font-size: 18px;
    }

    .Public.Floor02:first-of-type,
    .Public.Floor05:first-of-type {
        margin-top: 14px;
    }

    .Public.Floor02,
    .Public.Floor05,
    .voice-tab-header {
        margin-top: 32px;
    }
}