/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 面板样式 */
.panel {
    margin-bottom: 20px;
}

.panel.hidden {
    display: none;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: #666;
    margin-bottom: 15px;
}

/* 表单元素样式 */
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #4ECDC4;
    outline: none;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* 按钮样式 */
.btn {
    width: 105px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #4ECDC4;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45b7af;
}

.btn.primary {
    background-color: #2ecc71;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 20px;
}

.btn.primary:hover {
    background-color: #27ae60;
}

/* 输入组样式 */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-group .form-input {
    margin-bottom: 0;
}

/* 设置项样式 */
.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.setting-item label {
    min-width: 80px;
    color: #666;
}

.setting-item .form-input {
    width: 100px;
    margin-bottom: 0;
}

/* 比赛场景样式 */
#game-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    overflow: hidden;
    z-index: 10;
}

#game-canvas {
    width: 100%;
    height: 100%;
}

/* 颁奖台样式 */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px 0;
    height: 300px;
}

.podium-step {
    position: relative;
    width: 120px;
    background-color: #4ECDC4;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.podium-step.first {
    height: 200px;
    background-color: #FFD700;
}

.podium-step.second {
    height: 150px;
    background-color: #C0C0C0;
}

.podium-step.third {
    height: 100px;
    background-color: #CD7F32;
}

.character {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}

.rank {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
} 

.start-race-btn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 40px;
    background-color: #48c3a2; /* 绿色背景，明显但不突兀 */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    z-index: 1000;
    align-items: center
}