/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 页面头部样式 */
.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: #4a5568;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-header h1 i {
    color: #667eea;
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

.user-info i {
    font-size: 1.5rem;
    color: #667eea;
}

/* 主要内容区域 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 搜索区域样式 */
.search-section {
    margin-bottom: 2rem;
}

.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-card h3 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-card h3 i {
    color: #667eea;
}

.search-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-item label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-item input,
.form-item select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-item input:focus,
.form-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 日期范围选择器样式 */
.form-item.date-range .date-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-item.date-range .date-inputs input[type="date"] {
    flex: 1;
    min-width: 140px;
}

.date-separator {
    color: #718096;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.search-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

/* 列表操作区域 */
.list-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 按钮组样式 */
.action-buttons-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.list-info {
    color: #4a5568;
    font-weight: 500;
}

.list-info strong {
    color: #667eea;
    font-size: 1.1rem;
}

/* 表格样式 */
.table-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

/* 滚动提示 */
.table-section::before {
    content: '← 左右滑动查看更多列 →';
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 5;
    opacity: 0.8;
    pointer-events: none;
}

/* 表格容器 - 支持水平滚动 */
.table-container {
    overflow-x: auto;
    position: relative;
    /* 设置最大宽度，超出时显示滚动条 */
    max-width: 100%;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f5f9;
}

/* Webkit浏览器滚动条样式 */
.table-container::-webkit-scrollbar {
    height: 8px;
}

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

.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.data-table {
    /* 设置表格最小宽度，确保所有列都有足够空间 */
    min-width: 1400px;
    border-collapse: collapse;
    font-size: 0.9rem;
    position: relative;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

/* 特定列宽度调整 */
.data-table th:nth-child(1), /* 创建类型 */
.data-table td:nth-child(1) {
    min-width: 100px; /* 增加20px宽度 */
}
/* 特定列宽度调整 */
.data-table th:nth-child(9), /* 创建类型 */
.data-table td:nth-child(9) {
    min-width: 100px; /* 增加20px宽度 */
}

.data-table th:nth-child(5), /* 所属分类 */
.data-table td:nth-child(5) {
    min-width: 100px;
}

.data-table th:nth-child(6), /* 标签 */
.data-table td:nth-child(6) {
    min-width: 100px;
    max-width: 300px;
}

.data-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

/* 专辑封面样式 */
.album-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 状态标签样式 */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.status-online {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.status-offline {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

/* 类型标签样式 */
.type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.type-ximalaya {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.type-local {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

/* 标签样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 操作列固定样式 */
.data-table th:last-child,
.data-table td:last-child {
    /* 固定操作列在右侧 */
    position: sticky;
    right: 0;
    background: inherit;
    z-index: 10;
    /* 添加左侧阴影，增强视觉效果 */
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* 增加操作列宽度以容纳更多按钮 */
}

/* 表头操作列背景色 */
.data-table thead th:last-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 表体操作列背景色 */
.data-table tbody td:last-child {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* 鼠标悬停时操作列的背景色 */
.data-table tbody tr:hover td:last-child {
    background: rgba(102, 126, 234, 0.05);
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* 分页样式 */
.pagination-section {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-info {
    color: #4a5568;
    font-weight: 500;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* 当模态框处于激活或显示状态时，显示出来（修复点击“新增课程小节”按钮无响应问题） */
.modal.active,
.modal.show {
    display: block; /* 添加 active 或 show 类时，覆盖默认的 display:none 让模态框可见 */
}

.modal-content {
    background: white;
    margin: 2% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 95vh; /* 限制最大高度为视口高度的95% */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column; /* 使用flex布局确保footer始终在底部 */
    overflow: hidden; /* 防止内容溢出 */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto; /* 当内容过多时允许滚动 */
    flex: 1; /* 占据剩余空间 */
    min-height: 0; /* 确保flex子项可以收缩 */
}

/* 模态框表单行布局 */
.modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* 全宽表单组（专辑介绍） */
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 字符计数器样式 */
.char-count {
    text-align: right;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #718096;
}

.char-count.warning {
    color: #ed8936;
}

.char-count.danger {
    color: #f56565;
}

/* 禁用状态样式 */
.form-group input:disabled,
.form-group select:disabled {
    background-color: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* 专辑介绍单元格样式 */
.description-cell {
    max-width: 200px;
    word-wrap: break-word;
    word-break: break-all;
    line-height: 1.4;
    color: #666;
    font-size: 13px;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f7fafc;
    border-radius: 0 0 16px 16px;
    flex-shrink: 0; /* 防止footer被压缩 */
    position: sticky; /* 确保footer始终可见 */
    bottom: 0;
    z-index: 10;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .search-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .list-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    /* 移动端表格样式调整 */
    .data-table {
        font-size: 0.8rem;
        /* 移动端最小宽度调整 */
        min-width: 1200px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* 移动端操作列调整 */
    .data-table th:last-child,
    .data-table td:last-child {
        min-width: 100px;
        /* 移动端操作列字体更小 */
        font-size: 0.7rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* 移动端操作按钮更紧凑 */
    .action-buttons .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1% auto; /* 移动端减少上边距 */
        max-height: 98vh; /* 移动端增加最大高度 */
    }
    
    /* 移动端弹窗body调整 */
    .modal-body {
        padding: 1.5rem; /* 移动端减少内边距 */
    }
    
    /* 移动端弹窗footer调整 */
    .modal-footer {
        padding: 1rem 1.5rem; /* 移动端减少内边距 */
    }
    
    /* 移动端滚动提示调整 */
    .table-section::before {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        top: 8px;
        right: 10px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.empty-state i {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* 数据统计卡片 */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #718096;
    font-size: 0.9rem;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.notification.hide {
    animation: slideOutRight 0.3s ease-in;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.notification.error {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.notification.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

/* ==================== 喜马拉雅采集抽屉样式 ==================== */

/* 抽屉容器 */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(5px);
}

.drawer.show {
    display: block;
}

/* 抽屉内容 */
.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    min-width: 800px;
    max-width: 1200px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
}

.drawer.show .drawer-content {
    transform: translateX(0);
}

/* 抽屉头部 */
.drawer-header {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-drawer {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
    padding: 0.25rem;
}

.close-drawer:hover {
    opacity: 1;
}

/* 抽屉主体 */
.drawer-body {
    padding: 2rem;
}

/* 区域样式 */
.section {
    margin-bottom: 3rem;
}

.section h4 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.section h4 i {
    color: #667eea;
}

/* 分类网格 */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-item {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    white-space: nowrap;
}

.category-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.category-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* 筛选表单 */
.filter-form {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.filter-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-row .filter-item {
    flex: 1;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.filter-item input,
.filter-item select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 专辑列表 */
.album-list {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.album-item {
    display: flex;
    padding: 1.75rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    gap: 1.75rem;
    align-items: flex-start;
    position: relative;
}

.album-item:last-child {
    border-bottom: none;
}

.album-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.album-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-item:hover::before {
    opacity: 1;
}

.album-cover {
    flex-shrink: 0;
    position: relative;
}

.album-cover img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.album-item:hover .album-cover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.album-info {
    flex: 1;
    min-width: 0;
}

.album-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.album-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.album-meta span {
    font-size: 0.9rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.album-meta i {
    color: #667eea;
    font-size: 0.9rem;
}

.album-status {
    margin-top: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.status-badge.collected {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: 2px solid #38a169;
}

.status-badge.not-collected {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    border: 2px solid #e53e3e;
}

.album-actions {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 0.75rem;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* 无数据状态 */
.no-data {
    text-align: center;
    padding: 3rem;
    color: #a0aec0;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.no-data p {
    font-size: 1rem;
    margin: 0;
}

/* 采集确认弹窗特殊样式 */
.cover-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cover-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cover-upload input[type="file"] {
    display: none;
}

/* 课程管理抽屉样式 */
.course-drawer .drawer-content {
    width: 80%;
    max-width: 1000px;
}

/* 专辑信息卡片 */
.album-info-section {
    margin-bottom: 2rem;
}

.album-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.album-cover-large {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.album-details {
    flex: 1;
}

.album-details h5 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: #718096;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-item i {
    color: #667eea;
}

.album-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.album-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 课程小节列表样式 */
.course-list-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h4 {
    color: #2d3748;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h4 i {
    color: #667eea;
}

/* 头部操作按钮组 */
.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* 课程小节容器布局 */
.course-episodes-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    min-height: 500px;
}

/* 左侧课程列表面板 */
.course-list-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
    min-height: 200px;
}

.course-list::-webkit-scrollbar {
    width: 6px;
}

.course-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.course-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.course-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.no-episodes {
    text-align: center;
    padding: 3rem 1rem;
    color: #a0aec0;
}

.no-episodes i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #cbd5e0;
}

.no-episodes p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* 右侧编辑面板 */
.episode-edit-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.edit-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-panel-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.edit-panel-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* 编辑面板占位符 */
.episode-edit-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #718096;
}

.episode-edit-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #cbd5e0;
}

.episode-edit-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* 编辑表单样式 */
.episode-edit-form .form-group {
    margin-bottom: 1.5rem;
}

.episode-edit-form label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.episode-edit-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.episode-edit-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 状态切换组 */
.status-toggle-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-display {
    flex: 1;
}

/* 时长显示 */
.duration-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 500;
}

.duration-display i {
    color: #667eea;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* 小节统计信息 */
.episode-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.episode-stats h6 {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.episode-stats h6 i {
    color: #667eea;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
}

/* 课程小节项样式 */
.course-item {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.course-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.course-item:hover::before {
    opacity: 1;
}

.course-item.active {
    background: rgba(102, 126, 234, 0.05);
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.course-item.active::before {
    opacity: 1;
}

.course-item.dragging {
    opacity: 0.6;
    transform: rotate(3deg) scale(0.98);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 拖拽手柄 */
.course-drag-handle {
    color: #cbd5e0;
    cursor: grab;
    padding: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.course-drag-handle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.course-drag-handle:active {
    cursor: grabbing;
}

/* 课程信息区域 */
.course-info {
    flex: 1;
    min-width: 0;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.course-title {
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-duration::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.course-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.course-status.published {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.course-status.draft {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

.course-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #718096;
}

.course-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.course-stats span::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #667eea;
}

.course-stats span:nth-child(1)::before {
    content: '\f04b';
}

.course-stats span:nth-child(2)::before {
    content: '\f201';
}

.course-stats span:nth-child(3)::before {
    content: '\f164';
}

/* 课程操作按钮 */
.course-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid transparent;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-icon.play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.btn-icon.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-icon.play-btn.playing {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    animation: pulse 2s infinite;
}

.btn-icon.delete-btn {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

.btn-icon.delete-btn:hover {
    background: #f56565;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

/* 音频上传样式 */
.audio-upload {
    position: relative;
}

.audio-upload input[type="file"] {
    display: none;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.upload-area:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.upload-area i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.upload-area p {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-area small {
    color: #718096;
}

.audio-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #edf2f7;
    border-radius: 8px;
    text-align: center;
}

.audio-preview audio {
    width: 100%;
    margin-bottom: 0.5rem;
}

.audio-preview p {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0;
}

/* 小节详情抽屉样式 */
.episode-detail-drawer .drawer-content {
    width: 60%;
    max-width: 600px;
}

.episode-info-form .form-group {
    margin-bottom: 1.5rem;
}

.status-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-control .status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-control .status-badge.published {
    background: #c6f6d5;
    color: #22543d;
}

.status-control .status-badge.draft {
    background: #fed7d7;
    color: #742a2a;
}

.form-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* 统计信息网格 */
.episode-stats-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.2rem;
}

.stat-content h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #718096;
    font-size: 0.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .drawer-content {
        width: 70%;
        min-width: 600px;
    }
    
    .course-drawer .drawer-content {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .drawer-content {
        width: 100%;
        min-width: auto;
    }
    
    .course-drawer .drawer-content,
    .episode-detail-drawer .drawer-content {
        width: 100%;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .album-item {
        flex-direction: column;
        text-align: center;
    }
    
    .album-meta {
        justify-content: center;
    }
    
    .album-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .album-cover-large {
        align-self: center;
    }
    
    .episode-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .episode-controls {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 课程小节管理抽屉样式 ==================== */

/* 课程抽屉容器 */
.course-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(5px);
}

.course-drawer.show {
    display: block;
}

/* 课程抽屉内容 - 从右侧滑出 */
.course-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    min-width: 900px;
    max-width: 1400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.course-drawer.show .course-drawer-content {
    transform: translateX(0);
}

/* 课程抽屉头部 */
.course-drawer-header {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.course-drawer-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-course-drawer {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
    padding: 0.25rem;
}

.close-course-drawer:hover {
    opacity: 1;
}

/* 课程抽屉主体 */
.course-drawer-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

/* 专辑信息区域 */
.album-info-section {
    margin-bottom: 2rem;
}

.album-info-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.album-info-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.album-info-details {
    flex: 1;
}

.album-info-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #2d3748;
    font-weight: 600;
}

.album-info-details p {
    margin: 0 0 1rem 0;
    color: #718096;
    line-height: 1.5;
    font-size: 0.9rem;
}

.album-info-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.album-info-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

.album-info-stats i {
    color: #667eea;
    font-size: 0.8rem;
}

/* 操作工具栏 */
.course-toolbar {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-right {
    color: #4a5568;
    font-weight: 500;
}

/* 自定义复选框样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-container:hover .checkmark {
    border-color: #667eea;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 课程小节列表区域 */
.course-episodes-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.episodes-table-container {
    overflow-x: auto;
    max-height: 60vh;
    overflow-y: auto;
}

/* 课程小节表格样式 */
.episodes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px;
}

.episodes-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 5;
}

.episodes-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.episodes-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.episodes-table tbody tr {
    transition: all 0.3s ease;
    cursor: move; /* 拖拽光标 */
    background: white;
}

.episodes-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.episodes-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.8);
}

.episodes-table tbody tr:nth-child(even):hover {
    background: rgba(102, 126, 234, 0.05);
}

/* 课程小节发布状态徽章样式 */
.episodes-table .publish-status {
    text-align: center;
}

.episodes-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.episodes-table .status-badge.published {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: 2px solid #38a169;
}

.episodes-table .status-badge.published::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.episodes-table .status-badge.draft {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    border: 2px solid #dd6b20;
}

.episodes-table .status-badge.draft::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.episodes-table .status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 课程小节操作按钮样式 */
.episodes-table .actions {
    text-align: center;
}

.episodes-table .action-buttons {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
}

.episodes-table .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.episodes-table .btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.episodes-table .btn-action:hover::before {
    left: 100%;
}

/* 编辑按钮 */
.episodes-table .btn-action.edit {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.episodes-table .btn-action.edit:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

/* 删除按钮 */
.episodes-table .btn-action.delete {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 101, 101, 0.3);
}

.episodes-table .btn-action.delete:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

/* 发布/下架按钮 */
.episodes-table .btn-action.publish {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

.episodes-table .btn-action.publish:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

/* 按钮工具提示效果 */
.episodes-table .btn-action {
    position: relative;
}

.episodes-table .btn-action:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInTooltip 0.3s ease;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 音频播放器美化样式 */
.episodes-table .episode-audio {
    text-align: center;
}

.episodes-table .audio-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.episodes-table .play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.episodes-table .play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.episodes-table .play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.episodes-table .play-btn:hover::before {
    left: 100%;
}

.episodes-table .play-btn.playing {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(72, 187, 120, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
    }
}

.episodes-table .duration {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    background: rgba(100, 116, 139, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

/* 完播率美化样式 */
.episodes-table .completion-rate {
    text-align: center;
    position: relative;
}

.episodes-table .completion-rate::before {
    content: attr(data-rate);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 10;
}

.episodes-table tr:hover .completion-rate::before {
    opacity: 1;
}

.episodes-table .completion-rate-bar {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.episodes-table .completion-rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
    position: relative;
}

.episodes-table .completion-rate-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.episodes-table .completion-rate-text {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.2rem;
    color: #374151;
}

/* 播放量美化样式 */
.episodes-table .play-count {
    text-align: center;
    font-weight: 600;
    color: #4b5563;
}

.episodes-table .play-count::before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.3rem;
    color: #667eea;
    font-size: 0.8rem;
}

/* 表格行选中状态美化 */
.episodes-table tbody tr.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    border-left: 4px solid #667eea;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.episodes-table tbody tr.selected:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
    transform: translateX(2px) translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* 复选框美化样式 */
.episodes-table .custom-checkbox {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.episodes-table .custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.episodes-table .custom-checkbox .checkmark {
    position: relative;
    display: inline-block;
    height: 18px;
    width: 18px;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.episodes-table .custom-checkbox:hover .checkmark {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.episodes-table .custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.episodes-table .custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.episodes-table .custom-checkbox input:checked ~ .checkmark::after {
    display: block;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

/* 序号列美化 */
.episodes-table .episode-number {
    text-align: center;
    position: relative;
}

.episodes-table .drag-handle {
    color: #9ca3af;
    margin-right: 0.5rem;
    cursor: grab;
    transition: color 0.3s ease;
}

.episodes-table .drag-handle:hover {
    color: #667eea;
}

.episodes-table .drag-handle:active {
    cursor: grabbing;
}

.episodes-table .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #d1d5db;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.episodes-table tbody tr:hover .number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
}

/* 小节名称列美化 */
.episodes-table .episode-name {
    max-width: 300px;
}

.episodes-table .name-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.episodes-table .title {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.episodes-table .description {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 拖拽状态样式 */
.episodes-table tbody tr.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    background: rgba(102, 126, 234, 0.1);
}

.episodes-table tbody tr.drag-over {
    border-top: 3px solid #667eea;
}

/* 小节序号样式 */
.episode-order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 音频播放器样式 */
.audio-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.play-btn.playing {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.audio-info {
    font-size: 0.8rem;
    color: #718096;
}

/* 发布状态样式 */
.publish-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.status-published {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.status-draft {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.status-unpublished {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
}

/* 操作按钮组 */
.episode-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* 音频上传区域样式 */
.audio-upload-container {
    position: relative;
}

.audio-upload-container input[type="file"] {
    display: none;
}

.audio-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.audio-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.audio-upload-area i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.audio-upload-area p {
    margin: 0.5rem 0;
    color: #4a5568;
    font-weight: 500;
}

.audio-upload-area small {
    color: #718096;
    font-size: 0.8rem;
}

/* 音频预览容器 */
.audio-preview-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.audio-preview-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.audio-preview-info i {
    color: #667eea;
    font-size: 1.1rem;
}

.audio-preview-info span {
    flex: 1;
    color: #4a5568;
    font-weight: 500;
}

/* 必填字段标识 */
.required {
    color: #f56565;
    margin-left: 2px;
}

/* 选中计数样式 */
.selected-count strong {
    color: #667eea;
    font-size: 1.1rem;
}

/* 响应式设计 - 课程抽屉 */
@media (max-width: 1200px) {
    .course-drawer-content {
        width: 80%;
        min-width: 700px;
    }
}

@media (max-width: 768px) {
    .course-drawer-content {
        width: 95%;
        min-width: auto;
    }
    
    .course-drawer-body {
        padding: 1rem;
    }
    
    .album-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .album-info-stats {
        justify-content: center;
    }
    
    .course-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left {
        justify-content: center;
    }
    
    .toolbar-right {
        text-align: center;
    }
    
    .episodes-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .episodes-table th,
    .episodes-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .episode-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .episode-actions .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}