/* Python课程样式 */

/* 模块容器样式 */
.modules-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* 模块样式 */
.module {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 280px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
}

/* 模块图标样式 */
.module-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
}

.module-icon svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.7));
}

/* 模块标题样式 */
.module h2 {
    color: #f1f5f9;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 600;
}

/* 模块描述样式 */
.module p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95em;
}

/* 课程导航样式 */
.course-nav {
    background: rgba(30, 41, 59, 0.6);
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 10px;
}

.course-nav a {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.course-nav a:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
}

/* 主内容样式 */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #f1f5f9;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}