@charset "utf-8";
/* CSS Document */
/* 全局基础样式（统一全站） */
body { background-color: #f5f7fa; font-family: "Microsoft Yahei", sans-serif; padding-top: 70px; margin: 0; color: #333; }
a { text-decoration: none; color: #333; }
a:hover { color: #007bff; }
/* 顶部公告栏 */
.nav-top-notice { background-color: #f0f7ff; font-size: 12px; color: #666; padding: 4px 0; }
/* 导航栏样式 */
.navbar { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.navbar-brand { font-weight: bold; }
.navbar-brand img { max-height: 30px; }
.search-box { max-width: 400px; width: 100%; }
/* 轮播图样式 */
#bannerCarousel, .carousel { max-height: 300px; overflow: hidden; }
.carousel-item img { width: 100%; height: 300px; object-fit: cover; }
.carousel-caption { background: rgba(0, 0, 0, 0.35); border-radius: 8px; padding: 15px 20px; bottom: 2rem; }
/* 面包屑导航 */
.breadcrumb { background: transparent; padding: 10px 0; font-size: 14px; }
/* 板块标题通用样式 */
.section-title { text-align: center; font-size: 36px; color: #333; position: relative; margin-bottom: 30px; font-weight: 600; border-left: 4px solid #007bff; padding-left: 10px; }
.mod-title { font-size: 20px; font-weight: 600; border-left: 4px solid #007bff; padding-left: 12px; margin: 20px 0; }
.section-title .badge-count { position: absolute; top: -10px; right: 50%; transform: translateX(50%); background-color: #3498ff; color: white; border-radius: 20px; padding: 4px 10px; font-size: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
/* 卡片通用样式（整合课程/产品卡片） */
.course-card, .prod-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); height: 100%; transition: all 0.3s ease; margin-bottom: 20px; }
.course-card:hover, .prod-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12); }
/* 卡片封面区域 */
.card-cover { height: 180px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-weight: bold; text-align: center; padding: 10px; line-height: 1.4; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
/* 封面配色样式 */
.cover-red { background-color: #d82828; }
.cover-teal { background-color: #48a9a6; background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%); background-size: 20px 20px; }
.cover-green-light { background-color: #88d8a0; }
.cover-green-dark { background-color: #1a8a3e; background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%); background-size: 20px 20px; }
.cover-blue { background-color: #3498ff; }
/* 卡片内容区域 */
.card-body { padding: 15px; }
.category-tag, .card-cate { display: flex; align-items: center; margin-bottom: 12px; font-size: 18px; color: #666; }
.category-tag::before {
 content: '';
 display: inline-block;
 width: 8px;
 height: 8px;
 background-color: #ff6b35;
 border-radius: 50%;
 margin-right: 8px;
}
.course-title, .card-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 卡片底部信息 */
.card-footer-info, .card-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #eee; gap: 8px; font-size: 13px; color: #999; }
.info-item { display: flex; align-items: center; color: #666; font-size: 14px; }
.info-item i { margin-right: 4px; }
.price, .price-text { color: #ff4444; font-weight: bold; font-size: 18px; }
/* 标签/徽章通用样式 */
.badge-tag, .tag { color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; }
/* 标签配色 */
.badge-new, .tag-new { background-color: #2dd473; }
.badge-recommend, .tag-recom { background-color: #3498ff; }
.badge-quality { background-color: #ff2424; }
.badge-exclusive, .tag-hot { background-color: #ff7a21; }
.badge-custom { font-size: 12px; background-color: #e9ecef; }
/* 分类板块样式 */
.category-block, .cate-block { padding: 15px; color: white; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.2s ease; background: #fff; }
.category-block:hover, .cate-block:hover { transform: scale(1.02); }
.category-list { list-style: none; padding: 0; background: #fff; border-radius: 8px; padding: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.category-list li { padding: 8px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
.category-list li:last-child { border-bottom: none; }
.cate-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.cate-item { display: inline-block; padding: 4px 10px; background: #f5f7fa; border-radius: 4px; margin: 0 6px 8px 0; font-size: 14px; }
.cate-item:hover { background: #007bff; color: #fff; }
/* 侧边栏样式 */
.sidebar-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); padding: 15px; margin-bottom: 20px; }
.sidebar-title { font-size: 16px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.side-list li { list-style: none; padding: 6px 0; font-size: 14px; border-bottom: 1px dotted #eee; }
.side-list li:last-child { border: none; }
/* 详情页专属样式 */
.main-container { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.resource-header { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.resource-title { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.resource-meta { font-size: 13px; color: #999; display: flex; gap: 15px; flex-wrap: wrap; }
.price-info { display: flex; gap: 10px; margin: 15px 0; align-items: center; }
.price-tag { font-size: 24px; font-weight: bold; color: #ff4444; }
.vip-price { color: #0066ff; }
/* 按钮样式 */
.btn-action { padding: 8px 25px; border-radius: 4px; border: none; color: white; font-size: 14px; cursor: pointer; }
.btn-red { background-color: #ff3333; }
.btn-blue, .btn-login-buy, .btn-publish, .sidebar-btn { background-color: #007bff; }
.btn-orange { background: linear-gradient(90deg, #ff7a21, #ff9966); }
.sidebar-btn { width: 100%; padding: 10px; margin: 10px 0; }
.btn-login-buy { padding: 6px 15px; font-size: 13px; }
.btn-publish { padding: 6px 15px; }
/* 资源介绍模块 */
.resource-section { margin-bottom: 25px; }
.file-list { list-style: none; padding: 0; }
.file-list li { padding: 6px 0; display: flex; align-items: center; font-size: 14px; color: #666; }
.file-list li i { color: #4285f4; margin-right: 8px; }
.hidden-content-box { background: #fff5f5; border: 1px dashed #ff9999; padding: 15px; text-align: center; margin: 15px 0; border-radius: 4px; }
.hidden-content-box .tip { color: #ff4444; font-size: 14px; margin-bottom: 10px; }
/* 侧边栏价格项 */
.price-item { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.price-item .label { color: #666; }
.price-item .value { color: #333; font-weight: 500; }
/* 热门推荐项 */
.hot-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.hot-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
/* 相关推荐 */
.recommend-list { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.recommend-card { min-width: 120px; text-align: center; font-size: 13px; }
.recommend-card .cover { width: 120px; height: 120px; background-color: #eee; border-radius: 4px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }
/* 评论区 */
.comment-section { background: #fff; border-radius: 8px; padding: 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.comment-input { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 10px; margin-bottom: 10px; }
.comment-actions { display: flex; justify-content: space-between; align-items: center; }
.comment-actions .icons i { margin-right: 10px; color: #666; }
/* 分页 */
.page-box { margin: 30px 0; text-align: center; }
/* 页脚样式 */
footer { background-color: #fff; padding: 25px 0; margin-top: 50px; border-top: 1px solid #eee; font-size: 13px; color: #666; text-align: center; }
.footer-links a { color: #666; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #3498ff; text-decoration: underline; }

/* 响应式适配 */
@media (max-width: 768px) {
 .section-title {
 font-size: 28px;
}
 .carousel {
 max-height: 200px;
}
 .carousel-item img {
 height: 200px;
}
 .card-cover {
 height: 180px;
 font-size: 18px;
}
 .course-title {
 font-size: 16px;
}
}
@media (max-width: 576px) {
 .section-title .badge-count {
 font-size: 14px;
 padding: 2px 8px;
}
 .category-tag {
 font-size: 16px;
}
 .price {
 font-size: 16px;
}
}
