.medical-page {
    background: #fff;
    color: #1a1a1a;
}

.medical-wrap {
    width: 1200px;
    margin: 0 auto;
}

.medical-banner {
    height: 400px;
    background: url("../img/solution-banner/medical.webp") no-repeat center center;
    background-size: cover;
}

.medical-banner__inner {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.medical-banner__title {
    margin: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
}

.medical-banner__desc {
    width: 700px;
    max-width: calc(100% - 48px);
    margin: 24px 0 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}

.medical-section {
    padding: 72px 0;
}

.medical-section--cases {
    background: #f5f7fa;
}

.medical-section__head {
    text-align: center;
}

.medical-section__head--light .medical-section__title,
.medical-section__head--light .medical-section__sub {
    color: #fff;
}

.medical-section__title {
    margin: 0;
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
}

.medical-section__sub {
    margin: 16px 0 0;
    color: #999;
    font-size: 16px;
    line-height: 1.75;
}

.pain-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 64px;
}

.pain-card {
    position: relative;
    width: 384px;
    min-height: 176px;
    padding: 18px 28px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 24px 1px rgba(0, 0, 0, 0.1);
}

.pain-card__num {
    color: #eee;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.pain-card__title {
    margin: 10px 0 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.pain-card__desc {
    width: 260px;
    margin: 6px 0 0;
    color: #999;
    font-size: 14px;
    line-height: 1.85;
}

.pain-card__icon {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
}

.pain-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.medical-scene {
    position: relative;
    overflow: hidden;
    background: #1a1b20;
}

.medical-scene__wrap {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.medical-scene__bg {
    position: absolute;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.medical-scene__bg--left {
    left: 0;
    bottom: 0;
    width: 306px;
    height: 306px;
    background-image: url("../img/medical/application-scene/bg-1.png");
}

.medical-scene__bg--right {
    top: 0;
    right: 0;
    width: 198px;
    height: 198px;
    background-image: url("../img/medical/application-scene/bg-2.png");
}

.scene-switcher {
    margin-top: 40px;
}

.scene-switcher__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scene-tabs {
    display: flex;
    align-items: center;
    gap: 40px;
}

.scene-tabs__item {
    position: relative;
    padding-bottom: 4px;
    color: #999;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.scene-panels {
    position: relative;
    width: 1200px;
    height: 502px;
    margin-top: 34px;
}

.scene-panel {
    position: absolute;
    inset: 0;
    display: none;
    overflow: hidden;
    border-radius: 16px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.scene-panel--1 {
    background-image: url("../img/medical/application-scene/bg/1.webp");
}

.scene-panel--2 {
    background-image: url("../img/medical/application-scene/bg/2.webp");
}

.scene-panel--3 {
    background-image: url("../img/medical/application-scene/bg/3.webp");
}

.scene-panel__icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 89px;
    height: 89px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    transform: translate(-50%, -50%);
}

.scene-panel__icon img {
    width: 35px;
    height: 35px;
}

.scene-panel__mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
}

.scene-panel__content {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 30px;
    z-index: 3;
}

.scene-panel__title {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.scene-panel__desc {
    margin: 16px 0 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.75;
}

#medical-scene-1:checked~.scene-tabs label[for="medical-scene-1"],
#medical-scene-2:checked~.scene-tabs label[for="medical-scene-2"],
#medical-scene-3:checked~.scene-tabs label[for="medical-scene-3"] {
    color: #fff;
    border-bottom-color: #1dbbab;
}

#medical-scene-1:checked~.scene-panels .scene-panel--1,
#medical-scene-2:checked~.scene-panels .scene-panel--2,
#medical-scene-3:checked~.scene-panels .scene-panel--3 {
    display: block;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 64px;
}

.product-card {
    width: 384px;
    height: 338px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 24px 1px rgba(0, 0, 0, 0.1);
}

.product-card__title {
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 344px;
    height: 256px;
    margin-top: 20px;
    border-radius: 12px;
    background: #f5f5f5;
}

.product-card__image img {
    display: block;
    width: 224px;
    height: 224px;
    object-fit: contain;
}

.case-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 64px;
}

.case-card {
    position: relative;
    width: 384px;
    height: 230px;
    overflow: hidden;
    border-radius: 16px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    box-shadow: 0 3px 6px 1px rgba(0, 0, 0, 0.07);
}

.case-card--1 {
    background-image: url("../img/medical/brilliant-case/1.webp");
}

.case-card--2 {
    background-image: url("../img/medical/brilliant-case/2.webp");
}

.case-card--3 {
    background-image: url("../img/medical/brilliant-case/3.webp");
}

.case-card--4 {
    background-image: url("../img/medical/brilliant-case/4.webp");
}

