/* 地铁模拟器样式 */
:root {
    --primary-color: #0078d7;
    --secondary-color: #333333;
    --accent-color: #e74c3c;
    --light-color: #f5f5f5;
    --dark-color: #222222;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary-color), #005ea2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.simulator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.simulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--secondary-color);
}

.simulator-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.simulator-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background-color: #005ea2;
    transform: translateY(-2px);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.simulator-content {
    display: flex;
    flex: 1;
    gap: 20px;
    margin-bottom: 20px;
}

#scene-container {
    flex: 1;
    height: 600px;
    background-color: #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.control-panel {
    width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.panel-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.panel-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    background-color: #f0f0f0;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.option-btn:hover {
    background-color: #e0e0e0;
}

.option-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.action-btn:hover {
    background-color: #005ea2;
    transform: translateY(-2px);
}

.action-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.simulator-footer {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    color: #666;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--dark-color);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.instructions {
    margin-bottom: 20px;
}

.instructions p {
    margin-bottom: 10px;
}

.instructions ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.instructions li {
    margin-bottom: 5px;
}

.credits {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.credits h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .simulator-content {
        flex-direction: column;
    }
    
    .control-panel {
        width: 100%;
    }
    
    #scene-container {
        height: 400px;
    }
    
    .simulator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .simulator-controls {
        width: 100%;
        justify-content: flex-end;
    }
}