/* 
 * 课程大纲页面样式
 * 主色系：蓝色 + 白色
 * 卡片式布局，带阴影和圆角
 * 彩色标签标注关键知识点
 */

:root {
    /* 基础颜色 */
    --primary-color: #0a58ca;
    --primary-dark: #0046c0;
    --primary-light: #e3f2fd;
    --secondary-color: #5e97f6;
    --accent-color: #36D1DC;
    
    /* 背景和文本颜色 */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --text-color: #212529;
    --text-light: #666;
    --border-color: #dee2e6;
    
    /* 效果变量 */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --date-bg: rgba(10, 88, 202, 0.1);
    
    /* 标签颜色 */
    --tag-core: #e91e63;      /* 核心 - 红色 */
    --tag-practice: #2196f3;  /* 实践 - 蓝色 */
    --tag-advanced: #ff9800;  /* 拓展 - 橙色 */
    --tag-special: #9c27b0;   /* 专题 - 紫色 */
    
    /* 边框圆角 */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --phase-bg-color: #f7f9fc;
    --phase-border-color: #e1e8f0;
    --phase-hover-bg: rgba(10, 88, 202, 0.05);
    
    /* RGB值用于透明度控制 */
    --primary-color-rgb: 10, 88, 202;
}

/* 暗黑模式 */
html.dark-mode {
    --primary-color: #3d8bfd;
    --primary-dark: #0d6efd;
    --primary-light: #0a2463;
    --secondary-color: #64b5f6;
    --accent-color: #39e5ed;
    
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --header-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-light: #cbd5e1;
    --border-color: #334155;
    
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --date-bg: rgba(61, 139, 253, 0.2);
    
    --phase-bg-color: #1e293b;
    --phase-border-color: #334155;
    --phase-hover-bg: rgba(61, 139, 253, 0.1);
    
    --primary-color-rgb: 61, 139, 253;
}

html.dark-mode .content {
    background-color: #0f172a;
}

