/* 內容區塊通用-start */
.breast-disease-section {
    padding: 64px 0;
    scroll-margin-top: calc(var(--bd-nav-top, 90px) + 80px);
}

.breast-disease-section.breast-disease-overview {
    padding-top: 56px;
    background: var(--tcm-cream);
}

.breast-disease-block {
    background: #fff;
}

.breast-disease-block--alt {
    background: var(--tcm-cream);
}

.breast-disease-block-head {
    text-align: center;
    margin-bottom: 36px;

    .section-divider {
        margin-top: 16px;
    }
}

.breast-disease-block-title {
    margin: 0;
    font-family: var(--family-font);
    font-size: 36px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.06em;
}

.breast-disease-lead {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 17px;
    line-height: 1.9;
    color: rgba(44, 36, 22, 0.82);

    &.breast-disease-lead--left {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        max-width: none;
    }
}

.breast-disease-text {
    max-width: 960px;

    p {
        margin: 0 0 18px;
        font-size: 16px;
        line-height: 1.9;
        color: rgba(44, 36, 22, 0.82);

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.breast-disease-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    list-style: none;

    .breast-disease-highlight-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 220px;
        padding: 36px 28px 32px;
        background: #fff;
        border: 1px solid var(--tcm-border);
        box-shadow: var(--tcm-shadow);
        overflow: hidden;
        transition: var(--transition);

        &::after {
            content: '';
            position: absolute;
            right: 14px;
            bottom: 14px;
            width: 36px;
            height: 36px;
            border-right: 2px solid var(--tcm-gold);
            border-bottom: 2px solid var(--tcm-gold);
            opacity: 0.45;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        &:hover {
            transform: translateY(-6px);
            border-color: rgba(179, 32, 44, 0.16);
            box-shadow: 0 16px 36px rgba(44, 36, 22, 0.1);

            &::after {
                opacity: 0.85;
            }


        }
    }

    .breast-disease-highlight-num {
        position: absolute;
        top: 18px;
        right: 22px;
        font-family: var(--family-font);
        font-size: 54px;
        font-weight: 500;
        line-height: 1;
        color: var(--primary-color);
        opacity: 0.14;
        letter-spacing: 0.04em;
        pointer-events: none;
    }

    .overview-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }

    .breast-disease-highlight-text {
        margin: 0;
        max-width: 220px;
        font-family: var(--family-font);
        font-size: 18px;
        font-weight: 500;
        line-height: 1.65;
        color: var(--tcm-ink);
        letter-spacing: 0.06em;
    }
}

.breast-disease-media-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.breast-disease-media-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 320px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);
    overflow: hidden;
    transition: var(--transition);

    &:hover {
        border-color: rgba(179, 32, 44, 0.16);
        box-shadow: 0 16px 36px rgba(44, 36, 22, 0.1);

        .breast-disease-media-card-img img {
            transform: scale(1.04);
        }
    }

    &.breast-disease-media-card--reverse {
        .breast-disease-media-card-img {
            order: 2;
        }

        .breast-disease-media-card-body {
            order: 1;
        }
    }

    .breast-disease-media-card-img {
        position: relative;
        min-height: 280px;
        background: var(--tcm-cream);
        border-right: 1px solid var(--tcm-border);
        overflow: hidden;

        img {
            display: block;
            width: 100%;
            height: 100%;
            min-height: 248px;
            object-fit: cover;
            border: 1px solid var(--tcm-border);
            background: #fff;
            transition: transform 0.5s ease;
        }
    }

    &.breast-disease-media-card--reverse .breast-disease-media-card-img {
        border-right: none;
        border-left: 1px solid var(--tcm-border);
    }

    .breast-disease-media-card-body {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 32px 36px;

        &::after {
            content: '';
            position: absolute;
            right: 18px;
            bottom: 18px;
            width: 32px;
            height: 32px;
            border-right: 2px solid var(--tcm-gold);
            border-bottom: 2px solid var(--tcm-gold);
            opacity: 0.45;
            pointer-events: none;
        }

        .section-eyebrow {
            width: fit-content;
        }
    }

    .breast-disease-media-card-eyebrow {
        display: inline-block;
        margin-bottom: 12px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.22em;
        color: var(--primary-color);
    }

    .breast-disease-sub-title {
        margin-bottom: 16px;
    }

    .breast-disease-media-card-text {
        p {
            margin: 0 0 14px;
            font-size: 16px;
            line-height: 1.85;
            color: rgba(44, 36, 22, 0.82);

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.breast-disease-sub-title {
    margin: 0 0 14px;
    font-family: var(--family-font);
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.04em;
}

.breast-disease-treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 68px;
}

.breast-disease-treatment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);
    overflow: hidden;
    transition: var(--transition);

    &:hover {
        border-color: rgba(179, 32, 44, 0.16);
        box-shadow: 0 16px 36px rgba(44, 36, 22, 0.1);
        transform: translateY(-4px);

        .breast-disease-treatment-card-img img {
            transform: scale(1.05);
        }
    }

    .breast-disease-treatment-card-img {
        position: relative;
        aspect-ratio: 16 / 10;
        background: var(--tcm-cream);
        overflow: hidden;

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border: 1px solid var(--tcm-border);
            background: #fff;
            transition: transform 0.5s ease;
        }
    }

    .breast-disease-treatment-card-body {
        width: 60%;
        display: flex;
        flex-direction: column;
        padding: 28px 32px 32px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(2px);

        p {
            margin: 0;
            font-size: 16px;
            line-height: 1.85;
            color: #000000;
        }

        &::before {
            content: '';
            position: absolute;
            left: -18px;
            top: -18px;
            width: calc(100% + 36px);
            height: calc(100% + 36px);
            border: 3px solid rgba(255, 255, 255, 0.82);
        }
    }
}

