/* 智能报价页面样式 */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Tab切换 */
.quote-tabs {
    background: white;
    padding: 30px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.tab-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 40px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-button i {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tab-button span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tab-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.tab-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-button.active i,
.tab-button.active span {
    color: white;
}

.tab-panel {
    display: none;
    padding: 60px 0;
}

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

/* 报价容器 */
.quote-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quote-form-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.quote-form-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-with-unit {
    position: relative;
}

.input-with-unit .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 600;
}

/* 特殊需求选择器 */
.form-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.special-needs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.need-option {
    position: relative;
}

.need-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.need-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: normal;
}

.need-option label i {
    font-size: 1.4rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.need-option label span {
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.need-option label:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.need-option input[type="checkbox"]:checked + label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.need-option input[type="checkbox"]:checked + label i,
.need-option input[type="checkbox"]:checked + label span {
    color: white;
}

.need-option input[type="checkbox"]:checked + label::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 10px;
    color: white;
    font-size: 0.9rem;
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* 报价结果 */
.quote-result {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-empty {
    text-align: center;
    color: var(--text-light);
}

.result-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-success {
    width: 100%;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 15px;
}

.result-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.price-summary {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.total-price {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.total-price .label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.total-price .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
}

.price-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.price-breakdown {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.price-breakdown h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.item-name {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-name i {
    color: var(--secondary-color);
}

.item-price {
    font-weight: 600;
    color: var(--text-primary);
}

.result-notice {
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.result-notice i {
    color: #856404;
    font-size: 1.2rem;
}

.result-notice p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 15px;
}

.result-actions .btn {
    flex: 1;
}

/* 效果模拟 */
.simulator-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.simulator-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.simulator-form h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.style-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.style-option i {
    font-size: 2.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.style-option span {
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.style-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.style-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.style-option.selected i,
.style-option.selected span {
    color: white;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.upload-area i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.upload-area p {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-area span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.upload-preview {
    position: relative;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.upload-preview img {
    width: 100%;
    height: auto;
}

.remove-upload {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 匹配案例 */
.matched-cases {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
}

.match-result {
    width: 100%;
}

.match-header {
    text-align: center;
    margin-bottom: 30px;
}

.match-header i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.match-header h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.matched-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.matched-case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.matched-case-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.matched-case-image {
    position: relative;
    width: 180px;
    flex-shrink: 0;
}

.matched-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.matched-case-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.matched-case-info h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.matched-case-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-view-case {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-view-case:hover {
    background: var(--primary-color);
    color: white;
}

.match-footer {
    display: flex;
    gap: 15px;
}

.match-footer .btn {
    flex: 1;
}

/* 响应式 */
@media (max-width: 968px) {
    .quote-container,
    .simulator-container {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        gap: 10px;
    }

    .tab-button {
        padding: 15px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .special-needs {
        grid-template-columns: 1fr;
    }

    .matched-case-card {
        flex-direction: column;
    }

    .matched-case-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .style-selector {
        grid-template-columns: 1fr;
    }

    .result-actions,
    .match-footer {
        flex-direction: column;
    }
}
