/**
 * ICWS Home - Banner / Promo / Procedures / Conditions
 * 配色: #6F0B65, #8F0B65, #C7C7C7, #2A2A2A
 */

:root {
}

/* ========== 1. Banner：高度适应图片、完整显示；描述+按钮叠在图片上 ========== */
.home-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.home-banner .banner-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.home-banner .banner-slider .slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    height: 100%;
}
.home-banner .slide-inner {
    position: relative;
    width: 100%;
    line-height: 0;
}
.home-banner .banner-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 0 64px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);

}

.home-banner .banner-desc {
    font-size: clamp(2.5rem, 2vw, 2.85rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    max-width: 955px;
}
.home-banner .banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #6F0B65;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.3s;
    margin-top:40px;
    width: 176px;
    height: 48px;
}
.home-banner .banner-btn:hover {
    background: #8B1D7F;
    color: #fff;
}
.home-banner .slide-prev,
.home-banner .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
}
.home-banner .slide-prev { left: 20px; }
.home-banner .slide-next { right: 20px; }
.home-banner .slide-prev img,
.home-banner .slide-next img { width: 100%; height: 100%; }
.home-banner .banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.home-banner .indicator {
    width: 16px;
    height: 6px;
    background:#AFAFAF;
    cursor: pointer;
    transition: background 0.3s;
/* border-radius: 10px; */

}
.home-banner .indicator.active { 
    background: #CBFFB5;
width: 56px;
}

/* 轮播等高：固定宽高比，图片完整显示不裁剪 */
.home-banner .banner-slider .slide .slide-inner {
    aspect-ratio: 1920 / 620;
    background: #1a1a1a;
}
.home-banner .banner-slider .slide .slide-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========== 2. 医生区：图放大、底部与区块底对齐 ========== */
.home-promo {
    background: #66055c;
    margin: 120px 0 0;
    overflow: hidden;
    min-height: 280px;
}
.home-promo .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    /*gap:40px;*/
    min-height: 280px;
    background: #66055c;
}
.home-promo-text {
    flex: 1;
    /*max-width: 670px;*/
    padding: 48px;
    text-align: center;
}
.home-promo-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 48px;
    margin-bottom: 24px;
    text-align: center;
}
.home-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 279px;
    height: 64px;
    gap: 8px;
    padding: 20px 40px;
    color: #e0e0e0;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    transition: background 0.3s, color 0.3s;
}
.home-promo-btn:hover {
    background: #f0f0f0;
    color: #6F0B65;
}
.home-promo-figure {
    flex-shrink: 0;
     width: min(52%, 560px);
    /*max-height: 420px;*/
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.home-promo-figure img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 360px;
    position:absolute;
    object-fit: contain;
    object-position: bottom right;
    display: block;
}

/* ========== 3. 术式：背景 #f0f2f5；名称在图片下白底居中；悬浮标题+描述居中 ========== */
.home-procedures {
    background: #ffffff;
    padding: 80px 0;
}
.home-procedures .section-head {
    margin-bottom: 48px;
}
.home-procedures .section-title {
    font-size: 48px;
    font-weight: 700;
    color: #6F0B65;
    margin-bottom: 8px;
}
.home-procedures .section-subtitle {
    font-size: 22px;
    color: #202A21;
    font-weight: 300;
}
.home-procedure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.home-procedure-card {
    position: relative;
    display: flex;
    box-shadow: 0rem 0.2rem 1.2rem -0.3rem rgba(0,0,0,0.16);
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.home-procedure-card .card-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.home-procedure-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.home-procedure-card:hover .card-img-wrap img {
    transform: scale(1.05);
}
.home-procedure-card .card-caption {
    background: #ffffff;
    padding: 0 12px;
    /*text-align: center;*/
    transition: background 0.35s ease, opacity 0.35s ease;
    border-bottom:.3rem solid #6F0B65;
}
.home-procedure-card:hover .card-caption {
    background: rgba(111, 11, 101, 0.85);
    opacity: 0;
    visibility: hidden;
}
.home-procedure-card .card-caption-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #2a2a2a;
    transition: color 0.35s ease;
    line-height:32px
}
.home-procedure-card:hover .card-caption-title {
    color: #ffffff;
}
/* overlay 为 card 内独立兄弟，覆盖整张卡片（图+caption） */
.home-procedure-card .card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background 0.35s ease;
}
.home-procedure-card:hover .card-overlay {
    background: rgba(111, 11, 101);
}
.home-procedure-card .card-overlay .card-title {
    font-size:28px;
    line-height:32px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.home-procedure-card:hover .card-overlay .card-title {
    opacity: 1;
}
.home-procedure-card .card-desc {
    font-size: 20px;
    color: #ffffff;
    line-height: 32px;
    margin: 24px 0 0;
    font-weight: lighter;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
    text-align: center;
}
.home-procedure-card:hover .card-desc {
    max-height: 130px;
    opacity: 1;
    margin-top: 24px;
    padding: 0 32px;
}

/* ========== 4. Conditions：背景 #C7C7C7；分类标题左侧；子项下划线；列间距与图一致 ========== */
.home-conditions {
    background: #E8E6E6;
    padding: 80px 0;
}
.home-conditions .section-head {
    margin-bottom: 48px;
}
.home-conditions .section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #6F0B65;
    margin-bottom: 8px;
}
.home-conditions .section-subtitle {
    font-size: 1.4rem;
    color: #2A2A21;
    font-family: 'Lato';
    font-weight: 200;
}
.conditions-groups {
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.conditions-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* 分类标题在左侧，两列在右侧 */
.conditions-group-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 128px;
}
.conditions-group-row .group-title {
    flex-shrink: 0;
    width: 200px;
    text-align: left;
}
.conditions-group-row .conditions-cols {
    flex: 1;
    min-width: 0;
}
.conditions-group .group-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2A2A2A;
    margin: 0;
    font-family: 'Lato';
}
.conditions-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 144px;
    row-gap: 4px;
}
.conditions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.conditions-list li { margin-bottom: 0; }
.conditions-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: #2A2A2A;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid #C7C7C7;
    font-family: 'Lato';
}
.conditions-list a:hover {
    color: #6F0B65;
    border-bottom-color: #8F0B65;
}
.conditions-list a .arr {
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-left: 8px;
    color: inherit;
    transition: color 0.25s;
}
.conditions-list a:hover .arr {
    color: #6F0B65;
}

