/* PC端首页样式 - 一道堂 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f0ebe5; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }

/* 顶部导航 */
.pc-header { background: #1a0a05; position: sticky; top: 0; z-index: 100; width: 100%; display: flex; justify-content: center; }
.header-container { width: 100%; max-width: 1400px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 64px; margin: 0 auto; }
.logo-area img { height: 42px; width: auto; display: block; }
.search-area { flex: 1; max-width: 480px; margin: 0 40px; }
.search-area form { display: flex; background: rgba(255,255,255,0.12); border-radius: 32px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); }
.search-area input { flex: 1; padding: 10px 18px; border: none; background: transparent; outline: none; font-size: 14px; color: #fff; }
.search-area input::placeholder { color: rgba(255,255,255,0.6); }
.search-area button { padding: 10px 24px; background: #8B0000; color: #fff; border: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.user-area { display: flex; gap: 24px; align-items: center; }
.user-area a { color: #fff; text-decoration: none; font-size: 14px; white-space: nowrap; }
.user-area a:hover { color: #ff6b6b; }

/* 红色渐变背景 */
.pc-red-bg { width: 100%; position: relative; background: linear-gradient(180deg, #1a0a05 0%, #2a1008 30%, #5a2010 60%, #8B0000 80%, #a02020 95%, #c41e1e 100%); }

/* 轮播图 */
.pc-banner-slider { width: 100%; max-width: 1400px; margin: 0 auto; position: relative; }
.pc-banner-slider .banner-item { display: none; }
.pc-banner-slider .banner-item.active { display: block; }
.pc-banner-slider .banner-item img { width: 100%; height: 380px; object-fit: cover; display: block; border-radius: 16px 16px 0 0; }
.pc-banner-slider .banner-text-overlay { position: absolute; bottom: 40px; left: 0; right: 0; padding: 0 50px; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.pc-banner-slider .banner-desc { color: #fff; font-size: 16px; background: rgba(0,0,0,0.4); padding: 8px 20px; border-radius: 40px; max-width: 50%; }
.pc-banner-slider .banner-link { background: #8B0000; color: #fff; padding: 10px 32px; border-radius: 50px; text-decoration: none; }
.pc-banner-slider .banner-prev, .pc-banner-slider .banner-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; background: rgba(0,0,0,0.5); border-radius: 50%; color: #fff; text-align: center; line-height: 46px; cursor: pointer; font-size: 26px; z-index: 10; }
.pc-banner-slider .banner-prev { left: 20px; }
.pc-banner-slider .banner-next { right: 20px; }
.pc-banner-slider .banner-dots { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; }
.pc-banner-slider .banner-dots span { display: inline-block; width: 10px; height: 10px; margin: 0 6px; background: rgba(255,255,255,0.6); border-radius: 50%; cursor: pointer; }
.pc-banner-slider .banner-dots span.active { background: #ff6b6b; width: 26px; border-radius: 5px; }

/* 主内容区 */
.pc-main-content { max-width: 1400px; margin: 0 auto 40px; display: flex; gap: 30px; padding: 30px 20px; background: #fff; border-radius: 0 0 16px 16px; }

/* 侧边栏 */
.pc-sidebar { width: 260px; flex-shrink: 0; }
.sidebar-box { background: #fff; padding: 20px; margin-bottom: 24px; border-radius: 12px; border: 1px solid #e8dfd3; }
.sidebar-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #8B0000; color: #4a3728; }
.category-parent { font-size: 14px; font-weight: 600; color: #5c3d2a; margin: 12px 0 6px 0; padding-left: 8px; border-left: 3px solid #8B0000; }
.category-child { list-style: none; padding-left: 18px; margin: 0 0 10px 0; }
.category-child li { margin-bottom: 6px; }
.category-child li a { color: #7a6856; text-decoration: none; font-size: 13px; display: block; }

/* 最新课程 */
.latest-course-item { display: flex; gap: 12px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #ede5d9; cursor: pointer; }
.latest-course-item img { width: 70px; height: 50px; object-fit: cover; border-radius: 8px; }
.latest-course-item .latest-title { font-size: 13px; color: #4a3728; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-course-item .latest-price { font-size: 12px; color: #8B0000; margin-top: 5px; }

/* 课程网格 */
.pc-course-grid { flex: 1; }
.section-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; padding-left: 14px; border-left: 5px solid #8B0000; color: #4a3728; }
.course-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e8dfd3; cursor: pointer; transition: all 0.3s; min-height: 260px; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.course-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.course-card .info { padding: 12px; }
.course-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #4a3728; line-height: 1.4; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.course-card .price { font-size: 14px; font-weight: 600; color: #c47a44; margin-top: 8px; }
.course-card .price.free { color: #8B0000; }

/* 分页样式 */
.pagination { margin-top: 40px; text-align: center; padding: 20px 0; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid #e8dfd3; border-radius: 4px; color: #7a6856; text-decoration: none; font-size: 13px; min-width: 32px; text-align: center; }
.pagination a:hover, .pagination .current { background: #8B0000; color: #fff; border-color: #8B0000; }

/* 页脚 */
.pc-footer { background: linear-gradient(180deg, #8B0000 0%, #1a0a05 100%); color: #fff; margin-top: 0; padding: 32px 20px; }
.footer-container { max-width: 1400px; margin: 0 auto; text-align: center; }
.footer-info p { margin: 6px 0; font-size: 13px; }
.footer-copyright { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 12px; }
.footer-copyright a { color: #fff; text-decoration: none; opacity: 0.7; }

/* 响应式 */
@media (max-width: 1280px) { .course-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .course-list { grid-template-columns: repeat(2, 1fr); } .pc-main-content { flex-direction: column; } .pc-sidebar { width: 100%; } }
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; height: auto; padding: 12px; }
    .search-area { order: 3; width: 100%; margin: 0; max-width: 100%; }
    .user-area { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .course-list { grid-template-columns: repeat(1, 1fr); }
}/* 分页样式 - 强制水平显示 */
.pagination { margin-top: 40px; text-align: center; padding: 20px 0; clear: both; }
.pagination a, .pagination span { display: inline-block !important; padding: 6px 12px; margin: 0 3px; border: 1px solid #e8dfd3; border-radius: 4px; color: #7a6856; text-decoration: none; font-size: 13px; min-width: 32px; text-align: center; background: #fff; }
.pagination a:hover, .pagination .current { background: #8B0000; color: #fff; border-color: #8B0000; }
.pagination .disabled { color: #ccc; border-color: #e8dfd3; cursor: not-allowed; background: #f5f0e8; }
/* 分页样式 - 支持 ul/li 结构 */
.pagination { margin-top: 40px; text-align: center; padding: 20px 0; clear: both; }
.pagination ul { display: inline-block; padding: 0; margin: 0; list-style: none; }
.pagination ul li { display: inline-block !important; margin: 0 3px; }
.pagination ul li a, .pagination ul li span { display: inline-block !important; padding: 6px 12px; border: 1px solid #e8dfd3; border-radius: 4px; color: #7a6856; text-decoration: none; font-size: 13px; min-width: 32px; text-align: center; background: #fff; }
.pagination ul li a:hover, .pagination ul li.active span { background: #8B0000; color: #fff; border-color: #8B0000; }
.pagination ul li.disabled span { color: #ccc; background: #f5f0e8; cursor: not-allowed; }
/* 专题详情页样式优化 */
.detail-container { max-width: 1000px; margin: 0 auto; }
.detail-cover { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 16px; }
.detail-title { font-size: 24px; font-weight: 600; color: #4a3728; margin: 20px 0 10px; }
.detail-abstract { font-size: 14px; color: #7a6856; line-height: 1.6; margin-bottom: 20px; }
.detail-meta { display: flex; gap: 30px; padding: 12px 0; border-top: 1px solid #e8dfd3; border-bottom: 1px solid #e8dfd3; margin: 15px 0; font-size: 14px; color: #7a6856; }
.detail-meta strong { color: #8B0000; font-size: 16px; margin-right: 3px; }
.detail-price { font-size: 22px; color: #8B0000; font-weight: 600; }
.buy-btn { background: #8B0000; color: #fff; border: none; padding: 10px 30px; border-radius: 40px; font-size: 14px; cursor: pointer; transition: all 0.3s; }
.buy-btn:hover { background: #a00000; transform: translateY(-2px); }
.detail-content { padding: 25px; background: #faf8f5; margin-top: 25px; border-radius: 12px; }
.detail-content h3 { font-size: 18px; margin-bottom: 15px; color: #4a3728; border-left: 4px solid #8B0000; padding-left: 12px; }
.detail-content-body { font-size: 14px; line-height: 1.8; color: #5a4a3a; }
/* 专题详情页左右布局样式优化 */
.detail-layout { display: flex; gap: 30px; max-width: 1400px; margin: 20px auto; padding: 0 20px; align-items: flex-start; }
.detail-sidebar { width: 320px; flex-shrink: 0; background: #fff; border-radius: 16px; border: 1px solid #e8dfd3; overflow: hidden; }
.detail-sidebar .sidebar-header { background: #8B0000; color: #fff; padding: 15px 20px; font-size: 16px; font-weight: 600; }
.detail-sidebar .course-list-side { max-height: 600px; overflow-y: auto; }
.detail-sidebar .course-item { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #e8dfd3; cursor: pointer; transition: all 0.2s; }
.detail-sidebar .course-item:hover { background: #faf6f0; }
.detail-sidebar .course-item.active { background: #f0ebe5; border-left: 3px solid #8B0000; }
.detail-sidebar .course-item .num { width: 36px; color: #8B0000; font-weight: 600; font-size: 14px; }
.detail-sidebar .course-item .title { flex: 1; color: #4a3728; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-sidebar .course-item .type { font-size: 12px; color: #7a6856; width: 40px; }

.detail-main { flex: 1; background: #fff; border-radius: 16px; border: 1px solid #e8dfd3; overflow: hidden; display: flex; flex-direction: column; }
 .detail-main .video-container { height: auto; background: #000; position: relative; width: 100%; /* 16:9比例 */ }
.detail-main .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-main .info-container { padding: 20px; }
.detail-main .info-title { font-size: 20px; font-weight: 600; color: #4a3728; margin-bottom: 10px; }
.detail-main .info-abstract { font-size: 14px; color: #7a6856; line-height: 1.6; margin-bottom: 15px; }
.detail-main .info-meta { display: flex; gap: 30px; padding: 12px 0; margin: 15px 0 0; border-top: 1px solid #e8dfd3; border-bottom: 1px solid #e8dfd3; font-size: 14px; align-items: center; flex-wrap: wrap; }
.detail-main .info-price { font-size: 22px; color: #8B0000; font-weight: 600; }
.detail-main .buy-btn { background: #8B0000; color: #fff; border: none; padding: 8px 24px; border-radius: 40px; font-size: 14px; cursor: pointer; margin-left: auto; }
.detail-main .buy-btn:hover { background: #a00000; }
/* 视频播放窗口 - 16:9 比例，宽度100% */
 .detail-main .video-container { height: auto; 
    background: #000; 
    position: relative; 
    width: 100%; 
    /* 16:9 = 9/16 = 0.5625 */
}
.detail-main .video-container video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    background: #000;
}
/* 如果没有视频源时的占位样式 */
.detail-main .video-container .video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}
/* 强制显示详情页内容 */
.detail-layout { display: flex !important; }
.detail-sidebar { display: block !important; }
.detail-main { display: block !important; }
.video-container { display: block !important; background: #000 !important; min-height: 300px !important; }
.video-container video { display: block !important; width: 100% !important; height: auto !important; }
.info-container { display: block !important; }
/* 页头样式修复 */
.pc-header { background: #1a0a05; position: sticky; top: 0; z-index: 100; width: 100%; display: flex; justify-content: center; }
.header-container { width: 100%; max-width: 1400px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 64px; margin: 0 auto; }
.logo-area img { height: 42px; width: auto; display: block; }
.search-area form { display: flex; background: rgba(255,255,255,0.12); border-radius: 32px; overflow: hidden; }
.search-area input { padding: 10px 18px; border: none; background: transparent; color: #fff; width: 250px; outline: none; }
.search-area input::placeholder { color: rgba(255,255,255,0.6); }
.search-area button { padding: 10px 24px; background: #8B0000; color: #fff; border: none; cursor: pointer; border-radius: 0 32px 32px 0; }
.user-area { display: flex; gap: 20px; align-items: center; }
.user-area a { color: #fff; text-decoration: none; font-size: 14px; white-space: nowrap; }
.user-area a:hover { color: #ff6b6b; }

/* 页脚样式修复 */
.pc-footer { background: #1a0a05; color: #b8aa99; margin-top: 40px; padding: 30px 20px; text-align: center; clear: both; }
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-info p { margin: 5px 0; font-size: 13px; line-height: 1.5; }
.footer-copyright { margin-top: 15px; padding-top: 15px; border-top: 1px solid #333; font-size: 12px; }
.footer-copyright a { color: #b8aa99; text-decoration: none; }
.footer-copyright a:hover { color: #ff6b6b; }
/* 页头样式修复 */
.pc-header { background: #1a0a05; position: sticky; top: 0; z-index: 100; width: 100%; display: flex; justify-content: center; }
.header-container { width: 100%; max-width: 1400px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 64px; margin: 0 auto; }
.logo-area img { height: 42px; width: auto; display: block; }
.search-area form { display: flex; background: rgba(255,255,255,0.12); border-radius: 32px; overflow: hidden; }
.search-area input { padding: 10px 18px; border: none; background: transparent; color: #fff; width: 250px; outline: none; }
.search-area input::placeholder { color: rgba(255,255,255,0.6); }
.search-area button { padding: 10px 24px; background: #8B0000; color: #fff; border: none; cursor: pointer; border-radius: 0 32px 32px 0; }
.user-area { display: flex; gap: 20px; align-items: center; }
.user-area a { color: #fff; text-decoration: none; font-size: 14px; white-space: nowrap; }
.user-area a:hover { color: #ff6b6b; }

/* 页脚样式修复 */
.pc-footer { background: #1a0a05; color: #b8aa99; margin-top: 40px; padding: 30px 20px; text-align: center; clear: both; }
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-info p { margin: 5px 0; font-size: 13px; line-height: 1.5; }
.footer-copyright { margin-top: 15px; padding-top: 15px; border-top: 1px solid #333; font-size: 12px; }
.footer-copyright a { color: #b8aa99; text-decoration: none; }
.footer-copyright a:hover { color: #ff6b6b; }
/* 轮播图文字和按钮位置 - 强制生效 */
.pc-banner-slider .banner-text-overlay { 
    position: absolute; 
    bottom: 30px; 
    left: 30px; 
    right: 30px; 
    padding: 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 5; 
}
.pc-banner-slider .banner-desc { 
    color: #fff; 
    font-size: 14px; 
    background: rgba(0,0,0,0.5); 
    padding: 6px 16px; 
    border-radius: 30px; 
    max-width: 55%; 
    line-height: 1.4;
}
.pc-banner-slider .banner-link { 
    background: #8B0000; 
    color: #fff; 
    padding: 6px 18px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 500; 
    white-space: nowrap;
}
