/* Banner */
.med-banner {
    background: url('../images/medical/banner.png') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    min-height: 40rem;
}

.med-banner .container {
    min-height: 40rem;
}

.med-banner-inner {
    max-width: 66%;
    padding: 3.4rem 0;
}

.med-banner-title {
    font-weight: bold;
    font-size: 4rem;
    color: #333333;
    line-height: 1.25;
    margin: 0 0 2rem 0;
}

.med-banner-desc {
    font-weight: 400;
    font-size: 1.6rem;
    color: #666666;
    line-height: 2.4rem;
    margin: 0 0 4.5rem 0;
}

.med-banner-desc--second {
    margin-bottom: 2.4rem;
}

.med-banner-cta {
    width:120px;
    height:40px;
    display:flex;
    justify-content:center;
    align-items:center;
    border:1px solid var(--brand-color, rgba(224,25,39,1));
    border-radius:4px;
    background:#fff;
    color:var(--brand-color, rgba(224,25,39,1));
    font-size:16px;
    font-weight:500;
    cursor: pointer;
}

.med-banner-cta:hover {
    background: #fff5f5;
}

/* 二级锚点导航（与政企通页一致） */
.po-subnav {
    background: #fafafa;
    height: 7rem;
    width: 100%;
    position: relative;
    z-index: 100;
}

.po-subnav.sticky {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
}

.po-subnav .container {
    padding: 0;
}

.po-subnav-container {
    display: flex;
    justify-content: space-around;
}

.po-subnav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 1.6rem;
    color: #333333;
    line-height: 7rem;
    display: inline-flex;
    align-items: center;
    height: 100%;
    border-bottom: 0.2rem solid transparent;
    padding: 0 0.4rem;
}

.po-subnav-link:hover {
    color: #e21927;
}

.po-subnav-link--active {
    color: #e21927;
    border-bottom-color: #e21927;
}

/* 章节通用 */

.med-section-header {
    text-align: center;
    margin-bottom: 3.6rem;
}

/* 一体化架构 */
.med-architecture-section {
    position: relative;
    overflow: hidden;
    background: url("../images/medical/integration-bg.png") no-repeat center center;
    background-size: cover;
}

.med-architecture-bg {
    position: absolute;
    inset: 0;
    background: url('../images/medical/integration-bg.png') no-repeat center top;
    background-size: cover;
    opacity: 0.28;
    pointer-events: none;
}

.med-architecture-container {
    position: relative;
    z-index: 1;
}

.med-arch-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    align-items: stretch;
}

.med-arch-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.4rem 3rem;
    box-shadow: 0 0.4rem 2.4rem rgba(15, 76, 158, 0.08);
    text-align: center;
}

.med-arch-card-icon {
    margin-bottom: 1.6rem;
}

.med-arch-card-icon img {
    max-width: 12rem;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

.med-arch-card-title {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 0.4rem;
    margin: 0 0 2.2rem 0;
    line-height: 1.25;
    font-size: 2rem;
    font-weight: 600;
    color: #333333;
}

.med-arch-card-title__num {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    color: #1e6fff;
    margin-right: 0.2rem;
    font-variant-numeric: tabular-nums;
}

.med-arch-card-title__text {
    font-size: 2rem;
    font-weight: 600;
    color: #333333;
    line-height: 1.35;
}

.med-arch-card-desc {
    font-size: 1.4rem;
    color: #666666;
    line-height: 2.2rem;
    margin: 0;
    text-align: justify;
}

/* 核心场景 */
.med-scenarios-section .container {
    padding-bottom: 0;
}

.med-scenarios-inner {
    max-width: 100%;
}

.med-scenario-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10.2rem;
    margin-bottom: 3.4rem;
}

.med-scenario-tab {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12rem;
    height:3.6rem;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 3.3rem;
    background: transparent;
    color: #333333;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.med-scenario-tab__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.med-scenario-tab__icon {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    flex-shrink: 0;
}

.med-scenario-tab__text {
    white-space: nowrap;
}

.med-scenario-tab:hover:not(.med-scenario-tab--active) {
    color: #145DFF;
}

.med-scenario-tab:focus-visible {
    outline: 0.2rem solid rgba(30, 111, 217, 0.45);
    outline-offset: 0.2rem;
}

.med-scenario-tab--active {
    border: 1px solid rgba(239, 246, 255, 1);
    border-radius: 3.3rem;
    box-shadow: 0px 9px 30px 6px rgba(0, 0, 0, 0.06);
    background: linear-gradient(174.86deg, rgba(255, 255, 255, 1) 25.562%, rgba(240, 246, 255, 1) 91.162%);
    color: #145DFF;
}

