:root {
    --plyr-color-main: #4a8bfc;
    --plyr-control-radius: 8px;
    --plyr-font-size: 15px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:"微软雅黑";
    line-height: 1.4;
    color: #333;
    background-color: #f5f7fa;
}
.btminfo{width:100%;text-align: center;font-size:14px;color:#666;padding:20px 0;}
.btminfo a{color:#666;}
.container {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5eb;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .content {
        flex-direction: row;
    }
}

.player-section {
    flex: 3;
    min-width: 0;
}

.plyr {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

.chapters-section {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    max-height: 520px;
    overflow-y: auto;
}

.chapters-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e5eb;
    color: #2c3e50;
}

.chapter-list {
    list-style: none;
}

.chapter-item {
    margin-bottom: 5px;
}

.chapter-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.chapter-header:hover {
    background-color: #e9ecef;
}

.chapter-header .icon {
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.chapter-header.collapsed .icon {
    transform: rotate(-90deg);
}

.chapter-header .title {
    flex: 1;
    font-weight: bold;
    color: #2c3e50;
    font-size:14px;
}

.chapter-header .count {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.subchapter-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.subchapter-item {
    margin-bottom: 5px;
    font-size:14px;
}

.subchapter-item.active .subchapter-link {
    background-color: #e8f0fe;
    color: var(--plyr-color-main);
    font-weight: 500;
}

.subchapter-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 6px;
    color: #34495e;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subchapter-link:hover {
    background-color: #f0f4f8;
}

.subchapter-link .play-icon {
    margin-right: 10px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.subchapter-link .title {
    flex: 1;
}

.subchapter-link .time {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* 滚动条样式 */
.chapters-section::-webkit-scrollbar {
    width: 6px;
}

.chapters-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chapters-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chapters-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 折叠动画 */
.collapsed + .subchapter-list {
    max-height: 0 !important;
}