:root {
    --sb-pink: #d94f7d;
    --sb-pink-dark: #a92f5d;
    --sb-pink-soft: #fff3f7;
    --sb-pink-line: #f1ccd8;
    --sb-ink: #342d31;
    --sb-muted: #6f6268;
    --sb-white: #fff;
    --sb-shadow: 0 16px 42px rgba(130, 54, 82, 0.1);
}

html {
    scroll-behavior: smooth;
}

body.sb-homepage {
    background: #fffafb url("../images/bg_pink.webp") repeat;
    color: var(--sb-ink);
}

.sb-homepage *,
.sb-homepage *::before,
.sb-homepage *::after {
    box-sizing: border-box;
}

.sb-home-banner {
    position: relative;
    width: 100%;
    height: clamp(180px, 27.3vw, 365px);
    overflow: hidden;
    background: #f6e7ec;
}

.sb-home-banner::after {
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(to top, rgba(70, 28, 43, 0.18), transparent);
    content: "";
    pointer-events: none;
}

.sb-home-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

.sb-home-header {
    box-shadow: 0 3px 14px rgba(92, 39, 58, 0.12);
}

.sb-home-main {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 72px;
    color: var(--sb-ink);
    font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 18px;
    line-height: 1.9;
}

.sb-home-main p {
    margin: 0 0 20px;
}

.sb-first-cta-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 52px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--sb-pink-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 184, 207, 0.38), transparent 29%),
        linear-gradient(145deg, #fff2f7 0%, #fff 58%, #fff8fa 100%);
    box-shadow: var(--sb-shadow);
}

