/* 视频标签页样式 - 基于图片样式 */
.video-tabs-nav {
    background: #fff;
    border-radius: 10px;
    padding: 0 18px;
    border-bottom: 1px solid #eef1f5;
}

.video-tabs-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 26px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.video-tabs-nav li {
    flex: none;
    margin: 0;
}

.video-tabs-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 4px 14px;
    color: #8a94a6;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.25s ease;
    border-radius: 0;
    margin: 0;
    position: relative;
    background: transparent;
    border: none;
}

.video-tabs-nav li.active a {
    color: var(--primary-color, #13C07E);
}

.video-tabs-nav li.active a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: var(--primary-color, #13C07E);
}

.video-tabs-nav li:not(.active) a:hover {
    color: #303949;
}

.video-tabs-content {
    margin-top: 0;
    padding: 0;
}

.video-tab-panel {
    display: none;
    padding: 0;
}

.video-tab-panel.active {
    display: block;
}

/* 课程目录样式 */
.catalog-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.catalog-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.catalog-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 80px;
}

.catalog-item:hover {
    background: #e9ecef;
    border-color: #007cba;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.catalog-item.active {
    background: #e3f2fd;
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,123,186,0.2);
}

.catalog-item-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.catalog-item-number {
    width: 32px;
    height: 32px;
    background: #007cba;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.catalog-item.active .catalog-item-number {
    background: #0056b3;
}

.catalog-item-content {
    flex: 1;
}

.catalog-item-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.catalog-item-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.catalog-item-badges {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.catalog-item-free-badge {
    background: #28a745;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.catalog-item-paid-badge {
    background: #ff9800;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.catalog-item-desc {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.catalog-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-item-update-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.catalog-item-update-time i {
    font-size: 12px;
}

.catalog-item-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
}

.catalog-play-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.catalog-play-btn:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,186,0.3);
}

.no-catalog {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-catalog i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.no-catalog p {
    margin: 0;
    font-size: 16px;
}

/* 讨论交流样式 */
.comment-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    background: transparent;
}

.comment-form-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ceo-video-list-form {
    background: transparent !important;
}

.ceo-video-list-form .ceo-textarea {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    color: #333 !important;
}

.ceo-video-list-form .ceo-textarea:focus {
    border-color: #007cba !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 186, 0.1) !important;
}

.ceo-video-list-form .ceo-textarea::placeholder {
    color: #999 !important;
}

.ceo-video-list-form .ceo-button {
    background: #007cba !important;
    border: 1px solid #007cba !important;
    color: #fff !important;
}

.ceo-video-list-form .ceo-button:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
}

.comments-list-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-author a {
    color: #007cba;
    text-decoration: none;
}

.comment-author a:hover {
    text-decoration: underline;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.no-comments p {
    margin: 0;
    font-size: 16px;
}

/* 最新更新模块样式 */
.latest-updates-section {
    padding: 20px 0;
}

.latest-updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.latest-updates-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-updates-header h3 i {
    color: #007cba;
    font-size: 18px;
}

.purchased-users-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.purchased-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

.purchased-count i {
    font-size: 12px;
    color: #28a745;
}

.purchased-label {
    color: #666;
    font-size: 12px;
    font-weight: 400;
}

.latest-updates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.update-item-wrapper {
    width: 100%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}

.update-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.update-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.update-item-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    display: block;
    background-color: #f5f5f5;
    line-height: 0;
}

.update-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    max-width: 100%;
    border: none;
    outline: none;
}

.update-item:hover .update-item-image img {
    transform: scale(1.05);
}

.update-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.update-item:hover .update-item-overlay {
    opacity: 1;
}

.update-item-overlay i {
    color: #fff;
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.update-video-link {
    display: block;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.update-video-link:hover {
    transform: scale(1.02);
}

.update-video-link:hover .update-item-overlay {
    opacity: 1;
    background: rgba(0, 123, 186, 0.8);
}

.update-item-content {
    padding: 16px;
}

.update-item-video-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.update-item-video-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-item-video-title i {
    font-size: 14px;
    color: #28a745;
    margin-right: 6px;
    vertical-align: middle;
}

.update-item-video-title a:hover {
    color: #007cba;
}

.update-item-excerpt {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.update-item-date,
.update-item-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.update-item-date i,
.update-item-views i {
    font-size: 10px;
}

.no-updates {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.ceo-video-list-xinxi-tim p {
    color: #333 !important;
    font-weight: 500;
}

.ceo-video-list-xinxi-tim span {
    color: #333 !important;
}

@media (max-width: 768px) {
    .video-tabs-nav ul {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .video-tabs-nav li {
        flex: none;
    }

    .video-tabs-nav li a {
        padding: 12px 4px 10px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .catalog-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .catalog-item-info {
        width: 100%;
    }

    .catalog-item-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .catalog-item-badges {
        align-self: flex-start;
    }

    .catalog-item-actions {
        margin-left: 0;
        width: 100%;
    }

    .catalog-play-btn {
        width: 100%;
        justify-content: center;
    }

    .comment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .latest-updates-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .update-item-wrapper {
        width: 100%;
        display: inline-block;
        vertical-align: top;
        box-sizing: border-box;
    }

    .latest-updates-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .latest-updates-header h3 {
        font-size: 18px;
    }

    .purchased-users-info {
        align-self: flex-end;
        padding: 6px 10px;
        gap: 6px;
    }

    .purchased-count {
        font-size: 13px;
    }

    .purchased-label {
        font-size: 11px;
    }

    .update-item-image {
        height: 90px;
        background-color: #f5f5f5;
        line-height: 0;
    }

    .update-item-content {
        padding: 6px 12px;
    }

    .update-item-video-title {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    .update-item-video-title i {
        font-size: 12px;
    }

    .update-item-excerpt {
        display: none;
    }
}

@media (max-width: 480px) {
    .video-tabs-nav li {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .latest-updates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .update-item-wrapper {
        width: 100%;
    }

    .latest-updates-header h3 {
        font-size: 16px;
    }

    .purchased-users-info {
        padding: 5px 8px;
        gap: 4px;
    }

    .purchased-count {
        font-size: 12px;
    }

    .purchased-label {
        font-size: 10px;
    }

    .update-item-image {
        height: 85px;
    }

    .update-item-content {
        padding: 4px 8px;
    }

    .update-item-video-title {
        font-size: 12px;
        line-height: 1.2;
        margin-bottom: 1px;
    }

    .update-item-video-title i {
        font-size: 11px;
    }

    .update-item-excerpt {
        display: none;
    }
}

/* 配套资料标签页样式 */
.materials-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.materials-download-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.materials-download-btn {
    text-align: center;
}

.materials-info-section {
    margin-bottom: 15px;
}

.materials-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.materials-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.materials-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.materials-info-label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
}

.materials-info-value {
    color: #333;
    font-weight: 600;
    flex: 1;
}

@media (max-width: 768px) {
    .materials-info-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .materials-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .materials-info-label {
        min-width: auto;
    }
}

