* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

/* 作者的话样式 */
.author-note {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.author-note h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

.author-note .note-content {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.author-note .note-content p {
    margin: 8px 0;
}

.video-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.main-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
}

.video-info {
    text-align: center;
}

#currentVideoTitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.video-list {
    background: white;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.video-list h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

/* 总视频样式 */
.video-item.main-video {
    display: block;
    margin-bottom: 20px;
    padding: 0;
    background: none;
}

.main-video-content {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.main-video-content:hover {
    background-color: #f0f0f0;
}

/* 分视频网格布局 */
.sub-videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.video-item.sub-video {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.video-item:hover .main-video-content,
.video-item.sub-video:hover {
    background-color: #f0f0f0;
}

.video-item.active .main-video-content,
.video-item.sub-video.active {
    background-color: #e6f2ff;
}

.video-number {
    width: 36px;
    height: 36px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 16px;
}

.video-details {
    flex: 1;
}

.video-title {
    font-weight: bold;
    margin-bottom: 3px;
    color: #333;
}

.video-duration {
    color: #666;
    font-size: 0.85em;
}

.video-actors {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .video-section, .video-list {
        padding: 15px;
        margin-bottom: 15px;
    }

    #currentVideoTitle {
        font-size: 16px;
    }

    .video-list h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* 总视频样式调整 */
    .main-video-content {
        padding: 10px 12px;
    }

    /* 分视频网格调整为单列 */
    .sub-videos-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .video-item.sub-video {
        padding: 10px 12px;
    }

    .video-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-right: 12px;
    }

    .video-title {
        font-size: 14px;
    }

    .video-duration {
        font-size: 0.8em;
    }

    .video-actors {
        font-size: 12px;
    }

    /* 作者的话响应式调整 */
    .author-note {
        padding: 15px;
        margin-bottom: 15px;
    }

    .author-note h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .author-note .note-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .author-note .note-content p {
        margin: 6px 0;
    }
}