/* 在线课堂样式文件 */

/* 基础样式重置 */
* {
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

/* 主内容区域 */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 160px);
    padding-bottom: 50px;
}

/* 首页样式 */
.banner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.banner-slide img {
    width: 50%;
    height: auto;
    border-radius: 10px;
}

.banner-content {
    flex: 1;
    padding-left: 60px;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
}

.banner-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* 首页搜索框 */
.banner-search {
    margin-top: 30px;
}

.banner-search .zsearch-input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.banner-search .zsearch-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.banner-search .zsearch-btn {
    padding: 15px 25px;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.banner-search .zsearch-btn:hover {
    background: #5a6fd8;
}

.banner-search .zsearch-hot {
    text-align: center;
}

.banner-search .hot-label {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
    font-size: 14px;
}

.banner-search .hot-keyword {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 3px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.banner-search .hot-keyword:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 统计信息 */
.stats-section {
    background: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #009688;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* 课程区域 */
.courses-section,
.announcement-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 32px;
    color: #333;
    margin: 0;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.more-link {
    color: #009688;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #009688;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.more-link:hover {
    background: #009688;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
}

.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    max-width: 350px;
    width: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.course-info {
    padding: 24px;
}

.course-info h4 {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

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

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.course-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff5722;
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-students {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.rating-stars {
    color: #ffa500;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-score {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 首页专用课程信息样式 - 避免样式冲突 */
.home-course-info {
    padding: 24px;
}

.home-course-info h4 {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

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

.home-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.home-course-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff5722;
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-course-students {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.home-course-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.home-rating-stars {
    color: #ffa500;
    font-size: 16px;
    letter-spacing: 2px;
}

.home-rating-score {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 公告区域 */
.announcement-list {
    background: white;
    border-radius: 10px;
    padding: 30px;
}

.announcement-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.announcement-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.announcement-content {
    color: #666;
    line-height: 1.6;
}

/* 课程列表页面 */
.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.filter-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    width: 100px;
    font-weight: 500;
    color: #333;
}

.filter-options {
    flex: 1;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-option:hover {
    border-color: #009688;
    color: #009688;
}

.filter-option.active {
    background: #009688;
    color: white;
    border-color: #009688;
}

.sort-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sort-options {
    display: flex;
    gap: 20px;
}

.sort-option {
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.sort-option:hover,
.sort-option.active {
    color: #009688;
}

.course-count {
    color: #999;
    font-size: 14px;
}

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

.course-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    gap: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.course-item .course-image {
    width: 280px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-content {
    flex: 1;
}

.course-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.price-current {
    font-size: 24px;
    font-weight: bold;
    color: #ff5722;
}

.price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-item {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-item:hover {
    border-color: #009688;
    color: #009688;
}

.page-item.active {
    background: #009688;
    color: white;
    border-color: #009688;
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 课程详情页面 */
.course-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.course-header {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    gap: 40px;
}

.course-media {
    flex: 1;
    position: relative;
}

.course-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.course-video-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    cursor: pointer;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-btn:hover {
    background: rgba(0,0,0,0.9);
}

.course-info {
    flex: 1;
}

.course-info .course-title {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #333;
}

.course-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    color: #999;
    width: 80px;
}

.stat-value {
    color: #333;
}

.course-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.price-current {
    font-size: 32px;
    font-weight: bold;
    color: #ff5722;
}

.price-original {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.price-discount {
    background: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.course-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-primary {
    background: #009688;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #00796b;
}

.btn-secondary {
    background: #ff5722;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #e64a19;
}

.btn-outline {
    background: transparent;
    color: #009688;
    border: 1px solid #009688;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #009688;
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.course-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.feature-icon {
    color: #4caf50;
    font-weight: bold;
}

/* 课程标签页 */
.course-tabs {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-item {
    padding: 20px 30px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-item:hover,
.tab-item.active {
    color: #009688;
    border-bottom-color: #009688;
}

/* 课程详情页面专用样式 - 避免与首页样式冲突 */
.detail-course-info {
    flex: 1;
}

.detail-course-info .detail-course-title {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #333;
}

.detail-course-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.detail-course-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-stat-label {
    color: #999;
    width: 80px;
}

.detail-stat-value {
    color: #333;
}

.detail-course-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-price-current {
    font-size: 32px;
    font-weight: bold;
    color: #ff5722;
}

.detail-price-original {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.detail-price-discount {
    background: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.detail-course-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-course-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.detail-feature-icon {
    color: #4caf50;
    font-weight: bold;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 课程目录 */
.chapter {
    margin-bottom: 30px;
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 15px;
}

.chapter-title {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.chapter-duration {
    color: #999;
    font-size: 14px;
}

.lesson-list {
    padding-left: 20px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-status {
    width: 20px;
    text-align: center;
}

.lesson-status.free {
    color: #4caf50;
}

.lesson-status.locked {
    color: #999;
}

.lesson-status.playing {
    color: #009688;
}

.lesson-title {
    flex: 1;
    color: #333;
}

.lesson-duration {
    color: #999;
    font-size: 14px;
}

/* 视频播放器页面 */
.video-player-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.video-main-area {
    flex: 1;
}

.video-player {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
}

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

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    margin: 0 10px;
}

.progress-fill {
    height: 100%;
    background: #009688;
    border-radius: 2px;
    width: 30%;
}

.progress-slider {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 20px;
    opacity: 0;
    cursor: pointer;
}

.time-display {
    color: white;
    font-size: 14px;
}

.volume-control {
    display: none;
    position: absolute;
    bottom: 40px;
    background: rgba(0,0,0,0.8);
    padding: 10px;
    border-radius: 5px;
}

.volume-slider {
    width: 100px;
    height: 4px;
}

.lesson-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.lesson-info h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.lesson-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.learning-tools {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tool-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    border-color: #009688;
    color: #009688;
}

/* 侧边栏 */
.video-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.course-menu,
.learning-progress,
.notes-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-header h3 {
    margin: 0;
    color: #333;
}

.progress-text {
    color: #999;
    font-size: 14px;
}

.chapter-item {
    margin-bottom: 20px;
}

.chapter-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 5px;
    padding-left: 10px;
    transition: background 0.3s ease;
}

.lesson-item:hover {
    background: #f5f5f5;
}

.lesson-item.current {
    background: #e0f2f1;
    border-left: 3px solid #009688;
}

.lesson-item .lesson-title {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.lesson-item .lesson-duration {
    font-size: 12px;
    color: #999;
}

.progress-bar-container {
    margin-bottom: 15px;
}

.study-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.study-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.study-stats .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #009688;
}

.study-stats .stat-label {
    font-size: 14px;
    color: #666;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-note-btn {
    background: #009688;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.notes-list {
    max-height: 300px;
    overflow-y: auto;
}

.note-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.note-time {
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
}

.note-content {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
}

.note-actions {
    display: flex;
    gap: 10px;
}

.note-actions button {
    background: none;
    border: none;
    color: #009688;
    cursor: pointer;
    font-size: 12px;
}

/* 作业管理页面 */
.homework-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.homework-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 16px;
}

.homework-filter {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 20px;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    color: #666;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-item:hover,
.tab-item.active {
    background: #009688;
    color: white;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    color: #333;
}

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

.homework-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.homework-header {
    margin-bottom: 15px;
}

.homework-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.homework-deadline,
.homework-submitted,
.homework-graded {
    color: #999;
    font-size: 14px;
}

.homework-content {
    flex: 1;
    margin-right: 30px;
}

.homework-desc p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.homework-requirements h4 {
    color: #333;
    margin-bottom: 10px;
}

.homework-requirements ul {
    color: #666;
    margin-bottom: 20px;
}

.homework-attachment {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

.file-icon {
    font-size: 20px;
}

.file-name {
    flex: 1;
    color: #333;
}

.file-size {
    color: #999;
    font-size: 12px;
}

.grade-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.grade-score {
    text-align: center;
    min-width: 80px;
}

.grade-score .score {
    font-size: 36px;
    font-weight: bold;
    color: #4caf50;
}

.grade-score .score-max {
    color: #999;
    font-size: 16px;
}

.grade-feedback h4 {
    color: #333;
    margin-bottom: 10px;
}

.grade-feedback p {
    color: #666;
    line-height: 1.6;
}

.homework-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.homework-status {
    text-align: right;
    min-width: 120px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.submitted {
    background: #cce5ff;
    color: #004085;
}

.status-badge.graded {
    background: #d4edda;
    color: #155724;
}

.status-badge.excellent {
    background: #ffd700;
    color: #333;
}

.days-left,
.submitted-date,
.grade-date {
    display: block;
    color: #999;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

/* 我的订单页面样式 */
.order-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 我的学习笔记页面样式 */
.note-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.note-header h1 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.note-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 8px 12px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.note-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-tabs {
    display: flex;
    gap: 20px;
}

.tab-item {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.tab-item.active {
    background: #007bff;
    color: white;
}

.tab-item:hover:not(.active) {
    background: #e9ecef;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.note-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.note-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.note-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.note-card .note-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.note-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.note-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.note-course {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
}

.note-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.note-content p {
    margin: 0 0 10px 0;
}

.note-content ul, .note-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #333;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.note-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-remove {
    cursor: pointer;
    font-size: 14px;
    color: #999;
    margin-left: 4px;
}

.tag-remove:hover {
    color: #ff4444;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: #f0f0f0;
}

.btn-icon.favorite.active {
    color: #ffc107;
}

.btn-icon.edit:hover {
    color: #007bff;
}

.btn-icon.delete:hover {
    color: #dc3545;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: #f8f9fa;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn.disabled {
    color: #999;
    cursor: not-allowed;
    background: #f8f9fa;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #666;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.tag-input {
    position: relative;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .note-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .note-actions {
        justify-content: space-between;
    }
    
    .note-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .note-list {
        grid-template-columns: 1fr;
    }
    
    .note-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .note-actions {
        justify-content: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

.order-header {
    margin-bottom: 30px;
}

.order-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.order-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: #e0e0e0;
}

.filter-tab.active {
    background: #667eea;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
}

.search-btn:hover {
    background: #5a67d8;
}

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

.order-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.order-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.order-number {
    font-size: 14px;
    color: #666;
}

.order-date {
    font-size: 14px;
    color: #999;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.paid {
    background: #d4edda;
    color: #155724;
}

.order-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.course-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.course-cover {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.course-details h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.course-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}

.order-amount {
    text-align: right;
}

.amount-label {
    font-size: 14px;
    color: #666;
}

.amount-value {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b6b;
}

.order-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.order-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pay {
    background: #667eea;
    color: white;
}

.btn-pay:hover {
    background: #5a67d8;
}

.btn-start {
    background: #28a745;
    color: white;
}

.btn-start:hover {
    background: #218838;
}

.btn-review {
    background: #17a2b8;
    color: white;
}

.btn-review:hover {
    background: #138496;
}

.btn-certificate {
    background: #6f42c1;
    color: white;
}

.btn-certificate:hover {
    background: #5a2d91;
}

.btn-reorder {
    background: #fd7e14;
    color: white;
}

.btn-reorder:hover {
    background: #e36209;
}

.btn-cancel, .btn-refund, .btn-delete {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover, .btn-refund:hover, .btn-delete:hover {
    background: #5a6268;
}

.btn-detail {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-detail:hover {
    background: #667eea;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.page-btn:hover:not(:disabled) {
    background: #f5f5f5;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-filters {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .order-header-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .order-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .order-amount {
        text-align: left;
    }
    
    .order-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .order-container {
        padding: 15px 10px;
    }
    
    .order-header h1 {
        font-size: 24px;
    }
    
    .course-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions button {
        width: 100%;
    }
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #009688 0%, #26a69a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
}

.login-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #009688;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-password {
    color: #009688;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-large {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
}

.login-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #666;
    font-size: 14px;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.social-btn:hover {
    border-color: #009688;
    color: #009688;
}

.login-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: #009688;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 登录页面装饰元素 */
.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-item {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

.decoration-item.item-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.decoration-item.item-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.decoration-item.item-3 {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.decoration-item.item-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 70%;
    animation-delay: 3s;
}

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

/* 用户菜单样式 */
.header-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 120px;
    display: none;
    z-index: 1000;
}

.header-user:hover .user-menu {
    display: block;
}

.user-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.user-menu a:hover {
    background-color: #f5f5f5;
    color: #009688;
}

/* 登录/注册按钮样式 */
.auth-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-login, .btn-register {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.btn-login:hover, .btn-register:hover {
    opacity: 0.8;
}

/* 已登录用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.user-info:hover {
    background-color: rgba(0, 150, 136, 0.1);
}

.user-nickname {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #009688;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-info:hover .user-avatar {
    transform: scale(1.1);
}

/* 未登录状态隐藏用户菜单 */
.header-user:not(.logged-in) .user-menu {
    display: none !important;
}

/* 登录状态隐藏登录注册按钮 */
.header-user.logged-in .auth-buttons {
    display: none;
}

.header-user:not(.logged-in) .user-info {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .video-player-container {
        flex-direction: column;
    }
    
    .video-sidebar {
        width: 100%;
    }
    
    .course-header {
        flex-direction: column;
    }
    
    .homework-item {
        flex-direction: column;
    }
    
    .homework-content {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .banner-slide {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content {
        padding-left: 0;
        padding-top: 30px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-item {
        flex-direction: column;
    }
    
    .course-item .course-image {
        width: 100%;
        height: 200px;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .homework-filter {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
}

/* 个人中心页面样式 */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009688, #00796b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 500;
}

.profile-info h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.profile-info p {
    color: #666;
    margin-bottom: 5px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #009688;
    display: block;
}

.profile-stat-label {
    font-size: 14px;
    color: #666;
}

.profile-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.profile-nav {
    list-style: none;
}

.profile-nav li {
    margin-bottom: 5px;
}

.profile-nav a {
    display: block;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 15px;
}

.profile-nav a:hover,
.profile-nav a.active {
    background: #f5f5f5;
    color: #009688;
}

.profile-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.courses-grid-profile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.course-card-profile {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.course-image-profile {
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.course-info-profile {
    padding: 15px;
}

.course-title-profile {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.course-progress {
    margin-bottom: 10px;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #009688;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.certificate-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.certificate-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    background: white;
    transition: all 0.3s;
}

.certificate-item:hover {
    border-color: #009688;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.certificate-image {
    width: 80px;
    height: 60px;
    margin-right: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-info {
    flex: 1;
}

.certificate-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.certificate-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.certificate-validity {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.certificate-actions {
    display: flex;
    gap: 10px;
}

.view-btn,
.download-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-btn {
    background: #009688;
    color: white;
}

.view-btn:hover {
    background: #00796b;
}

.download-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.download-btn:hover {
    background: #e0e0e0;
}

.view-certificate-btn {
    padding: 8px 16px;
    background: #009688;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-certificate-btn:hover {
    background: #00796b;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.orders-table th {
    background: #f5f5f5;
    font-weight: 500;
    color: #333;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.order-date {
    font-size: 14px;
    color: #666;
}

.order-no {
    font-size: 12px;
    color: #999;
}

.order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.order-status.completed {
    background: #e8f5e8;
    color: #4caf50;
}

.order-status.pending {
    background: #fff3e0;
    color: #ff9800;
}

.order-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.order-course {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-course img {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
}

.order-course .course-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.order-course .course-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.order-amount {
    text-align: right;
}

.order-amount .amount {
    font-size: 16px;
    font-weight: 500;
    color: #ff5722;
    display: block;
    margin-bottom: 4px;
}

.order-amount .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.settings-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #009688;
}

.save-settings-btn {
    padding: 12px 30px;
    background: #009688;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-settings-btn:hover {
    background: #00796b;
}

/* 表单编辑按钮样式 */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group .form-control {
    width: 100%;
    padding: 12px 60px 12px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

.form-group .form-control:focus {
    outline: none;
    border-color: #009688;
    background: white;
}

.form-group .form-control[readonly] {
    background: #f9f9f9;
    cursor: not-allowed;
}

.form-group .edit-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: #009688;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-group .edit-btn:hover {
    background: #00796b;
}

/* 消息通知标签样式 */
.form-group:nth-child(5) {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 10px;
}

.form-group:nth-child(5) label {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    display: block;
}

/* 开关组件样式 */
.switch-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
}

.switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.switch-item:hover {
    background-color: #f5f5f5;
}

.switch-item:first-child {
    border-top: 1px solid #e9ecef;
}

.switch-item:last-child {
    border-bottom: none;
}

.switch-item span {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    flex: 1;
    margin-right: 15px;
    line-height: 1.4;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #009688;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:focus + .slider {
    box-shadow: 0 0 1px #009688;
}

/* 响应式设计 - 个人中心 */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .courses-grid-profile {
        grid-template-columns: 1fr;
    }
    
    .certificate-list {
        grid-template-columns: 1fr;
    }
    
    .certificate-item {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .certificate-actions {
        justify-content: center;
    }
    
    .order-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .order-amount {
        text-align: center;
    }
    
    /* 账号设置响应式 */
    .settings-form {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .form-group .form-control {
        padding: 12px 50px 12px 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .form-group .edit-btn {
        padding: 4px 8px;
        font-size: 11px;
        right: 8px;
    }
    
    .switch-item {
        padding: 15px 0;
    }
    
    .switch-item span {
        font-size: 16px;
    }
    
    .switch {
        width: 46px;
        height: 22px;
    }
    
    .slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .slider:before {
        transform: translateX(24px);
    }
}

/* 消息通知页面样式 */
.notifications-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.page-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 16px;
}

.notifications-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notification-section {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.notification-section:last-child {
    border-bottom: none;
}

.notification-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.notification-section .switch-group {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.notification-section .switch-item {
    padding: 20px 0;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.notification-section .switch-item:hover {
    background-color: #f8f9fa;
    margin: 0 -30px;
    padding-left: 30px;
    padding-right: 30px;
}

.notification-section .switch-item:first-child {
    border-top: none;
}

.notification-section .switch-item:last-child {
    border-bottom: none;
}

.switch-info {
    flex: 1;
    margin-right: 20px;
}

.switch-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.switch-description {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.form-actions {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.form-actions .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #545b62;
}

/* 响应式设计 - 消息通知页面 */
@media (max-width: 768px) {
    .notifications-container {
        padding: 15px;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
    
    .notification-section {
        padding: 20px;
    }
    
    .notification-section .switch-item {
        padding: 15px 0;
    }
    
    .notification-section .switch-item:hover {
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .switch-info {
        margin-right: 15px;
    }
    
    .switch-title {
        font-size: 15px;
    }
    
    .switch-description {
        font-size: 13px;
    }
    
    .form-actions {
        padding: 20px;
    }
    
    .form-actions .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* 注册页面样式 */
.form-hint {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    line-height: 1.4;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
    min-width: 0;
}

.captcha-image {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: #495057;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    min-width: 80px;
    text-align: center;
}

.captcha-refresh {
    background: #6c757d;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.captcha-refresh:hover {
    background: #5a6268;
}

.agreement {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #6c757d;
}

.agreement input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
}

.agreement-link {
    color: #007bff;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group input.error {
    border-color: #dc3545;
}

.form-group input.success {
    border-color: #28a745;
}

/* 响应式设计 - 注册页面 */
@media (max-width: 768px) {
    .captcha-group {
        flex-direction: row;
    }
    
    .captcha-image {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 70px;
    }
    
    .captcha-refresh {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .form-hint {
        font-size: 11px;
    }
    
    .agreement {
        font-size: 13px;
    }
}

/* 首页新增模块样式 */

/* 统一新增模块的宽度控制 */
.features-section,
.learning-paths-section,
.students-showcase-section,
.instructors-section,
.community-section,
.partners-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 特色功能区 */
.features-section {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 学习路径推荐 */
.learning-paths-section {
    /* padding已在统一宽度控制中设置 */
}

.learning-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.path-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.path-card:hover {
    transform: translateY(-3px);
}

.path-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.path-icon {
    font-size: 36px;
    margin-right: 15px;
}

.path-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.path-duration {
    color: #666;
    font-size: 14px;
}

.path-courses {
    margin-bottom: 20px;
}

.path-course {
    background: #f8f9fa;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
}

.path-progress {
    margin-bottom: 20px;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    background: #007bff;
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
}

.btn-start-path {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-start-path:hover {
    background: #0056b3;
}

/* 优秀学员展示 */
.students-showcase-section {
    background: #f8f9fa;
    /* padding已在统一宽度控制中设置 */
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.student-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.student-card:hover {
    transform: translateY(-3px);
}

.student-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.student-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.student-review {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.student-courses {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.course-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 热门讲师 */
.instructors-section {
    /* padding已在统一宽度控制中设置 */
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.instructor-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-3px);
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.instructor-title {
    color: #007bff;
    font-size: 16px;
    margin-bottom: 15px;
}

.instructor-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.instructor-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    color: #666;
    font-size: 14px;
}

.instructor-courses {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* 学习社区入口 */
.community-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    /* padding已在统一宽度控制中设置 */
}

.community-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.community-content {
    flex: 1;
    max-width: 600px;
}

.community-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.community-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.community-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.community-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 24px;
}

.btn-community {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.community-image {
    flex: 0 0 400px;
    margin-left: 40px;
}

.community-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 合作伙伴 */
.partners-section {
    background: #f8f9fa;
    /* padding已在统一宽度控制中设置 */
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.partner-logo {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
}

.partner-logo img {
    width: 100%;
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 推荐课程模块响应式设计 */
@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* 移动端调整内边距 */
    .courses-section,
    .announcement-section {
        padding: 40px 15px;
        margin: 0 auto 40px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .section-header h3 {
        font-size: 28px;
    }
    
    .more-link {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .course-card {
        max-width: none;
        margin: 0 10px;
    }
    
    .course-info {
        padding: 20px;
    }
    
    .course-info h4 {
        font-size: 18px;
    }
    
    .course-price {
        font-size: 22px;
    }
    
    /* 移动端调整其他模块内边距 */
    .features-section,
    .learning-paths-section,
    .students-showcase-section,
    .instructors-section,
    .community-section,
    .partners-section {
        padding: 40px 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .learning-paths-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .community-container {
        flex-direction: column;
        text-align: center;
    }
    
    .community-content {
        max-width: none;
        margin-bottom: 30px;
    }
    
    .community-features {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .community-image {
        flex: none;
        margin-left: 0;
        width: 100%;
        max-width: 400px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .section-header h3 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 16px;
        color: #666;
    }
    
    /* 首页搜索框响应式 */
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .banner-search .zsearch-input-group {
        max-width: 90%;
        margin: 0 auto 15px;
    }
    
    .banner-search .zsearch-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .banner-search .zsearch-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .banner-search .zsearch-hot {
        text-align: center;
    }
    
    .banner-search .hot-keyword {
        font-size: 11px;
        padding: 3px 8px;
        margin: 2px;
    }
}

/* CSS Logo样式 - 解决logo.png缺失问题 */
.css-logo {
    display: inline-block;
    background: linear-gradient(135deg, #009688, #00796b);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.css-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: white;
}

.css-logo-small {
    font-size: 16px;
    padding: 6px 12px;
}

.css-logo .subtitle {
    display: block;
    font-size: 9px;
    font-weight: normal;
    opacity: 0.8;
    margin-top: 2px;
}

/* 头部logo样式 */
.header-logo .css-logo {
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

/* 登录页面logo样式 */
.login-logo.css-logo {
    font-size: 24px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

/* 搜索页面样式 */
.zsearch-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 搜索区域 */
.zsearch-section {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.zsearch-box {
    text-align: center;
}

.zsearch-input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.zsearch-input-group:focus-within {
    border-color: #667eea;
}

.zsearch-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.zsearch-btn {
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.zsearch-btn:hover {
    background: #5a6fd8;
}

.zsearch-hot {
    margin-top: 20px;
}

.hot-label {
    color: #666;
    margin-right: 10px;
}

.hot-keyword {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.hot-keyword:hover {
    background: #667eea;
    color: white;
}

/* 搜索结果区域 */
.zsearch-results-section {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.results-header h2 {
    font-size: 24px;
    color: #333;
}

.results-count {
    color: #666;
}

.results-count span {
    color: #667eea;
    font-weight: bold;
}

/* 搜索筛选 */
.zsearch-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    gap: 20px;
}

.filter-tab {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: #666;
}

.filter-tab.active,
.filter-tab:hover {
    background: #667eea;
    color: white;
}

/* 搜索结果列表 */
.zsearch-results-list {
    margin-bottom: 30px;
}

.zsearch-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.zsearch-result-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.result-image {
    flex: 0 0 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
}

.result-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.result-type {
    display: inline-block;
    padding: 2px 8px;
    background: #667eea;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 8px;
}

.result-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.result-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars {
    color: #ffa500;
}

.rating-score {
    color: #666;
    font-size: 14px;
}

.result-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-follow,
.btn-view-courses {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-follow {
    background: #667eea;
    color: white;
}

.btn-follow:hover {
    background: #5a6fd8;
}

.btn-view-courses {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-view-courses:hover {
    background: #667eea;
    color: white;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 20px 0;
}

.btn-load-more {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

.suggestions h4 {
    margin-bottom: 15px;
    color: #333;
}

.suggestion-keyword {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.suggestion-keyword:hover {
    background: #667eea;
    color: white;
}

/* 搜索页面响应式设计 */
@media (max-width: 768px) {
    .zsearch-container {
        padding: 15px;
    }
    
    .zsearch-section {
        padding: 20px;
    }
    
    .zsearch-input-group {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .zsearch-btn {
        padding: 12px;
    }
    
    .zsearch-hot {
        text-align: left;
    }
    
    .hot-keyword {
        margin: 3px;
        font-size: 12px;
    }
    
    .zsearch-results-section {
        padding: 20px;
    }
    
    .zsearch-filter {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .zsearch-result-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-image {
        flex: none;
        width: 100%;
        height: 180px;
    }
    
    .result-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .result-actions {
        justify-content: center;
    }
}

/* 课程详情页学员评价模块 */
.course-reviews {
    padding: 20px 0;
}

.review-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.overall-rating {
    text-align: center;
    flex-shrink: 0;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    display: block;
    line-height: 1;
}

.rating-stars {
    color: #ffa500;
    font-size: 24px;
    margin: 8px 0;
    display: block;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.rating-breakdown {
    flex: 1;
    min-width: 250px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-bar span:first-child {
    width: 30px;
    font-size: 14px;
    color: #666;
}

.rating-bar .bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: #ffa500;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-bar span:last-child {
    width: 40px;
    font-size: 14px;
    color: #666;
    text-align: right;
}

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

.review-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-content {
    margin-left: 60px;
}

.review-rating {
    color: #ffa500;
    font-size: 16px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* 课程详情页评价模块响应式设计 */
@media (max-width: 768px) {
    .rating-overview {
        flex-direction: column;
        gap: 20px;
    }
    
    .overall-rating {
        text-align: center;
    }
    
    .rating-breakdown {
        width: 100%;
    }
    
    .review-content {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .review-item {
        padding: 20px;
    }
    
    .reviewer-info {
        margin-bottom: 12px;
    }
}

/* 课程详情页讲师介绍模块 */
.instructor-info {
    padding: 20px 0;
}

.instructor-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.instructor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    flex-shrink: 0;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.instructor-details {
    flex: 1;
}

.instructor-details h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.instructor-title {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 500;
}

.instructor-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.instructor-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-width: 100px;
}

.instructor-stats .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.instructor-stats .stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.instructor-bio {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.instructor-bio h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    margin-top: 25px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.instructor-bio h4:first-child {
    margin-top: 0;
}

.instructor-bio p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.instructor-bio ul {
    list-style: none;
    padding: 0;
}

.instructor-bio li {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.instructor-bio li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 课程详情页讲师介绍模块响应式设计 */
@media (max-width: 768px) {
    .instructor-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .instructor-avatar {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }
    
    .instructor-details h3 {
        font-size: 24px;
    }
    
    .instructor-title {
        font-size: 16px;
    }
    
    .instructor-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .instructor-stats .stat-item {
        padding: 12px 15px;
        min-width: 80px;
    }
    
    .instructor-stats .stat-number {
        font-size: 20px;
    }
    
    .instructor-bio {
        padding: 20px;
    }
    
    .instructor-bio h4 {
        font-size: 18px;
    }
}

/* 课程学习页面样式 */
.learning-container {
    display: flex;
    height: calc(100vh - 80px);
    background: #f8f9fa;
}

/* 左侧课时列表 */
.lesson-sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #28a745;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.chapter-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chapter-item {
    margin-bottom: 15px;
}

.chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chapter-header:hover {
    background: #e9ecef;
}

.chapter-title {
    font-weight: 500;
    color: #333;
}

.chapter-duration {
    font-size: 12px;
    color: #666;
}

.lesson-list {
    margin-top: 8px;
    padding-left: 10px;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.lesson-item:hover {
    background: #f8f9fa;
}

.lesson-item.active {
    background: #e3f2fd;
    border-left-color: #667eea;
}

.lesson-item.completed {
    opacity: 0.7;
}

.lesson-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.lesson-status.not-started {
    background: #ddd;
}

.lesson-status.in-progress {
    background: #ffc107;
}

.lesson-status.completed {
    background: #28a745;
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.lesson-duration {
    font-size: 12px;
    color: #666;
}

/* 右侧主要内容区 */
.learning-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-container {
    flex: 1;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    width: 100%;
    height: 100%;
    max-height: 600px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: #5a67d8;
}

.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.video-progress {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
    width: 30%;
    transition: width 0.3s ease;
}

.time-display {
    color: white;
    font-size: 12px;
    min-width: 80px;
}

/* 底部标签页 */
.learning-tabs {
    background: white;
    border-top: 1px solid #e0e0e0;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-button:hover {
    color: #667eea;
    background: #f8f9fa;
}

.tab-content {
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 课程简介 */
.lesson-intro h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.lesson-intro p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.lesson-objectives {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.lesson-objectives h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.lesson-objectives ul {
    list-style: none;
    padding: 0;
}

.lesson-objectives li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.lesson-objectives li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 课后习题 */
.exercise-container {
    max-width: 800px;
}

.exercise-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.exercise-question {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.exercise-options {
    list-style: none;
    padding: 0;
}

.exercise-options li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exercise-options li:hover {
    background: #e3f2fd;
    border-color: #667eea;
}

.exercise-options li.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.exercise-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.exercise-submit:hover {
    background: #218838;
}

/* 学员笔记 */
.notes-container {
    max-width: 800px;
}

.note-editor {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.note-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 15px;
    font-family: inherit;
}

.note-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.note-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.note-timestamp {
    font-size: 12px;
    color: #666;
    margin-right: auto;
}

.btn-save-note {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-save-note:hover {
    background: #5a67d8;
}

.notes-list {
    margin-top: 30px;
}

.note-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.note-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.note-time {
    font-size: 12px;
    color: #666;
}

.note-content {
    color: #333;
    line-height: 1.5;
}

/* 课程学习页面响应式设计 */
@media (max-width: 768px) {
    .learning-container {
        flex-direction: column;
        height: auto;
    }

    .lesson-sidebar {
        width: 100%;
        height: 300px;
        order: 2;
    }

    .learning-main {
        height: 60vh;
        order: 1;
    }

    .tab-content {
        padding: 15px;
    }

    .video-controls {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 10px;
    }

    .exercise-options li {
        padding: 10px 12px;
        font-size: 14px;
    }

    .note-textarea {
        min-height: 100px;
        font-size: 13px;
    }

    .chapter-header {
        padding: 10px 12px;
    }

    .lesson-item {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .sidebar-header {
        padding: 15px;
    }

    .course-title {
        font-size: 16px;
    }

    .tab-button {
        padding: 12px 15px;
        font-size: 13px;
    }

    .video-player {
        font-size: 18px;
    }

    .play-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .time-display {
        font-size: 11px;
    }
}

/* 支付页面样式 */
.payment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 120px);
}

.payment-header {
    text-align: center;
    margin-bottom: 40px;
}

.payment-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.payment-subtitle {
    font-size: 16px;
    color: #666;
}

.payment-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    gap: 30px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: #667eea;
    color: white;
}

.step-item.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.step-item.active .step-label {
    color: #667eea;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 -15px;
    position: relative;
    top: 20px;
}

.step-connector.completed {
    background: #28a745;
}

.payment-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.payment-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.course-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.course-image {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.course-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.course-details p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.coupon-section {
    margin-bottom: 30px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.coupon-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.coupon-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-apply-coupon {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.btn-apply-coupon:hover {
    background: #5a67d8;
}

.available-coupons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-tag {
    padding: 6px 12px;
    background: #e3f2fd;
    color: #667eea;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.coupon-tag:hover {
    background: #667eea;
    color: white;
}

.coupon-tag.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.payment-method {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.payment-method.selected {
    border-color: #667eea;
    background: #e3f2fd;
}

.payment-method-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #333;
}

.payment-method-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.payment-method-desc {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.payment-form {
    display: none;
}

.payment-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.order-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-label {
    font-size: 14px;
    color: #666;
}

.order-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.order-total {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.total-label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.savings {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.btn-pay {
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-pay:hover {
    background: #218838;
}

.btn-back {
    padding: 12px;
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-back:hover {
    border-color: #667eea;
    color: #667eea;
}

.payment-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    color: #856404;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 40px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.modal-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modal {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 支付页面响应式设计 */
@media (max-width: 768px) {
    .payment-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-steps {
        gap: 15px;
    }

    .step-connector {
        width: 30px;
        margin: 0 -8px;
    }

    .payment-main {
        padding: 20px;
    }

    .order-summary {
        position: static;
    }

    .payment-method-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .course-info-card {
        flex-direction: column;
        text-align: center;
    }

    .payment-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .payment-container {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .payment-title {
        font-size: 24px;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* 个人中心左右布局样式 */
.profile-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 左侧菜单栏 */
.profile-sidebar {
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.user-card {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.user-card .user-avatar {
    position: relative;
    margin-bottom: 15px;
}

.user-card .user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e3f2fd;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-card .user-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.user-card .user-email {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.user-card .user-level {
    font-size: 12px;
    color: #667eea;
    background: #e8f0fe;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.user-stats .stat-item {
    text-align: center;
}

.user-stats .stat-number {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.user-stats .stat-label {
    font-size: 12px;
    color: #666;
}

/* 导航菜单 */
.profile-nav {
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: #f5f5f5;
}

.nav-item.active {
    background: #e8f0fe;
    color: #667eea;
}

.nav-icon {
    margin-right: 12px;
    font-size: 16px;
}

.nav-badge {
    margin-left: auto;
    background: #ff4444;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 快捷操作 */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #667eea;
    color: white;
}

.action-btn.primary:hover {
    background: #5a67d8;
}

.action-btn.secondary {
    background: #f5f5f5;
    color: #333;
}

.action-btn.secondary:hover {
    background: #e0e0e0;
}

.btn-icon {
    margin-right: 8px;
}

/* 右侧主要内容 */
.profile-main {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.panel-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.panel-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 课程网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-2px);
}

.course-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-progress {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.course-status.learning {
    background: #4caf50;
    color: white;
}

.course-status.completed {
    background: #667eea;
    color: white;
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.course-teacher {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.course-actions {
    display: flex;
    gap: 10px;
}

.course-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue {
    background: #4caf50;
    color: white;
}

.btn-continue:hover {
    background: #45a049;
}

.btn-certificate {
    background: #667eea;
    color: white;
}

.btn-certificate:hover {
    background: #5a67d8;
}

.btn-detail, .btn-review {
    background: #f5f5f5;
    color: #333;
}

.btn-detail:hover, .btn-review:hover {
    background: #e0e0e0;
}

/* 证书网格 */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
}

.certificate-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.certificate-overlay button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-view {
    background: #4caf50;
    color: white;
}

.btn-download {
    background: #667eea;
    color: white;
}

.certificate-info {
    padding: 20px;
}

.certificate-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.certificate-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.certificate-badge {
    background: #e8f0fe;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 订单列表 */
.order-list {
    padding: 30px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
}

.order-info {
    flex: 1;
}

.order-header {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.order-no {
    color: #333;
    font-weight: 500;
}

.order-date {
    color: #666;
}

.order-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.order-status.completed {
    background: #e8f5e8;
    color: #4caf50;
}

.order-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-image {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.order-details h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.order-details p {
    font-size: 14px;
    color: #666;
}

.order-amount {
    text-align: right;
}

.order-amount .amount {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.order-amount .original-price {
    display: block;
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.btn-invoice {
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* 设置页面 */
.settings-content {
    padding: 30px;
}

.settings-section {
    margin-bottom: 40px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.form-control {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-edit {
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-edit:hover {
    background: #e0e0e0;
}

.security-settings, .notification-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-item, .notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.security-info h4, .notification-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.security-info p, .notification-info p {
    font-size: 14px;
    color: #666;
}

.btn-toggle, .btn-manage {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.btn-notification-detail {
    display: inline-block;
    margin-top: 15px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

/* 收藏和历史记录 */
.favorites-grid, .history-list {
    padding: 30px;
}

.favorite-card, .history-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.favorite-card {
    display: flex;
    flex-direction: column;
}

.favorite-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.favorite-info {
    padding: 20px;
}

.favorite-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.favorite-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.favorite-actions {
    display: flex;
    gap: 10px;
}

.btn-enroll {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-share {
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.history-date {
    font-size: 14px;
    color: #666;
    margin-right: 20px;
    min-width: 80px;
}

.history-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.history-image {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.history-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.history-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.history-duration {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .profile-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-sidebar {
        width: 100%;
        position: static;
    }
    
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-layout {
        padding: 10px;
    }
    
    .profile-sidebar {
        padding: 20px;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-amount {
        text-align: left;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-date {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .profile-sidebar {
        padding: 15px;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-item {
        padding: 10px;
    }
    
    .panel-header {
        padding: 20px;
    }
    
    .panel-header h2 {
        font-size: 20px;
    }
    
    .course-grid, .certificate-grid, .order-list, .settings-content, .favorites-grid, .history-list {
        padding: 15px;
    }
}