.conditions-arr-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    background-color: currentColor;
    mask: url('../images/arrow-right-s-line.svg') no-repeat center;
    mask-size: contain;
    -webkit-mask: url('../images/arrow-right-s-line.svg') no-repeat center;
    -webkit-mask-size: contain;
    transition: background-color 0.25s ease;
}

/* ========== 5. Health Express：独立区块，白底，标题 + 全部文章，悬浮放大 ========== */
.home-health {
    background: #ffffff;
    padding: 80px 0;
}
.home-health-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}
.home-health-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #6F0B65;
    margin: 0;
}
.home-health-all {
    color: #2A2A2A;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.25s;
}
.home-health-all:hover {
    color: #6F0B65;
    border-bottom: 1px solid #6F0B65;
}
.home-health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 33px;
}
.home-health-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    /* background: #fff; */
    /* box-shadow: 0 2px 12px rgba(0,0,0,0.06); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.home-health-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.home-health-card .card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.home-health-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-health-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.home-health-card .card-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
    border-radius: 0;
}
.home-health-card .card-tag.health-tips {
    background: rgba(111, 11, 101, 0.5);
    color: #6F0B65;
    
}
.home-health-card .card-tag.icws-news {
    background: #00423573;
    color: #004235;
}
.home-health-card .card-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: #2A2A2A;
    line-height: 1.45;
    margin: 0;
    transition: color 0.25s;
    font-family: 'Lato';
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-health-card:hover .card-title {
    color: #6F0B65;
}

/* ========== 响应式：基于全尺寸样式逐级适配 ========== */

/* 大平板 / 小桌面 - 通过 padding 和间距避免重叠，不缩小图像 */
@media (max-width: 1200px) {
    .home-promo .container {
        gap: 32px;
        padding: 0 32px;
        justify-content: space-between;
    }
    .home-promo-text {
        padding: 40px 32px 40px 0;
        min-width: 0;
    }
    .home-promo-text h2 { line-height: 1.4; }
    .home-promo-figure {
        position: relative;
    }
    .home-promo-figure img {
        position: relative;
        object-position: bottom right;
    }
    .conditions-cols { column-gap: 80px; }
    .conditions-group-row .group-title { width: 180px; }
    .conditions-group-row { gap: 32px; }
}

