/* 知识付费教程系统前台样式 */

/* ==================== 顶部导航样式增强 ==================== */

.layui-nav {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.layui-nav .layui-nav-item a {
    color: #334155 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
}

.layui-nav .layui-nav-item a:hover {
    color: #007bff !important;
}

.layui-nav .layui-this a {
    color: #007bff !important;
}

/* ==================== 教程列表页 ==================== */

.course-page {
    padding: 40px 0 0 0;
    margin-bottom: 0 !important;
}

/* 确保footer紧贴分页 */
.course-page + .footer {
    margin-top: 0 !important;
}

/* 确保container没有底部间距 */
.container.course-page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.course-page .page-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 30px 0 25px;
}

.course-page .page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.course-page .page-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* 搜索栏 */
.search-section {
    margin-bottom: 20px;
    padding: 30px;
    background: transparent;
}

.search-section .search-box {
    display: flex;
    align-items: stretch;
    max-width: 700px;
    margin: 0 auto;
    gap: 0;
}

.search-section .search-box #searchInput {
    flex: 1;
    height: 46px;
    padding: 0 20px;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s;
    color: #334155;
}

.search-section .search-box #searchInput:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.08);
}

.search-section .search-box #searchInput::placeholder {
    color: #94a3b8;
}

.search-section .search-box #searchBtn {
    flex-shrink: 0;
    min-width: 100px;
    height: 46px;
    padding: 0 25px;
    background: #007bff;
    color: #fff;
    border: 2px solid #007bff;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.search-section .search-box #searchBtn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.search-section .search-box #searchBtn i {
    font-size: 14px;
}

