/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 主菜单样式 */
.main-menu {
    margin-bottom: 40px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.menu-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
}

.menu-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.menu-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.menu-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #667eea;
}

.menu-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.status-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.status-badge.available {
    background: #4caf50;
    color: white;
}

.status-badge.developing {
    background: #ff9800;
    color: white;
}

/* 步骤容器 */
.step-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

/* 输入面板 */
.input-panel {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.input-panel h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.hint {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.input-group {
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.input-group label {
    font-size: 1.1em;
    color: #333;
}

.input-group input[type="number"] {
    width: 100px;
    padding: 10px;
    font-size: 1.2em;
    border: 2px solid #667eea;
    border-radius: 8px;
    text-align: center;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Microsoft YaHei', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary.btn-large {
    padding: 18px 50px;
    font-size: 1.2em;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Microsoft YaHei', sans-serif;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* 答题面板 */
.exam-panel {
    max-width: 900px;
    margin: 0 auto;
}

.exam-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
}

.case-content {
    margin-bottom: 30px;
}

.case-content h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.case-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.8;
    color: #333;
    border-left: 4px solid #667eea;
}

/* 题目容器 */
.questions-container {
    margin-bottom: 30px;
}

.case-header {
    background: #667eea;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 30px 0 20px 0;
}

.case-header h3 {
    margin: 0;
}

.question-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.question-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.question-header {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.question-type {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    white-space: nowrap;
}

.question-title {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
    flex: 1;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.option-label:hover {
    background: #e3f2fd;
    border-color: #667eea;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-text {
    font-size: 1em;
    color: #333;
    line-height: 1.5;
}

.exam-actions {
    text-align: center;
    margin-top: 40px;
}

/* 结果面板 */
.result-panel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.result-panel h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2em;
}

.score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.score-big {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-total {
    font-size: 0.6em;
    opacity: 0.9;
}

.score-percent {
    font-size: 1.5em;
    opacity: 0.95;
}

.result-details {
    text-align: left;
    margin-bottom: 30px;
}

.result-details h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.result-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #ccc;
}

.result-item.correct {
    border-left-color: #4caf50;
    background: #e8f5e9;
}

.result-item.incorrect {
    border-left-color: #f44336;
    background: #ffebee;
}

.result-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.result-icon {
    font-size: 1.3em;
}

.result-item.correct .result-icon {
    color: #4caf50;
}

.result-item.incorrect .result-icon {
    color: #f44336;
}

.result-item-body p {
    margin: 8px 0;
    line-height: 1.6;
}

.result-actions {
    margin-top: 30px;
}

/* 页脚 */
.footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .step-container {
        padding: 20px;
    }

    .score-big {
        font-size: 3em;
    }

    .back-btn {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 15px;
    }

    .result-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

