/* Pre-sales Consultation Styles */

/* Welcome Section */
.pre-sales-consultation {
    background: var(--thm-f6);
}

.section-subtitle {
    color: var(--thm-black);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--thm-color);
}

/* Selection Wizard */
.selection-wizard-container {
    background: var(--thm-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.wizard-title {
    color: var(--thm-black);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.wizard-subtitle {
    color: var(--thm-gray);
    text-align: center;
    margin-bottom: 30px;
}

/* Progress Bar */
.wizard-progress {
    position: relative;
    margin-bottom: 40px;
}

.progress-bar-container {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--thm-color);
    border-radius: 2px;
    width: 20%;
    transition: width 0.3s ease;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: -13px;
    width: 100%;
}

.wizard-steps .step {
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--thm-white);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wizard-steps .step.active {
    background: var(--thm-color);
    transform: scale(1.2);
}

.wizard-steps .step.completed {
    background: var(--thm-base);
}

/* Wizard Content */
.wizard-content {
    min-height: 300px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.5s;
}

.wizard-step.active {
    display: block;
}

.wizard-step h4 {
    text-align: center;
    color: var(--thm-black);
    margin-bottom: 30px;
    font-size: 22px;
}

/* Option Cards */
.option-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.option-card {
    background: var(--thm-white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--thm-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
    background: var(--thm-f6);
    border-color: var(--thm-color);
}

.option-card i {
    font-size: 40px;
    color: var(--thm-color);
    margin-bottom: 15px;
}

.option-card h5 {
    color: var(--thm-black);
    font-size: 18px;
    margin-bottom: 10px;
}

.option-card p {
    color: var(--thm-gray);
    font-size: 14px;
    margin: 0;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.wizard-navigation .btn {
    min-width: 120px;
}

/* Category Introduction Cards */
.category-intro-card {
    background: var(--thm-white);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--thm-line);
}

.category-intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--thm-f6);
    border-radius: 50%;
}

.category-icon img {
    width: 50px;
    height: auto;
}

.category-intro-card h4 {
    color: var(--thm-black);
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.category-intro-card p {
    color: var(--thm-p);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.category-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.category-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--thm-gray);
    font-size: 14px;
}

.category-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--thm-base);
    font-weight: 700;
}

.learn-more {
    color: var(--thm-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: var(--thm-base);
    padding-left: 5px;
}

/* Comparison Tool */
.comparison-tool {
    background: var(--thm-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.comparison-selector {
    margin-top: 30px;
}

.comparison-select {
    height: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comparison-select:focus {
    border-color: var(--thm-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 151, 255, 0.25);
}

.comparison-result {
    margin-top: 30px;
}

.comparison-table {
    width: 100%;
    background: var(--thm-white);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: var(--thm-line);
    color: var(--thm-white);
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.comparison-table tr:hover td {
    background: var(--thm-f6);
}

.comparison-table .param-name {
    background: #f8f9fa;
    font-weight: 600;
    text-align: left;
    color: var(--thm-black);
}

.highlight-better {
    background: rgba(85, 198, 239, 0.1);
    color: var(--thm-base);
    font-weight: 600;
}

/* Terms Accordion */
#termsAccordion {
    background: var(--thm-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

#termsAccordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e0e0e0;
}

#termsAccordion .accordion-item:last-child {
    border-bottom: none;
}

#termsAccordion .accordion-button {
    background: var(--thm-white);
    color: var(--thm-black);
    font-weight: 600;
    font-size: 16px;
    padding: 20px;
}

#termsAccordion .accordion-button:not(.collapsed) {
    background: var(--thm-f6);
    color: var(--thm-color);
    box-shadow: none;
}

#termsAccordion .accordion-button:focus {
    box-shadow: none;
}

#termsAccordion .accordion-body {
    padding: 20px;
    color: var(--thm-p);
    line-height: 1.8;
}

/* FAQ Section */
.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

