* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    color: #00f2fe;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.user-info {
    display: flex;
    align-items: center;
}

#loginBtn, button {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

#loginBtn:hover, button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
    background: linear-gradient(45deg, #3a86ff 0%, #00b4d8 100%);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(79, 172, 254, 0.4);
}

main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
}

@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
    }
}

.status-section, .reservation-section, .admin-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.status-section h2, .reservation-section h2, .admin-section h2 {
    color: #00f2fe;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.vehicle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    z-index: 0;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.vehicle-card .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.vehicle-card .status-indicator.available {
    background-color: #4CAF50;
    box-shadow: 0 0 15px #4CAF50;
}

.vehicle-card .status-indicator.assigned {
    background-color: #FFC107;
    box-shadow: 0 0 15px #FFC107;
}

.vehicle-card .status-indicator.maintenance {
    background-color: #F44336;
    box-shadow: 0 0 15px #F44336;
}

.vehicle-card h3 {
    margin-bottom: 15px;
    color: #00f2fe;
    font-size: 1.3rem;
    z-index: 1;
    position: relative;
}

.vehicle-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 8px;
    z-index: 1;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00f2fe;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

/* 下拉框选项样式 */
.form-group select option {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 10px;
}

.form-group select option:hover {
    background: rgba(79, 172, 254, 0.9);
    color: white;
}

/* 下拉框选中项样式 */
.form-group select option:checked {
    background: rgba(79, 172, 254, 1);
    color: white;
}

.reservation-section button {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.admin-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom: 2px solid #4facfe;
}

.tab-content {
    display: none;
    color: white;
}

.tab-content.active {
    display: block;
}

#vehicleList, #historyList {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.vehicle-item, .history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vehicle-item:last-child, .history-item:last-child {
    border-bottom: none;
}

.vehicle-actions, .history-actions {
    display: flex;
    gap: 10px;
}

.vehicle-actions button, .history-actions button {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: white;
    margin-bottom: 20px;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #4facfe;
}

#addVehicleForm button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

#addVehicleBtn {
    margin-bottom: 20px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .vehicle-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .vehicle-card {
        width: 90%;
        margin-bottom: 20px;
    }
    
    .admin-panel {
        padding: 10px;
    }
    
    .tab-content {
        padding: 15px;
    }
}