.case-card--5 {
    background-image: url("../img/medical/brilliant-case/5.webp");
}

.case-card--6 {
    background-image: url("../img/medical/brilliant-case/6.webp");
}

.case-card__icon {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.case-card__icon img {
    width: 20px;
    height: 20px;
}

.case-card__mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.case-card__title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
}

.medical-cta {
    width: 100%;
    /* padding: 48px 20px 0; */
    background: #fff;
}

.medical-cta__inner {
    width: 100%;
    /* max-width: 1880px; */
    margin: 0 auto;
}

.medical-pingtai {
    min-height: 295px;
    padding: 0 24px;
    background: url("/static/newindex/img/pingtaibg.png") no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.medical-pingtai h2 {
    margin: 0;
    color: #111111;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

.medical-pingtai__phonebox {
    margin-top: 30px;
    display: flex;
    align-items: center;
    width: 602px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31, 93, 191, 0.08);
}

.medical-pingtai__inputbox {
    flex: 1;
    height: 55px;
    background: #fff;
}

.medical-pingtai__inputbox input {
    width: 100%;
    height: 55px;
    border: 0;
    outline: none;
    padding: 0 18px;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 55px;
    background: #fff;
}

.medical-pingtai__inputbox input::placeholder {
    color: #b4bac5;
}

.medical-pingtai__shenqing {
    flex: 0 0 120px;
    width: 120px;
    height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    background: #1d77ff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.medical-pingtai__shenqing:hover {
    background: #0066ff;
}

@media screen and (max-width: 768px) {

    .medical-wrap,
    .medical-banner__inner {
        width: calc(100% - 24px);
    }

    .medical-banner {
        height: 40vw;
        min-height: 220px;
    }

    .medical-banner__title {
        font-size: 22px;
    }

    .medical-banner__desc {
        width: 100%;
        margin-top: 16px;
        font-size: 12px;
        line-height: 1.8;
    }

    .medical-section {
        padding: 24px 0;
    }

    .medical-section__title {
        font-size: 26px;
    }

    .medical-section__sub {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.7;
    }

    .pain-grid,
    .product-grid,
    .case-grid {
        gap: 12px;
        margin-top: 24px;
    }

    .pain-card {
        width: calc((100% - 12px) / 2);
        min-height: 170px;
        padding: 10px 10px 14px;
    }

    .pain-card__num {
        font-size: 26px;
    }

    .pain-card__title {
        font-size: 14px;
        margin-top: 6px;
    }

    .pain-card__desc {
        width: 100%;
        font-size: 12px;
        line-height: 1.7;
    }

    .pain-card__icon {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .medical-scene__wrap {
        padding: 24px 0;
    }

    .medical-scene__bg--left {
        width: 180px;
        height: 180px;
    }

    .medical-scene__bg--right {
        width: 110px;
        height: 110px;
    }

    .scene-switcher {
        margin-top: 24px;
    }

    .scene-tabs {
        gap: 18px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .scene-tabs__item {
        font-size: 14px;
    }

    .scene-panels {
        width: 100%;
        height: 60vw;
        margin-top: 24px;
    }

    .scene-panel__icon {
        width: 56px;
        height: 56px;
    }

    .scene-panel__icon img {
        width: 24px;
        height: 24px;
    }

    .scene-panel__content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .scene-panel__title {
        font-size: 16px;
    }

    .scene-panel__desc {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.7;
    }

    .product-grid {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .product-card {
        width: calc((100% - 12px) / 2);
        height: auto;
        padding: 12px;
    }

    .product-card__title {
        font-size: 14px;
    }

    .product-card__image {
        width: 100%;
        height: 150px;
        margin-top: 12px;
    }

    .product-card__image img {
        width: 150px;
        height: 150px;
    }

    .case-card {
        width: 100%;
        height: 180px;
    }

    .case-card__icon {
        right: 16px;
        top: 16px;
        width: 32px;
        height: 32px;
    }

    .case-card__title {
        left: 16px;
        right: 16px;
        bottom: 16px;
        font-size: 15px;
        line-height: 1.6;
    }

    .medical-cta {
        padding: 36px 12px 0;
    }

    .medical-pingtai {
        min-height: 220px;
        padding: 0 16px;
    }

    .medical-pingtai h2 {
        font-size: 24px;
    }

    .medical-pingtai__phonebox {
        margin-top: 24px;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }

    .medical-pingtai__inputbox {
        width: 100%;
    }

    .medical-pingtai__inputbox input {
        height: 50px;
        padding: 0 16px;
        border-radius: 12px;
        font-size: 16px;
        line-height: 50px;
    }

    .medical-pingtai__shenqing {
        width: 100%;
        flex: none;
        height: 50px;
        border-radius: 12px;
    }
}