.breast-disease-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.breast-disease-card {
    padding: 28px 28px 28px 32px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--tcm-shadow);

    p {
        margin: 0 0 14px;
        font-size: 16px;
        line-height: 1.85;
        color: rgba(44, 36, 22, 0.82);

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.breast-disease-block--alt .breast-disease-card {
    background: #fff;
}

.breast-disease-card-title {
    margin: 0 0 12px;
    font-family: var(--family-font);
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.04em;
}

.breast-disease-checklist-title {
    margin: 0 0 16px;
    font-family: var(--family-font);
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.04em;
}

.breast-disease-checklist {
    margin: 0;
    padding: 0;
    list-style: none;

    li {
        position: relative;
        padding: 10px 0 10px 32px;
        font-size: 16px;
        line-height: 1.75;
        color: var(--tcm-ink);
        border-bottom: 1px dashed rgba(44, 36, 22, 0.1);

        &:last-child {
            border-bottom: none;
        }

        &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 14px;
            width: 18px;
            height: 18px;
            background: var(--tcm-green);
            border-radius: 2px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
            background-size: 14px;
            background-repeat: no-repeat;
            background-position: center;
        }
    }
}

.intro-mission-highlights {
    position: relative;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--tcm-border);
    overflow: hidden;
    isolation: isolate;

    .breast-disease-deco {
        position: absolute;
        pointer-events: none;
        z-index: 0;
    }

    .breast-disease-deco--ring {
        top: -96px;
        right: 6%;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        box-shadow:
            inset 0 0 0 24px rgba(179, 32, 44, 0.028),
            0 0 0 36px rgba(179, 32, 44, 0.025);
    }

    .breast-disease-deco--leaf {
        bottom: -48px;
        left: -32px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        box-shadow:
            inset 0 0 0 20px rgba(201, 164, 92, 0.05),
            0 0 0 32px rgba(201, 164, 92, 0.035);
    }

    .intro-mission-highlight {
        position: relative;
        z-index: 1;
    }

    .intro-mission-highlight-body h3 {
        margin-bottom: 0;
    }

    &.intro-mission-highlights--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    &.intro-mission-highlights--stack {
        grid-template-columns: 1fr;
    }
}

.breast-disease-cyst-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: stretch;
}

