html, body {
    margin: 0;
    padding: 0;
}

body {
    background: url('../images/bg.jpg') right bottom / cover no-repeat fixed;
    background-color: #000;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
            radial-gradient(circle at 30% 20%, rgba(255,215,0,0.15), transparent 40%),
            radial-gradient(circle at 70% 80%, rgba(255,215,0,0.1), transparent 40%);
}

a {
    text-decoration: none;
}

/* Header */
.site-header {
    background: #212529;
    position: relative;
    z-index: 1100;
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-navbar .nav-link {
    color: rgba(255,255,255,.85);
    font-size: 15px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #ffc107 !important;
}

.header-action .btn {
    min-width: 84px;
}

/* Banner */
.banner-swiper {
    width: 100%;
    margin: 0;
    cursor: grab;
}

.banner-swiper:active {
    cursor: grabbing;
}

.banner-swiper .swiper-slide {
    height: 500px;
    background: #000;
}

.banner-swiper .swiper-slide a,
.banner-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-swiper .swiper-slide img {
    object-fit: cover;
}

.banner-swiper .swiper-pagination {
    bottom: 14px !important;
}

.banner-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.8;
    background: #fff;
}

.banner-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffc107;
}

/* 手機底部固定四格 */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 64px;
    background: #1b1b1b;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 1200;
    display: none;
}

.mobile-bottom-nav .nav-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.mobile-bottom-nav a {
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1.2;
}

.mobile-bottom-nav a i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: #ffc107;
}

/* 熱門遊戲分類 */
.game-categories {
    position: relative;
    padding: 48px 0;
    z-index: 5;
}

.game-categories .section-title {
    color: #e6c27a;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.game-categories .section-subtitle {
    color: rgba(255,255,255,.72);
    text-align: center;
    margin-bottom: 32px;
    font-size: 15px;
}

.game-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,193,7,.16), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
    border-color: rgba(255,193,7,.45);
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at top right, rgba(255,193,7,.22), transparent 35%),
            linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.18));
    z-index: 1;
    pointer-events: none;
}

.game-card-thumb {
    position: relative;
    z-index: 2;
    aspect-ratio: 5 / 6;
    height: auto;
    background: #000;
    overflow: hidden;
}

.game-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.18), rgba(0,0,0,0));
    pointer-events: none;
    z-index: 1;
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .35s ease;
}

.game-card:hover .game-card-thumb img {
    transform: scale(1.05);
}

.game-card-body {
    position: relative;
    z-index: 2;
    padding: 14px 14px 16px;
}

.game-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.45;
    transition: color .25s ease, text-shadow .25s ease;
}

.game-card-desc {
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.game-card:hover .game-card-title {
    color: #ffc107;
    text-shadow: 0 0 6px rgba(255,193,7,.4);
}

.game-card-horizontal {
    min-width: 0;
}

.game-category-swiper {
    width: 100%;
    overflow: hidden;
    padding: 0 2px 6px;
}

.game-category-swiper .swiper-slide {
    height: auto;
}

.game-card-mobile {
    height: 100%;
}

.game-card-mobile .game-card-thumb {
    aspect-ratio: 5 / 6;
    height: auto;
}

.game-card-mobile .game-card-title {
    font-size: 20px;
}

.game-card-mobile .game-card-desc {
    font-size: 14px;
}

/* 熱門文章 */
.hot-articles {
    position: relative;
    padding: 20px 0 56px;
    z-index: 5;
}

.hot-articles .section-title {
    color: #e6c27a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.hot-articles .section-subtitle {
    color: rgba(255,255,255,.72);
    margin-bottom: 28px;
    font-size: 15px;
    text-align: center;
}

.article-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
    border-color: rgba(255,193,7,.45);
}

.article-card.article-card-lg {
    min-height: 100%;
    height: 100%;
}

.article-card:hover .article-title {
    color: #ffc107;
    text-shadow: 0 0 6px rgba(255,193,7,.4);
}

.article-thumb {
    position: relative;
    overflow: hidden;
    background: #000;
}

.article-card-lg .article-thumb {
    height: 420px;
}

.article-card-sm .article-thumb {
    height: 180px;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,.08));
}

.article-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,193,7,.92);
    color: #111;
    font-size: 12px;
    font-weight: 700;
}

.article-body {
    padding: 18px 18px 20px;
}

