/* 视频攻略样式 */

/* 覆盖主布局的容器限制 */
.cl-app-video_guides .main-content-container,
.cl-app-video_guide_publish .main-content-container,
.cl-app-video_guide_my .main-content-container {
    max-width: 100% !important;
}

.cl-app-video_guides .main-content-container-inner,
.cl-app-video_guide_publish .main-content-container-inner,
.cl-app-video_guide_my .main-content-container-inner {
    max-width: 100% !important;
    padding: 0 !important;
}

.video-guide-container {
    background: #f5f5f5;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 顶部导航栏 */
.video-guide-container .timeline-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.video-guide-container .go-back-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.video-guide-container .go-back-link:hover {
    color: #1976d2;
}

/* 工具栏 */
.video-guide-toolbar {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

.toolbar-top {
    width: 100%;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    padding-bottom: 15px;
}

.toolbar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.video-guide-toolbar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

.btn-my-videos,
.btn-publish {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-my-videos {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-my-videos:hover {
    background: #e0e0e0;
    color: #333;
}

.btn-publish {
    background: #1976d2;
    color: #fff;
    border: none;
}

.btn-publish:hover {
    background: #1565c0;
}

/* 视频列表 */
.video-guide-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 视频卡片 */
.video-card {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.video-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.video-card__cover {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    cursor: pointer;
    overflow: hidden;
}

.video-card__cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-card__cover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 48px;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay .material-icons {
    font-size: 48px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 平台徽章 */
.video-platform-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.video-platform-badge.bilibili {
    background: #fb7299;
}

.video-platform-badge.youtube {
    background: #ff0000;
}

.video-platform-badge.douyin {
    background: #000;
}

.video-platform-badge.other {
    background: #666;
}

/* 视频信息 */
.video-card__info {
    padding: 15px;
}

.video-card__category {
    margin-bottom: 8px;
}

.category-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.category-tag.beginner {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.2);
}

.category-tag.advanced {
    background: rgba(24, 144, 255, 0.1);
    color: #1890ff;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.category-tag.tips {
    background: rgba(250, 173, 20, 0.1);
    color: #faad14;
    border: 1px solid rgba(250, 173, 20, 0.2);
}

.video-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.video-title:hover {
    color: #1976d2;
}

.video-desc {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: #999;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* 视频统计 */
.video-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.video-stats .stat-item:hover {
    background: #f5f5f5;
}

.video-stats .stat-item .material-icons {
    font-size: 16px;
}

.video-stats .like-btn.active {
    color: #1976d2;
}

.video-stats .delete-btn {
    color: #f44336;
}

.video-stats .delete-btn:hover {
    background: #ffebee;
}

/* 状态筛选Tab */
.status-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    max-width: 1400px;
    margin: 0 auto;
}

.status-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.status-tab:hover {
    color: #333;
}

.status-tab.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
    font-weight: 500;
}

/* 审核状态徽章 */
.review-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.review-status-badge.pending {
    background: #ff9800;
}

.review-status-badge.approved {
    background: #4caf50;
}

.review-status-badge.rejected {
    background: #f44336;
}

/* 拒绝原因 */
.reject-reason {
    margin: 8px 0;
    padding: 8px 12px;
    background: #ffebee;
    border-radius: 4px;
    font-size: 12px;
    color: #c62828;
    line-height: 1.4;
}

/* 发布表单 */
.publish-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.publish-form {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}

.publish-form h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.publish-form .form-tip {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #666;
}

.publish-form .form-group {
    margin-bottom: 20px;
}

.publish-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.publish-form .form-group .required {
    color: #f44336;
}

.publish-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.publish-form .form-control:focus {
    outline: none;
    border-color: #1976d2;
}

.publish-form .form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

/* 封面上传区域 */
.cover-upload-area {
    margin-top: 8px;
}

.cover-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.cover-preview img {
    width: 100%;
    display: block;
}

.btn-remove-cover {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-cover:hover {
    background: rgba(0, 0, 0, 0.8);
}

.cover-upload-placeholder {
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.cover-upload-placeholder:hover {
    border-color: #1976d2;
    background: #f0f7ff;
}

.cover-upload-placeholder .upload-icon {
    font-size: 48px;
    color: #999;
    margin-bottom: 12px;
}

.cover-upload-placeholder p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
}

.cover-upload-placeholder small {
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* 上传进度 */
.upload-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #f0f0f0;
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    background: #1976d2;
    color: #fff;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-danger {
    background: #f44336;
    color: #fff;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-small {
    max-width: 400px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
}

.btn-close:hover {
    background: #f5f5f5;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state__icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 20px;
}

.btn-load-more {
    padding: 10px 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-load-more:hover {
    background: #f5f5f5;
}

/* 响应式 */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-guide-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .toolbar-right {
        width: 100%;
    }

    .btn-my-videos,
    .btn-publish {
        flex: 1;
        justify-content: center;
    }

    .status-tabs {
        overflow-x: auto;
    }

    .publish-form {
        padding: 20px;
    }
}
