/* StarTech风格报价计算器样式 */
.quote-calculator-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quote-calculator-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(237, 37, 27, 0.1);
    max-width: 680px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quote-calculator-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(237, 37, 27, 0.1);
    background: linear-gradient(135deg, #ed251b 0%, #ce2017 100%);
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.quote-calculator-header:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-calculator-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-calculator-title:before {
    content: '💰';
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.quote-calculator-close {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    font-weight: bold;
}

.quote-calculator-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.quote-calculator-body {
    padding: 32px;
    background: white;
}

.quote-form-group {
    margin-bottom: 28px;
}

.quote-form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 15px;
    position: relative;
    padding-left: 8px;
}

.quote-form-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #ed251b 0%, #ce2017 100%);
    border-radius: 2px;
}

.quote-form-input,
.quote-form-select,
.quote-form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafbfc;
    color: #333;
    font-family: inherit;
}

.quote-form-input::placeholder,
.quote-form-textarea::placeholder {
    color: #9ca3af;
}

.quote-form-input:focus,
.quote-form-select:focus,
.quote-form-textarea:focus {
    outline: none;
    border-color: #ed251b;
    box-shadow: 0 0 0 4px rgba(237, 37, 27, 0.1);
    background: white;
    transform: translateY(-1px);
}

.quote-form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

.quote-form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.quote-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.quote-calculator-footer {
    padding: 24px 32px 32px;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}

.quote-btn-modal {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    min-width: 120px;
}

.quote-btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quote-btn-secondary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.quote-btn-primary {
    background: linear-gradient(135deg, #ed251b 0%, #ce2017 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(237, 37, 27, 0.3);
    border: 2px solid transparent;
}

.quote-btn-primary:hover {
    background: linear-gradient(135deg, #d12118 0%, #b81d14 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 37, 27, 0.4);
}

.quote-btn-primary:active {
    transform: translateY(0);
}

.quote-result {
    background: linear-gradient(135deg, rgba(237, 37, 27, 0.05) 0%, rgba(206, 32, 23, 0.05) 100%);
    border: 2px solid rgba(237, 37, 27, 0.2);
    border-radius: 16px;
    padding: 28px;
    margin-top: 32px;
    display: none;
    position: relative;
    overflow: hidden;
}

.quote-result:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ed251b 0%, #ce2017 100%);
}

.quote-result.show {
    display: block;
    animation: resultSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quote-result-title {
    font-weight: 700;
    color: #ed251b;
    margin-bottom: 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-result-title:before {
    content: '🎯';
    font-size: 20px;
}

.quote-result-price {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.quote-result-price:after {
    content: '起';
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

.quote-result-note {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quote-calculator-modal {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    .quote-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quote-calculator-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .quote-btn-modal {
        width: 100%;
        justify-content: center;
    }
    
    .quote-calculator-header {
        padding: 24px 24px 20px;
    }
    
    .quote-calculator-title {
        font-size: 24px;
        padding-right: 60px;
    }
    
    .quote-calculator-body {
        padding: 24px;
    }
    
    .quote-result-price {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .quote-calculator-modal {
        margin: 10px;
    }
    
    .quote-calculator-header {
        padding: 20px;
    }
    
    .quote-calculator-title {
        font-size: 22px;
    }
    
    .quote-calculator-body {
        padding: 20px;
    }
    
    .quote-result-price {
        font-size: 28px;
    }
}

/* 加载动画 */
.quote-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(237, 37, 27, 0.2);
    border-radius: 50%;
    border-top-color: #ed251b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功提示 */
.quote-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(101, 163, 13, 0.1) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.quote-success.show {
    display: block;
    animation: successSlideIn 0.5s ease-out;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单验证错误状态 */
.quote-form-input.error,
.quote-form-select.error,
.quote-form-textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    background: rgba(254, 242, 242, 0.5);
}

/* 聚焦环效果增强 */
.quote-form-input:focus:valid,
.quote-form-select:focus:valid,
.quote-form-textarea:focus:valid {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

/* 自定义滚动条 */
.quote-calculator-modal::-webkit-scrollbar {
    width: 6px;
}

.quote-calculator-modal::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.quote-calculator-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ed251b 0%, #ce2017 100%);
    border-radius: 3px;
}

.quote-calculator-modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d12118 0%, #b81d14 100%);
}