/* 首頁電腦版新版（熱門遊戲／優質服務／常見問題）
   - 三個區塊原本就只在 ≥1024px 顯示（index_content.shared-head.css），這裡的版面規則也只寫在 ≥1024px。
   - .visually-hidden 放在 media 外：首頁 H1、區塊隱藏標題在各寬度都必須隱藏，
     且 bootstrap 是非同步載入，不能等它。 */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media screen and (min-width: 1024px) {

    /* ---------- 熱門遊戲：展開式分類卡 ---------- */
    .home-rzu-shell .tab-content .home-topgames-desktop.ptg-section {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 18px 0 28px !important;
    }

    .ptg { display: flex; gap: 12px; height: 460px; }

    .ptg-card {
        position: relative;
        flex: 1;
        min-width: 0;
        border-radius: 18px;
        overflow: hidden;
        cursor: pointer;
        background: linear-gradient(180deg, #132a52, #0a1630);
        box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .3);
        transition: flex .4s, box-shadow .2s;
        outline: none;
    }
    .ptg-card.is-open {
        flex: 7;
        cursor: default;
        box-shadow: inset 0 0 0 1px rgba(231, 201, 139, .7), 0 0 30px rgba(215, 177, 106, .15);
    }
    .ptg-card:not(.is-open):hover,
    .ptg-card:not(.is-open):focus-visible { box-shadow: inset 0 0 0 1px rgba(231, 201, 139, .75); }

    .ptg-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 72% 50%;
        opacity: .5;
        transition: opacity .4s;
    }
    .ptg-card.is-open .ptg-bg { object-position: right center; opacity: 1; }
    .ptg-card:not(.is-open):hover .ptg-bg { opacity: .75; }

    .ptg-shade {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgba(8, 18, 40, .15), rgba(8, 18, 40, .9));
    }
    .ptg-card.is-open .ptg-shade {
        background: linear-gradient(90deg, rgba(8, 18, 40, .97) 0%, rgba(8, 18, 40, .9) 37%, rgba(8, 18, 40, .3) 50%, rgba(8, 18, 40, 0) 60%);
    }

    .ptg-fold {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 28px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: #f4e8cc;
    }
    .ptg-fold i, .ptg-fold svg { font-size: 26px; color: #d7b16a; }
    .ptg-fold b { font-size: 20px; letter-spacing: .3em; writing-mode: vertical-rl; }
    .ptg-fold em { font-style: normal; font-size: 12px; color: rgba(229, 213, 178, .7); }
    .ptg-card.is-open .ptg-fold { display: none; }

    .ptg-open { display: none; }
    .ptg-card.is-open .ptg-open {
        position: absolute;
        left: 44px;
        top: 44px;
        bottom: 40px;
        width: 38%;
        z-index: 2;
        display: flex;
        flex-direction: column;
        animation: ptgIn .35s .18s both;
    }
    .ptg-tag {
        align-self: flex-start;
        font-size: 12px;
        letter-spacing: .15em;
        color: #d7b16a;
        padding: 5px 12px;
        border-radius: 999px;
        box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .5);
    }
    .ptg-title {
        margin: 16px 0 0;
        font-size: 46px;
        font-weight: 800;
        line-height: 1.05;
        background: linear-gradient(180deg, #fff3d1, #e7c98b 45%, #b48943);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .ptg-desc { margin: 14px 0 0; color: rgba(229, 213, 178, .85); font-size: 15px; line-height: 1.7; }

    .ptg-vendors { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
    .ptg-v {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 14px 5px 5px;
        border: 0;
        border-radius: 999px;
        background: rgba(12, 28, 58, .85);
        box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .45);
        color: #f4e8cc;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        transition: background .15s, color .15s, transform .15s;
    }
    .ptg-v:hover { background: linear-gradient(135deg, #ddc38a, #b48943); color: #0d2348; transform: translateY(-1px); }
    .ptg-logo { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #2a1d18; box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .45); }
    .ptg-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .ptg-v.is-extra { display: none; }
    .ptg-card.show-all .ptg-v.is-extra { display: flex; }
    .ptg-card.show-all .ptg-vendors { max-height: 200px; overflow: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #b48943 transparent; }
    .ptg-more { padding: 5px 16px; color: #d7b16a; }

    @keyframes ptgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

    /* ---------- 優質服務：左標題卡＋右 2×2 ---------- */
    .home-service-desktop.psv-section { height: auto !important; margin-bottom: 40px; }
    .psv { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: stretch; }
    .psv-head {
        border-radius: 18px;
        padding: 40px 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: radial-gradient(circle at 20% 20%, rgba(231, 201, 139, .22), transparent 60%), linear-gradient(160deg, #17325f, #0a1630);
        box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .4);
    }
    .psv-kicker { font-size: 12px; letter-spacing: .3em; color: #d7b16a; }
    .psv-title {
        margin: 12px 0 0;
        font-size: 40px;
        font-weight: 800;
        background: linear-gradient(180deg, #fff3d1, #e7c98b 45%, #b48943);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .psv-en { margin: 8px 0 0; font-size: 13px; letter-spacing: .35em; color: rgba(229, 213, 178, .6); }
    .psv-rule { display: block; width: 60px; height: 2px; margin-top: 22px; background: linear-gradient(90deg, #d7b16a, transparent); }
    .psv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .psv-card {
        display: flex;
        gap: 18px;
        align-items: flex-start;
        padding: 24px 26px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(20, 40, 78, .8), rgba(10, 22, 46, .85));
        box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .22);
        transition: transform .18s, box-shadow .18s;
    }
    .psv-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(231, 201, 139, .7), 0 10px 22px rgba(0, 0, 0, .35); }
    .psv-icon {
        flex: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 21px;
        color: #e7c98b;
        background: rgba(215, 177, 106, .1);
        box-shadow: inset 0 0 0 1.5px rgba(231, 201, 139, .6);
        transition: background .18s, color .18s;
    }
    .psv-card:hover .psv-icon { background: linear-gradient(135deg, #f3dca6, #c49a4e); color: #0d2348; }
    .psv-card h3 { margin: 2px 0 8px; font-size: 18px; font-weight: 800; color: #f4e8cc; }
    .psv-card p { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(229, 213, 178, .72); }

    /* ---------- 常見問題：左清單＋右答案面板 ---------- */
    .home-faq-desktop.pfq-section { height: auto !important; }
    .pfq-head { text-align: center; margin-bottom: 24px; }
    .pfq-title {
        margin: 0;
        font-size: 32px;
        font-weight: 800;
        background: linear-gradient(180deg, #fff3d1, #e7c98b 45%, #b48943);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .pfq-head p { margin: 6px 0 0; font-size: 13px; letter-spacing: .35em; color: rgba(229, 213, 178, .6); }
    .pfq { display: grid; grid-template-columns: 420px 1fr; gap: 22px; }
    .pfq-list { display: flex; flex-direction: column; gap: 8px; }
    .pfq-q {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 18px;
        border: 0;
        border-radius: 12px;
        text-align: left;
        color: rgba(229, 213, 178, .85);
        font-size: 15px;
        font-weight: 700;
        background: rgba(10, 22, 46, .6);
        box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .15);
        cursor: pointer;
        transition: background .18s, color .18s, transform .18s;
    }
    .pfq-q em { font-style: italic; font-family: Georgia, serif; color: rgba(215, 177, 106, .7); }
    .pfq-arrow { margin-left: auto; font-style: normal; color: rgba(215, 177, 106, .6); font-size: 12px; }
    .pfq-q:not(.is-active):hover { background: rgba(20, 40, 78, .9); color: #f4e8cc; transform: translateX(3px); box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .45); }
    .pfq-q.is-active { color: #0d2348; background: linear-gradient(135deg, #ddc38a, #b48943); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
    .pfq-q.is-active em, .pfq-q.is-active .pfq-arrow { color: #0d2348; }
    .pfq-panel {
        border-radius: 18px;
        padding: 40px 44px;
        display: flex;
        flex-direction: column;
        background: radial-gradient(circle at 90% 10%, rgba(231, 201, 139, .18), transparent 50%), linear-gradient(160deg, #17325f, #0a1630);
        box-shadow: inset 0 0 0 1px rgba(215, 177, 106, .4);
    }
    .pfq-ans[hidden] { display: none !important; }
    .pfq-ans.is-in { animation: pfqIn .3s ease both; }
    .pfq-k { font-family: Georgia, serif; font-style: italic; font-size: 15px; color: #d7b16a; letter-spacing: .1em; }
    .pfq-ans h3 { margin: 10px 0 0; font-size: 28px; font-weight: 800; color: #f4e8cc; }
    .pfq-rule { display: block; width: 60px; height: 2px; margin: 18px 0; background: linear-gradient(90deg, #d7b16a, transparent); }
    .pfq-ans p { margin: 0; font-size: 16px; line-height: 1.9; color: rgba(229, 213, 178, .85); }
    .pfq-foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 16px; color: rgba(229, 213, 178, .7); font-size: 14px; }
    .pfq-cs {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 11px 20px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 14px;
        color: #0d2348 !important;
        text-decoration: none;
        background: linear-gradient(135deg, #f3dca6, #c49a4e);
        box-shadow: 0 6px 16px rgba(196, 154, 78, .3);
    }
    @keyframes pfqIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

    @media (prefers-reduced-motion: reduce) {
        .ptg-card, .ptg-bg { transition: none; }
        .ptg-card.is-open .ptg-open, .pfq-ans.is-in { animation: none; }
    }
}
