/**
 * TPEP前台样式 - 深蓝色配色方案
 * 主色调：深蓝色 #1B4F72 配 白色 #FFFFFF
 * 强调色：浅蓝色 #5DADE2
 */

/* ========================================
   基础样式
   ======================================== */
.tpep-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tpep-page {
    background: #f5f7fa;
}

/* ========================================
   顶部导航
   ======================================== */
.tpep-header {
    background: linear-gradient(135deg, #1B4F72 0%, #154360 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 70px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    height: 45px;
    width: auto;
}

.site-name {
    font-size: 22px;
    font-weight: bold;
    color: #FFFFFF !important;
    text-decoration: none;
}

.site-name:hover {
    color: #5DADE2 !important;
}

.main-nav .layui-nav {
    background: transparent;
    padding: 0;
}

.main-nav .layui-nav .layui-nav-item {
    line-height: 70px;
}

.main-nav .layui-nav .layui-nav-item a {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    padding: 0 25px;
}

.main-nav .layui-nav .layui-nav-item.layui-this:after,
.main-nav .layui-nav .layui-nav-item:hover:after {
    border-color: #5DADE2;
}

/* 减少 Layui 布局顶部间隙（如使用 layui-layout-admin） */
.layui-layout-admin .layui-header {
    height: 50px;
}

.layui-layout-admin .layui-logo,
.layui-layout-admin .layui-header .layui-nav {
    line-height: 50px;
}

.layui-layout-admin .layui-body {
    top: 50px;
    padding-bottom: 0;
}

/* 修复前台 admin-bar 造成的顶部空隙 */
.admin-bar .tpep-wrapper .layui-body {
    margin-top: 0 !important;
    top: 50px;
}

.admin-bar .tpep-wrapper {
    padding-top: 0 !important;
}

.main-nav .layui-nav .layui-nav-item.layui-this a,
.main-nav .layui-nav .layui-nav-item a:hover {
    color: #5DADE2;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-area .layui-nav {
    background: transparent;
    padding: 0;
}

.user-area .layui-nav .layui-nav-item a {
    color: #FFFFFF;
}

/* 用户下拉菜单样式 */
.user-area .layui-nav .layui-nav-child {
    background-color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border: 1px solid #e6e6e6;
}

.user-area .layui-nav .layui-nav-child dd a {
    color: #333333 !important;
    padding: 0 20px;
}

.user-area .layui-nav .layui-nav-child dd a:hover {
    background-color: #f5f7fa !important;
    color: #1B4F72 !important;
}

.user-area .layui-btn-primary {
    border-color: rgba(255,255,255,0.8);
    color: #FFFFFF;
    background: transparent;
}

.user-area .layui-btn-primary:hover {
    background: #FFFFFF;
    color: #1B4F72;
}

.user-area .layui-btn {
    background: #5DADE2;
    border-color: #5DADE2;
}

.user-area .layui-btn:hover {
    background: #3498DB;
}

/* ========================================
   Banner轮播
   ======================================== */
.tpep-banner-carousel {
    background: #1B4F72;
}

.tpep-banner-carousel .layui-carousel {
    background: transparent;
}

.banner-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpep-banner-default {
    background: linear-gradient(135deg, #1B4F72 0%, #2E86AB 50%, #5DADE2 100%);
    padding: 100px 20px;
    text-align: center;
    color: #FFFFFF;
}

.tpep-banner-default h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
}

.tpep-banner-default p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.tpep-banner-default .layui-btn-lg {
    background: #FFFFFF;
    color: #1B4F72;
    font-size: 18px;
    padding: 0 40px;
    height: 50px;
    line-height: 50px;
}

.tpep-banner-default .layui-btn-lg:hover {
    background: #f0f0f0;
}

/* ========================================
   页面Banner
   ======================================== */
.tpep-page-banner {
    background: linear-gradient(135deg, #1B4F72 0%, #2980B9 100%);
    padding: 50px 20px;
    text-align: center;
    color: #FFFFFF;
}

.tpep-page-banner h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tpep-page-banner h1 i {
    margin-right: 10px;
}

.tpep-page-banner p {
    font-size: 16px;
    opacity: 0.85;
}

/* ========================================
   主内容区域
   ======================================== */
.tpep-main-content {
    flex: 1;
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1B4F72;
}

.section-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #1B4F72;
    margin: 0;
}

.section-header h2 i {
    margin-right: 10px;
    color: #5DADE2;
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}

/* ========================================
   平台特色
   ======================================== */
.features-section {
    margin-bottom: 50px;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1B4F72 0%, #5DADE2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 36px;
    color: #FFFFFF;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1B4F72;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   课程卡片
   ======================================== */
.courses-section,
.recommended-section {
    margin-bottom: 50px;
}

.course-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.course-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
    position: relative;
}

.course-cover-default {
    background: linear-gradient(135deg, #1B4F72 0%, #5DADE2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-cover-default i {
    font-size: 60px;
    color: rgba(255,255,255,0.3);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 79, 114, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-overlay .layui-btn {
    background: #5DADE2;
    border-color: #5DADE2;
}

.enrolled-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.course-info {
    padding: 20px;
}

.course-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-title a {
    color: #333;
    text-decoration: none;
}

.course-title a:hover {
    color: #1B4F72;
}

.course-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.course-meta .category {
    background: #e8f4fc;
    color: #1B4F72;
    padding: 3px 10px;
    border-radius: 15px;
}

.course-meta .enrolled {
    color: #888;
}

/* ========================================
   筛选栏
   ======================================== */
.filter-bar {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ========================================
   空状态
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 80px;
    color: #ddd;
    display: block;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ========================================
   加载状态
   ======================================== */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ========================================
   底部
   ======================================== */
.tpep-footer {
    background: #1B4F72;
    color: #FFFFFF;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #5DADE2;
}

.footer-links .divider {
    color: rgba(255,255,255,0.4);
}

.copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   课程详情页
   ======================================== */
.tpep-course-header {
    background: linear-gradient(135deg, #1B4F72 0%, #2980B9 100%);
    padding: 50px 0;
    color: #FFFFFF;
}

.course-cover-large {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    background-color: #ccc;
}

.course-detail-info {
    padding: 20px 0;
}

.category-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.course-detail-info h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
}

.course-stats-large {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 36px;
    font-weight: bold;
}

.stat-item .stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.course-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.course-action-buttons .layui-btn {
    padding: 0 30px;
}

.course-update-time {
    font-size: 14px;
    opacity: 0.7;
}

.course-detail-tabs {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.course-intro-content {
    padding: 20px;
    line-height: 1.8;
}

.course-chapters .chapter-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.chapter-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chapter-num {
    background: #1B4F72;
    color: #fff;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.chapter-title {
    flex: 1;
    font-weight: bold;
}

.chapter-count {
    color: #888;
    font-size: 13px;
}

.lesson-list {
    padding: 10px 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-num {
    width: 50px;
    color: #888;
}

.lesson-title {
    flex: 1;
}

.lesson-type {
    color: #888;
    font-size: 13px;
}

/* ========================================
   我的课程页
   ======================================== */
.my-courses-stats {
    margin-bottom: 40px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1B4F72 0%, #5DADE2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon i {
    font-size: 28px;
    color: #FFFFFF;
}

.stat-card .stat-info .stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #1B4F72;
}

.stat-card .stat-info .stat-label {
    color: #888;
    font-size: 14px;
}

.my-course-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    margin-bottom: 20px;
}

.my-course-card .course-cover-small {
    width: 120px;
    min-height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #1B4F72;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-course-card .course-cover-small i {
    font-size: 40px;
    color: rgba(255,255,255,0.3);
}

.my-course-card .course-content {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

.my-course-card h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.my-course-card h3 a {
    color: #333;
    text-decoration: none;
}

.my-course-card .course-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.progress-wrapper {
    margin-bottom: 15px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1B4F72 0%, #5DADE2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #888;
}

.my-course-card .course-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.enroll-date {
    font-size: 12px;
    color: #aaa;
}

/* ========================================
   学习页面
   ======================================== */
.tpep-learning-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.learning-layout {
    display: flex;
    flex: 1;
}

.learning-sidebar {
    width: 320px;
    background: #FFFFFF;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: bold;
    color: #1B4F72;
    margin-bottom: 15px;
}

.sidebar-header .course-progress .progress-bar {
    height: 6px;
    margin-bottom: 8px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.chapter-group {
    margin-bottom: 20px;
}

.chapter-group .chapter-title {
    font-weight: bold;
    color: #1B4F72;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.chapter-group .chapter-title i {
    margin-right: 8px;
}

.lesson-items .lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
    border: none;
}

.lesson-items .lesson-item:hover {
    background: #f0f7ff;
}

.lesson-items .lesson-item.active {
    background: #1B4F72;
    color: #FFFFFF;
}

.lesson-items .lesson-item.completed i {
    color: #27ae60;
}

.lesson-items .lesson-item.active.completed i {
    color: #FFFFFF;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.learning-content {
    flex: 1;
    padding: 30px 40px;
    background: #f5f7fa;
    min-height: calc(100vh - 70px);
}

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #1B4F72;
    margin-bottom: 10px;
}

.lesson-meta {
    color: #888;
    font-size: 14px;
}

.content-body {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.lesson-text-content {
    line-height: 1.8;
    font-size: 16px;
}

.lesson-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.lesson-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.content-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 作业样式 */
.lesson-homework {
    max-width: 800px;
}

.homework-header h3 {
    color: #1B4F72;
    margin-bottom: 20px;
}

.homework-content,
.homework-requirement {
    margin-bottom: 25px;
}

.homework-content h4,
.homework-requirement h4,
.homework-form-wrapper h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.homework-text,
.requirement-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.8;
}

.homework-form .layui-textarea {
    min-height: 200px;
    resize: vertical;
}

.form-actions {
    margin-top: 20px;
}

.homework-submission {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.submission-content {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.submission-time {
    color: #888;
    font-size: 13px;
}

.submission-grade {
    background: #d4edda;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.reference-answer {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* ========================================
   教师管理页
   ======================================== */
.teacher-stats {
    margin-bottom: 40px;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #1B4F72 0%, #2980B9 100%);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.stat-card-danger .stat-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.teacher-actions {
    margin-bottom: 40px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 30px;
    background: #FFFFFF;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    color: #1B4F72;
}

.action-btn i {
    font-size: 32px;
    color: #1B4F72;
}

.action-btn span {
    font-size: 14px;
}

.action-btn .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.action-btn-highlight {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.action-btn-highlight i {
    color: #fff;
}

.action-btn-highlight:hover {
    color: #fff;
}

.teacher-course-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.teacher-course-card .course-cover-small {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #1B4F72;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.teacher-course-card .course-cover-small i {
    font-size: 40px;
    color: rgba(255,255,255,0.3);
}

.course-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.course-status.published {
    background: #27ae60;
    color: #fff;
}

.course-status.draft {
    background: #f39c12;
    color: #fff;
}

.teacher-course-card .course-content {
    padding: 15px;
}

.teacher-course-card h3 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.teacher-course-card .course-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.teacher-course-card .course-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   平台介绍页
   ======================================== */
.about-content-wrapper {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 22px;
    color: #1B4F72;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.about-section h2 i {
    margin-right: 10px;
}

.about-section p {
    line-height: 1.8;
    color: #555;
}

.about-feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.about-feature-card:hover {
    background: #e8f4fc;
}

.about-feature-card i {
    font-size: 48px;
    color: #1B4F72;
    margin-bottom: 15px;
    display: block;
}

.about-feature-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.about-feature-card p {
    color: #666;
    font-size: 14px;
}

.about-cta {
    background: linear-gradient(135deg, #1B4F72 0%, #2980B9 100%);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    color: #FFFFFF;
}

.about-cta h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.about-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.about-cta .layui-btn {
    background: #FFFFFF;
    color: #1B4F72;
    font-size: 16px;
}

/* ========================================
   Tab样式覆盖
   ======================================== */
.layui-tab-brief > .layui-tab-title .layui-this {
    color: #1B4F72;
}

.layui-tab-brief > .layui-tab-title .layui-this:after {
    border-color: #1B4F72;
}

.layui-tab-title li {
    font-size: 15px;
}

/* ========================================
   按钮样式覆盖
   ======================================== */
.layui-btn {
    border-radius: 6px;
}

.layui-btn-normal {
    background-color: #1B4F72;
}

.layui-btn-normal:hover {
    background-color: #154360;
}

.layui-btn-primary {
    border-color: #1B4F72;
    color: #1B4F72;
}

.layui-btn-primary:hover {
    border-color: #154360;
    color: #154360;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 992px) {
    .header-wrapper {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav .layui-nav .layui-nav-item {
        line-height: 40px;
    }
    
    .learning-layout {
        flex-direction: column;
    }
    
    .learning-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
    
    .sidebar-content {
        max-height: 300px;
    }
    
    .learning-content {
        padding: 20px;
    }
    
    .course-stats-large {
        gap: 20px;
    }
    
    .stat-item .stat-value {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .site-name {
        font-size: 18px;
    }
    
    .tpep-banner-default h1 {
        font-size: 28px;
    }
    
    .tpep-page-banner h1 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .my-course-card {
        flex-direction: column;
    }
    
    .my-course-card .course-cover-small {
        width: 100%;
        height: 150px;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .action-btn {
        min-width: calc(50% - 15px);
    }
}
