/* =========================================================
   XIAOHUYE ACCESS PLANS
   首頁使用方式
   Version: 2026-08-05 PRICING V5 MOBILE COMPACT
========================================================= */

.access-plans,
.access-plans * {
    box-sizing: border-box;
}

.access-plans {
    position: relative;

    padding:
        90px
        0
        96px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #07111d 0%,
            #0b1929 48%,
            #102033 100%
        );
}

.access-plans__grid {
    position: absolute;
    inset: 0;
    z-index: 0;

    opacity: 0.12;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.48) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.48) 1px,
            transparent 1px
        );

    background-size:
        48px
        48px;

    -webkit-mask-image:
        radial-gradient(
            ellipse at center,
            #000 24%,
            transparent 82%
        );

    mask-image:
        radial-gradient(
            ellipse at center,
            #000 24%,
            transparent 82%
        );
}

.access-plans__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1240px;

    margin:
        0
        auto;

    padding:
        0
        24px;
}


/* =========================================================
   標題
========================================================= */

.access-plans__header {
    max-width: 800px;

    margin:
        0
        auto;

    text-align: center;
}

.access-plans__eyebrow {
    display: flex;

    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #ffc35a;

    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.18em;
}

.access-plans__eyebrow-line {
    width: 36px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 195, 90, 0.75) 100%
        );
}

.access-plans__eyebrow-line:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(255, 195, 90, 0.75) 0%,
            transparent 100%
        );
}

.access-plans__title {
    margin:
        18px
        0
        0;

    color: #ffffff;

    font-size: 43px;
    font-weight: 1000;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.access-plans__title span {
    color: #ffc35a;
}

.access-plans__subtitle {
    max-width: 700px;

    margin:
        17px
        auto
        0;

    color: rgba(222, 232, 241, 0.72);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   三種使用方式
========================================================= */

.access-plans__cards {
    display: grid;

    margin-top: 44px;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: stretch;
    gap: 16px;
}

.access-card {
    position: relative;

    display: flex;

    min-width: 0;
    min-height: 440px;

    padding:
        22px
        21px
        20px;

    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.075) 0%,
            rgba(255, 255, 255, 0.035) 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 18px 42px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.20s ease,
        border-color 0.20s ease,
        background-color 0.20s ease;
}

.access-card:hover {
    border-color: rgba(255, 195, 90, 0.32);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.045) 100%
        );

    transform: translateY(-4px);
}

.access-card--free {
    border-top-color: rgba(110, 231, 183, 0.48);
}

.access-card--points {
    border-top-color: rgba(124, 212, 255, 0.48);
}

