.yes-home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--yes-ink, #111);
    padding: 64px 0 72px;
}

.yes-home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 56px;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.yes-home-hero__copy-stack,
.yes-home-hero__media-stack {
    display: grid;
}

.yes-home-hero__copy,
.yes-home-hero__media {
    grid-area: 1 / 1;
    min-width: 0;
}

.yes-home-hero__copy {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .45s ease, transform .55s ease, visibility .55s;
}

.yes-home-hero__copy.is-active,
.yes-home-hero__media.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.yes-home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 7px 14px;
    border: 2px solid var(--yes-ink, #111);
    border-radius: 999px;
    background: var(--yes-yellow, #ffe600);
    color: var(--yes-ink, #111);
    box-shadow: 4px 4px 0 var(--yes-ink, #111);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
}

.yes-home-hero__badge-dot {
    color: var(--yes-pink, #ff007f);
}

.yes-home-hero__title {
    margin: 0;
    color: #111;
    font-size: clamp(38px, 5.6vw, 70px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.06;
}

.yes-home-hero__title-line,
.yes-home-hero__title-highlight {
    display: block;
}

.yes-home-hero__title-highlight {
    color: var(--yes-pink, #ff007f);
    text-decoration: underline;
    text-decoration-color: var(--yes-yellow, #ffe600);
    text-decoration-thickness: 8px;
    text-underline-offset: 6px;
}

.yes-home-hero__description {
    max-width: 720px;
    margin: 26px 0 0;
    color: #414146;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.8;
}

.yes-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.yes-home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 3px solid var(--yes-ink, #111);
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--yes-ink, #111);
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.yes-home-hero__button:hover,
.yes-home-hero__button:focus-visible {
    box-shadow: 2px 2px 0 var(--yes-ink, #111);
    transform: translate(3px, 3px);
}

.yes-home-hero__button--primary {
    background: var(--yes-pink, #ff007f);
    color: #fff;
}

.yes-home-hero__button--secondary {
    background: #fff;
    color: var(--yes-ink, #111);
}

.yes-home-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 2px solid rgba(17, 17, 17, .12);
}

.yes-home-hero__stat {
    padding: 12px;
    border: 2px solid var(--yes-ink, #111);
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 4px 4px 0 var(--yes-ink, #111);
}

.yes-home-hero__stat strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.yes-home-hero__stat strong.is-pink { color: var(--yes-pink, #ff007f); }
.yes-home-hero__stat strong.is-purple { color: #7c3aed; }
.yes-home-hero__stat strong.is-amber { color: #d97706; }

.yes-home-hero__stat span {
    display: block;
    margin-top: 4px;
    color: #62626b;
    font-size: 12px;
    font-weight: 800;
}

.yes-home-hero__media-column {
    min-width: 0;
}

.yes-home-hero__media-stack {
    position: relative;
}

.yes-home-hero__media {
    position: relative;
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px) scale(.985);
    transition: opacity .45s ease, transform .55s ease, visibility .55s;
}

.yes-home-hero__media.is-active {
    transform: none;
}

.yes-home-hero__photo {
    position: relative;
    overflow: hidden;
    height: 480px;
    border: 4px solid var(--yes-ink, #111);
    border-radius: 18px;
    background: #111;
    box-shadow: 12px 12px 0 var(--yes-ink, #111);
}

.yes-home-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s ease;
}

.yes-home-hero__photo:hover .yes-home-hero__image {
    transform: scale(1.04);
}

.yes-home-hero__dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
}

.yes-home-hero__dots button {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 2px solid var(--yes-ink, #111);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.yes-home-hero__dots button.is-active {
    background: var(--yes-pink, #ff007f);
    transform: scale(1.16);
}

.yes-home-hero__dots button:focus-visible {
    outline: 3px solid var(--yes-yellow, #ffe600);
    outline-offset: 3px;
}

.yes-home-hero__arrows {
    display: none;
}

@media (max-width: 1023px) {
    .yes-home-hero__inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .yes-home-hero__media {
        max-width: 430px;
    }
}

@media (max-width: 639px) {
    .yes-home-hero {
        padding: 44px 0 58px;
    }

    .yes-home-hero__inner {
        gap: 28px;
        padding: 0 16px;
    }

    .yes-home-hero__media-column {
        order: 1;
    }

    .yes-home-hero__copy-stack {
        order: 2;
    }

    .yes-home-hero__badge {
        font-size: 11px;
    }

    .yes-home-hero__description {
        margin-top: 20px;
        font-size: 16px;
    }

    .yes-home-hero__button {
        width: 100%;
        font-size: 15px;
    }

    .yes-home-hero__stat strong {
        font-size: 19px;
    }

    .yes-home-hero__stat span {
        font-size: 10px;
    }

    .yes-home-hero__photo {
        height: 360px;
        box-shadow: 8px 8px 0 var(--yes-ink, #111);
    }

    .yes-home-hero__arrows {
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .yes-home-hero__arrow {
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid rgba(255, 238, 170, .85);
        border-radius: 999px;
        background:
            linear-gradient(145deg, rgba(28, 28, 32, .88), rgba(8, 8, 10, .72));
        color: #fff8dc;
        box-shadow:
            0 10px 28px rgba(0, 0, 0, .32),
            inset 0 1px 0 rgba(255, 255, 255, .16),
            0 0 0 4px rgba(255, 230, 0, .08);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        backdrop-filter: blur(10px) saturate(140%);
        cursor: pointer;
        pointer-events: auto;
        transition:
            color .2s ease,
            background .2s ease,
            border-color .2s ease,
            box-shadow .2s ease,
            transform .2s ease;
    }

    .yes-home-hero__arrow::before {
        position: absolute;
        inset: 1px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: inherit;
        content: '';
        pointer-events: none;
    }

    .yes-home-hero__arrow svg {
        position: relative;
        z-index: 1;
        width: 24px;
        height: 24px;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .yes-home-hero__arrow:focus-visible {
        border-color: var(--yes-yellow, #ffe600);
        outline: none;
        box-shadow:
            0 12px 32px rgba(0, 0, 0, .38),
            0 0 0 4px rgba(255, 230, 0, .32);
    }

    .yes-home-hero__arrow:active {
        border-color: var(--yes-yellow, #ffe600);
        background: linear-gradient(145deg, #ffe600, #f7c900);
        color: var(--yes-ink, #111);
        box-shadow:
            0 6px 18px rgba(0, 0, 0, .26),
            0 0 0 4px rgba(255, 230, 0, .25);
        transform: scale(.94);
    }

    .yes-home-hero__dots {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yes-home-hero__copy,
    .yes-home-hero__media,
    .yes-home-hero__image,
    .yes-home-hero__button,
    .yes-home-hero__dots button {
        transition: none;
    }
}

/* ─────────────────────────────────────────────────────────────
   手機／細平板「左右排列」模式
   後台 外觀 → 主題選項 → 頁 → Hero layout on mobile
   （stacked = 上下堆疊；copy-left / media-left = 左右並排）
   以下規則只喺 .is-mobile-split 出現時生效，所以預設外觀零改動。
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .yes-home-hero.is-mobile-split .yes-home-hero__inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        gap: 32px;
        align-items: center;
    }

    /* 文字左・圖片右（同桌面版一致） */
    .yes-home-hero.is-mobile-split .yes-home-hero__copy-stack {
        order: 1;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__media-column {
        order: 2;
    }

    /* 圖片左・文字右 */
    .yes-home-hero.is-mobile-split--media-left .yes-home-hero__copy-stack {
        order: 2;
    }

    .yes-home-hero.is-mobile-split--media-left .yes-home-hero__media-column {
        order: 1;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__media {
        max-width: 100%;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__title {
        font-size: clamp(26px, 4.4vw, 50px);
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__photo {
        height: 320px;
    }
}

@media (max-width: 639px) {
    .yes-home-hero.is-mobile-split .yes-home-hero__inner {
        gap: 16px;
        padding: 0 14px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__badge {
        gap: 5px;
        margin-bottom: 10px;
        padding: 4px 9px;
        border-width: 1.5px;
        box-shadow: 2px 2px 0 var(--yes-ink, #111);
        font-size: 9px;
        letter-spacing: .02em;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__title {
        font-size: clamp(18px, 5vw, 27px);
        letter-spacing: -.03em;
        line-height: 1.12;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__title-highlight {
        text-decoration-thickness: 4px;
        text-underline-offset: 3px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__description {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.65;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__actions {
        gap: 8px;
        margin-top: 12px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__button {
        padding: 8px 10px;
        border-width: 2px;
        border-radius: 9px;
        box-shadow: 3px 3px 0 var(--yes-ink, #111);
        font-size: 12px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__stats {
        gap: 5px;
        margin-top: 14px;
        padding-top: 10px;
        border-top-width: 1px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__stat {
        padding: 6px 4px;
        border-width: 1px;
        border-radius: 8px;
        box-shadow: 2px 2px 0 var(--yes-ink, #111);
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__stat strong {
        font-size: 12px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__stat span {
        margin-top: 2px;
        font-size: 8px;
        line-height: 1.25;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__photo {
        height: 250px;
        border-width: 3px;
        border-radius: 14px;
        box-shadow: 6px 6px 0 var(--yes-ink, #111);
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__arrows {
        padding: 0 6px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__arrow {
        width: 34px;
        height: 34px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__arrow svg {
        width: 17px;
        height: 17px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__dots {
        gap: 6px;
        margin-top: 12px;
    }

    .yes-home-hero.is-mobile-split .yes-home-hero__dots button {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
}
