/* ---- 共用設定 ---- */
:root {
    --cream: #FFF8EF;
    --ink: #5d5c5a;
    --green: #2FA84F;
    --green-d: #248A41;
    --green-soft: #E7F6EC;
    --mint: #ccfd87;
    --coral: #FF7A45;
    --coral-d: #e96848;
    --coral-soft: #FFEBDF;
    --peach: #FFE0CC;
    --orange: #EF8A2C;
    --line: #F0E2D3;
    --muted: #7A6E63;
    --muted-2: #666;
    --faint: #8A7D71;
}

/* 768px 以上固定 1400px 版型寬度 */
.site-content {
    width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

/* ---- 全域 ---- */
img {
    max-width: 100%;
    display: block;
}

p {
    line-height: 1.7;
}

::selection {
    background: #FFE0CC;
}

.site-body {
    min-width: 1400px;
    /* 桌機固定寬，與 header/footer 一致 */

    background: #FFF;
    color: var(--ink);
    font-family: "Noto Sans TC", "微軟正黑體", Tahoma, Arial, Helvetica, sans-serif;
}

[id^="scw_"] {
    scroll-margin-top: 80px;
}

/* 區塊標題 */
.eyebrow {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.eyebrow--green {
    color: var(--green);
}

.eyebrow--coral {
    color: var(--coral);
}

.eyebrow--cream {
    color: #FFE3C2;
}

.content-title {
    font-weight: 900;
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #24241a;
}

.lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--muted);
}

