/* style.css */
/* 背景设置为轻微渐变，效果更加清新 */
body {
  background: #ffffff;
  margin: 0;
  padding: 0;
}

/* 表格容器样式 */
.table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  margin-top: 20px;
  /* 添加阴影及圆角效果 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  /* 确保滚动条始终显示 */
  -webkit-overflow-scrolling: touch;
}

/* 确保滚动条在webkit浏览器中可见 */
.table-container::-webkit-scrollbar {
  height: 12px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 表格样式 */
.demo-table {
  width: 1750px;
  /* 固定宽度而不是100% */
  min-width: 1750px;
  /* 设置固定表格布局确保列宽不被压缩 */
  table-layout: fixed;
  margin: 0;
  /* Edge浏览器特定修复 */
  border-collapse: separate;
  border-spacing: 0;
}

.demo-table th,
.demo-table td {
  text-align: center;
  vertical-align: middle;
  padding: 10px;
  /* Edge浏览器特定修复 */
  box-sizing: border-box;
  overflow: hidden;
}

/* 表头样式 */
.demo-table th {
  font-weight: bold;
  font-size: 1em;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 10px !important;
}

/* 确保所有表头单元格都居中 */
.demo-table thead th {
  text-align: center !important;
  vertical-align: middle !important;
}

/* 音频列的特殊样式 */
.demo-table td:nth-child(n+2) {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
}

/* 视频和图片自适应 */
.demo-video,
.demo-img {
  max-width: 100%;
  height: auto;
}

.title-header {
  margin-top: 30px;
}

.description {
  margin-bottom: 40px;
}



li {
  list-style-type: circle;
  margin-left: 20px;
  margin-bottom: 5px;
}

li li {
  list-style-type: square;
  margin-left: 40px;
  margin-bottom: 0px;
}

/* 歌词内容样式 */
.lyrics-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  background-color: #ffffff;
}

.lyrics-segment {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 6px;
}

.segment-prompt {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 8px;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.lyrics-text {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  font-family: 'Arial', sans-serif;
}

.loading,
.error {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

.error {
  color: #e74c3c;
}

/* Global prompt样式 */
.global-prompt-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
}

.global-prompt-content {
  font-size: 0.85em;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

/* 音频播放器样式 */
.audio-demo-container {
  text-align: center;
  padding: 10px;
  min-width: 180px;
  /* 确保容器有最小宽度 */
  width: 180px;
  /* 固定宽度，防止Edge浏览器压缩 */
  box-sizing: border-box;
}

.demo-audio {
  width: 180px;
  /* 固定宽度而不是100%，防止压缩 */
  min-width: 180px;
  max-width: 180px;
  /* 防止被拉伸 */
  height: 40px;
  margin-bottom: 8px;
  flex-shrink: 0;
  /* 防止flex容器中的压缩 */
}

.audio-info {
  margin-top: 4px;
}

.audio-info p {
  margin: 0;
  font-style: italic;
}

/* 表格响应式样式 */
.demo-table {
  font-size: 0.9em;
}

.demo-table th {
  font-size: 0.85em;
  padding: 8px 5px;
  line-height: 1.3;
}

.demo-table td {
  padding: 8px 5px;
  vertical-align: top;
}

/* 折叠图标样式 */
.collapse-icon {
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 14px;
  min-width: 16px;
  text-align: center;
}

.click-to-show.expanded .collapse-icon {
  transform: rotate(90deg);
}

/* 可折叠内容样式 */
.collapsible-content {
  transition: all 0.3s ease;
}

/* 合并内容容器样式 */
.combined-content-container {
  padding: 10px;
}

.click-to-show {
  transition: color 0.2s ease;
}

.click-to-show:hover {
  color: #1e5f99 !important;
  text-decoration: underline;
}

/* 章节标签样式 */
.section-label {
  font-weight: bold;
  font-size: 0.9em;
  color: #2c3e50;
  margin-bottom: 8px;
  padding: 6px 10px;
  background-color: #ecf0f1;
  border-radius: 4px;
  border-left: 4px solid #3498db;
  text-align: left;
}

/* 全局提示章节样式 */
.global-prompt-section {
  margin-bottom: 20px;
}

.global-prompt-section .section-label {
  background-color: #e8f5e8;
  border-left-color: #27ae60;
  color: #1e8449;
}

/* 歌词章节样式 */
.lyrics-section {
  margin-bottom: 10px;
}

.lyrics-section .section-label {
  background-color: #e8f5e8;
  border-left-color: #27ae60;
  color: #1e8449;
}

/* Edge浏览器特定修复 */
@supports (-ms-ime-align: auto) {
  .demo-table {
    table-layout: fixed !important;
  }

  .demo-table th,
  .demo-table td {
    width: auto !important;
    min-width: auto !important;
  }

  .demo-audio {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
  }

  .audio-demo-container {
    width: 200px !important;
    min-width: 200px !important;
  }
}