/* 教程中心样式 - 修复并优化布局 */
.jc-container {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin-bottom: 30px;
}

.jc-title {
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* 修复的左栏样式，确保正确布局 */
.jc-sidebar {
    background-color: #f0f0f0;
    border: 1px solid #e5e5e5;
    padding: 0;
    margin: 0;
    box-shadow: none;
    min-height: 600px;
    overflow-y: auto;
    float: left;
    width: 100%;
}

/* 左栏标题样式 */
.jc-sidebar-title {
    background-color: #ff6600;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
}

.jc-sidebar-item {
    padding: 12px 20px;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.3s;
}

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

.jc-sidebar-item.jc-home {
    font-weight: bold;
}

.jc-link {
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s;
}

.jc-link:hover,
.jc-link:focus {
    color: #ff6600;
    text-decoration: none;
}

/* 激活状态样式 */
.jc-active .jc-link {
    color: #ff6600;
    font-weight: bold;
}

.jc-active {
    background-color: #fff;
    border-right: 3px solid #ff6600;
}

/* 首页链接样式 */
.jc-home {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

/* 子菜单样式 */
.jc-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fafafa;
}

.jc-submenu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.jc-submenu li:last-child {
    border-bottom: none;
}

.jc-sub-link {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.jc-sub-link:hover,
.jc-sub-link:focus {
    color: #ff6600;
    background-color: #f9f9f9;
    text-decoration: none;
}

.jc-sub-link.jc-active {
    color: #ff6600;
    background-color: #fff8f0;
    font-weight: 500;
}

/* 修复内容区域样式，确保与左栏对齐 */
.jc-content {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 30px;
    box-shadow: none;
    min-height: 600px;
    float: right;
    width: 100%;
}

.jc-article {
    line-height: 1.8;
    color: #333;
}

.jc-article-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.jc-article-content {
    font-size: 16px;
}

.jc-article-content img {
    max-width: 100%;
    height: auto;
}

.jc-article-content h1,
.jc-article-content h2,
.jc-article-content h3,
.jc-article-content h4,
.jc-article-content h5,
.jc-article-content h6 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.jc-article-content p {
    margin-bottom: 15px;
}

.jc-list {
    line-height: 1.6;
}

.jc-list-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.jc-list-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.jc-list-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jc-list-item h3 a:hover {
    color: #ff6600;
}

.jc-list-desc {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.jc-list-meta {
    color: #999;
    font-size: 12px;
}

.jc-welcome {
    padding: 40px 0;
    text-align: center;
}

.jc-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

/* 修复响应式设计 */
@media (max-width: 768px) {
    .jc-sidebar {
        border-right: 1px solid #e5e5e5;
        border-bottom: none;
        margin-bottom: 0;
        min-height: auto;
    }
    
    .jc-content {
        border-left: 1px solid #e5e5e5;
        border-top: none;
        padding: 20px;
        min-height: auto;
    }
    
    .jc-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* 视频自适应样式 - 增强版，确保更高优先级 */
.jc-article-content video,
.jc-article-content iframe,
.jc-content-inner video,
.jc-content-inner iframe,
/* 添加更通用的选择器确保覆盖所有可能的视频嵌入 */
.jc-article-content embed,
.jc-article-content object,
.jc-content-inner embed,
.jc-content-inner object {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 视频容器样式，确保正确的宽高比 */
.jc-article-content .video-container,
.jc-content-inner .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 15px 0;
    box-sizing: border-box;
}

.jc-article-content .video-container video,
.jc-article-content .video-container iframe,
.jc-article-content .video-container embed,
.jc-article-content .video-container object,
.jc-content-inner .video-container video,
.jc-content-inner .video-container iframe,
.jc-content-inner .video-container embed,
.jc-content-inner .video-container object {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

/* 添加直接作用于视频内容的额外规则 */
.jc-article-content {
    word-wrap: break-word;
    overflow-x: hidden;
}

.jc-article-content * {
    box-sizing: border-box;
}

/* 确保视频标签不会被其他样式覆盖 */
.jc-article-content video,
.jc-article-content iframe {
    object-fit: contain !important;
}