/* 服务介绍 — 手机端卡片网格（PC 见 service-section-desktop.css） */
@media (max-width: 768px) {
    .service-marvis__card--desktop {
        display: none !important;
    }
}

.service {
    background: #fff;
    color: #333;
}

.service .section-title {
    color: #333;
    margin-bottom: 0;
    text-align: center;
}

.service-subtitle {
    text-align: center;
    color: #00b8d4;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 2px;
}

.service-marvis__padding {
    padding: 0 var(--page-gutter);
}

.service-marvis__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.service-marvis__item {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
    border-radius: 16px;
    border: 1px solid rgba(20, 171, 171, 0.14);
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 171, 171, 0.08);
    box-sizing: border-box;
}

.service-marvis__item-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #14abab;
    line-height: 1.4;
    margin-bottom: 8px;
}

.service-marvis__item-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.service-marvis__item-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #666;
}

.service-marvis__item-visual {
    position: relative;
    margin-top: 20px;
    min-height: 200px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f4fbfb 0%, #eaf6f6 100%);
    border: 1px solid rgba(20, 171, 171, 0.1);
    overflow: hidden;
}

.service-marvis__item-visual--tall {
    min-height: 260px;
}

@keyframes supply-long-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(calc(-100% + 100% / 3.2));
    }
}

@media (max-width: 1100px) {
    .service-marvis__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service {
        padding: 56px 0 48px;
        min-height: 0;
        align-items: flex-start;
        display: block;
        overflow: visible;
    }

    .service-subtitle {
        margin-bottom: 28px;
        font-size: 15px;
    }

    .service-marvis__item {
        padding: 20px 18px 18px;
    }

    .service-marvis__item-title {
        font-size: 18px;
    }

    .service-marvis__item-visual {
        min-height: 0;
        background: #fff;
        border-color: rgba(20, 171, 171, 0.08);
    }

    .service-marvis__item-visual--tall {
        min-height: 0;
    }

    .service-marvis__item-visual:has(.service-marvis__tab-stack),
    .service-marvis__item-visual:has(.service-marvis__supply-showcase) {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .service-marvis__item-visual .service-marvis__tab-stack {
        position: absolute;
        inset: 0;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .service-marvis__item-visual .service-marvis__tab-stack img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .service-marvis__item-visual .service-marvis__tab-base {
        z-index: 1;
    }

    .service-marvis__item-visual .service-marvis__tab-overlay {
        z-index: 2;
        opacity: 1;
        transition: opacity 2.4s ease;
    }

    .service-marvis__item-visual .service-marvis__tab-overlay--unfold {
        opacity: 1;
        clip-path: inset(0 0 0 100%);
        transition: clip-path 2.4s cubic-bezier(0.33, 0, 0.2, 1);
        will-change: clip-path;
    }

    .service-marvis__item-visual .service-marvis__tab-stack.is-revealed .service-marvis__tab-overlay {
        opacity: 0;
    }

    .service-marvis__item-visual .service-marvis__tab-stack.is-revealed .service-marvis__tab-overlay--unfold {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }

    /* 患者端 */
    .service-marvis__item[data-index="2"] .service-marvis__item-visual {
        aspect-ratio: 16 / 10;
    }

    .service-marvis__item[data-index="2"] .service-marvis__patient-showcase {
        position: absolute;
        inset: 0;
        width: auto;
        margin: 0;
        background: #fff;
        transform: scale(0.92);
        transform-origin: center center;
    }

    .service-marvis__item[data-index="2"] .service-marvis__patient-desktop {
        position: absolute;
        right: 0;
        top: 50%;
        width: 76%;
        height: auto !important;
        transform: translateY(-50%);
        z-index: 1;
    }

    .service-marvis__item[data-index="2"] .service-marvis__phone-shell {
        position: absolute;
        left: 5%;
        top: 54%;
        width: min(26%, 78px);
        max-width: none;
        transform: translateY(-50%);
        z-index: 2;
        overflow: hidden;
        border-radius: 20px;
    }

    .service-marvis__item[data-index="2"] .service-marvis__phone-shell > img:first-child {
        position: relative;
        z-index: 3;
        width: 100%;
        height: auto;
        display: block;
    }

    .service-marvis__item[data-index="2"] .service-marvis__phone-screen {
        position: absolute;
        left: 11%;
        top: 5.5%;
        width: 78%;
        height: 89%;
        border-radius: 10px;
        object-fit: cover;
        object-position: top center;
        background: #fff;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .service-marvis__item[data-index="2"] .service-marvis__phone-screen.is-active {
        opacity: 1;
    }

    /* 供应链 */
    .service-marvis__item[data-index="3"] .service-marvis__item-visual {
        aspect-ratio: 16 / 10;
    }

    .service-marvis__item[data-index="3"] .service-marvis__supply-showcase {
        position: absolute;
        inset: 0;
        width: auto;
        margin: 0;
        overflow: hidden;
        background: #fff;
    }

    .service-marvis__item[data-index="3"] .service-marvis__supply-base {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 42% center;
    }

    .service-marvis__item[data-index="3"] .service-marvis__supply-screen {
        position: absolute;
        left: 28%;
        top: 20.6%;
        width: 62.2%;
        height: 60.2%;
        border-radius: 7px;
        opacity: 1;
        transform: none;
        overflow: hidden;
        background: #fff;
    }

    .service-marvis__item[data-index="3"] .service-marvis__supply-screen img {
        width: 100%;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: top center;
        animation: supply-long-scroll 14s ease-in-out infinite alternate;
    }

    /* 义齿 */
    .service-marvis__item[data-index="4"] .service-marvis__item-visual {
        aspect-ratio: 16 / 10;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-showcase {
        position: absolute;
        inset: 0;
        background: #fff;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-desktop {
        position: absolute;
        left: -1%;
        top: 50%;
        width: 76%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-desktop-viewport {
        position: absolute;
        left: 11.85%;
        top: 6.3%;
        width: 78.2%;
        height: 82.8%;
        overflow: hidden;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-desktop-shell {
        position: relative;
        z-index: 3;
        width: 100%;
        height: auto;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-desktop-screen {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        opacity: 0;
        transition: opacity 0.7s ease;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-phone {
        position: absolute;
        right: 2%;
        top: 50%;
        width: min(22%, 76px);
        transform: translateY(-50%);
        z-index: 4;
        overflow: hidden;
        border-radius: 22px;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-phone-shell {
        position: relative;
        z-index: 3;
        width: 100%;
        height: auto;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-phone-screen {
        position: absolute;
        left: 8%;
        top: 2%;
        width: 85%;
        height: 93%;
        border-radius: 11px;
        clip-path: inset(0 round 11px);
        object-fit: cover;
        object-position: top center;
        opacity: 0;
        transition: opacity 0.7s ease;
    }

    .service-marvis__item[data-index="4"] .service-marvis__denture-desktop-screen.is-active,
    .service-marvis__item[data-index="4"] .service-marvis__denture-phone-screen.is-active {
        opacity: 1;
    }
}