.article-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.article-card-sm .article-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.article-desc {
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 14px;
}

.article-meta {
    color: rgba(255,255,255,.56);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-meta i {
    color: #ffc107;
    margin-right: 4px;
}

.article-grid-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

/* FAQ */
.faq-section {
    position: relative;
    padding: 8px 0 56px;
    z-index: 5;
}

.faq-section .section-title {
    color: #e6c27a;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.faq-section .section-subtitle {
    color: rgba(255,255,255,.72);
    text-align: center;
    margin-bottom: 32px;
    font-size: 15px;
}

.faq-accordion .accordion-item {
    background: rgba(20,20,20,.88);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.faq-accordion .accordion-button {
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 18px 18px 46px;
    box-shadow: none;
    position: relative;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(255,193,7,.08);
    color: #ffc107;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-button::after {
    display: none;
}

.faq-accordion .accordion-button::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 16px;
    color: #ffc107;
    transition: transform .25s ease, color .25s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::before {
    transform: translateY(-50%) rotate(90deg);
    color: #ffc107;
}

.faq-accordion .accordion-body {
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.8;
    padding: 0 18px 18px 46px;
    background: rgba(255,255,255,.01);
}

/* 喘息區 */
.promo-section {
    position: relative;
    padding: 20px 0 60px;
    z-index: 5;
}

.promo-box {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
    transition: transform .25s ease, box-shadow .25s ease;
}

.promo-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.promo-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.promo-box:hover img {
    transform: scale(1.05);
}

.promo-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0)),
            radial-gradient(circle at 80% 20%, rgba(255,215,0,.12), transparent 40%);
    pointer-events: none;
}

/* 遊戲分類文章區 */
.game-article-section {
    position: relative;
    padding: 10px 0 48px;
    z-index: 5;
}

.game-article-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.game-article-title {
    color: #e6c27a;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    grid-column: 2;
}

.game-article-more {
    color: #ffc107;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    grid-column: 3;
    justify-self: end;
}

.game-article-more:hover {
    color: #ffd95e;
}

.game-article-card {
    display: block;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(20,20,20,.86);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.game-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    border-color: rgba(255,193,7,.35);
}

.game-article-thumb {
    position: relative;
    height: 165px;
    overflow: hidden;
    background: #000;
}

.game-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.game-article-card:hover .game-article-thumb img {
    transform: scale(1.05);
}

.game-article-body {
    padding: 14px 14px 16px;
}

