/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ========== 教学页面样式 (从tutorial.css合并) ========== */
.tutorial-container {
    padding: 10px 0;
}

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

.tutorial-title {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

/* Tab切换按钮样式 */
.tutorial-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 5px;
}

.tutorial-tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tutorial-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-tab-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

/* 分类筛选样式 */
.tutorial-filters {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

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

.filter-btn {
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

/* 教程内容样式 */
.tutorial-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.tutorial-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tutorial-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tutorial-item:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.tutorial-item.video {
    border-left-color: #e74c3c;
}

.tutorial-item.document {
    border-left-color: var(--accent);
}

.tutorial-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 120px;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap; /* 允许换行 */
}

.tutorial-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
    width: 100%; /* 占据整行 */
}

.tutorial-category {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8rem;
}

.tutorial-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* 加载和空状态 */
.loading-tutorial {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* 空状态提示 */
.empty-tutorial-list {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 视频教程缩略图样式 - 确保不会过大 */
.tutorial-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: #000;
    margin: 0;
    border-radius: 0;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.play-overlay i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tutorial-item:hover .play-overlay {
    opacity: 1;
}

.tutorial-item:hover .thumbnail-img {
    transform: scale(1.05);
}

/* 原位置视频播放器样式 */
.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    display: none;
}

.video-player-container.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-player-controls {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 12px;
    display: flex;
    gap: 4px;
    align-items: center;
    z-index: 101;
}

.video-player-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.video-player-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 视频错误提示样式 */
.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
}

.video-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #e74c3c;
}

.video-error p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.retry-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #2980b9;
}

/* 模态框视频播放器优化 */
.modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* 颜色变量定义（匹配原设计风格） */
:root {
    --primary: #1a5f9e;
    --secondary: #3498db;
    --accent: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --dark: #0f1a2a;
    --light: #ecf0f1;
    --bg: #f8f9fa;
}

/* 全局body样式 */
body {
    background: linear-gradient(135deg, #0c2d48, #1a5f9e);
    color: #fff;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.app-container {
    padding-bottom: 70px;
    background: rgba(15, 26, 42, 0.8);
}

/* 上：页头样式 */
header {
    background: linear-gradient(135deg, var(--primary), #0c2d48);
    color: white;
    padding:10px;
    text-align: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

header::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

}

.logo i {
    font-size: 28px;
    color: var(--accent);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #2ecc71, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.station-title {
    font-size: 1.3rem;
    margin: 10px 0;
    font-weight: 600;
    color: #fff;
}

/* 中：内容区域基础样式 */
main {
    flex: 1;
    margin-top: 0;
    overflow-y: auto;
}

.page {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

/* 考试入口样式（复用） */
.daily-practice-entry {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.daily-practice-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.entry-content {
    display: flex;
    align-items: center;
}

.entry-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

/* 维护考试图标特殊颜色 */
.daily-practice-entry[data-page="maintenance-exam-page"] .entry-icon {
    color: #3498db;
}

.entry-text {
    flex: 1;
}

.entry-text h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.entry-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.entry-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

/* 考试页面标题 */
.practice-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 登录页面样式 */
#login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 130px); /* 页头+页脚高度 */
}

.login-content {
    width: 100%;

}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    color: white;
}

.login-logo i {
    font-size: 40px;
    margin-bottom: 10px;
}

.login-logo h2 {
    font-size: 18px;
    font-weight: 500;
}

.login-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* 表单通用样式 */
.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

/* 按钮样式 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* 错误提示样式 */
.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin: 10px 0;
    text-align: center;
}

/* 考试信息卡片样式 */
.exam-info-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.exam-info-card:hover {
    transform: translateY(-5px);
}

.exam-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent);
}

/* 维护考试信息卡特殊标识色 */
#maintenance-exam-page .exam-info-card::before {
    background: #3498db;
}

.exam-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

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

.info-label {
    font-weight: 600;
    color: var(--light);
}

.info-value {
    color: var(--accent);
    font-weight: 700;
}

