/* =================================== MEDICAL TOPIC PAGE EXCLUSIVE STYLES =================================== */
:root {
    --med-blue: #0B5D51; /* 医疗特有深青色 */
    --med-blue-light: #1E8C7E;
    --med-light: #F0F7F7; /* 浅青灰背景 */
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #d1d5db;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .05);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, .08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
}

/* 通用板块样式 */
section {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--med-blue);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-label:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--med-blue);
}

h1, h2 {
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-weight: 800;
}

h4, h5 {
    font-weight: 700;
}

.section-desc {
    max-width: 1000px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
}

.text-highlight {
    color: var(--med-blue);
}

/* =================================== HERO SECTION =================================== */
.topic-hero {
    background: #ffffff;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-desc {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-feature-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 10px;
    filter: contrast(1.05) saturate(0.9);
}

.inquiry-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.inquiry-form-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.inquiry-form-card .form-control {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.inquiry-form-card .form-control:focus {
    border-color: var(--med-blue);
    box-shadow: 0 0 0 0.2rem rgba(11, 93, 81, 0.15);
}

.file-upload-wrapper.small {
    border: 2px dashed var(--border);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.file-upload-wrapper.small .file-label {
    font-size: 13px;
    color: var(--text-muted);
}

.file-upload-wrapper.small .file-label i {
    font-size: 20px;
}

.btn-submit {
    background: var(--med-blue);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--med-blue-light);
    color: #fff;
}

/* =================================== PRODUCTS MEDICAL 3-COL GRID STYLE =================================== */
.topic-products-medical {
    background: var(--med-light);
}

.med-grid-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.med-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--med-blue);
}

.med-grid-img {
    height: 200px;
    overflow: hidden;
}

.med-grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.9);
    transition: transform 0.5s ease;
}

.med-grid-card:hover .med-grid-img img {
    transform: scale(1.05);
}

.med-grid-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.med-grid-content h4 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 18px;
}

.med-grid-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.med-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.med-spec-list li {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
}

.med-spec-list li strong {
    color: var(--text-main);
    margin-right: 5px;
    min-width: 90px;
}

/* =================================== CAPABILITIES MEDICAL SPLIT STYLE =================================== */
.topic-capabilities-medical {
    background: #ffffff;
}

.med-cap-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
}

.med-cap-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--med-blue);
}

.med-cap-left {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.med-cap-icon {
    font-size: 48px;
    color: var(--med-blue);
}

.med-cap-right {
    flex: 1;
}

.med-cap-right h4 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.med-cap-right p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.med-cap-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.med-spec-item {
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 12px;
    background: var(--med-light);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.med-spec-item strong {
    display: block;
    color: var(--med-blue);
    margin-bottom: 4px;
}

/* =================================== TECHNICAL SPECS TABLE STYLE =================================== */
.topic-technical-specs-medical {
    background: var(--med-light);
}

.spec-table-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    height: 100%;
}

.spec-table-card h4 {
    color: var(--med-blue);
    margin-bottom: 20px;
    font-size: 20px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    background-color: var(--med-blue);
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}

.spec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:hover {
    background-color: var(--med-light);
}

/* =================================== PROCESS MEDICAL COMPACT STYLE =================================== */
.topic-process-medical {
    background: #ffffff;
}

.med-compact-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.compact-step-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.compact-step-item:hover {
    border-color: var(--med-blue);
    box-shadow: 0 5px 15px rgba(11, 93, 81, 0.1);
}

.step-no {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--med-light);
    color: var(--med-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    border: 2px solid var(--med-blue);
}

.step-detail h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--text-main);
}

.step-detail p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.med-testing-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    height: 100%;
    border-left: 4px solid var(--med-blue);
}

.med-testing-box h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--med-blue);
}

.med-testing-box > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.test-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.test-item:last-child {
    margin-bottom: 0;
}

.test-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.test-item h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.test-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* =================================== CERTIFICATIONS MEDICAL STYLE =================================== */
.topic-certifications-medical {
    background: #ffffff;
}

.cert-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--med-blue);
}

.cert-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
}

.cert-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
}

.cert-zoom-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 93, 81, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover .cert-zoom-icon {
    opacity: 1;
}

.cert-info {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cert-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--med-blue);
}

.cert-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* 弹窗样式优化 */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: var(--med-blue);
    color: #fff;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 0;
    background: #f8fafc;
}

.modal-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* =================================== FAQ SECTION =================================== */
.topic-faq-medical {
    background: var(--med-light);
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;
    color: var(--text-main);
    background: #fff;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--med-blue);
    background-color: #fff;
}

.accordion-button::after {
    background-size: 1.2rem;
}

.accordion-body {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 15px;
}

/* =================================== PROMOTION CTA MEDICAL STYLE =================================== */
.topic-promotion-medical {
    background: #ffffff;
}

.medical-cta-wrapper {
    background: var(--med-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.medical-cta-wrapper:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--med-blue);
}

.cta-desc-med {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.medical-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.med-trust-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.med-trust-icon {
    font-size: 28px;
    color: var(--med-blue);
    flex-shrink: 0;
}

.med-trust-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-main);
    font-size: 15px;
}

.med-trust-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.medical-final-cta {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.medical-final-cta h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.medical-final-cta > p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.cta-contact-info-med {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cta-contact-item-med {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

.cta-contact-item-med i {
    color: var(--med-blue);
    font-size: 18px;
}

.cta-contact-item-med a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.cta-contact-item-med a:hover {
    color: var(--med-blue);
}

.btn-cta-med {
    background: var(--med-blue);
    color: #fff;
    padding: 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}

.btn-cta-med:hover {
    background: var(--med-blue-light);
    color: #fff;
    transform: translateY(-2px);
}

.cta-note-med {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    margin-top: 15px;
}

/* =================================== RESPONSIVE =================================== */
@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .inquiry-form-card {
        margin-top: 40px;
    }

    .hero-feature-img {
        height: 280px;
    }

    /* 阶梯排版响应式 */
    .med-cap-card {
        flex-direction: column;
        gap: 15px;
    }

    .med-cap-left {
        width: 100%;
        justify-content: flex-start;
        padding-top: 0;
    }

    .med-cap-icon {
        font-size: 36px;
    }

    /* 流程与CTA响应式 */
    .medical-cta-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .med-spec-list li {
        flex-direction: column;
    }

    .med-spec-list li strong {
        min-width: auto;
        margin-bottom: 2px;
    }

    .med-cap-specs {
        grid-template-columns: 1fr;
    }

    .medical-trust-grid {
        grid-template-columns: 1fr;
    }
}
