/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #444;
}

header h1 {
    font-size: 2.5rem;
    color: #e6c300;
    text-shadow: 0 0 10px rgba(230, 195, 0, 0.5);
}

/* 控制面板样式 */
.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.filter-options label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e6c300;
}

.filter-options select {
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #555;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.filter-options select:hover {
    border-color: #e6c300;
}

.filter-options select:focus {
    border-color: #e6c300;
    box-shadow: 0 0 5px rgba(230, 195, 0, 0.5);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

button {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#randomize-btn {
    background-color: #e6c300;
    color: #1a1a1a;
}

#randomize-btn:hover {
    background-color: #ffd700;
    transform: scale(1.05);
}

#reset-btn {
    background-color: #444;
    color: #f0f0f0;
}

#reset-btn:hover {
    background-color: #666;
    transform: scale(1.05);
}

/* 结果容器样式 */
.result-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.result-section {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.result-section:hover {
    transform: translateY(-5px);
}

.result-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #e6c300;
    font-size: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.result-item img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #333;
    padding: 10px;
}

.result-item p {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 地图结果特殊样式 */
#map-result {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    border-radius: 5px;
    padding: 20px;
    min-height: 150px;
}

#map-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e6c300;
    text-align: center;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .result-container {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 200px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}