/* 维护考试信息值特殊颜色 */
#maintenance-exam-page .info-value {
    color: #3498db;
}

/* 开始考试按钮 */
.start-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 30px 0 10px;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 维护考试开始按钮特殊样式 */
#start-maintenance-exam {
    background: linear-gradient(to right, #3498db, #2980b9);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.start-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    transition: all 0.8s;
}

.start-btn:hover::after {
    left: 120%;
}

.start-btn:hover {
    box-shadow: 0 7px 20px rgba(46, 204, 113, 0.6);
}

#start-maintenance-exam:hover {
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.6);
}

/* 功能卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 5px;
}

.tutorial-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-height: 120px; /* 设置最小高度以确保内容完整显示 */
}

.tutorial-info {
    flex: 1;
    min-width: 0; /* 允许子元素收缩以适应容器 */
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 排行榜标签页样式 */
.ranking-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ranking-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.ranking-tab.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.ranking-tab i {
    font-size: 1.1rem;
}

.ranking-content {
    display: none;
}

.ranking-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 排行榜页面样式 */
.rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid var(--secondary);
}

.rank-title {
    font-size: 1.4rem;
    color: #fff;
}

/* 排行榜筛选栏样式 */
.ranking-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.date-filter {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
}

.date-filter:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--secondary);
    color: #fff;
}

.filter-btn:active {
    transform: translateY(1px);
}

.update-rank-btn {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.update-rank-btn:hover {
    background: #2980b9;
}

.rank-list {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.rank-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

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

.rank-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rank-position {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
    color: #fff;
}

.rank-top {
    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #333;
}

.rank-user {
    flex: 1;
}

.rank-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.rank-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}

.rank-category {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
}

.rank-questions {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 3px;
    font-weight: 500;
}

.rank-score {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
    min-width: 70px;
    text-align: right;
}

/* 我的成绩页面样式 */
.score-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.score-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.user-name {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.stat-card {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.history-title {
    font-size: 1.2rem;
    margin: 20px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.history-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.history-date {
    color: #ecf0f1;
    font-size: 0.9rem;
}

.history-score {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 5px;
}

.history-arrow {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 10px;
}

/* 答题记录页面样式 */
.answer-history-container {
    padding: 10px 0;
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.exam-summary {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    display: flex;
    margin-bottom: 8px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: rgba(255, 255, 255, 0.7);
    width: 80px;
    font-size: 0.9rem;
}

.summary-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

/* 错题导航样式 */
.wrong-answers-nav {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--danger);
}

.wrong-answers-number-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wrong-answer-nav-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: var(--danger);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.wrong-answer-nav-btn:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: scale(1.1);
    border-color: var(--danger);
}

/* 错题导航样式 */
.wrong-answers-nav {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--danger);
}

.wrong-answers-number-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wrong-answer-nav-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: var(--danger);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.wrong-answer-nav-btn:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: scale(1.1);
    border-color: var(--danger);
}

/* 错题导航样式 */
.wrong-answers-nav {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--danger);
}

.wrong-answers-number-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wrong-answer-nav-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: var(--danger);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.wrong-answer-nav-btn:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: scale(1.1);
    border-color: var(--danger);
}

/* 考试记录错题详情样式 */
.exam-wrong-answers-list {
    max-height: calc(100vh - 380px);
    overflow-y: auto;
}

.exam-wrong-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.exam-wrong-item:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.exam-wrong-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.exam-info {
    display: flex;
    flex-direction: column;
}

.exam-category {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
}

.exam-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.exam-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.exam-wrong-question-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.exam-wrong-question-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.exam-wrong-question {
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #fff;
}

.exam-wrong-options {
    margin-bottom: 10px;
}

.exam-wrong-option {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.exam-wrong-option.user-answer {
    background: rgba(241, 196, 15, 0.2);
    border-left: 3px solid #f1c40f;
}

.exam-wrong-option.correct {
    background: rgba(46, 204, 113, 0.2);
    border-left: 3px solid var(--accent);
}

.exam-wrong-option.user-answer.correct {
    background: rgba(231, 76, 60, 0.2);
    border-left: 3px solid var(--danger);
}

.toggle-wrong-view-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.toggle-wrong-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 错题本页面样式 */
.wrong-answer-book-container {
    padding: 10px 0;
}

.wrong-book-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

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

#wrong-answers-list-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--danger);
}