.faq-item {
    background: var(--thm-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.faq-item h5 {
    color: var(--thm-black);
    font-size: 17px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h5 i {
    color: var(--thm-color);
    font-size: 20px;
}

.faq-item p {
    color: var(--thm-p);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* Expert Contact Section */
.expert-contact-section {
    background: var(--thm-line);
    border-radius: 12px;
    padding: 50px 30px;
    color: var(--thm-white);
}

.expert-contact-section h3 {
    color: var(--thm-white);
    font-size: 32px;
    margin-bottom: 15px;
}

.expert-contact-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-options .btn {
    min-width: 150px;
    padding: 12px 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--thm-white);
    color: var(--thm-black);
}

.contact-options .btn:hover {
    background: var(--thm-base);
    color: var(--thm-white);
    transform: translateY(-3px);
}

/* Recommendation Results */
.recommendation-card {
    background: var(--thm-white);
    border: 2px solid var(--thm-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.recommendation-card h5 {
    color: var(--thm-black);
    font-size: 20px;
    margin-bottom: 15px;
}

.recommended-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.product-recommendation {
    background: var(--thm-f6);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.product-recommendation img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.product-recommendation h6 {
    color: var(--thm-black);
    font-size: 16px;
    margin-bottom: 5px;
}

.product-recommendation p {
    color: var(--thm-gray);
    font-size: 14px;
    margin: 0;
}

/* Telescope Matching Guide */
.telescope-matching-guide {
    background: var(--thm-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.matching-calculator,
.matching-theory {
    background: var(--thm-f6);
    border-radius: 8px;
    padding: 25px;
    height: 100%;
}

.matching-calculator h4,
.matching-theory h4 {
    color: var(--thm-black);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--thm-color);
}

.calculator-inputs .form-group label {
    color: var(--thm-black);
    font-weight: 600;
    margin-bottom: 5px;
}

.calculator-inputs .form-control,
.calculator-inputs .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.3s ease;
}

.calculator-inputs .form-control:focus,
.calculator-inputs .form-select:focus {
    border-color: var(--thm-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 151, 255, 0.25);
}

.matching-result {
    background: var(--thm-white);
    border-radius: 6px;
    padding: 20px;
    border: 2px solid var(--thm-base);
}

.matching-result .result-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.matching-result .result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.matching-result .result-label {
    font-weight: 600;
    color: var(--thm-black);
    display: inline-block;
    min-width: 120px;
}

.matching-result .result-value {
    color: var(--thm-p);
}

.matching-result .result-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.matching-result .result-status.optimal {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.matching-result .result-status.acceptable {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.matching-result .result-status.suboptimal {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.theory-content h6 {
    color: var(--thm-color);
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.theory-content p {
    background: var(--thm-white);
    padding: 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--thm-black);
    margin-bottom: 10px;
}

.theory-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theory-content ul li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    color: var(--thm-p);
    font-size: 14px;
}

.theory-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--thm-color);
}

.theory-content ul li strong {
    color: var(--thm-black);
}

/* Common Setups Table */
.common-setups {
    background: var(--thm-white);
    border-radius: 8px;
    padding: 25px;
}

.common-setups h5 {
    color: var(--thm-black);
    font-size: 18px;
    margin-bottom: 20px;
}

.common-setups .table {
    margin-bottom: 0;
}

.common-setups .table thead {
    background: var(--thm-line);
    color: var(--thm-white);
}

.common-setups .table thead th {
    border: none;
    padding: 12px;
    font-weight: 600;
}

.common-setups .table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}

.common-setups .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--thm-f6);
}

/* Telescope Input Section in Wizard */
.telescope-input-section {
    max-width: 600px;
    margin: 0 auto;
}

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

.telescope-input-section label {
    color: var(--thm-black);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.telescope-input-section .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.telescope-input-section .form-control:focus {
    border-color: var(--thm-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 151, 255, 0.25);
}

.telescope-input-section .form-text {
    color: var(--thm-gray);
    font-size: 13px;
    margin-top: 5px;
}

.telescope-presets {
    text-align: center;
    padding: 20px;
    background: var(--thm-f6);
    border-radius: 8px;
}

.telescope-presets p {
    color: var(--thm-black);
    font-weight: 600;
    margin-bottom: 15px;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.preset-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-width: 2px;
}

.preset-buttons .btn:hover {
    background: var(--thm-color);
    border-color: var(--thm-color);
    color: var(--thm-white);
}

.sampling-calculator {
    margin-top: 20px;
}

.sampling-calculator .alert {
    border-radius: 8px;
    border: none;
    padding: 20px;
}

.sampling-calculator .alert-info {
    background: var(--thm-f6);
    color: var(--thm-black);
    border-left: 4px solid var(--thm-color);
}

#samplingResult {
    margin-top: 10px;
}

.sampling-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.sampling-item .label {
    font-weight: 600;
    color: var(--thm-black);
}

.sampling-item .value {
    color: var(--thm-p);
}

.sampling-item .badge {
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.sampling-item .badge.optimal {
    background: #28a745;
    color: white;
}

.sampling-item .badge.good {
    background: #17a2b8;
    color: white;
}

.sampling-item .badge.acceptable {
    background: #ffc107;
    color: #333;
}

.sampling-item .badge.poor {
    background: #dc3545;
    color: white;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}




/* Telescope Matching Calculator Enhancements */
.matching-calculator {
    background: var(--thm-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.matching-result {
    background: var(--thm-f6);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.result-item {
    background: var(--thm-white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--thm-color);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-label {
    font-weight: 600;
    color: var(--thm-gray);
    display: inline-block;
    min-width: 120px;
}

.result-value {
    color: var(--thm-black);
    font-weight: 500;
}

/* Status Indicators */
.result-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.result-status.optimal {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: var(--thm-white);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.result-status.acceptable {
    background: linear-gradient(135deg, #faad14, #ffc53d);
    color: var(--thm-white);
    box-shadow: 0 2px 8px rgba(250, 173, 20, 0.3);
}

.result-status.suboptimal {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: var(--thm-white);
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

/* Calculator Inputs Styling */
.calculator-inputs {
    background: var(--thm-f6);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.calculator-inputs .form-control,
.calculator-inputs .form-select {
    border: 2px solid transparent;
    background: var(--thm-white);
    transition: all 0.3s ease;
}

.calculator-inputs .form-control:focus,
.calculator-inputs .form-select:focus {
    border-color: var(--thm-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 151, 255, 0.1);
}

/* Common Telescope Setups Table Enhancement */
.common-setups {
    background: var(--thm-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.common-setups h5 {
    color: var(--thm-black);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--thm-color);
}

.common-setups .table {
    margin-bottom: 0;
}

.common-setups .table thead th {
    background: var(--thm-f6);
    color: var(--thm-black);
    font-weight: 600;
    border-bottom: 2px solid var(--thm-color);
    padding: 15px 12px;
}

.common-setups .table tbody tr {
    transition: all 0.3s ease;
}

.common-setups .table tbody tr:hover {
    background: var(--thm-f6);
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.common-setups .table tbody td {
    padding: 12px;
    vertical-align: middle;
}

/* Theory Content Styling */
.matching-theory {
    background: var(--thm-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.theory-content {
    background: var(--thm-f6);
    padding: 25px;
    border-radius: 8px;
    margin-top: 15px;
}

.theory-content h6 {
    color: var(--thm-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.theory-content p {
    background: var(--thm-white);
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid var(--thm-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--thm-black);
    margin-bottom: 15px;
}

.theory-content ul {
    background: var(--thm-white);
    padding: 20px 20px 20px 40px;
    border-radius: 6px;
    margin-bottom: 0;
}

.theory-content ul li {
    margin-bottom: 10px;
    position: relative;
}

.theory-content ul li:before {
    content: "▸";
    position: absolute;
    left: -20px;
    color: var(--thm-color);
    font-weight: 600;
}

.theory-content ul li strong {
    color: var(--thm-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .matching-calculator,
    .matching-theory,
    .common-setups {
        padding: 20px;
    }

    .theory-content,
    .matching-result {
        padding: 15px;
    }

    .result-label {
        min-width: 100px;
        font-size: 14px;
    }

    .common-setups .table {
        font-size: 14px;
    }

    .common-setups .table thead th,
    .common-setups .table tbody td {
        padding: 8px;
    }
}



/* Highlight HOPE D60 row */
.table-highlight {
    background: linear-gradient(90deg, rgba(58, 151, 255, 0.1) 0%, rgba(58, 151, 255, 0.05) 100%);
    font-weight: 500;
}

.table-highlight td:first-child {
    position: relative;
    padding-left: 25px;
}

.table-highlight td:first-child::before {
    content: "推荐";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 10px;
    color: var(--thm-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.common-setups .table tbody tr:hover {
    background: var(--thm-f6);
    transform: none;
    box-shadow: none;
}

.common-setups .table tbody tr.table-highlight:hover {
    background: linear-gradient(90deg, rgba(58, 151, 255, 0.15) 0%, rgba(58, 151, 255, 0.08) 100%);
}
