/* H5移动端样式重置 */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
    padding-bottom: 60px; /* 为底部导航留出空间 */
}

.h5-container {
    max-width: 100%;
    padding: 0;
}

/* Banner */
.banner {
    height: 160px;
    /*background: url('/assets/images/123.png') center/contain no-repeat;*/
    background: linear-gradient(135deg, #ff6b9d, #c7768e); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius:20px 20px 20px 20px;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.banner h1 {
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 20px;
}

/* 导航卡片 */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 15px;
    margin-bottom: 25px;
}

.nav-card {
    background: white;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.nav-card:hover,
.nav-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: inherit;
}

.nav-card i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #ff6b9d;
}

.nav-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* 区域标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin: 25px 0 15px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.more-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

/* 课程横向滚动 */
.course-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 15px 15px;
    gap: 12px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.course-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.course-item {
    flex: 0 0 auto;
    width: 140px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
}

.course-thumb {
    position: relative;
    height: 90px;
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
}

.course-content {
    padding: 10px;
}

.course-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
}

.course-meta .views i {
    margin-right: 2px;
}

/* 考试列表 */
.exam-list {
    padding: 0 15px;
}

.exam-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.exam-item:active {
    transform: scale(0.98);
    background: #fff5f8;
}

.exam-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b9d, #ff9ec0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.exam-icon i {
    color: white;
    font-size: 18px;
}

.exam-info {
    flex: 1;
}

.exam-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.exam-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.exam-action i {
    color: #999;
    font-size: 16px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* 底部导航 */
.bottom-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.tab-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: #ff6b9d;
}

.tab-item i {
    display: block;
    font-size: 2rem;
    margin-bottom: 4px;
}

.tab-item span {
    font-size: 12px;
    display: block;
}