.access-card--vip {
    border-color: rgba(255, 195, 90, 0.30);

    background:
        linear-gradient(
            180deg,
            rgba(255, 195, 90, 0.11) 0%,
            rgba(255, 255, 255, 0.045) 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 22px 50px rgba(0, 0, 0, 0.20);
}

.access-card__recommended {
    position: absolute;
    top: 13px;
    right: 13px;

    display: inline-flex;

    min-height: 23px;

    padding:
        5px
        9px;

    align-items: center;

    border-radius: 999px;

    color: #07111d;
    background: #ffc35a;

    font-size: 8px;
    font-weight: 1000;
    line-height: 1;
}

.access-card__top {
    display: flex;

    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.access-card--vip
.access-card__top {
    padding-right: 76px;
}

.access-card__icon {
    display: flex;

    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(110, 231, 183, 0.28);
    border-radius: 15px;

    color: #82efc2;
    background: rgba(110, 231, 183, 0.075);
}

.access-card--points
.access-card__icon {
    border-color: rgba(124, 212, 255, 0.28);

    color: #7cd4ff;
    background: rgba(124, 212, 255, 0.075);
}

.access-card--vip
.access-card__icon {
    border-color: rgba(255, 195, 90, 0.28);

    color: #ffc35a;
    background: rgba(255, 195, 90, 0.075);
}

.access-card__icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.access-card__badge {
    display: inline-flex;

    min-height: 24px;

    padding:
        5px
        8px;

    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.055);

    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}

.access-card__content {
    margin-top: 25px;
}

.access-card__index {
    color: rgba(255, 255, 255, 0.36);

    font-family: monospace;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.14em;
}

.access-card h3 {
    margin:
        8px
        0
        0;

    color: #ffffff;

    font-size: 24px;
    font-weight: 1000;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.access-card__content p {
    margin:
        11px
        0
        0;

    color: rgba(220, 231, 240, 0.66);

    font-size: 12px;
    line-height: 1.75;
}

.access-card__list {
    display: flex;

    margin:
        24px
        0
        0;

    padding: 0;

    flex-direction: column;
    gap: 12px;

    list-style: none;
}

.access-card__list li {
    display: flex;

    align-items: flex-start;
    gap: 9px;

    color: rgba(239, 245, 249, 0.80);

    font-size: 11px;
    line-height: 1.6;
}

.access-card__list li span {
    flex: 0 0 auto;

    color: #82efc2;

    font-weight: 1000;
}

.access-card--points
.access-card__list li span {
    color: #7cd4ff;
}

.access-card--vip
.access-card__list li span {
    color: #ffc35a;
}

.access-card__hint {
    display: flex;

    min-height: 42px;

    margin-top: auto;
    padding:
        10px
        12px;

    align-items: center;
    gap: 9px;

    border: 1px solid rgba(124, 212, 255, 0.18);
    border-radius: 10px;

    color: rgba(239, 245, 249, 0.78);
    background: rgba(124, 212, 255, 0.055);

    font-size: 10px;
    font-weight: 900;
    line-height: 1.45;
}

.access-card__hint-icon {
    display: inline-flex;

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(124, 212, 255, 0.28);
    border-radius: 50%;

    color: #7cd4ff;
    background: rgba(124, 212, 255, 0.08);

    font-size: 9px;
    font-weight: 1000;
    line-height: 1;
}


.access-card__actions {
    display: grid;

    margin-top: auto;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;
}


.access-card__action {
    display: flex;

    min-height: 42px;

    margin-top: auto;
    padding:
        10px
        12px;

    align-items: center;
    justify-content: space-between;
    gap: 10px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;

    color: rgba(239, 245, 249, 0.86);
    background: rgba(255, 255, 255, 0.05);

    font-size: 10px;
    font-weight: 1000;
    line-height: 1;
    text-decoration: none;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.access-card__actions
.access-card__action {
    margin-top: 0;
}


.access-card__action:hover {
    border-color: rgba(255, 195, 90, 0.36);

    color: #ffc35a;
    background: rgba(255, 195, 90, 0.075);
}

.access-card__action--vip {
    border-color: #f59a23;

    color: #07111d;
    background: #ffc35a;
}

.access-card__action--vip:hover {
    border-color: #d9780a;

    color: #ffffff;
    background: #d9780a;
}


/* =========================================================
   補充說明
========================================================= */

.access-plans__note {
    display: flex;

    min-height: 82px;

    margin-top: 18px;
    padding:
        16px
        18px;

    align-items: center;
    gap: 14px;

    border: 1px solid rgba(255, 195, 90, 0.18);
    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 195, 90, 0.075) 0%,
            rgba(255, 255, 255, 0.035) 54%,
            rgba(255, 255, 255, 0.025) 100%
        );
}

.access-plans__note-icon {
    display: flex;

    width: 41px;
    height: 41px;

    flex: 0 0 41px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 195, 90, 0.26);
    border-radius: 12px;

    color: #ffc35a;
    background: rgba(255, 195, 90, 0.08);
}

.access-plans__note-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.access-plans__note-copy {
    min-width: 0;
}

.access-plans__note-copy strong {
    display: block;

    color: #ffffff;

    font-size: 12px;
    font-weight: 1000;
    line-height: 1.4;
}