.med-scenario-panel-inner {
    box-sizing: border-box;
    border-radius: 1rem;
    /* border: 1px solid rgba(239, 246, 255, 1);*/
    box-shadow: 0px 9px 30px 6px rgba(0, 0, 0, 0.06);; 
    padding: 2.8rem 3.2rem;
    min-height: 46rem;
    height: auto;
    /* background-image: linear-gradient(174.86deg, rgba(255, 255, 255, 1) 25.562%, rgba(240, 246, 255, 1) 91.162%);
    background-repeat: no-repeat; */
    background-size: cover;
}

/* 院前：主标题区域距卡片顶部 5rem */
.med-scenario-panel-inner {
    padding-top: 5.4rem;
}

.med-scenario-panel:nth-child(1) .med-scenario-panel-inner {
    background: url("../images/medical/core-scenarios-one.png") no-repeat center center;
        background-size: cover;
    background-position: 0 0, right 2rem center;
    background-repeat: no-repeat, no-repeat;
}

.med-scenario-panel:nth-child(2) .med-scenario-panel-inner {
    background: url("../images/medical/core-scenarios-two.png") no-repeat center center;
        background-size: cover;
    background-position: 0 0, right 2rem center;
    background-repeat: no-repeat, no-repeat;
}

.med-scenario-panel:nth-child(3) .med-scenario-panel-inner {
    background: url("../images/medical/core-scenarios-three.png") no-repeat center center;
    background-size: cover;
    background-position: 0 0, right 2rem center;
    background-repeat: no-repeat, no-repeat;
}


.med-scenario-panel-title {
    font-size: 2.2rem;
    line-height: 1.35;
    margin: 0 0 2.8rem 0;
}

.med-scenario-panel-title__prefix {
    color: #145DFF;
    font-weight: 600;
    font-size: 2.4rem;
}

.med-scenario-panel-title__rest {
    color: #333333;
    font-weight: 600;
    font-size: 2.4rem;
}

.med-scenario-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 图二：每条小标题+说明块，最小高度 8rem */
.med-scenario-list li {
    height: 9.4rem;
   }

.med-scenario-list li:last-child {
    margin-bottom: 0;
}

.med-scenario-list li p {
    position: relative;
    display: block;
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: #333333;
    line-height: 1.45;
}

.med-scenario-list li p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 0.4rem;
    height: 1em;
    background: #145DFF;
    border-radius: 0.2rem;
}

.med-scenario-list li span {
    display: block;
    padding-left: 1.2rem;
    font-size: 1.6rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.85;
}

.med-scenario-visual {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.med-scenario-visual img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 典型案例 */
.med-cases-section {
    padding-bottom: 2rem;
    background: url("../images/medical/typical-cases-bg.png") no-repeat center center;
    background-size: cover;
}

.med-cases-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: none;
}

.med-cases-viewport {
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    container-type: inline-size;
    padding-block: 0.75rem;
    box-shadow: none;
}

.med-cases-viewport::-webkit-scrollbar {
    display: none;
}

.med-cases-track {
    display: flex;
    gap: 3rem;
    box-shadow: none;
}

.med-case-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 calc((100cqi - 3rem) / 2);
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(15, 23, 42, 0.04);
}

.med-case-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8f0fa;
    border-radius: 1rem 1rem 0 0;
}

.med-case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.med-case-card-body {
    padding: 2.4rem 3rem;
    background: #ffffff;
    border-radius: 0 0 1rem 1rem;
}

.med-case-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333333;
    margin: 0 0 1rem 0;
}

.med-case-card-desc {
    font-size: 1.4rem;
    color: #666666;
    line-height: 2.2rem;
    margin: 0;
}

.med-case-card-desc strong {
    font-weight: 600;
    color: #145DFF;
}
.med-cases-nav {
    font-size: 2rem;
    color: #E01927;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
    box-shadow: 0px 4px 20px 0px rgba(194, 8, 8, 0.08);
    background: #ffffff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.med-cases-nav--prev::after {
    content: "\ee66";
    font-family: "iconfont" !important;
    margin-top: 0.2rem;
    transform: rotate(180deg);
}


.med-cases-nav--next::after {
    content: "\ee66";
    font-family: "iconfont" !important;
}


