body {
    font-family: 'Arial', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-image: url(/img/gedan.png);
    background-size: cover;
    background-attachment: fixed;
    color: #333;
}
 /* 小屏幕 */
 @media (max-width: 768px) {
    body {
        background-image: url(/img/phone1.jpg);
        
    margin: 15px auto;
    /* 左右内边距减小但不小于10px */
    padding-left: 10px;
    padding-right: 10px;
    /* 确保底部边距不受父容器影响 */
    margin-bottom: 15px !important; /* 强制生效 */
    
    /* 修复可能的父容器约束 */
    position: relative;
    left: 0;
    right: 0;
    transform: none; /* 清除可能的位移影响 */
  }
  
  /* 确保父容器不遮挡子元素边距 */
  .content-container {
    padding: 0;
    overflow: visible;
  }
  
  /* 移除可能冲突的样式 */
  body {
    margin: 0;
    padding: 0;
  }
    
}
/* 容器宽度统一控制 */
.content-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* 标题容器样式 - 作为基准容器 */
.title-container {
    /* 确保容器有明确的定位上下文 */
    position: relative;
    width: 100%; /* 宽度随父容器变化 */
    max-width: 800px; /* 可选：限制最大宽度 */
    padding: 20px; /* 内边距会影响容器尺寸 */
    margin: 0 auto; /* 居中显示 */
    margin-bottom: 20px;
    background-color: #f5f5f589; /* 示例背景色 */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    /* 容器尺寸变化时的过渡动画（可选） */
    transition: all 0.3s ease;
    
  }
  
  /* 主标题样式 */
  .main-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* 字体大小随容器宽度变化 */
    color: #333;
    text-align: center;
  }
  
  /* 副标题样式 - 关键：与主容器联动 */
  .sub-title {
    /* 相对于主容器定位，确保跟随容器移动 */
    position: relative;
    /* 宽度100%确保与容器同宽 */
    width: 100%;
    /* 顶部间距相对于主标题动态调整 */
    margin-top: 10px;
    text-align: center; /* 与主标题对齐 */
    
    /* 字体大小随容器宽度动态变化 */
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #666;
    
    /* 当主容器尺寸变化时，副标题样式平滑过渡 */
    transition: all 0.3s ease;
  }
  
  /* 响应式调整 - 当容器在小屏幕上变化时 */
  @media (max-width: 768px) {
    .title-container {
      padding: 15px 10px; /* 小屏幕减小内边距 */
    }
    
    .sub-title {
      margin-top: 8px; /* 同步减小间距 */
      font-size: 0.9rem; /* 强制最小字体 */
    }
  }
  
  /* 当主容器有hover效果时，副标题也联动变化（可选） */
  .title-container:hover {
    padding: 25px; /* 容器变大 */
    background-color: #f0f0f0;
  }
  
  .title-container:hover .sub-title {
    color: #222; /* 副标题颜色联动变化 */
    transform: translateY(2px); /* 微小位移增强联动感 */
  }
.search-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* 元素间空隙 */
    align-items: center;
}

.search-group {
    flex: 1;
    min-width: 120px;
}

.search-group.small {
    flex: none;
    min-width: auto;
}

input, select {
    width: 100%;
    padding: 8px 10px; /* 缩小元素尺寸 */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px; /* 缩小字体 */
    box-sizing: border-box;
}

.random-btn {
    background-color: rgba(52, 152, 219, 0.6);
    color: white;
    border: none;
    padding: 8px 14px; /* 缩小按钮 */
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px; /* 缩小字体 */
    transition: all 0.3s;
}

.random-btn:hover {
    background-color: rgba(52, 152, 219, 0.8);
}

.random-btn.cancel {
    background-color: rgba(231, 76, 60, 0.6);
}

.random-btn.cancel:hover {
    background-color: rgba(231, 76, 60, 0.8);
}

.sc-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px; /* 缩小开关 */
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; /* 缩小滑块 */
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3498db;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 歌曲列表样式 - 带表头 */
.song-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.song-table th {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
}

.song-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.song-table tr {
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.song-table tr:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.song-table tr.highlight {
    background-color: #f1c40f80;
}

.sc-text {
    color: red;
    font-weight: bold;
}

.selection-result {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #e74c3c;
    color: white;
    border-radius: 5px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.no-results {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
a {
    text-decoration: none;
  }