.wrong-answers-list {
    max-height: calc(100vh - 380px);
    overflow-y: auto;
}

.wrong-answer-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--danger);
    transition: all 0.3s ease;
}

.wrong-answer-item:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.wrong-answer-question {
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #fff;
}

.wrong-answer-options {
    margin-bottom: 15px;
}

.wrong-answer-option {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.wrong-answer-option.correct {
    background: rgba(46, 204, 113, 0.2);
    border-left: 3px solid var(--accent);
}

.wrong-answer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.wrong-count {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.wrong-date {
    font-style: italic;
}

.empty-wrong-list {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* 答题记录项样式 */
#answers-list {
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    padding-right: 10px;
}

#answers-list::-webkit-scrollbar {
    width: 6px;
}

#answers-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#answers-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#answers-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.answer-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.answer-item:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.answer-item.correct {
    border-left: 4px solid var(--accent);
}

.answer-item.wrong {
    border-left: 4px solid var(--danger);
    background: rgba(231, 76, 60, 0.05);
}

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

.answer-number {
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.answer-item.wrong .answer-number {
    background: rgba(231, 76, 60, 0.3);
    color: var(--danger);
}

.answer-status {
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.answer-item.correct .answer-status {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent);
}

.answer-item.wrong .answer-status {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

.question-text {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* 成绩展示区域样式 */
#scores-section .section-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#scores-section .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

#scores-section .stat-card {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#scores-section .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 3px;
}

#scores-section .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

#scores-section .history-title {
    font-size: 1rem;
    margin: 15px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

#scores-section .history-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

#scores-section .history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

#scores-section .history-date {
    color: #ecf0f1;
    font-size: 0.85rem;
}

#scores-section .history-score {
    font-weight: bold;
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 4px;
}

#scores-section .history-score.pass {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent);
}

#scores-section .history-score.fail {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

/* 详细解析样式 */
.explanation {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 8px;
    padding: 0;
    margin-top: 15px;
    overflow: hidden;
}

.explanation-header {
    background: rgba(243, 156, 18, 0.2);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
}

.explanation-header strong {
    color: #f39c12;
    font-size: 0.95rem;
}

.explanation-content {
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.explanation-content p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.explanation-content strong {
    color: #f39c12;
}

.pass {
    color: var(--accent);
    font-weight: 600;
}

.fail {
    color: var(--danger);
    font-weight: 600;
}


.explanation-content {
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.explanation-content p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.explanation-content strong {
    color: #f39c12;
}

.pass {
    color: var(--accent);
    font-weight: 600;
}

.fail {
    color: var(--danger);
    font-weight: 600;
}

/* 考试页面样式 */
.exam-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.timer {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--warning);
    margin: 15px 0;
}

.question-number {
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    margin: 10px 0;
}

.question {
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #fff;
}

.options {
    margin: 25px 0;
}

.option {
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.8);
}

.option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary);
}

.option.selected {
    background: rgba(52, 152, 219, 0.2);
    border-color: var(--secondary);
    color: #fff;
    font-weight: 600;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
}

.prev-btn:hover {
    background: rgba(52, 152, 219, 0.3);
}

.next-btn {
    background: var(--secondary);
}

.next-btn:hover {
    background: #2980b9;
}

.submit-btn {
    background: var(--accent);
    color: white;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #27ae60;
}

/* 考试结果页面样式 */
.result-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    text-align: center;
}