/* 平板 */
@media (max-width: 1023px) {
    .med-banner {
        min-height: 30rem;
    }

    .med-banner .container {
        min-height: 30rem;
    }

    .med-banner-inner {
        max-width: 90%;
    }

    .med-banner-title {
        font-size: 3.2rem;
    }

    .med-arch-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .med-arch-card-title,
    .med-arch-card-title__text {
        font-size: 1.8rem;
    }

    .med-arch-card-title__num {
        font-size: 3.2rem;
    }

    .med-scenarios-section .med-section-header {
        margin-bottom: 2.8rem;
    }

    .med-scenario-tabs {
        gap: 1.6rem;
        margin-bottom: 2rem;
    }

    .med-scenario-panel-inner {
        height: auto;
        padding: 2.4rem 2rem;
        gap: 2rem;
        border-radius: 0.8rem;
    }

    #med-scenario-before .med-scenario-panel-inner {
        padding-top: 3.2rem;
    }

    .med-scenario-text {
        max-width: 100%;
    }


    .med-scenario-panel-title {
        margin-bottom: 1.5rem;
    }

    .med-scenario-list li {
        margin-bottom: 1.4rem;
        height: 8.8rem;
    }

    .med-scenario-list li p {
        margin-bottom: 0.45rem;
    }

    .med-scenario-visual {
        flex: none;
        width: 100%;
        max-width: 32rem;
        margin: 0 auto;
    }

    .po-subnav-container {
        gap: 8rem;
    }
}

/* 手机 */
@media (max-width: 767px) {
    .med-banner {
        min-height: 23rem;
    }

    .med-banner .container {
        min-height: 23rem;
    }

    .med-banner-inner {
        max-width: 95%;
        padding: 1.6rem 0;
    }

    .med-banner-title {
        font-size: 2.4rem;
        margin-bottom: 1.2rem;
    }

    .med-banner-desc {
        font-size: 1.4rem;
        line-height: 1.9rem;
    }

    .med-banner-cta {
        font-size: 1.4rem;
        width: 10rem;
        height: 3.2rem;
    }
    .med-arch-card-icon{
        margin-bottom: 0.2rem;
    }
    .po-subnav {
        height: 5rem;
    }

    .po-subnav-container {
        gap: 1.6rem;
        /* justify-content: flex-start; */
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 0.4rem;
        -webkit-overflow-scrolling: touch;
    }

    .po-subnav-link {
        font-size: 1.4rem;
        line-height: 5rem;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .med-section-header {
        margin-bottom: 1.8rem;
    }

    .med-arch-card-title,
    .med-arch-card-title__text {
        font-size: 1.7rem;
    }

    .med-arch-card-title__num {
        font-size: 3rem;
    }

    .med-scenarios-section .med-section-header {
        margin-bottom: 1.6rem;
    }
    .med-arch-card-title{
        margin: 0 0 1.2rem 0;
    }

    .med-scenario-tabs {
        justify-content: space-around;
        margin-bottom: 1.6rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.6rem;
        -webkit-overflow-scrolling: touch;
    }

    .med-scenario-tab {
        flex: 0 0 auto;
        width: auto;
        min-width: 10.4rem;
        height: 3.4rem;
        padding: 0 1.4rem;
        font-size: 1.4rem;
    }

    .med-scenario-tab__inner {
        gap: 0.4rem;
    }

    .med-scenario-tab__icon {
        width: 2rem;
        height: 2rem;
    }

    .med-scenario-panel-inner {
        padding: 1.6rem 1.2rem;
        gap: 0;
        min-height: 0;
        height: auto;
        border-radius: 2rem;
    }

    #med-scenario-before .med-scenario-panel-inner {
        padding-top: 2.4rem;
    }

    .med-scenario-text {
        max-width: 100%;
    }

    .med-scenario-panel-title {
        font-size: 1.8rem;
        line-height: 1.35;
        margin-bottom: 1.2rem;
    }

    .med-scenario-list li {
       height: 8rem;
    }

    .med-scenario-list li p {
        font-size: 1.8rem;
        padding-left: 1rem;
        margin-bottom: 0.4rem;
        line-height: 1.4;
    }

    .med-scenario-list li p::before {
        width: 0.35rem;
        border-radius: 0.15rem;
    }

    .med-scenario-list li span {
        font-size: 1.4rem;
        line-height: 1.75;
        padding-left: 1rem;
    }

    .med-case-card {
        flex: 0 0 100cqi;
    }

    .med-cases-nav {
        width: 3.2rem;
        height: 3.2rem;
        font-size: 2rem;
    }
    .med-scenario-panel-title__rest,.med-scenario-panel-title__prefix{
        font-size: 1.8rem;
    }

}
