/* css/style.css */
.rboxsou {
    margin: 15px auto;
    width: 99%;
    max-width: 92%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

#jtbook {
    border: 1px solid #3A7AD1;
    border-radius: 5px;
    overflow: hidden;
}

.jtbookr {
    background: #E6F0FF;
}

.sidel_top {
    background: #3A7AD1;
    height: 32px;
    padding-left: 15px;
}

.sidel_top_title {
    color: #FFFFFF;
    font-size: 14px;
    padding-top: 6px;
}

.sidel_middle {
    background: #3A7AD1;
    height: 28px;
    padding-left: 15px;
}

.sidel_middle_title {
    color: #FFFFFF;
    font-size: 12px;
    padding-top: 6px;
}

.sidel_content {
    display: flex;
    background: #fff;
}

.sidel_content_left {
    width: 78px;
    background: #F2F7FF;
    border-right: 1px solid #B8D0F0;
    padding: 1px 0;
}

.sidel_content_left_middle {
    padding: 0 1px;
}

.zimu {
    display: block;
    padding: 1px 0;
    text-align: center;
}

.zm {
    display: inline-block;
    width: 32px;
    height: 14px;
    line-height: 12px;
    text-align: center;
    background: #D3E3FD;
    border: 1px solid #B8D0F0;
    color: #3A7AD1;
    text-decoration: none;
    margin: 1px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.zm:hover, .zm.active {
    background: #3A7AD1;
    color: white;
    border-color: #2A5AA0;
}

.sidel_content_right {
    flex: 1;
    background: white;
}

.sidel_content_right_nav {
    background: #F2F7FF;
    padding: 8px 15px;
    border-bottom: 1px solid #B8D0F0;
    font-weight: bold;
    color: #3A7AD1;
    font-size: 13px;
}

.sidel_content_right_list {
    padding: 10px 15px;
    max-height: 400px;
    overflow-y: auto;
}

.tag-group {
    margin-bottom: 5px;
}

.tag-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    border-bottom: 1px dashed #ddd;
    font-size: 13px;
}

.tag-name a {
    color: #0277bd;
    text-decoration: none;
    transition: color 0.2s;
}

.tag-name a:hover {
    color: #01579b;
    text-decoration: underline;
}

.tag-count {
    color: #78909c;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

@media (max-width: 650px) {
    .sidel_content {
        flex-direction: column;
    }
    
    .sidel_content_left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #B8D0F0;
    }
    
    /* 修改字母导航为横向排列 */
    #zimu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 0;
    }
    
    .zimu {
        display: inline-flex;
        margin: 0 2px;
    }
    
    .zm {
        margin: 4px;
        width: 36px;
        height: 28px;
        line-height: 28px;
        font-size: 13px;
    }
    
    .sidel_content_right_list {
        max-height: 300px;
    }
    
    /* 新增：歌手和谱子一行显示两个 */
    .tag-group {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 两列布局 */
        gap: 8px;
    }
    
    .tag-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 8px 5px;
        border-bottom: none;
        border: 1px solid #eee;
        border-radius: 4px;
        margin-bottom: 0;
    }
    
    .tag-name, .tag-count {
        width: 100%;
        text-align: center;
    }
    
    .tag-count {
        margin-top: 5px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sidel_top_title,
    .sidel_middle_title {
        padding-left: 10px;
    }
    
    .zm {
        width: 30px;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
    }
    
    .tag-item {
        font-size: 12px;
        padding: 6px 3px;
    }
    
    /* 超小屏幕调整间隙 */
    .tag-group {
        gap: 5px;
    }
}