.access-plans__note-copy span {
    display: block;

    margin-top: 4px;

    color: rgba(220, 231, 240, 0.66);

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   平板
========================================================= */

@media (max-width: 1023px) {

    .access-plans__cards {
        grid-template-columns: 1fr;
    }

    .access-card {
        min-height: 0;
    }

}


/* =========================================================
   手機
========================================================= */

@media (max-width: 767px) {

    .access-plans {
        padding:
            67px
            0
            72px;
    }

    .access-plans__container {
        padding:
            0
            14px;
    }

    .access-plans__title {
        font-size: 32px;
    }

    .access-plans__subtitle {
        font-size: 13px;
        line-height: 1.72;
    }

    .access-plans__cards {
        margin-top: 34px;

        gap: 12px;
    }

    .access-card {
        padding:
            18px
            16px
            16px;

        border-radius: 16px;
    }

    .access-card h3 {
        font-size: 21px;
    }

    .access-plans__note {
        align-items: flex-start;

        padding:
            15px;
    }

}


/* =========================================================
   小手機
========================================================= */

@media (max-width: 420px) {

    .access-card__actions {
        grid-template-columns: 1fr;
    }

    .access-plans__title {
        font-size: 29px;
    }

    .access-plans__eyebrow {
        font-size: 8px;
    }

    .access-plans__eyebrow-line {
        width: 24px;
    }

    .access-card--vip
    .access-card__top {
        padding-right: 0;
    }

    .access-card__recommended {
        position: static;

        width: max-content;

        margin-bottom: 12px;
    }

    .access-plans__note {
        display: block;
    }

    .access-plans__note-copy {
        margin-top: 11px;
    }

}


/* =========================================================
   減少動畫偏好
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .access-card {
        transition: none;
    }

    .access-card:hover {
        transform: none;
    }

}


/* =========================================================
   MOBILE V5：使用方式移動端緊湊重排
   只作用於 767px 以下，PC／平板完全不動
========================================================= */

@media (max-width: 767px) {

    /* 整區上下留白明顯縮短 */
    .access-plans {
        padding:
            43px
            0
            49px;
    }

    .access-plans__container {
        padding:
            0
            13px;
    }

    /* 標題區 */
    .access-plans__eyebrow {
        gap: 8px;

        font-size: 7px;
        letter-spacing: 0.14em;
    }

    .access-plans__eyebrow-line {
        width: 24px;
    }

    .access-plans__title {
        margin-top: 14px;

        font-size: 28px;
        line-height: 1.14;
    }

    .access-plans__title span {
        display: block;

        margin-top: 3px;
    }

    .access-plans__subtitle {
        margin-top: 11px;

        font-size: 12px;
        line-height: 1.62;
    }

    /* 三張卡片 */
    .access-plans__cards {
        margin-top: 27px;

        grid-template-columns: 1fr;

        gap: 9px;
    }

    .access-card {
        min-height: 0;

        padding:
            13px
            12px
            12px;

        border-radius: 14px;
    }

    /*
     * 手機版不顯示 OPTION 01／02／03，
     * 避免多一層重複資訊。
     */
    .access-card__index {
        display: none;
    }

    .access-card__top {
        align-items: center;
    }

    .access-card__icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;

        border-radius: 11px;
    }

    .access-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .access-card__badge {
        min-height: 21px;

        padding:
            4px
            7px;

        font-size: 7px;
    }

    /*
     * VIP 卡已經有「VIP 會員」標籤，
     * 手機版拿掉右上角「完整使用」，降低擁擠感。
     */
    .access-card__recommended {
        display: none;
    }

    .access-card--vip
    .access-card__top {
        padding-right: 0;
    }

    .access-card__content {
        margin-top: 11px;
    }

    .access-card h3 {
        margin-top: 0;

        font-size: 18px;
        line-height: 1.24;
    }

    .access-card__content p {
        margin-top: 6px;

        font-size: 10px;
        line-height: 1.58;
    }

    /* 清單縮短 */
    .access-card__list {
        margin-top: 11px;

        gap: 6px;
    }

    .access-card__list li {
        gap: 7px;

        font-size: 9px;
        line-height: 1.5;
    }

    /* 免費服務兩個入口維持同一排 */
    .access-card__actions {
        margin-top: 11px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;
    }

    .access-card__action {
        min-height: 36px;

        margin-top: 11px;
        padding:
            7px
            9px;

        border-radius: 8px;

        font-size: 9px;
    }

    .access-card__actions
    .access-card__action {
        margin-top: 0;
    }

    /* 點數說明縮成一行式提示 */
    .access-card__hint {
        min-height: 36px;

        margin-top: 11px;
        padding:
            7px
            9px;

        gap: 7px;

        border-radius: 8px;

        font-size: 9px;
        line-height: 1.4;
    }

    .access-card__hint-icon {
        width: 20px;
        height: 20px;

        flex-basis: 20px;

        font-size: 8px;
    }

    /* 底部補充說明 */
    .access-plans__note {
        display: grid;

        min-height: 0;

        margin-top: 10px;
        padding:
            12px
            11px;

        grid-template-columns:
            34px
            minmax(0, 1fr);

        align-items: center;
        gap: 10px;

        border-radius: 12px;
    }

    .access-plans__note-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        border-radius: 10px;
    }

    .access-plans__note-icon svg {
        width: 18px;
        height: 18px;
    }

    .access-plans__note-copy {
        margin-top: 0;
    }

    .access-plans__note-copy strong {
        font-size: 10px;
    }

    .access-plans__note-copy span {
        margin-top: 3px;

        font-size: 9px;
        line-height: 1.5;
    }

}


/* =========================================================
   MOBILE V5：小手機
========================================================= */

@media (max-width: 420px) {

    .access-plans__title {
        font-size: 27px;
    }

    /* 覆蓋舊版 420px 單欄設定，維持兩個免費入口並排 */
    .access-card__actions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .access-plans__note {
        display: grid;
    }

    .access-plans__note-copy {
        margin-top: 0;
    }

}
