/* 全局样式 */
:root {
    --primary-color: #4257b2;
    --primary-color-rgb: 66, 87, 178; /* RGB值用于透明度渐变 */
    --secondary-color: #5cc9a7;
    --secondary-color-rgb: 92, 201, 167;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --light-text: #6c757d;
    --border-color: #e9ecef;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
}

/* 主横幅样式 */
.hero-section {
    background: linear-gradient(rgba(58, 79, 122, 0.65), rgba(52, 58, 94, 0.75)), url('/assessment/learning/img/new-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    margin-top: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
    z-index: 1;
}

/* 添加装饰元素 */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%);
    opacity: 0.7;
    z-index: 2;
}

.hero-section .floating-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.hero-section .shape-1 {
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

.hero-section .shape-2 {
    bottom: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 8s infinite ease-in-out reverse;
}

.hero-section .shape-3 {
    top: 30%;
    right: 15%;
    width: 150px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: rotate(-30deg);
    animation: float 12s infinite ease-in-out 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0);
    }
    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 35px;
    opacity: 0.98;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section .btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-light {
    background: #ffffff;
    color: var(--primary-color);
}

.hero-section .btn-outline-light {
    border-width: 2px;
}

.hero-section .d-flex {
    justify-content: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .hero-section .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-section .shape-1 {
        width: 80px;
        height: 80px;
        top: 10%;
        left: 5%;
    }
    
    .hero-section .shape-2 {
        width: 60px;
        height: 60px;
    }
    
    .hero-section .shape-3 {
        width: 100px;
        height: 40px;
        right: 8%;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section .btn {
        margin: 5px 0;
        width: 200px;
    }
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1030;
}

.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar-learning {
    background-color: #3a4f7a !important;
    z-index: 1500;
    position: relative;
}

.navbar-brand {
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    font-weight: 500;
}

.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.25rem;
}

/* 课程卡片样式 */
.course-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.course-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.course-free {
    background-color: var(--secondary-color);
}

/* 课时页面样式 */
.lesson-sidebar {
    height: calc(100vh - 56px);
    overflow-y: auto;
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
}

.lesson-content {
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 20px;
    margin-left: 25%;
}

@media (max-width: 991px) {
    .lesson-content {
        margin-left: 33.333%;
    }
}

@media (max-width: 767px) {
    .lesson-content {
        margin-left: 0;
    }
}

/* 视频播放器样式 */
.lesson-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.lesson-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chapter-header {
    background-color: var(--light-bg);
    cursor: pointer;
}

.lesson-item {
    padding: 8px 16px;
    margin-bottom: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.lesson-item:hover {
    background-color: rgba(92, 201, 167, 0.1);
}

.lesson-item.active {
    border-left-color: var(--primary-color);
    background-color: rgba(66, 87, 178, 0.1);
}

.lesson-item a {
    text-decoration: none;
    color: inherit;
}

/* 辅助样式 */
.tiny-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lesson-sidebar, .lesson-content {
        height: auto;
    }
    
    .lesson-content {
        padding: 15px;
    }
}

/* 完成课程按钮 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* 课程笔记区域 */
#lessonNote {
    min-height: 100px;
    resize: vertical;
}

/* 进度条样式 */
.progress {
    height: 0.5rem;
}

.progress-bar {
    background-color: var(--secondary-color);
}

/* 章节列表样式 */
.chapter-list {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.lesson-progress {
    height: 5px;
}

/* 链接和按钮样式 */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 内容卡片 */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

/* 课程分类卡片样式 */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    border: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.category-card:hover .category-icon {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.25);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-card:hover .card-title {
    color: var(--primary-color);
}

.category-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--primary-color-rgb), 0.2) 100%);
}

.category-icon.icon-0 {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #43A047;
}

.category-icon.icon-1 {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #1E88E5;
}

.category-icon.icon-2 {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #FB8C00;
}

.category-icon.icon-3 {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    color: #8E24AA;
}

.category-icon.icon-4 {
    background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
    color: #00ACC1;
}

.category-icon.icon-5 {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    color: #E53935;
}

.category-icon i {
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.4s ease;
    opacity: 0;
}

.category-card .card-body {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.category-card .card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.category-card .card-text {
    color: var(--light-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-card .arrow-icon {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    display: inline-block;
}

.category-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(3px);
}

.category-card .explore-text {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* 章节标题线条 */
.section-title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-top: 10px;
    border-radius: 3px;
} 