/* v11 共用頁尾 CTA band（about11 / faq11 等） */
.v11-cta {
    --v11-cta-paper: var(--theme11-paper, #fff);
    --v11-cta-line: var(--theme11-line, #e2e2e2);
    --v11-cta-text: var(--theme11-text, #111);
    --v11-cta-soft: var(--v11-soft-readable, var(--theme11-soft, #7a7a7a));
    --v11-cta-main: var(--theme11-main, #3f5a72);
    --v11-cta-radius: var(--v11-radius, 12px);
    width: min(var(--v11-maxw-wide, 1320px), 100% - 56px);
    margin: clamp(40px, 6vw, 72px) auto 0;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .v11-cta {
        width: var(--v11-content-width-mobile, min(1320px, calc(100% - 80px)));
    }
}

.v11-cta__inner {
    position: relative;
    display: grid;
    gap: clamp(24px, 4vw, 40px);
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
    border: 1px solid color-mix(in srgb, var(--v11-cta-line) 90%, transparent);
    border-radius: var(--v11-cta-radius);
    background: var(--v11-cta-paper);
    background-size: cover;
    background-position: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
}

@media (min-width: 800px) {
    .v11-cta__inner {
        grid-template-columns: 1fr auto;
        align-items: center;
        text-align: left;
    }
}

.v11-cta__title {
    margin: 0;
    font-family: var(--v11-font, var(--font-family));
    font-size: var(--v11-text-5, clamp(1.25rem, 2.2vw, 1.6rem));
    font-weight: var(--v11-weight-strong, 500);
    letter-spacing: var(--v11-ls-title, -0.01em);
    line-height: var(--v11-lh-tight, 1.35);
    color: var(--v11-cta-text);
}

.v11-cta__desc {
    margin: 12px 0 0;
    max-width: 36em;
    font-size: var(--v11-text-2, 0.9375rem);
    font-weight: var(--v11-weight-normal, 400);
    line-height: var(--v11-lh, 1.55);
    color: var(--v11-cta-soft);
}

.v11-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@media (min-width: 800px) {
    .v11-cta__actions {
        justify-content: flex-end;
        justify-self: end;
    }
}

.v11-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-height: 48px;
    min-width: 148px;
    padding: 0 28px;
    border: 1px solid var(--v11-cta-text);
    border-radius: var(--v11-cta-radius);
    background: var(--v11-cta-text);
    color: var(--theme11-active-text, #fff);
    font-size: var(--v11-text-2, 0.9375rem);
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

@media (min-width: 800px) {
    .v11-cta__btn {
        justify-self: end;
    }
}

.v11-cta__btn:hover {
    background: var(--v11-cta-main);
    border-color: var(--v11-cta-main);
    color: var(--theme11-active-text, #fff);
    transform: translateY(-2px);
}

.v11-cta__btn--ghost {
    background: transparent;
    color: var(--v11-cta-text);
}

.v11-cta__btn--ghost:hover {
    background: var(--v11-cta-text);
    border-color: var(--v11-cta-text);
    color: var(--theme11-active-text, #fff);
}

.v11-cta__btn:active {
    transform: translateY(0);
}

.v11-cta__btn:focus-visible {
    outline: none;
    box-shadow: var(--v11-focus-ring);
}

@media (prefers-reduced-motion: reduce) {
    .v11-cta__btn,
    .v11-cta__btn:hover,
    .v11-cta__btn:active {
        transition: none;
        transform: none;
    }
}

/* 詳情頁：CTA 已在版心內，改吃滿寬 */
.nd11-wrap > .v11-cta,
.ad11-wrap > .v11-cta {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* 底圖 + 暗遮罩（淺／深圖皆可讀白字） */
.v11-cta--cover .v11-cta__inner {
    border-color: transparent;
    color: #fff;
}

.v11-cta--cover .v11-cta__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(17, 17, 17, 0.52);
}

.v11-cta--cover .v11-cta__title {
    color: #fff;
}

.v11-cta--cover .v11-cta__desc {
    color: rgba(255, 255, 255, 0.88);
}

.v11-cta--cover .v11-cta__btn {
    background: #fff;
    border-color: #fff;
    color: #111;
}

.v11-cta--cover .v11-cta__btn:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.v11-cta--cover .v11-cta__btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.v11-cta--cover .v11-cta__btn--ghost:hover {
    background: #fff;
    border-color: #fff;
    color: #111;
}