html.dark-mode .course-item {
    background-color: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

html.dark-mode .course-date {
    background-color: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

html.dark-mode .phase {
    background-color: #0f172a;
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

html.dark-mode .info-item {
    background-color: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

html.dark-mode .info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
}

html.dark-mode .info-label {
    color: #3b82f6;
}

html.dark-mode .info-value {
    color: #e2e8f0;
}

html.dark-mode .course-info {
    background-color: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html.dark-mode .content p span.num {
    color: #3d8bfd;
}

html.dark-mode .hero-banner {
    background: linear-gradient(135deg, #0d6efd 0%, #0a4bc5 40%, #072f7c 100%);
}

html.dark-mode h2 {
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html.dark-mode h4 {
    color: #f1f5f9;
}

html.dark-mode .date {
    color: #3d8bfd;
}

html.dark-mode .theme-toggle {
    background-color: #334155;
    color: #f1f5f9;
}

html.dark-mode .enroll-info {
    background-color: rgba(15, 23, 42, 0.7);
    color: #f1f5f9;
}

html.dark-mode .content-item {
    background-color: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

html.dark-mode .content-item:hover {
    background-color: rgba(61, 139, 253, 0.2);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1 i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Theme Controls */
.theme-controls {
    display: flex;
    align-items: center;
}

.color-selector {
    display: flex;
    gap: 8px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: var(--text-color);
}

.color-option[data-color="blue"] {
    background-color: var(--primary-blue);
}

.color-option[data-color="green"] {
    background-color: var(--primary-green);
}

.color-option[data-color="purple"] {
    background-color: var(--primary-purple);
}

.color-option[data-color="orange"] {
    background-color: var(--primary-orange);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: #f0f4f8;
    width: 35px;
    height: 35px;
    position: relative;
    z-index: 5;
}

.theme-toggle i {
    color: inherit;
    transition: color 0.2s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.08);
    transform: rotate(15deg);
}

html.dark-mode .theme-toggle {
    background-color: #334155;
    color: #f1f5f9;
}

html.dark-mode .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Main Content Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 12px 15px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .theme-controls {
        gap: 10px;
    }
    
    .color-option {
        width: 20px;
        height: 20px;
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .color-option {
        width: 18px;
        height: 18px;
    }
}

/* 标题样式 */
h1, h2, h3, h4 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
    color: #fff;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* 课程信息样式 */
.course-info {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-item {
    padding: 1rem;
    background-color: var(--primary-light);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.info-label i {
    margin-right: 8px;
    width: 22px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-value {
    color: var(--text-color);
}

/* 课程安排样式 */
.course-schedule {
    margin-bottom: 60px;
}

.phase-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.course-date {
    min-width: 120px;
    padding: 12px;
    background-color: rgba(33, 150, 243, 0.08);
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.day {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.course-detail {
    flex: 1;
}

.course-detail h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.teacher {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.content {
    background-color: rgba(var(--primary-color-rgb), 0.02);
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.content p {
    margin: 0;
    line-height: 1.7;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* 对数字序号和内容进行格式化 - 调整间距 */
.content p span.num {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05em;
    margin-right: 2px;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    text-align: left;
    margin-bottom: 0;
    position: relative;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    margin-left: 0.5rem;
    margin-right: 0.1rem;
    margin-bottom: 2px;
    box-shadow: none;
    transform: none;
    vertical-align: middle;
    line-height: 1.7;
    white-space: nowrap;
    transition: background 0.2s;
}
.tag:first-child {
    margin-left: 0;
}
.tag.core { background-color: #e91e63; }
.tag.practice { background-color: #2196f3; }
.tag.advanced { background-color: #ff9800; }
.tag.special { background-color: #9c27b0; }
/* 支持自定义颜色，直接用style覆盖 */

/* 序号样式 */
.num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 22px;
    height: 22px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    margin: 0 5px;
    padding: 0 4px;
}

/* 专题课样式修复 */
.topic-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-light);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.topic-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
}

.topic-star i {
    color: #ffffff;
    font-size: 16px;
}

.topic-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.special-course {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(var(--primary-color-rgb), 0.15);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    transition: all 0.2s ease;
}

.special-course:hover {
    background-color: rgba(var(--primary-color-rgb), 0.25);
    transform: translateY(-2px);
}

.special-course i {
    font-size: 14px;
}

.topic-description {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-description i {
    color: var(--primary-color);
    font-size: 16px;
}

/* 暗黑模式样式 */
html.dark-mode .topic-section {
    background-color: #1e293b;
    border: 1px solid #334155;
}

html.dark-mode .topic-title {
    color: #f8fafc;
}

html.dark-mode .topic-description {
    background-color: rgba(59, 130, 246, 0.15);
    color: #e2e8f0;
}

html.dark-mode .special-course {
    background-color: rgba(59, 130, 246, 0.15);
    color: #f1f5f9;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

html.dark-mode .special-course:hover {
    background-color: rgba(59, 130, 246, 0.25);
}

/* 移除旧的专题课样式 */
.special-note {
    display: none;
}

/* 确保课程内容清晰可见 */
.tag.special {
    background-color: #8b5cf6;
    color: #ffffff;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .topic-section {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px 10px;
    }
    .topic-badge {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .special-course {
        align-self: auto;
        margin-left: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* 入学卡片样式 */
.enroll-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 40px 0;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    z-index: 10;
    position: relative;
}

.enroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.enroll-card .phase-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.enroll-card .phase-number {
    background-color: #fff;
    color: #2563eb;
}

.enroll-card .phase-title {
    color: white;
    font-weight: 600;
}

.enroll-info {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    color: #1e293b;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.enroll-info ol {
    padding-left: 0;
    margin: 0;
}

.enroll-info li {
    margin-bottom: 12px;
    padding: 8px 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.enroll-info li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.enroll-info li i {
    color: #2563eb;
    margin-right: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

html.dark-mode .enroll-card {
    background: linear-gradient(135deg, #1e293b, #334155);
}

html.dark-mode .enroll-card .phase-number {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

html.dark-mode .enroll-info {
    background-color: rgba(30, 41, 59, 0.9);
    color: #f1f5f9;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

html.dark-mode .enroll-info li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode .enroll-info li i {
    color: #3b82f6;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

footer i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .course-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-date {
        text-align: center;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .phase-card {
        padding: 20px 15px;
    }
    
    .enroll-card {
        padding: 20px 15px;
    }
    
    .enroll-info {
        padding: 20px 15px;
    }
    
    header {
        padding: 35px 0;
    }
    
    .course-detail h4 {
        font-size: 1.15rem;
    }
    
    .content {
        padding: 14px 12px;
        font-size: 0.95rem;
    }
}

/* 课程阶段样式优化 */
.phase {
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
    border-radius: 0;
}

.phase:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.phase-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.phase-number {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.phase-title {
    margin: 0;
    font-size: 1.4rem;
    color: #2d3748;
    flex-grow: 1;
    font-weight: 500;
    letter-spacing: normal;
}

.phase-duration {
    background-color: rgba(0, 0, 0, 0.05);
    color: #4a5568;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phase {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.phase:nth-child(1) { animation-delay: 0.1s; }
.phase:nth-child(2) { animation-delay: 0.2s; }
.phase:nth-child(3) { animation-delay: 0.3s; }
.phase:nth-child(4) { animation-delay: 0.4s; }
.phase:nth-child(5) { animation-delay: 0.5s; }
.phase:nth-child(6) { animation-delay: 0.6s; }

/* 课程项目交错动画 */
.course-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.course-list:nth-child(1) .course-item:nth-child(1) { animation-delay: 0.15s; }
.course-list:nth-child(1) .course-item:nth-child(2) { animation-delay: 0.25s; }
.course-list:nth-child(1) .course-item:nth-child(3) { animation-delay: 0.35s; }
.course-list:nth-child(1) .course-item:nth-child(4) { animation-delay: 0.45s; }
.course-list:nth-child(1) .course-item:nth-child(5) { animation-delay: 0.55s; }

/* 响应式调整 */
@media (max-width: 768px) {
    .phase-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .phase-number {
        margin-bottom: 0;
        margin-right: 10px;
    }
    .phase-title {
        font-size: 1.1rem;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .phase-duration {
        margin-top: 0;
        align-self: auto;
        font-size: 0.95rem;
        padding: 4px 10px;
    }
}

/* Hero section with big title */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 100px 0 80px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    opacity: 0.3;
    animation: moveBg 30s linear infinite;
}

@keyframes moveBg {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.7), rgba(255,255,255,0.3));
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 80px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0 0;
    font-weight: 400;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0 60px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-top: 25px;
    }
    
    .decoration-line {
        width: 100px;
        margin-bottom: 25px;
    }
    
    .hero-decoration {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 0 40px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.5px;
        margin-top: 20px;
    }
    
    .decoration-line {
        width: 80px;
        margin-bottom: 20px;
    }
    
    .hero-decoration {
        margin-top: 20px;
        gap: 10px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
}

/* 装饰元素样式 */
.decoration-line {
    height: 3px;
    width: 120px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    margin: 0 auto 30px;
    position: relative;
}

.hero-decoration {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-block;
}

.dot:nth-child(1) {
    animation: pulse 2s infinite;
}

.dot:nth-child(2) {
    animation: pulse 2s infinite 0.3s;
}

.dot:nth-child(3) {
    animation: pulse 2s infinite 0.6s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* 全新大气AI全栈开发营风格Banner */
.hero-banner {
    background: linear-gradient(135deg, #0a58ca 0%, #0046c0 40%, #003490 100%);
    color: white;
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 580px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.7;
}

.hero-left {
    width: 60%;
    padding: 50px 5% 50px 10%;
    position: relative;
    z-index: 2;
}

.hero-right {
    width: 40%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    display: inline-block;
    padding: 3px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #36D1DC;
    border-radius: 2px;
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 30px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 600px;
}

.hero-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 6px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.feature-item i {
    margin-right: 15px;
    color: #36D1DC;
    font-size: 1.2rem;
    margin-top: 3px;
}

.feature-item span {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.hero-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    text-align: center;
}

.metric {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 5px;
    border-radius: 8px;
    width: 22%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.metric:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    line-height: 1;
}

.metric-unit {
    font-size: 1rem;
    font-weight: 500;
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.ai-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 229, 237, 0.8) 0%, rgba(61, 139, 253, 0.4) 50%, rgba(0, 0, 0, 0) 70%);
    animation: pulse 4s ease-in-out infinite alternate;
    z-index: 1;
}

.ai-letter {
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 30px rgba(57, 229, 237, 0.8);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    z-index: 2;
}

.ai-letter:first-of-type {
    animation-delay: 0s;
}

.ai-letter:last-of-type {
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .hero-left {
        padding: 40px 5%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-left, .hero-right {
        width: 100%;
        padding: 40px 5%;
    }
    
    .hero-right {
        min-height: 300px;
    }
    
    .hero-metrics {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .metric {
        width: 47%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .metric {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    .ai-letter {
        font-size: 6rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
    .hero-left, .hero-right {
        padding-left: 0;
        padding-right: 0;
    }
    .hero-features {
        width: 100%;
        box-sizing: border-box;
    }
    .feature-item {
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    .hero-banner {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 处理内容的布局 - 去除左边框，使用更柔和的样式 */
.course-detail .content {
    background-color: rgba(var(--primary-color-rgb), 0.02);
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* 内容项样式优化 */
.content-item {
    display: block;
    padding: 12px 0;
    margin-bottom: 10px;
    position: relative;
    transition: transform 0.2s ease;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    background-color: transparent;
    border-radius: 0;
}

.content-item:last-child {
    margin-bottom: 0;
    border-bottom: none !important;
}

/* 调整课程内容编号的显示 */
.content-item .num {
    display: inline;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 16px;
    min-width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    vertical-align: baseline;
}

/* 修复setupCourseItemsToggle中的内容项样式 */
.content-item:hover {
    background-color: transparent;
    transform: translateX(5px);
}

/* 暗黑模式下的内容调整 */
html.dark-mode .course-detail .content {
    background-color: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.08);
    box-shadow: none;
}

/* 确保内容区域文字对齐 */
.content p {
    padding: 0;
    margin: 0;
}

/* 加强暗色模式下图表项间的视觉分隔 */
html.dark-mode .info-grid {
    gap: 1.8rem;
}

/* 暗黑模式下的内容项样式 */
html.dark-mode .content-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

html.dark-mode .content-item .num {
    color: #3b82f6;
}

.course-note {
    background: #f4f8fd !important;
    color: #2563eb !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
    margin: 16px 0 24px 0 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.04) !important;
    border: none !important;
}
.course-note i {
    font-size: 1.1em !important;
}
html.dark-mode .course-note {
    background: #1e293b !important;
    color: #60a5fa !important;
}

body .content-item:last-child,
body .content > .content-item:last-child,
body .content > .content-item:last-of-type {
    border-bottom: none !important;
}
html.dark-mode body .content-item:last-child,
html.dark-mode body .content > .content-item:last-child,
html.dark-mode body .content > .content-item:last-of-type {
    border-bottom: none !important;
} 