.breast-disease-cyst-plan {
    display: flex;
    flex-direction: column;
    padding: 40px 36px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);

    .section-eyebrow {
        width: fit-content;
        margin-bottom: 14px;
    }

    .breast-disease-cyst-plan-title {
        margin: 0 0 20px;
        padding-bottom: 18px;
        font-family: var(--family-font);
        font-size: 24px;
        font-weight: 500;
        color: var(--primary-color);
        letter-spacing: 0.04em;
        border-bottom: 1px solid var(--tcm-border);
    }

    .breast-disease-cyst-plan-text {
        p {
            margin: 0 0 16px;
            font-size: 16px;
            line-height: 1.9;
            color: rgba(44, 36, 22, 0.82);

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.breast-disease-cyst-outcomes {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);

    .section-eyebrow {
        width: fit-content;
        margin-bottom: 14px;
    }

    .breast-disease-cyst-outcomes-title {
        margin: 0 0 24px;
        font-family: var(--family-font);
        font-size: 22px;
        font-weight: 500;
        color: var(--primary-color);
        letter-spacing: 0.04em;
        line-height: 1.45;
    }

    .intro-mission-highlights {
        flex: 1;
        margin-top: 0;
        padding: 28px 24px;
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* 圖文疊層橫幅-start */
.breast-disease-overlay-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);

    .breast-disease-overlay-banner-bg {
        position: absolute;
        inset: 0;

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }

    .breast-disease-overlay-banner-mask {
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg,
                rgba(44, 36, 22, 0.82) 30%,
                rgba(44, 36, 22, 0.58) 45%,
                rgba(44, 36, 22, 0.22) 100%);
    }

    .breast-disease-overlay-banner-content {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 720px;
        padding: 48px 52px;

        &::before,
        &::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            pointer-events: none;
        }

        &::before {
            top: 24px;
            left: 24px;
            border-top: 2px solid var(--tcm-gold);
            border-left: 2px solid var(--tcm-gold);
            opacity: 0.75;
        }

        &::after {
            right: 24px;
            bottom: 24px;
            border-right: 2px solid var(--tcm-gold);
            border-bottom: 2px solid var(--tcm-gold);
            opacity: 0.75;
        }

        p {
            margin: 0 0 16px;
            font-size: 16px;
            line-height: 1.9;
            color: rgba(255, 255, 255, 0.9);

            &:last-child {
                margin-bottom: 0;
            }
        }

        .breast-disease-overlay-banner-lead {
            margin-bottom: 18px;
            padding-left: 16px;
            font-family: var(--family-font);
            font-size: 20px;
            font-weight: 500;
            line-height: 1.65;
            letter-spacing: 0.04em;
            color: #fff;
        }
    }
}

/* 圖文疊層橫幅-end */
.mastitis-compare-label {
    margin: 0 0 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    text-align: center;
}

.mastitis-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.mastitis-faq-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 28px 24px 32px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);
    transition: var(--transition);
    overflow: hidden;

    &:hover {
        border-color: rgba(179, 32, 44, 0.25);
        box-shadow: 0 8px 28px rgba(44, 36, 22, 0.08);
    }
}

.mastitis-faq-card-deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    pointer-events: none;

    &::before,
    &::after {
        content: '';
        position: absolute;
        background: var(--tcm-gold);
    }

    &::before {
        top: 14px;
        right: 14px;
        width: 20px;
        height: 1px;
    }

    &::after {
        top: 14px;
        right: 14px;
        width: 1px;
        height: 20px;
    }
}

.mastitis-faq-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(179, 32, 44, 0.15);
    background: var(--tcm-red-light);
    color: var(--primary-color);
    font-family: var(--family-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.mastitis-faq-card-title {
    margin: 0;
    font-family: var(--family-font);
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.04em;
    line-height: 1.45;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tcm-border);
}

.mastitis-faq-card-body {
    flex: 1;

    p {
        margin: 0 0 14px;
        font-size: 15px;
        line-height: 1.85;
        color: rgba(44, 36, 22, 0.82);

        &:last-child {
            margin-bottom: 0;
        }
    }
}

/* 認識乳腺炎-end */

/* 良性增生-start */
#hyperplasia {
    .cards-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;

        .intro-mission-top {
            grid-template-columns: 1fr;
        }
    }
}

/* 良性增生-end */

/* 內容區塊通用-end */

/* 預約引導-start */
.breast-disease-cta-section {
    padding: 56px 0 80px;
    background: var(--tcm-cream);
}

.breast-disease-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 48px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);

    p {
        margin: 12px 0 0;
        font-size: 16px;
        line-height: 1.8;
        color: rgba(44, 36, 22, 0.78);
        max-width: 560px;
    }

    .primary-btn {
        flex-shrink: 0;
        padding: 12px 36px;
    }
}

/* 預約引導-end */