.game-article-card-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-article-card-desc {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-article-card:hover .game-article-card-title {
    color: #ffc107;
    text-shadow: 0 0 6px rgba(255,193,7,.4);
}

/* 四格喘息區 */
.feature-section {
    position: relative;
    padding: 16px 0 60px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
    box-shadow: inset 0 0 60px rgba(0,0,0,.4);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 56px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.feature-icon {
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid #c88418;
    color: #c88418;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 0 0 3px rgba(200,132,24,.08), 0 0 18px rgba(200,132,24,.12);
}

.feature-content {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
}

.feature-title {
    color: #c88418;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 18px;
}

.feature-desc {
    color: #fff;
    font-size: 16px;
    line-height: 2;
    margin: 0;
}

.feature-desc .line-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    background: #10b418;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

/* FAQ 精選 */
.faq-highlight-section {
    position: relative;
    padding: 20px 0 60px;
    z-index: 5;
}

.faq-highlight-title {
    color: #e6c27a;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.faq-highlight-card {
    position: relative;
    border-radius: 20px;
    padding: 28px 30px 26px;
    background: linear-gradient(135deg, #3a2616, #2a1c11);
    border: 1px solid rgba(255,193,7,.2);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    color: #fff;
    height: 100%;
}

.faq-highlight-number {
    color: #e6c27a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-highlight-q {
    font-size: 22px;
    font-weight: 700;
    color: #e6c27a;
    margin-bottom: 16px;
}

.faq-highlight-desc {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,.85);
    margin-bottom: 18px;
}

.faq-highlight-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background: #e6c27a;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s ease;
}

.faq-highlight-btn:hover {
    background: #ffd95e;
    color: #000;
}

.faq-highlight-card:hover {
    transform: translateY(-4px);
}

/* 合作夥伴 */
.partner-section {
    position: relative;
    padding: 22px 0 28px;
    z-index: 5;
}

.partner-wrap {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
    box-shadow: inset 0 0 60px rgba(0,0,0,.35);
    padding: 28px 0;
}

.partner-title {
    color: #e6c27a;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 22px;
}

.partner-swiper {
    width: 100%;
    cursor: grab;
}

.partner-swiper:active {
    cursor: grabbing;
}

.partner-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.partner-swiper .swiper-slide {
    width: auto;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-box {
    height: 90px;
    min-width: 180px;
    padding: 14px 22px;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.partner-logo-box:hover {
    transform: translateY(-3px);
    border-color: rgba(255,193,7,.28);
    background: rgba(255,255,255,.05);
}

.partner-logo-box img {
    max-width: 150px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: .95;
}

@media (max-width: 1399.98px) {
    .game-category-grid {
        gap: 16px;
    }

    .game-card-title {
        font-size: 17px;
    }
}

@media (max-width: 991.98px) {
    .site-header .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-logo {
        height: 32px;
    }

    .site-navbar .navbar-collapse {
        background: #212529;
        margin-top: 10px;
        padding: 10px 0 4px;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .site-navbar .nav-link {
        padding: 10px 0 !important;
    }

    .header-action {
        padding-top: 8px;
    }

    .banner-swiper .swiper-slide {
        height: 260px;
    }

    .banner-swiper .swiper-slide img {
        object-fit: contain;
        background: #000;
    }

    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 64px;
    }

    .game-categories {
        padding: 32px 0;
    }

    .game-categories .section-title,
    .hot-articles .section-title,
    .faq-section .section-title,
    .partner-title,
    .faq-highlight-title {
        font-size: 26px;
    }

    .game-categories .section-subtitle {
        margin-bottom: 22px;
    }

    .article-card-lg .article-thumb {
        height: 260px;
    }

    .article-grid-right {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .article-card-sm .article-thumb {
        height: 200px;
    }

    .article-title {
        font-size: 22px;
    }

    .faq-section {
        padding: 0 0 40px;
    }

    .faq-accordion .accordion-button {
        font-size: 15px;
        padding: 16px 16px 16px 42px;
    }

    .faq-accordion .accordion-body {
        padding: 0 16px 16px 42px;
    }

    .promo-box img {
        height: 180px;
    }

    .game-article-section {
        padding: 0 0 38px;
    }

    .game-article-head {
        margin-bottom: 18px;
    }

    .game-article-title {
        font-size: 24px;
    }

    .game-article-thumb {
        height: 150px;
    }

    .feature-grid {
        gap: 32px 28px;
    }

    .feature-icon {
        flex: 0 0 88px;
        width: 88px;
        height: 88px;
        font-size: 40px;
    }

    .feature-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .feature-desc {
        font-size: 15px;
        line-height: 1.9;
    }

    .partner-swiper .swiper-slide {
        height: 76px;
    }

    .partner-logo-box {
        height: 76px;
        min-width: 145px;
        padding: 12px 18px;
    }

    .partner-logo-box img {
        max-width: 120px;
        max-height: 42px;
    }
}

@media (max-width: 767.98px) {
    body {
        background-attachment: scroll;
    }

    .game-category-swiper {
        padding-right: 2px;
    }

    .game-card-mobile .game-card-thumb {
        aspect-ratio: 5 / 6;
        height: auto;
    }

    .game-card-mobile .game-card-title {
        font-size: 20px;
    }

    .game-card-mobile .game-card-desc {
        font-size: 14px;
    }

    .game-article-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .game-article-title {
        font-size: 22px;
        grid-column: auto;
        text-align: center;
    }

    .game-article-more {
        grid-column: auto;
        justify-self: center;
    }

    .game-article-thumb {
        height: 140px;
    }

    .game-article-card-title {
        font-size: 16px;
    }

    .game-article-card-desc,
    .faq-highlight-desc,
    .feature-desc {
        font-size: 14px;
    }

    .feature-section {
        padding: 8px 0 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .feature-item {
        gap: 16px;
    }

    .feature-icon {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
        font-size: 32px;
        border-width: 3px;
    }

    .feature-content {
        padding-top: 2px;
    }

    .feature-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .partner-section {
        padding: 10px 0 18px;
    }

    .partner-wrap {
        padding: 22px 0;
    }

    .site-footer {
        padding: 28px 0 92px;
    }
}