/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #ffffff;
    color: #333333;
    padding: 20px;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #666666;
}

.step-active {
    background-color: #4CAF50;
    color: white;
}

.connector {
    width: 80px;
    height: 4px;
    background-color: #e0e0e0;
    margin: 0 10px;
}

/* 标题样式 */
h1 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #333333;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333333;
}

.destination-name {
    color: #4CAF50;
    font-weight: bold;
}

/* 选择区域样式 */
.selection-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    flex: 1;
}

/* 选项卡片样式 */
.option-card {
    aspect-ratio: 1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.option-card:active {
    transform: scale(0.95);
}

.option-card .icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.option-card .text {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

/* 目的地颜色方案 */
.home {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.hospital {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.station {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.mall {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

/* 出发点颜色方案 */
.origin-home {
    background: linear-gradient(135deg, #7986CB, #5C6BC0);
}

.origin-hospital {
    background: linear-gradient(135deg, #A5D6A7, #81C784);
}

.origin-station {
    background: linear-gradient(135deg, #90CAF9, #64B5F6);
}

.origin-mall {
    background: linear-gradient(135deg, #FFCC80, #FFB74D);
}

.origin-other {
    background: linear-gradient(135deg, #BDBDBD, #9E9E9E);
}

/* 返回按钮样式 */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
}

/* 加载页面样式 */
#loading-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.loading-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
    font-size: 24px;
    text-align: center;
    color: #666666;
}

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

/* 页脚样式 */
footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
}

.footer-text {
    font-size: 18px;
    color: #666666;
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .selection-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-card {
        aspect-ratio: 3/1;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .option-card .text {
        font-size: 26px;
    }
    
    .step-indicator {
        margin: 20px 0;
    }
}