/* 筛选栏 */
.filter-section {
    margin-bottom: 35px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.filter-section .sort-btns {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-section .sort-btns .layui-btn {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 24px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}

.filter-section .sort-btns .layui-btn i {
    margin-right: 6px;
    line-height: 1;
}

.filter-section .sort-btns .layui-btn-normal {
    box-shadow: 0 2px 4px rgba(0,123,255,0.2) !important;
}

.filter-section .sort-btns .layui-btn-primary:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.filter-section .category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-section .category-tag {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.filter-section .category-tag:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.filter-section .category-tag.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 3px 6px rgba(0,123,255,0.25);
}

.filter-section .category-tag i {
    margin-right: 6px;
    font-size: 14px;
}

/* 教程卡片 */
.course-list .course-item {
    margin-bottom: 30px;
}

.course-list .course-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    height: 220px;
}

.course-list .course-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.course-list .course-thumb {
    position: relative;
    width: 320px;
    flex-shrink: 0;
}

.course-list .course-thumb img,
.course-list .course-thumb .default-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-list .default-thumb {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-list .default-thumb i {
    font-size: 60px;
    color: #cbd5e1;
}

.course-list .price-tag-link {
    position: absolute;
    top: 15px;
    right: 15px;
    text-decoration: none;
    z-index: 2;
    transition: all 0.3s;
}

.course-list .price-tag-link:hover {
    transform: scale(1.05);
}

.course-list .price-tag {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    transition: all 0.3s;
}

.course-list .price-tag-link:hover .price-tag {
    background: rgba(0,123,255,0.9);
}

.course-list .price-tag .price-label {
    font-size: 12px;
    opacity: 0.9;
    margin-right: 5px;
}

.course-list .price-tag .price-value {
    font-size: 18px;
    font-weight: 600;
    color: #ffd700;
}

.course-list .free-tag {
    background: #28a745;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.course-list .price-tag-link:hover .free-tag {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.course-list .course-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.course-list .course-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.course-list .course-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s;
}

.course-list .course-title a:hover {
    color: #007bff;
}

.course-list .course-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-list .course-tags {
    margin-bottom: 15px;
}

.course-list .course-tags .tag {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 8px;
    margin-bottom: 5px;
    background: #f1f5f9;
    color: #007bff;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.course-list .course-tags .tag:hover {
    background: #007bff;
    color: #fff;
}

.course-list .course-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #64748b;
}

.course-list .course-meta span {
    display: flex;
    align-items: center;
}

.course-list .course-meta span i {
    margin-right: 5px;
}

.empty-state {
    text-align: center;
    padding: 80px 0;
}

.empty-state i {
    font-size: 80px;
    color: #cbd5e1;
}

.empty-state p {
    font-size: 16px;
    color: #64748b;
    margin-top: 20px;
}

/* ==================== 教程详情页 ==================== */

.course-detail-page {
    padding: 30px 0 50px;
}

/* 头部信息卡片 */
.detail-header {
    background: #fff;
    padding: 40px 45px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.detail-title {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-meta span i {
    color: #94a3b8;
    font-size: 14px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.detail-tags .tag:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
}

.detail-body {
    margin-bottom: 20px;
}

.detail-body .panel {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-body .panel-body {
    padding: 40px;
}

.content-full,
.content-preview {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    letter-spacing: 0.3px;
}

.content-full h1,
.content-full h2,
.content-full h3,
.content-full h4,
.content-preview h1,
.content-preview h2,
.content-preview h3,
.content-preview h4 {
    color: #0f172a;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.content-full h1,
.content-preview h1 {
    font-size: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.content-full h2,
.content-preview h2 {
    font-size: 22px;
}

.content-full h3,
.content-preview h3 {
    font-size: 20px;
}

.content-full p,
.content-preview p {
    margin-bottom: 16px;
}

.content-full img,
.content-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.content-full pre,
.content-preview pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}

.content-full code,
.content-preview code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #d63384;
    font-family: 'Consolas', 'Monaco', monospace;
}

.content-full pre code,
.content-preview pre code {
    background: none;
    padding: 0;
    color: #334155;
}

.content-full blockquote,
.content-preview blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 20px 0;
    color: #64748b;
    font-style: italic;
}

.content-full ul,
.content-full ol,
.content-preview ul,
.content-preview ol {
    margin: 15px 0;
    padding-left: 30px;
}

.content-full li,
.content-preview li {
    margin-bottom: 8px;
}

/* 附件区域 */
.attachments-box {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.attachments-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 22px;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.attachments-box h3 i {
    color: #007bff;
    margin-right: 10px;
    font-size: 20px;
}

.attachments-box .attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.attachments-box .attachment-item:last-child {
    margin-bottom: 0;
}

.attachments-box .attachment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
    border-color: #007bff;
}

.attachments-box .file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.attachments-box .file-info i {
    font-size: 28px;
    color: #007bff;
}

.attachments-box .filename {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

/* 付费墙 */
.paywall {
    margin-top: 40px;
    padding: 60px 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.paywall-icon {
    margin-bottom: 20px;
}

.paywall-icon i {
    font-size: 64px;
    color: #94a3b8;
}

.paywall h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.paywall p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 25px;
}

.paywall .price {
    font-size: 32px;
    font-weight: 700;
    color: #dc3545;
    margin: 0 5px;
}

.paywall .layui-btn {
    background: #007bff;
    color: #fff;
    padding: 0 32px;
    height: 44px;
    line-height: 44px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.paywall .layui-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

/* 操作按钮 */
.detail-actions {
    margin-bottom: 20px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-actions .layui-btn {
    margin-right: 0;
    padding: 0 24px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
}

.detail-actions .layui-btn i {
    margin-right: 6px;
}

.detail-actions .layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.detail-actions .layui-btn-normal {
    background: #007bff;
    border-color: #007bff;
}

.detail-actions .layui-btn-normal:hover {
    background: #0056b3;
}

.detail-actions .layui-btn-primary {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.detail-actions .layui-btn-primary:hover {
    border-color: #007bff;
    color: #007bff;
}

/* 评论区 */
.comment-section {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comment-section .panel-heading {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
}

.comment-section .panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.comment-section .panel-title i {
    margin-right: 10px;
    color: #007bff;
    font-size: 18px;
}

.comment-section .panel-body {
    padding: 30px;
}

.comment-section .comment-form {
    margin-bottom: 30px;
}

.comment-section .comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
}

.comment-section .comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.comment-section .comment-list {
    padding-top: 10px;
}

.comment-section .comment-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.comment-section .comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-section .comment-avatar {
    flex-shrink: 0;
    margin-right: 18px;
}

.comment-section .comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.comment-section .comment-content {
    flex: 1;
}

.comment-section .comment-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-section .comment-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.comment-section .comment-time {
    font-size: 13px;
    color: #94a3b8;
}

.comment-section .comment-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

.comment-section .comment-actions {
    font-size: 13px;
    color: #64748b;
}

.comment-section .comment-like {
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-section .comment-like:hover {
    color: #007bff;
    background: #f1f5f9;
}

.comment-section .empty-comments {
    text-align: center;
    padding: 80px 0;
}

.comment-section .empty-comments i {
    font-size: 64px;
    color: #e2e8f0;
}

.comment-section .empty-comments p {
    font-size: 15px;
    color: #94a3b8;
    margin-top: 20px;
}

/* 侧边栏 */
.course-detail-page .sidebar {
    position: sticky;
    top: 20px;
}

.course-detail-page .sidebar .panel {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    background: #fff;
}

.course-detail-page .sidebar .panel-heading {
    background: #fff;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}

.course-detail-page .sidebar .panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.course-detail-page .sidebar .panel-body {
    padding: 28px;
}

.course-detail-page .sidebar .author-card .panel-body {
    text-align: center;
}

.course-detail-page .sidebar .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 2px solid #e2e8f0;
}

.course-detail-page .sidebar .author-card h4 {
    margin: 15px 0 8px;
    font-weight: 600;
    font-size: 17px;
    color: #1e293b;
}

.course-detail-page .sidebar .author-card p {
    color: #94a3b8;
    font-size: 13px;
}

.course-detail-page .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.course-detail-page .info-item:first-child {
    padding-top: 0;
}

.course-detail-page .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.course-detail-page .info-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.course-detail-page .info-value {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.course-detail-page .price-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #dc3545 !important;
}

/* 支付弹窗 */
.payment-modal {
    padding: 20px;
}

.payment-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.payment-modal .payment-amount {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.payment-modal .payment-amount .amount-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.payment-modal .payment-amount .amount-value {
    font-size: 32px;
    font-weight: 700;
    color: #dc3545;
}

.payment-modal .payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-modal .payment-option {
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.payment-modal .payment-option:hover {
    border-color: #007bff;
    background: #f8fafc;
    transform: translateX(4px);
}

.payment-modal .payment-option.active {
    border-color: #007bff;
    background: #e7f3ff;
}

.payment-modal .payment-option .option-left {
    display: flex;
    align-items: center;
}

.payment-modal .payment-option i {
    font-size: 28px;
    margin-right: 15px;
    transition: all 0.3s;
}

.payment-modal .payment-option i.fa-rmb {
    color: #28a745;
}

.payment-modal .payment-option i.fa-alipay {
    color: #00a0e9;
}

.payment-modal .payment-option i.fa-wechat {
    color: #09bb07;
}

.payment-modal .payment-option .option-text {
    display: flex;
    flex-direction: column;
}

.payment-modal .payment-option .option-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.payment-modal .payment-option .option-desc {
    font-size: 12px;
    color: #64748b;
}

.payment-modal .payment-option .option-check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
}

.payment-modal .payment-option.active .option-check {
    background: #007bff;
    border-color: #007bff;
}

.payment-modal .payment-option.active .option-check::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.payment-modal .payment-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.payment-modal .payment-buttons .layui-btn {
    flex: 1;
    height: 44px;
    font-size: 15px;
    font-weight: 500;
}

/* 二维码支付弹窗 */
.qrcode-modal {
    padding: 30px 20px;
    text-align: center;
}

.qrcode-modal .qrcode-tip {
    font-size: 16px;
    color: #334155;
    margin-bottom: 25px;
    font-weight: 500;
}

.qrcode-modal .qrcode-img {
    margin: 0 auto 25px;
    padding: 15px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: inline-block;
}

.qrcode-modal .qrcode-img img {
    width: 240px;
    height: 240px;
    display: block;
}

.qrcode-modal .qrcode-status {
    font-size: 14px;
    color: #64748b;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 6px;
    display: inline-block;
}

.qrcode-modal .qrcode-status i {
    margin-right: 5px;
    color: #007bff;
}

/* ==================== 我的教程页 ==================== */

.my-course-page {
    padding: 30px;
}

.my-course-page .page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.my-course-page .page-header h1 {
    font-size: 26px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.my-course-page .page-header .text-muted {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.my-course-page .my-course-item {
    margin-bottom: 20px;
}

.my-course-page .my-course-item .panel {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s;
    overflow: hidden;
}

.my-course-page .my-course-item .panel:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: #007bff;
}

.my-course-page .panel-body {
    padding: 25px;
}

.my-course-page .course-thumb {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

.my-course-page .course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.my-course-page .my-course-item:hover .course-thumb img {
    transform: scale(1.05);
}

.my-course-page .course-thumb .default-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-course-page .default-thumb i {
    font-size: 60px;
    color: #cbd5e1;
}

.my-course-page .course-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.my-course-page .course-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.my-course-page .course-title a:hover {
    color: #007bff;
}

.my-course-page .course-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-course-page .course-info {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 18px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.my-course-page .course-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-course-page .course-info i {
    color: #94a3b8;
}

.my-course-page .course-info .fa-rmb {
    color: #dc3545;
}

.my-course-page .course-actions {
    margin-top: 15px;
}

.my-course-page .course-actions .layui-btn {
    border-radius: 6px;
    font-weight: 500;
}

/* 空状态 */
.my-course-page .empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.my-course-page .empty-state i {
    font-size: 80px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.my-course-page .empty-state p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 25px;
}

/* 分页 */
.my-course-page .pagination-wrapper {
    margin-top: 30px;
    text-align: center;
}

/* ==================== 响应式设计 ==================== */

/* 移动端适配 */
@media (max-width: 768px) {
    /* 搜索栏 */
    .search-section {
        padding: 20px 15px;
    }
    
    .search-section .search-box {
        max-width: 100%;
    }
    
    .search-section .search-box #searchInput {
        height: 42px;
        padding: 0 15px;
        font-size: 14px;
    }
    
    .search-section .search-box #searchBtn {
        min-width: 70px;
        height: 42px;
        padding: 0 15px;
        font-size: 14px;
    }
    
    .search-section .search-box #searchBtn span {
        display: none;
    }
    
    /* 筛选栏 */
    .filter-section {
        padding: 20px 15px;
    }
    
    .filter-section .sort-btns {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .filter-section .sort-btns .layui-btn {
        padding: 0 18px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 13px !important;
    }
    
    /* 教程卡片 */
    .course-card {
        flex-direction: column !important;
        height: auto !important;
    }
    
    .course-card .course-thumb {
        width: 100% !important;
        height: 200px !important;
    }
    
    /* 详情页 */
    .detail-title {
        font-size: 24px !important;
    }
    
    .course-detail-page .sidebar {
        margin-top: 30px;
    }
    
    /* 移动端分页适配 */
    .pagination-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 16px;
    }
    
    .layui-laypage {
        flex-wrap: wrap;
        justify-content: center !important;
    }
    
    .layui-laypage a,
    .layui-laypage span {
        margin: 2px 1px !important;
        padding: 4px 8px !important;
        min-height: 28px !important;
        line-height: 20px !important;
        font-size: 12px !important;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 991px) {
    .search-section .search-box {
        max-width: 600px;
    }
}

/* 分页样式 - 与插件市场保持一致 */
.pagination-section {
    margin-top: 30px;
    margin-bottom: 0;
    margin-left: -30px;
    margin-right: -30px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    background: white;
    width: calc(100% + 60px);
}

.pagination-container {
    max-width: 100%;
    margin: 0;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    color: #64748b;
    font-size: 0.875rem;
}

.pagination-info strong {
    color: #1e293b;
    font-weight: 600;
}

.pagination-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* LayUI 分页样式优化 - 与插件市场保持一致 */
.layui-laypage {
    display: flex;
    align-items: center;
    gap: 8px;
}

.layui-laypage a,
.layui-laypage span {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.15s !important;
}

.layui-laypage a:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

/* ==================== 页面容器优化 ==================== */

body {
    background: #f8f9fa !important;
}

.container.course-detail-page {
    padding: 0;
    background: transparent;
}

.container.course-page,
.container.my-course-page {
    background: transparent;
    padding: 40px 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* 全局面板样式 */
.panel-default {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.panel-default > .panel-heading {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

/* 表单样式优化 */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* LayUI按钮优化 */
.layui-btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.layui-btn-normal {
    background-color: #007bff;
    border-color: #007bff;
}

.layui-btn-normal:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 确保layer弹窗在最上层 */
.layui-layer {
    z-index: 19891015 !important;
}

.layui-layer-shade {
    z-index: 19891014 !important;
}

.layui-layer-dialog {
    z-index: 19891016 !important;
}