.sb-first-cta-hero::after {
    position: absolute;
    right: -72px;
    bottom: -86px;
    width: 210px;
    height: 210px;
    border: 28px solid rgba(217, 79, 125, 0.07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.sb-first-cta-card {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sb-eyebrow,
.sb-section-kicker {
    color: var(--sb-pink-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sb-first-cta-hero h1 {
    max-width: 900px;
    margin: 0 auto 20px;
    color: var(--sb-pink-dark);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.32;
    text-wrap: balance;
}

.sb-hero-intro {
    max-width: 880px;
    margin-right: auto !important;
    margin-bottom: 30px !important;
    margin-left: auto !important;
    color: #51464b;
    font-size: 19px;
}

.sb-cta-panel {
    display: flex;
    max-width: 760px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 28px clamp(18px, 4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 35px rgba(169, 47, 93, 0.11);
    backdrop-filter: blur(8px);
    text-align: center;
}

.sb-cta-panel h2 {
    margin: 0 0 18px;
    color: #802344;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.4;
}

.sb-brand-area {
    display: inline-block;
    margin-bottom: 18px;
    border-radius: 18px 4px 18px 4px;
    text-decoration: none;
}

.sb-brand-logo {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: inherit;
    background: linear-gradient(110deg, #f78ca0 0%, #f9748f 26%, #fd868c 68%, #fe9a8b 100%);
    box-shadow: 0 10px 26px rgba(220, 77, 116, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-brand-area:hover .sb-brand-logo,
.sb-brand-area:focus-visible .sb-brand-logo {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(220, 77, 116, 0.3);
}

.sb-brand-logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.sb-cta-text {
    color: #6e3b4d;
    font-size: 17px;
}

.sb-cta-highlight {
    margin-bottom: 18px !important;
    color: #9f2854;
    font-size: 22px;
    font-weight: 800;
}

.sb-cta-btn {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 13px 36px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5c8a, #ed2865);
    box-shadow: 0 12px 28px rgba(237, 40, 101, 0.27);
    color: var(--sb-white) !important;
    font-size: 23px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-cta-btn:hover,
.sb-cta-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(237, 40, 101, 0.36);
}

.sb-sponsored-note {
    margin: 12px 0 0 !important;
    color: #8c7f84;
    font-size: 13px;
}

.sb-content-section {
    margin: 0 0 48px;
    padding: clamp(25px, 4vw, 42px);
    border: 1px solid #f0dde3;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(104, 62, 77, 0.07);
}

.sb-section-heading {
    margin-bottom: 20px;
}

.sb-section-kicker {
    margin-bottom: 3px !important;
}

.sb-home-main .sb-content-section h2 {
    margin: 0;
    padding-left: 16px;
    border-left: 5px solid var(--sb-pink);
    color: #7e294a;
    font-size: clamp(27px, 4vw, 34px);
    line-height: 1.42;
}

.sb-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.sb-trust-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 24px 20px;
    border: 1px solid var(--sb-pink-line);
    border-radius: 18px;
    background: linear-gradient(160deg, #fff, #fff7f9);
}

.sb-card-number {
    display: inline-block;
    margin-bottom: 18px;
    color: #e8a0b7;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.sb-trust-card h3 {
    margin: 0 0 10px;
    color: var(--sb-pink-dark);
    font-size: 21px;
    line-height: 1.4;
}

.sb-trust-card p {
    margin: 0;
    color: var(--sb-muted);
    font-size: 16px;
    line-height: 1.75;
}

.sb-safety-note {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 5px solid #d89038;
    border-radius: 8px 16px 16px 8px;
    background: #fff8ec;
    color: #664c28;
}

.sb-info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 30px;
    align-items: center;
}

.sb-section-media {
    overflow: hidden;
    margin: 0;
    border: 1px solid #ead5dc;
    border-radius: 18px;
    background: #fff6f9;
    box-shadow: 0 12px 28px rgba(91, 47, 64, 0.1);
}

.sb-section-media img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
}

.sb-section-media figcaption {
    padding: 14px 17px;
    color: #6f5d64;
    font-size: 14px;
    line-height: 1.65;
}

.sb-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 26px 0 0;
    padding: 0;
    counter-reset: sb-check;
    list-style: none;
}

.sb-check-list li {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid #f0dbe2;
    border-radius: 14px;
    background: #fffafb;
    counter-increment: sb-check;
}

.sb-check-list li::before {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sb-pink);
    color: #fff;
    content: counter(sb-check);
    font-size: 14px;
    font-weight: 800;
}

.sb-check-list span {
    font-size: 16px;
    line-height: 1.65;
}

.sb-check-media {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 0;
    overflow: hidden;
    margin: 26px 0 0;
    border: 1px solid #ecd8df;
    border-radius: 18px;
    background: linear-gradient(120deg, #fff6f9, #fff);
}

.sb-check-media img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.sb-check-media figcaption {
    padding: 24px 28px;
    color: var(--sb-muted);
    font-size: 16px;
    line-height: 1.75;
}

.sb-check-media strong {
    display: block;
    margin-bottom: 6px;
    color: var(--sb-pink-dark);
    font-size: 20px;
}

.sb-table-wrap {
    width: 100%;
    margin-top: 26px;
    overflow-x: auto;
    border: 1px solid #ecd7de;
    border-radius: 16px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.sb-table-wrap:focus-visible {
    outline: 3px solid rgba(217, 79, 125, 0.3);
    outline-offset: 3px;
}

.sb-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.sb-table caption {
    padding: 13px 16px;
    background: #fff5f8;
    color: #75646a;
    font-size: 14px;
    text-align: left;
}

.sb-table th,
.sb-table td {
    padding: 16px;
    border-right: 1px solid #f2e2e7;
    border-bottom: 1px solid #f2e2e7;
    line-height: 1.65;
    text-align: left;
    vertical-align: top;
}

.sb-table thead th {
    background: #b43b69;
    color: #fff;
    font-size: 17px;
}

.sb-table tbody th {
    width: 130px;
    background: #fff3f7;
    color: #8d3154;
}

.sb-table tbody tr:nth-child(even) td {
    background: #fffafb;
}

.sb-risk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.sb-risk-grid div {
    padding: 20px;
    border-radius: 16px;
    background: #643546;
    color: #fff;
}

.sb-risk-grid strong,
.sb-risk-grid span {
    display: block;
}

.sb-risk-grid strong {
    margin-bottom: 8px;
    color: #ffdbe6;
    font-size: 19px;
}

.sb-risk-grid span {
    font-size: 15px;
    line-height: 1.7;
}

.sb-risk-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.sb-risk-media-grid figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid #ead7de;
    border-radius: 16px;
    background: #fff;
}

.sb-risk-media-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

.sb-risk-media-grid figcaption {
    padding: 15px 18px;
    color: var(--sb-muted);
    font-size: 14px;
    line-height: 1.65;
}

.sb-risk-media-grid strong {
    color: #8b2f52;
}

.sb-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.sb-related-grid a {
    position: relative;
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    padding: 22px 52px 22px 22px;
    border: 1px solid #efd5de;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #fff5f8);
    color: var(--sb-ink);
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-related-grid a::after {
    position: absolute;
    right: 20px;
    color: var(--sb-pink);
    content: "→";
    font-size: 25px;
}

.sb-related-grid a:hover,
.sb-related-grid a:focus-visible {
    transform: translateY(-2px);
    border-color: #dfa6b9;
    box-shadow: 0 10px 24px rgba(120, 55, 79, 0.1);
}

.sb-related-grid span {
    color: var(--sb-pink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.sb-related-grid strong {
    margin: 5px 0;
    color: #6f2642;
    font-size: 19px;
}

.sb-related-grid small {
    color: var(--sb-muted);
    font-size: 14px;
    line-height: 1.55;
}

.sb-faq-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.sb-faq-item {
    padding: 22px 24px;
    border: 1px solid #ecd9df;
    border-radius: 16px;
    background: #fffafb;
}

.sb-faq-item h3 {
    margin: 0 0 8px;
    color: #7f2a4b;
    font-size: 20px;
    line-height: 1.45;
}

.sb-faq-item p {
    margin: 0;
    color: var(--sb-muted);
    font-size: 16px;
    line-height: 1.8;
}

.sb-updated {
    margin: 22px 0 0 !important;
    color: #8d8185;
    font-size: 13px;
    text-align: right;
}

.avoid_lightbox {
    position: fixed;
    z-index: 99999999;
    top: 0;
    left: 0;
    display: none;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.42);
}

.avoid_light {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(90%, 500px);
    padding: 24px;
    transform: translate(-50%, -50%);
    background: #fff;
    font-size: 28px;
    text-align: center;
}

.avoid_light_txt p:first-child {
    color: #b82f59;
    font-size: 20px;
}

.avoid_light_txt p:nth-child(2) {
    font-weight: 700;
}

.avoid_light_check a p {
    margin-top: 12px;
    padding: 8px;
    border-radius: 6px;
    background: #5a5a5a;
    color: #fff;
    font-size: 16px;
}

.avoid_light_check:last-child a p {
    background: linear-gradient(to top, #f78ca0, #fe9a8b);
}

.avoid_light > span {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 900px) {
    .sb-info-layout {
        grid-template-columns: 1fr;
    }

    .sb-trust-grid,
    .sb-risk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sb-home-banner {
        height: 150px;
    }

    .sb-home-banner img {
        object-position: center 35%;
    }

    .sb-home-main {
        width: min(100% - 24px, 1120px);
        padding-top: 14px;
        font-size: 17px;
    }

    .sb-first-cta-hero {
        margin-bottom: 28px;
        padding: 25px 17px;
        border-radius: 20px;
    }

    .sb-first-cta-hero h1 {
        font-size: clamp(29px, 8vw, 37px);
    }

    .sb-hero-intro {
        font-size: 17px;
        line-height: 1.8;
    }

    .sb-cta-panel {
        border-radius: 17px;
    }

    .sb-cta-panel {
        padding: 24px 16px;
    }

    .sb-cta-btn {
        width: min(100%, 310px);
        padding-right: 18px;
        padding-left: 18px;
        font-size: 21px;
    }

    .sb-content-section {
        margin-bottom: 26px;
        padding: 24px 18px;
        border-radius: 18px;
    }

    .sb-home-main .sb-content-section h2 {
        padding-left: 12px;
        font-size: 27px;
    }

    .sb-trust-grid,
    .sb-check-list,
    .sb-risk-grid,
    .sb-related-grid,
    .sb-risk-media-grid {
        grid-template-columns: 1fr;
    }

    .sb-trust-card {
        min-height: auto;
    }

    .sb-check-media {
        grid-template-columns: 1fr;
    }

    .sb-check-media img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .sb-check-media figcaption {
        padding: 19px 20px;
    }

    .sb-table-wrap::after {
        display: block;
        padding: 8px 12px;
        background: #fff5f8;
        color: #8b737c;
        content: "可左右滑動查看完整表格";
        font-size: 12px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .sb-brand-logo,
    .sb-cta-btn,
    .sb-related-grid a {
        transition: none;
    }
}
