/* 项目估价页面样式 */
.estimate-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.estimate-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.estimate-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.feature i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* 估价内容布局 */
.estimate-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.estimate-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* 估价表单 */
.estimate-form-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.estimate-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.estimate-form h2 i {
    color: #667eea;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 项目类型卡片 */
.project-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.project-type-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    background: white;
}

.project-type-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.project-type-card input[type="radio"] {
    display: none;
}

.project-type-card:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.card-content {
    padding: 25px 20px;
    text-align: center;
}

.card-content i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.project-type-card:has(input[type="radio"]:checked) .card-content i {
    color: white;
}

.card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.project-type-card:has(input[type="radio"]:checked) .card-content h4 {
    color: white;
}

.card-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.project-type-card:has(input[type="radio"]:checked) .card-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* 复杂度选项 */
.complexity-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.complexity-option {
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
}

.complexity-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.complexity-option input[type="radio"] {
    display: none;
}

.complexity-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f8f9ff;
}

.option-content {
    text-align: center;
}

.option-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.option-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.multiplier {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 技术要求复选框 */
.tech-requirements,
.additional-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.tech-checkbox,
.service-checkbox {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.tech-checkbox:hover,
.service-checkbox:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.tech-checkbox:has(input[type="checkbox"]:checked),
.service-checkbox:has(input[type="checkbox"]:checked) {
    border-color: #667eea;
    background: #f8f9ff;
}

.tech-checkbox input[type="checkbox"],
.service-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tech-checkbox:has(input[type="checkbox"]:checked) .checkmark,
.service-checkbox:has(input[type="checkbox"]:checked) .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.tech-checkbox:has(input[type="checkbox"]:checked) .checkmark::after,
.service-checkbox:has(input[type="checkbox"]:checked) .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.tech-info,
.service-info {
    flex: 1;
}

.tech-info h4,
.service-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tech-info p,
.service-info p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.cost {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

/* 表单网格 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 计算按钮 */
.calculate-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* 估价结果 */
.estimate-result-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.estimate-result {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    z-index: 100;
}

.estimate-result h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.estimate-result h2 i {
    color: #667eea;
}

.result-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.result-placeholder i {
    font-size: 3rem;
    color: #e9ecef;
    margin-bottom: 20px;
}

.result-placeholder p {
    margin-bottom: 10px;
}

/* 总价展示 */
.total-cost {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
}

.cost-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 5px;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.cost-range {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* 成本分解 */
.cost-breakdown {
    margin-bottom: 30px;
}

.cost-breakdown h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
}

.breakdown-item:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #2c3e50;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
}

.item-name {
    color: #6c757d;
    font-size: 0.9rem;
}

.item-cost {
    color: #667eea;
    font-weight: 600;
}

/* 项目信息 */
.project-info {
    margin-bottom: 30px;
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.info-item i {
    color: #667eea;
    width: 16px;
}

.info-item strong {
    color: #2c3e50;
}

/* 结果操作按钮 */
.result-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.result-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 免责声明 */
.disclaimer {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
}

.disclaimer i {
    color: #667eea;
    margin-right: 8px;
}

/* 价格对比 */
.price-comparison {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.price-comparison h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-comparison h3 i {
    color: #667eea;
}

.comparison-chart {
    margin-bottom: 15px;
}

.comparison-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comparison-item.highlight {
    background: #f8f9ff;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #667eea;
}

.provider {
    width: 80px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.price-bar {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.bar {
    height: 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.bar.traditional {
    background: #dc3545;
}

.bar.inhouse {
    background: #ffc107;
}

.bar.orbisaim {
    background: #667eea;
}

.comparison-item .price {
    font-weight: 600;
    color: #2c3e50;
    min-width: 70px;
    text-align: right;
}

.comparison-note {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .estimate-layout {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .estimate-hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .estimate-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .estimate-result {
        position: static;
        order: -1;
    }
    
    .project-types {
        grid-template-columns: 1fr;
    }
    
    .complexity-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-requirements,
    .additional-services {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .estimate-form-container {
        padding: 25px;
    }
    
    .estimate-result {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .estimate-hero {
        padding: 100px 0 60px;
    }
    
    .estimate-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .estimate-hero-content p {
        font-size: 1rem;
    }
    
    .complexity-options {
        grid-template-columns: 1fr;
    }
    
    .estimate-form-container {
        padding: 20px;
    }
    
    .estimate-result {
        padding: 15px;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .price-comparison {
        padding: 20px;
    }
}