/* 订单页面样式 */

.order-container {
    padding: 40px 0;
    min-height: calc(100vh - 70px - 90px);
}

.order-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.service-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.service-type-item {
    position: relative;
}

.service-type-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-type-label {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    font-size: 15px;
    position: relative;
}

.service-type-item input[type="radio"]:checked + .service-type-label,
.service-type-label.checked {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.service-type-item input[type="radio"]:checked + .service-type-label::before,
.service-type-label.checked::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.service-type-label:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.order-info-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.budget-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.budget-tag {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.budget-tag:hover {
    border-color: #667eea;
    color: #667eea;
}

.budget-tag.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.submit-area {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.submit-btn {
    min-width: 200px;
}

/* 订单列表样式 */
.orders-container {
    padding: 40px 0;
    min-height: calc(100vh - 70px - 90px);
}

.order-list {
    max-width: 1200px;
    margin: 0 auto;
}

.order-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.order-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.order-no {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.order-time {
    color: #999;
    font-size: 13px;
}

.order-body {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.order-service {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.order-contact {
    font-size: 14px;
    color: #666;
}

.order-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 5px;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 订单详情弹窗 */
.order-detail-content {
    padding: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    line-height: 1.8;
}

.detail-label {
    width: 100px;
    color: #666;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #333;
}

.preview-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .service-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-body {
        grid-template-columns: 1fr;
    }
    
    .order-actions {
        justify-content: flex-start;
    }
}
