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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
}

/* 顶部导航栏 */
.header {
    background-color: #ff6b00;
    color: #fff;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
}

/* 区块样式 */
.section {
    padding: 16px;
    border-bottom: 10px solid #f5f5f5;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 城市选择 */
.city-selector {
    position: relative;
}

.city-selector input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.city-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.city-list.active {
    display: block;
}

.city-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.city-item:hover {
    background-color: #f5f5f5;
}

.city-item.hot {
    color: #ff6b00;
    font-weight: 500;
}

/* 地址信息 */
.address-item {
    display: flex;
    margin-bottom: 16px;
    position: relative;
}

.address-icon {
    margin-right: 12px;
    margin-top: 4px;
}

.icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ff6b00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.address-content {
    flex: 1;
    position: relative;
}

.address-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.address-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item .name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.suggestion-item .addr {
    font-size: 12px;
    color: #666;
}

/* 车型选择 */
.vehicle-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vehicle-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-item:hover {
    border-color: #ff6b00;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
}

.vehicle-item.selected {
    border-color: #ff6b00;
    background-color: rgba(255, 107, 0, 0.05);
}

.vehicle-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vehicle-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.vehicle-info {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 订单信息 */
.order-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item label {
    font-size: 14px;
    color: #666;
}

.info-item input,
.info-item textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.info-item textarea {
    resize: vertical;
    min-height: 80px;
}

/* 底部 */
.footer {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-info span {
    font-size: 14px;
    color: #666;
}

.price {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b00;
}

.order-btn {
    background-color: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background-color: #e55a00;
}

.order-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .section {
        padding: 12px;
    }
    
    .vehicle-list {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 12px;
    }
    
    .order-btn {
        padding: 8px 20px;
    }
}