/* 隐藏桌面端导航栏 */
@media (min-width: 769px) {
    .navbar {
        display: none;
    }
    .bottom-tabbar {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

/* 桌面端样式 */
@media (min-width: 769px) {
    .h5-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .course-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        overflow-x: visible;
    }
    
    .course-item {
        width: auto;
    }
    
    .course-thumb {
        height: 120px;
    }
}

/* 认证页面样式 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d20, #ff9ec020);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 100px;
    right: -30px;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    left: 50%;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d, #ff9ec0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.auth-logo i {
    color: white;
    font-size: 24px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
}

.auth-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 学习中心页面样式 */
.page-header {
    padding: 25px 15px;
    text-align: center;
    background: linear-gradient(135deg, #ff6b9d, #ff477e);
    color: white;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
    border-radius:0 0 20px 20px;
}

/* 添加背景装饰效果 */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 15px;
        border-radius: 0 0 20px 20px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .page-header p {
        font-size: 13px;
    }
}

/* 桌面端调整 */
@media (min-width: 1024px) {
    .page-header {
        padding: 30px 20px;
        border-radius: 0 0 30px 30px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 16px;
    }
}

/* 搜索框 */
.search-box {
    padding: 15px 15px;
    margin-bottom: 20px;
}

.search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input i {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.search-input input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    transition: all 0.3s;
}

.search-input input:focus {
    border-color: #ff6b9d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* 分类筛选 */
.category-filter {
    padding: 0 15px;
    margin-bottom: 20px;
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex: 0 0 auto;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn.active {
    background: #ff6b9d;
    border-color: #ff6b9d;
    color: white;
}

.filter-btn:hover {
    border-color: #ff6b9d;
    color: #ff6b9d;
}

/* 课程网格布局 */
.course-grid {
    padding: 0 15px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-img {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-img img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b9d;
    font-size: 16px;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.course-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.course-meta .views,
.course-meta .date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-meta i {
    font-size: 11px;
}

.course-action {
    padding: 0 15px 15px;
    text-align: center;
}

.btn-play {
    width: 100%;
    background: linear-gradient(135deg, #ff6b9d, #ff9ec0);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.empty-state small {
    font-size: 14px;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 视频播放器样式 */
.video-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 15px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-player:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    transition: all 0.3s;
}

.control-btn:hover {
    background: white;
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: #ff6b9d;
    border-radius: 2px;
    transition: width 0.1s;
}

.time-display {
    color: white;
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

/* 课程详情页样式 */
.course-detail {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.course-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

.course-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.stat-item i {
    color: #ff6b9d;
    font-size: 14px;
}

.course-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.course-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 学习统计 */
.learning-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-icon.study-time { background: linear-gradient(135deg, #ff6b9d, #ff9ec0); }
.stat-icon.progress { background: linear-gradient(135deg, #ffb8d9, #ffd9ec); }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card {
    animation: fadeIn 0.5s ease forwards;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }

/* 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-img {
    height: 140px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 分类标签 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.category-tag {
    background: #fff5f8;
    color: #ff6b9d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ffe4ec;
}

/* 难度标签 */
.difficulty-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.difficulty-easy {
    background: #e8f5e8;
    color: #2e7d32;
}

.difficulty-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.difficulty-hard {
    background: #ffebee;
    color: #c62828;
}

/* 页面标题图标 */
.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px solid rgba(255,255,255,0.3);
}

.header-icon i {
    font-size: 24px;
    color: white;
}

/* 不同页面的图标 */
.learning-page .header-icon {
    background: rgba(255,255,255,0.2);
}

.exam-page .header-icon {
    background: rgba(255,255,255,0.2);
}

.profile-page .header-icon {
    background: rgba(255,255,255,0.2);
}

/* 考试中心页面样式 */
.exam-page .page-header {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.exam-page .header-icon {
    background: rgba(255,255,255,0.2);
}

/* 考试统计 */
.exam-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 15px;
    margin-bottom: 25px;
}

.exam-stat-item {
    background: white;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exam-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b9d, #ff8e8e);
}

.exam-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.exam-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b9d;
    margin-bottom: 8px;
    display: block;
}

.exam-stat-label {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 考试分类区域 */
.exam-categories {
    padding: 0 15px;
}

.exam-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    position: relative;
    padding-left: 15px;
}

.exam-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b9d, #ff8e8e);
    border-radius: 2px;
}

/* 考试分类卡片 */
.exam-category-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.exam-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff6b9d, #ff8e8e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.exam-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #ff6b9d;
}

.exam-category-card:hover::before {
    transform: scaleX(1);
}

.exam-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d, #ff8e8e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.exam-category-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.exam-category-icon i {
    color: white;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.exam-category-info {
    flex: 1;
    min-width: 0;
}

.exam-category-name {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-category-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exam-category-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.exam-question-count,
.exam-score {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #95a5a6;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
}

.exam-question-count i {
    color: #ff6b9d;
    font-size: 11px;
}

.exam-score i {
    color: #ff6b9d;
    font-size: 11px;
}

.exam-category-action {
    flex-shrink: 0;
}

.btn-start-exam {
    background: linear-gradient(135deg, #ff6b9d, #ff8e8e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    min-width: 100px;
}

.btn-start-exam:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.btn-start-exam:active {
    transform: translateY(0);
}

/* 空状态样式 */
.exam-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bdc3c7;
    background: white;
    border-radius: 16px;
    margin: 20px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.exam-empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    display: block;
}

.exam-empty-state p {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #7f8c8d;
}

.exam-empty-state small {
    font-size: 14px;
    color: #bdc3c7;
}

/* 难度标签 */
.exam-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.difficulty-easy {
    background: #e8f5e8;
    color: #2e7d32;
}

.difficulty-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.difficulty-hard {
    background: #ffebee;
    color: #c62828;
}

/* 进度条 */
.exam-progress {
    margin-top: 8px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: #7f8c8d;
}

.progress-bar {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d, #ff8e8e);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 最近考试记录 */
.recent-exams {
    padding: 0 15px;
    margin-top: 30px;
}

.recent-exam-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.recent-exam-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.recent-exam-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #2c3e50;
}

.recent-exam-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #7f8c8d;
}

.recent-exam-score {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b9d;
}

.score-excellent { color: #27ae60; }
.score-good { color: #f39c12; }
.score-average { color: #e74c3c; }

/* 响应式设计 */
@media (max-width: 768px) {
    .exam-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .exam-stat-item {
        padding: 15px 10px;
    }
    
    .exam-stat-number {
        font-size: 24px;
    }
    
    .exam-category-card {
        padding: 15px;
        gap: 12px;
    }
    
    .exam-category-icon {
        width: 50px;
        height: 50px;
    }
    
    .exam-category-icon i {
        font-size: 20px;
    }
    
    .btn-start-exam {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .exam-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .exam-category-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .exam-category-meta {
        justify-content: center;
    }
    
    .exam-category-action {
        width: 100%;
    }
    
    .btn-start-exam {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exam-category-card {
    animation: slideInUp 0.5s ease forwards;
}

.exam-category-card:nth-child(1) { animation-delay: 0.1s; }
.exam-category-card:nth-child(2) { animation-delay: 0.2s; }
.exam-category-card:nth-child(3) { animation-delay: 0.3s; }
.exam-category-card:nth-child(4) { animation-delay: 0.4s; }
.exam-category-card:nth-child(5) { animation-delay: 0.5s; }

/* 悬停效果增强 */
.exam-category-card:hover .exam-category-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 加载状态 */
.exam-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.exam-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}