.link {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.section-head {
    max-width: 40em;
    margin-bottom: 44px;
}

.section-head--wide {
    max-width: 44em;
}

.section-head--center {
    max-width: none;
    text-align: center;
}

.section-head .content-title {
    margin-bottom: 12px;
}

/* 進場動畫 */
[class^="se-"]:not(.se-1) {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[class^="se-"].ani {
    opacity: 1;
    transform: translateY(0);
}

/* ---- 頁面按鈕（qbtn，避免與 frame.css 的 .btn 衝突） ---- */
.qbtn--primary,
.qbtn--white {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    border-radius: 999px;
    font-size: 16px;
    padding: 8px 26px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.qbtn--primary:hover,
.qbtn--white:hover {
    transform: translateY(-2px);
}

.qbtn--primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(47, 168, 79, .32);
}

.qbtn--primary:hover,
.qbtn--primary.on-touch {
    background: var(--green-d);
    color: #fff;
}

.qbtn--white {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.qbtn--white:hover,
.qbtn--white.on-touch {
    color: var(--ink);
}

/* ---- hero ---- */
.hero {
    height: 770px;
    background: url(../images/mainbg.png) center bottom / cover no-repeat;
}

.hero .site-content {
    padding-top: 170px;
}

.hero__badge {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 16px;
    background: var(--peach);
    color: var(--coral-d);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero__title {
    font-weight: 900;
    font-size: 52px;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.hero__title .accent {
    color: var(--green);
}

.hero__desc {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--muted-2);
    max-width: 30em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 32px;
}

.stat__num {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--green);
    line-height: 1;
}

.stat__num.sn-inf {
    font-size: 36px;
    height: 26px;
}

.stat__num small {
    font-size: 15px;
}

.stat__label {
    font-size: 12.5px;
    color: var(--faint);
    margin-top: 5px;
}

.stat__sep {
    width: 1px;
    background: rgba(43, 35, 32, .15);
}

/* ---- 什麼是（橘色卡片，上緣疊在 hero 照片上） ---- */
.what {
    padding-bottom: 20px;
    position: relative;
    margin-top: -6%;
    margin-bottom: 120px;
}

.what__card {
    position: relative;
    background: var(--orange);
    border-radius: 24px;
    padding: 44px 56px;
    color: #fff;
    overflow: hidden;
}

.what__blob1 {
    position: absolute;
    top: -70px;
    right: 120px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, .10);
    border-radius: 50%;
    pointer-events: none;
}

.what__blob2 {
    position: absolute;
    bottom: -90px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

.what__grid {
    position: relative;
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 60px;
    align-items: center;
}

.what__card .content-title {
    color: #fff;
}

.what__text {
    font-size: 18px;
    line-height: 1.9;
    color: #fff;
}

/* ---- 適合誰 ---- */
.who {
    background: #fff;
}

.who .site-content {
    padding-top:0px;
    padding-bottom: 84px;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.who-card {
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.who-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(47, 168, 79, .16);
    border-color: #B9E3C6;
}

.who-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.who-icon {
    width: 48px;
    height: 48px;
    background: var(--green-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}

.who-icon img {
    height: 26px;
}

.who-card:hover .who-icon {
    background: var(--green);
}

.who-tag {
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--coral-d);
}

.card-title {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #2b2529;
}

.card-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

/* icon 常態 / hover 圖切換 */
.icon-hover {
    display: none;
}

.who-card:hover .who-icon,
.feat-card:hover .feat-icon {
    transform: rotate(-6deg);
}

.who-card:hover .icon-normal,
.feat-card:hover .icon-normal {
    display: none;
}

.who-card:hover .icon-hover,
.feat-card:hover .icon-hover {
    display: block;
}

/* ---- 為什麼選綠界 ---- */
.why {
    background: #FFF8EF;
}
.why .site-content {
    padding-top: 84px;
    padding-bottom: 84px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}

.why-grid>* {
    grid-column: span 2;
}

.why-grid>*:nth-child(4),
.why-grid>*:nth-child(5) {
    grid-column: span 3;
}

.feat-card {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 26px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(255, 122, 69, .16);
    border-color: #FFC9AC;
}

.feat-icon {
    width: 50px;
    height: 50px;
    flex: none;
    background: var(--coral-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}

.feat-icon img {
    height: 26px;
}

.feat-card:hover .feat-icon {
    background: var(--coral);
}

.feat-card .card-title {
    margin-bottom: 7px;
    color: #321e1d;
    
}

/* 綠色橫幅 */
.pay-strip {
    margin-top: 26px;
    position: relative;
    background: var(--green);
    border-radius: 20px;
    min-height: 120px;
    padding: 24px 56px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}

.pay-strip__txt {
    flex: none;
}

.pay-strip__title {
    color: #fff;
    font-weight: 900;
    font-size: 22px;
}

.pay-strip__sub {
    color: #DFF3E4;
    font-size: 13.5px;
    margin-top: 6px;
}

.pay-strip__art {
    position: absolute;
    left: 350px;
    bottom: 0;
    width: 340px;
    pointer-events: none;
}

.pay-strip__art img {
    width: 100%;
}

.pay-strip__list {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    max-width: 560px;
}

.pay-chip {
    padding: 12px 18px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

/* ---- 如何開始 ---- */
.how {
    background: #fff;
}

.how .site-content {
    padding-top: 84px;
    padding-bottom: 84px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    background: var(--green);
    border-radius: 18px;
    padding: 26px 28px;
    color: #fff;
}

.step__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step__num {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--mint);
    line-height: 1;
}

.step__icon {
    width: 58px;
    height: auto;
}

.step .card-title {
    font-size: 17px;
    margin-bottom: 8px;
    color: #fff;
}

.step p {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .92);
}

.step .link {
    color: var(--mint);
    font-weight: normal;
}

/* ---- FAQ ---- */
.faq {
    background: #FFF8EF;
}

.faq .site-content {
    padding-top: 84px;
    padding-bottom: 100px;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 18px 22px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-size: 17px;
    line-height: 1.5;
    color: #2f221c;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-sign {
    flex: none;
    width: 24px;
    height: 24px;
    background: var(--green-soft);
    border-radius: 8px;
    color: var(--green);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

.faq-item[open] .faq-sign {
    transform: rotate(45deg);
}

.faq-a {
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--muted-2);
}

/* ---- 尊重使用者的減少動態偏好 ---- */
@media (prefers-reduced-motion:reduce) {
    [class^="se-"] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ============================================
   RWD: max-width 768px（平板 / 手機）
   ============================================ */
@media (max-width: 768px) {

    /* 解除固定寬 */
    .site-content {
        width: 100%;
        padding: 0 20px;
    }

    .site-body {
        min-width: 0;
        padding-top: 50px;
    }

    [id^="scw_"] {
        scroll-margin-top: 50px;
    }

    .content-title {
        font-size: 26px;
    }

    .lead {
        font-size: 15px;
    }

    .section-head {
        margin-bottom: 28px;
    }

    /* hero：改用手機版背景圖，上方加米色漸層確保文字可讀、下方保留立牌照片區 */
    .hero {
        height: auto;
        background:
            linear-gradient(to bottom, rgba(255, 248, 239, .96) 0, rgba(255, 248, 239, .92) 400px, rgba(255, 248, 239, 0) 560px),
            url(../images/mainbg-m.png) center bottom / cover no-repeat var(--cream);
        padding-bottom: 80vw;
    }

    .hero .site-content {
        padding-top: 44px;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__desc {
        font-size: 15px;
    }

    .qbtn--primary,
    .qbtn--white {
        height: 56px;
        font-size: 15px;
        padding: 13px 22px;
    }

    /* 什麼是 */
    .what {
        margin-top: -29%;
        margin-bottom: -16px;
    }
    .what__card {
        padding: 32px 24px;
    }

    .what__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .what__text {
        font-size: 15px;
    }

    /* 卡片群組 → 單欄/兩欄 */
    .who .site-content,
    .why .site-content,
    .how .site-content {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .who-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-grid>*,
    .why-grid>*:nth-child(4),
    .why-grid>*:nth-child(5) {
        grid-column: auto;
    }

    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 綠色橫幅：直向堆疊、隱藏插圖 */
    .pay-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .pay-strip__art {
        display: none;
    }

    .pay-strip__list {
        margin-left: 0;
        justify-content: flex-start;
        max-width: none;
    }

    .faq .site-content {
        padding-top: 48px;
        padding-bottom: 64px;
    }
}


/* ============================================
   RWD: max-width 568px（小手機）
   ============================================ */
@media (max-width: 568px) {
    .site-content {
        padding: 0 15px;
    }

    .content-title {
        font-size: 22px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__stats {
        gap: 16px;
    }

    .who-grid,
    .how-grid {
        grid-template-columns: 1fr;
    }

    .pay-chip {
        padding: 10px 14px;
        font-size: 13px;
    }

    .faq-item summary {
        font-size: 15px;
    }
}