.result-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.exam-type-info {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.exam-type-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.exam-type-value {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.2rem;
    background: rgba(52, 152, 219, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.result-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.result-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.stat-box:nth-child(5) {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.stat-value-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-item.wrong-stat .stat-value {
    color: var(--danger);
}

.stat-item.wrong-stat .stat-label {
    color: rgba(231, 76, 60, 0.8);
}

/* 错题预览样式 */
.wrong-answers-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.preview-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(231, 76, 60, 0.2);
}

.preview-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--danger);
}

.wrong-preview-list {
    max-height: 250px;
    overflow-y: auto;
}

.wrong-preview-list::-webkit-scrollbar {
    width: 6px;
}

.wrong-preview-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.wrong-preview-list::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.3);
    border-radius: 3px;
}

.wrong-preview-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--danger);
}

.wrong-preview-item:last-child {
    margin-bottom: 0;
}

.wrong-preview-number {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.wrong-preview-content {
    flex: 1;
}

.wrong-preview-question {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    line-height: 1.4;
}

.wrong-preview-answers {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.wrong-answer {
    color: var(--danger);
    font-weight: 500;
}

.correct-answer {
    color: var(--accent);
    font-weight: 500;
}

.preview-explanation {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--secondary);
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.preview-explanation strong {
    color: #3b82f6;
    font-weight: 600;
}

/* 所有答题记录样式 */
.all-answers-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.all-answers-list {
    margin-top: 20px;
}

.answer-record-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.answer-record-item:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.answer-record-item.correct {
    border-left-color: var(--accent);
    background: rgba(46, 204, 113, 0.05);
}

.answer-record-item.wrong {
    border-left-color: var(--danger);
    background: rgba(231, 76, 60, 0.05);
}

.answer-record-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.answer-record-item.correct .answer-record-number {
    background: rgba(46, 204, 113, 0.3);
    color: var(--accent);
}

.answer-record-item.wrong .answer-record-number {
    background: rgba(231, 76, 60, 0.3);
    color: var(--danger);
}

.answer-record-content {
    flex: 1;
}

.answer-record-question {
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.answer-record-item.wrong .answer-record-question {
    background: rgba(231, 76, 60, 0.08);
}

.answer-record-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.user-answer {
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.answer-record-item.wrong .user-answer {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

.answer-record-item.correct .user-answer {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent);
}

.correct-answer {
    color: var(--accent);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(46, 204, 113, 0.2);
}

.review-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 5px;
    transition: all 0.3s;
}

.review-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 用户中心页面样式 */
.user-center-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-right: 15px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
}

.profile-id {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.setting-options {
    margin-top: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.setting-item i:first-child {
    color: var(--secondary);
    margin-right: 15px;
    width: 20px;
}

.setting-item i:last-child {
    color: #94a3b8;
}

.setting-item span {
    flex: 1;
    color: #fff;
}

/* 密码修改弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.2rem;
    color: #fff;
}

.close-modal {
    background: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}

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

#change-pwd-form {
    padding: 20px;
}

#change-pwd-form .form-group {
    margin-bottom: 15px;
}

#change-pwd-form label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    position: static;
    transform: none;
}

#change-pwd-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.submit-pwd-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.submit-pwd-btn:hover {
    background-color: #27ae60;
}

/* 下：页脚导航样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    background: rgba(15, 26, 42, 0.95);
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-items {
    display: flex;
    width: 100%;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item i {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.nav-item:hover {
    color: var(--accent);
}

/* AI学习页面样式 */
.ai-container {
    width: 100%;
    height: calc(100vh - 140px);

}

.ai-iframe {
    width: 100%;
    height: 100%;

}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* 空状态提示 */
.empty-message {
    text-align: center;
    padding: 30px 0;
    color: #94a3b8;
    font-size: 16px;
}

/* 判断题选项为空时的提示 */
.no-options {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* 响应式调整 */
@media (max-width: 480px) {
    header {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .station-title {
        font-size: 1.1rem;
    }
    
    .user-points {
        margin-top: 10px;
        padding: 8px 15px;
        background: rgba(46, 204, 113, 0.2);
        border-radius: 20px;

/* ========== 教学页面样式 (从tutorial.css合并) ========== */
.tutorial-container {
    padding: 10px 0;
}

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

.tutorial-title {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

/* Tab切换按钮样式 */
.tutorial-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 5px;
}

.tutorial-tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tutorial-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-tab-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

/* 分类筛选样式 */
.tutorial-filters {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

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

.filter-btn {
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

/* 教程内容样式 */
.tutorial-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.tutorial-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tutorial-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: auto;
}

.tutorial-item:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.tutorial-item.video {
    border-left-color: #e74c3c;
}

.tutorial-item.document {
    border-left-color: var(--accent);
}

.tutorial-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 120px;
}

.tutorial-info .tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.tutorial-info .tutorial-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-right: 10px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    text-align: left;
    margin-bottom: 0;
}

.tutorial-meta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.tutorial-category {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
}

.tutorial-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 6px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* 空状态提示 */
.empty-tutorial-list {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* 加载状态 */
.loading-tutorial {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 视频教程缩略图样式 - 确保不会过大 */
.tutorial-thumbnail {
    position: relative;
    width: 100% !important;
    height: 200px !important;
    flex-shrink: 0;
    overflow: hidden;
    background: #000;
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    max-height: 200px !important;
}

.thumbnail-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.play-overlay i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tutorial-item:hover .play-overlay {
    opacity: 1;
}

.tutorial-item:hover .thumbnail-img {
    transform: scale(1.05);
}

/* 原位置视频播放器样式 */
.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    display: none;
}

.video-player-container.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.video-player-controls {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 12px;
    display: flex;
    gap: 4px;
    align-items: center;
    z-index: 101;
}

.video-player-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.video-player-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 视频错误提示样式 */
.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
}

.video-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #e74c3c;
}

.video-error p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.retry-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #2980b9;
}

/* 模态框视频播放器优化 */
.modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-body video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: #000;
}
        font-size: 0.9rem;
        font-weight: 500;
        color: #2ecc71;
        display: inline-block;
    }
    
    .exam-info-card, .score-container, .exam-container, .user-center-content {
        padding: 20px 15px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        padding: 10px 15px;
    }

    /* 适配底部5个导航项的响应式样式 */
    .nav-item span {
        font-size: 0.75rem;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
}

/* 题型标识样式 */
.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.question-type-badge {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 不同题型的样式 */
.question-type-badge.single {
    background: var(--secondary);
}

.question-type-badge.multi {
    background: var(--warning);
}

.question-type-badge.judge {
    background: var(--danger);
}

.question-type-badge.case {
    background: #9b59b6; /* 紫色 */
}

/* 案例分析题样式 */
.sub-question-container {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #9b59b6;
}

.sub-question-header {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.sub-question-options {
    margin-left: 10px;
}

.no-sub-questions {
    text-align: center;
    padding: 20px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 8px;
    color: #9b59b6;
    font-weight: 500;
    border: 1px dashed #9b59b6;
}

/* 答题记录样式更新 - 确保与整体配色一致 */
.all-answers-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.answer-record-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.answer-record-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.answer-record-item.correct {
    border-left-color: var(--accent) !important;
    background: rgba(46, 204, 113, 0.05) !important;
}

.answer-record-item.wrong {
    border-left-color: var(--danger) !important;
    background: rgba(231, 76, 60, 0.05) !important;
}

.answer-record-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.answer-record-item.correct .answer-record-number {
    background: rgba(46, 204, 113, 0.3) !important;
    color: var(--accent) !important;
}

.answer-record-item.wrong .answer-record-number {
    background: rgba(231, 76, 60, 0.3) !important;
    color: var(--danger) !important;
}

.answer-record-content {
    flex: 1;
}

.answer-record-question {
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 10px;
    border-radius: 8px;
}

.answer-record-item.wrong .answer-record-question {
    background: rgba(231, 76, 60, 0.08) !important;
}

.user-answer {
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.answer-record-item.wrong .user-answer {
    background: rgba(231, 76, 60, 0.2) !important;
    color: var(--danger) !important;
}

.answer-record-item.correct .user-answer {
    background: rgba(46, 204, 113, 0.2) !important;
    color: var(--accent) !important;
}

.correct-answer {
    color: var(--accent) !important;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(46, 204, 113, 0.2) !important;
}

/* 积分商城样式 */
.points-shop-container {
    padding: 20px;
}

.points-shop-header {
    margin-bottom: 25px;
}

.points-shop-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.user-points-display {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-points-display i {
    margin-right: 8px;
    color: #ffd700;
}

.user-points-display .points-value {
    font-weight: bold;
    font-size: 1.4rem;
    color: #ffd700;
    margin-left: 5px;
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.shop-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary);
}

.shop-item-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    overflow: hidden;
}

.shop-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.shop-item-info {
    margin-bottom: 12px;
}

.shop-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.shop-item-points {
    font-size: 1rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 6px;
}

.shop-item-points i {
    margin-right: 5px;
}

.shop-item-stock {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.shop-item-stock.out-of-stock {
    color: var(--danger);
}

.exchange-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exchange-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.exchange-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.exchange-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.loading-shop,
.empty-shop {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.loading-shop i,
.empty-shop i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.message-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.message-toast.success {
    border-left: 4px solid var(--accent);
}

.message-toast.error {
    border-left: 4px solid var(--danger);
}

.message-toast i {
    font-size: 1.2rem;
}

.message-toast.success i {
    color: var(--accent);
}

.message-toast.error i {
    color: var(--danger);
}

/* ========================================
   教学模块样式
======================================== */

.tutorial-container {
    padding: 0;
}

.tutorial-page-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Tab切换按钮 */
.tutorial-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 5px;
}

.tutorial-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tutorial-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tutorial-tab-btn.active {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tutorial-tab-btn i {
    font-size: 1.1rem;
}

/* 分类筛选 */
.tutorial-filters {
    margin-bottom: 20px;
}

.filter-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

/* 教程列表 */
.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tutorial-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tutorial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.tutorial-item.video {
    border-left-color: #e74c3c;
}

.tutorial-item.document {
    border-left-color: var(--accent);
}

.tutorial-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tutorial-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.tutorial-type-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.tutorial-type-icon.video {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.tutorial-type-icon.document {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent);
}

.tutorial-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.tutorial-category {
    background: rgba(52, 152, 219, 0.2);
    color: var(--secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.tutorial-date {
    color: rgba(255, 255, 255, 0.6);
}

.tutorial-size {
    color: rgba(255, 255, 255, 0.6);
}

.tutorial-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.loading-tutorial i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.empty-tutorial-list i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

/* 视频播放模态框 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-modal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

.video-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 题型标识样式 */
.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.question-type-badge {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 不同题型的样式 */
.question-type-badge.single {
    background: var(--secondary);
}

.question-type-badge.multi {
    background: var(--warning);
}

.question-type-badge.judge {
    background: var(--danger);
}

/* 答题记录样式更新 - 确保与整体配色一致 */
.all-answers-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.answer-record-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.answer-record-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.answer-record-item.correct {
    border-left-color: var(--accent) !important;
    background: rgba(46, 204, 113, 0.05) !important;
}

.answer-record-item.wrong {
    border-left-color: var(--danger) !important;
    background: rgba(231, 76, 60, 0.05) !important;
}

.answer-record-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.answer-record-item.correct .answer-record-number {
    background: rgba(46, 204, 113, 0.3) !important;
    color: var(--accent) !important;
}

.answer-record-item.wrong .answer-record-number {
    background: rgba(231, 76, 60, 0.3) !important;
    color: var(--danger) !important;
}

.answer-record-content {
    flex: 1;
}

.answer-record-question {
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 10px;
    border-radius: 8px;
}

.answer-record-item.wrong .answer-record-question {
    background: rgba(231, 76, 60, 0.08) !important;
}

.user-answer {
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.answer-record-item.wrong .user-answer {
    background: rgba(231, 76, 60, 0.2) !important;
    color: var(--danger) !important;
}

.answer-record-item.correct .user-answer {
    background: rgba(46, 204, 113, 0.2) !important;
    color: var(--accent) !important;
}

.correct-answer {
    color: var(--accent) !important;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(46, 204, 113, 0.2) !important;
}