/* 平板 */
@media (max-width: 992px) {
    .home-banner .banner-slider .slide .slide-inner { aspect-ratio: 16 / 6; }
    .home-banner .banner-overlay {
        padding: 16% 12% 80px;
        gap: 24px;
    }
    .home-banner .banner-desc {
        font-size: clamp(1.5rem, 4vw, 2rem);
        max-width: 100%;
    }
    .home-banner .banner-btn { padding: 11px 28px; font-size: 1rem; }

    /* 992以下：图片在上、文字在下，避免重叠 */
    .home-promo { margin: 40px 0 0; min-height: 280px; }
    .home-promo .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
        padding: 24px 16px 40px;
        gap: 24px;
        justify-content: flex-start;
    }
    .home-promo-text {
        max-width: 100%;
        padding: 0;
        text-align: center;
        order: 2;
    }
    .home-promo-text h2 { text-align: center; margin: 20px; }
    .home-promo-figure {
        width: 100%;
        max-width: 420px;
        margin: 0;
        justify-content: center;
        align-items: center;
        display: flex;
        order: 1;
    }
    .home-promo-figure img { 
        position: relative;
        max-height: 320px;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .home-procedures { padding: 60px 0; }
    .home-procedures .section-head { margin-bottom: 36px; }
    .home-procedure-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .home-conditions { padding: 60px 0; }
    .home-conditions .section-head { margin-bottom: 36px; }
    .conditions-groups { gap: 44px; }
    .conditions-group-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .conditions-group-row .group-title {
        width: 100%;
        text-align: left;
    }
    .conditions-cols {
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
        width: 100%;
    }

    .home-health { padding: 60px 0; }
    .home-health-head { margin-bottom: 28px; }
    .home-health-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 小平板 / 大手机 */
@media (max-width: 768px) {
    .home-banner .banner-overlay {
        padding: 12% 10% 60px;
        gap: 20px;
    }
    .home-banner .banner-desc { font-size: clamp(1.25rem, 4.5vw, 1.6rem); }
    .home-banner .banner-btn { padding: 10px 24px; font-size: 0.95rem; }

    .home-promo { margin: 32px 0 0; }
    /*.home-promo .container { */
    /*    padding-bottom: 32px; */
    /*    gap: 32px;*/
    /*    justify-content: flex-end;*/
    /*}*/
    .home-promo-text h2 { font-size: clamp(1.25rem, 4vw, 1.5rem); }
    .home-promo-figure { 
        max-width: 360px;
        align-items: flex-end;
        justify-content: center;
    }
    .home-promo-figure img { 
        max-height: 280px;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: bottom center;
    }
    .home-promo-btn { padding: 11px 24px; font-size: 0.95rem; }

    .home-procedures { padding: 48px 0; }
    .home-procedures .section-head { margin-bottom: 28px; }
    .home-procedures .section-title { font-size: clamp(1.5rem, 5vw, 1.85rem); }
    .home-procedures .section-subtitle { font-size: 0.95rem; }
    .home-procedure-grid { gap: 16px; }
    .home-procedure-card .card-caption { padding: 14px 10px; }
    /*.home-procedure-card .card-caption-title { font-size: 1rem; }*/
    .home-procedure-card .card-overlay { padding: 20px 16px; }
    .home-procedure-card .card-overlay .card-title { font-size: 1rem; }
    .home-procedure-card .card-desc { font-size: 0.85rem; }

    .home-conditions { padding: 48px 0; }
    .home-conditions .section-head { margin-bottom: 28px; }
    .home-conditions .section-title { font-size: clamp(1.5rem, 5vw, 1.85rem); }
    .home-conditions .section-subtitle { font-size: 0.95rem; }
    .conditions-groups { gap: 36px; }
    .conditions-group .group-title { font-size: 1.1rem; }
    .conditions-cols {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 0;
    }
    .conditions-list a { padding: 12px 0; font-size: 0.95rem; }
    .conditions-list a .arr { font-size: 1.15rem; }

    .home-health { padding: 48px 0; }
    .home-health-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }
    .home-health-title { font-size: clamp(1.5rem, 5vw, 1.85rem); }
    .home-health-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .home-health-card .card-body { padding: 14px; }
    .home-health-card .card-title { font-size: 0.95rem; }
}

/* 手机 */
@media (max-width: 576px) {
    .home-banner .banner-slider .slide .slide-inner { aspect-ratio: 4 / 3; }
    .home-banner .banner-overlay {
        padding: 10% 16px 48px;
        gap: 16px;
        align-items: center;
    }
    .home-banner .banner-desc {
        font-size: 1.1rem;
        text-align: center;
        max-width: 100%;
    }
    .home-banner .banner-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        align-self: center;
    }

    .home-promo { margin: 24px 0 0; }
    .home-promo .container { 
        padding-bottom: 24px; 
        gap: 24px;
        justify-content: flex-end;
    }
    .home-promo-text h2 { font-size: 1.2rem; margin: 16px; }
    .home-promo-figure { 
        max-width: 100%;
        align-items: flex-end;
        justify-content: center;
    }
    .home-promo-figure img { 
        max-height: 240px;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: bottom center;
    }
    .home-promo-btn { padding: 10px 20px; font-size: 0.9rem; }

    .home-procedures { padding: 40px 0; }
    .home-procedures .section-head { margin-bottom: 24px; }
    .home-procedure-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-conditions { padding: 40px 0; }
    .home-conditions .section-head { margin-bottom: 24px; }
    .conditions-groups { gap: 32px; }
    .conditions-list a { padding: 10px 0; font-size: 0.9rem; }
    .conditions-list a .arr { font-size: 1.1rem; }

    .home-health { padding: 40px 0; }
    .home-health-head { margin-bottom: 20px; }
    .home-health-grid { gap: 16px; }
    .home-health-card:hover { transform: scale(1.02); }
}
