@media only screen and (max-width: 600px) {
    .game-iframe-container {
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 0px;
    }
}

#footer-menu li {
    display: block;
    padding: 0 15px;
    position: static;
    line-height: 1;
    line-height: 1.5;
}

.list-categories li {
    padding: 8px 13px;
}

nav.greedy button {
    padding: 6px 30px 6px 9px;
}

@media (max-width: 600px) {
    ul.links {
        justify-content: center;
        align-items: center;
    }
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    margin-right: auto;
    margin-left: auto;
}

#footer-menu {
    list-style: none;
    text-align: center;
    padding: 0px;
}

body {
    font-size: 17px;
}

:root {
    --bg-light: #f8f9fc;
    --card-bg: #ffffff;
    --text-primary: #1a1d2e;
    --text-secondary: #5a5d72;
    --accent: #0c0d13;
    --accent-light: #a29bfe;
    --border-light: #e8ecf1;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.1);
    --radius-md: 18px;
    --radius-lg: 24px;
}

/* 导航栏  */
#mainNav {
    background: #0c0d14;
    border-radius: 10px;
    min-height: auto !important;
    padding: 1px 0 !important;
    position: relative;
}

#mainNav>.container {
    align-items: center;
    min-height: auto;
    padding-top: 4px;
    padding-bottom: 4px;
}

#mainNav .navbar-brand {
    padding: 0;
    margin-right: 8px;
    line-height: 0;
    flex-shrink: 0;
}


.search-bar .input-group {

    background: #f5f6fa;
    border-radius: 50px;


}

.search-bar .input-group:focus-within {
    border-color: #6c5ce7;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.12), 0 0 0 4px rgba(108, 92, 231, 0.06);

}

.search-bar .form-control {
    background: transparent !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 20px 12px 20px !important;
    font-size: 0.95rem;
    color: #2d3047;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: none !important;
    height: auto;
    flex: 1;
    min-width: 200px;
}

.search-bar .form-control::placeholder {
    color: #b0b5c9;
    font-weight: 400;
    font-style: italic;
}

.search-bar .form-control:focus {
    color: #1a1d2e;
}




/* 快捷搜索标签 */
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-left: 5px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0f2f8;
    border: 1px solid #e8ecf1;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #6b7089;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 500;
}

.search-tag:hover {
    background: #e8ebf5;
    border-color: #c5bff5;
    color: #5a4bcf;
    transform: translateY(-1px);
}

.search-tag i {
    font-size: 0.65rem;
    color: #ff5e7e;
}

/* PC 端：logo 靠左，search 居中，按钮靠右 */
@media (min-width: 992px) {
    .search-tags {
        display: none;
    }

    #mainNav>.container {
        position: static;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 60px;
    }

    #mainNav .navbar-brand {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        margin: 0;
    }

    #mainNav>.container>.navbar-collapse:first-of-type {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(380px, 34vw);
        margin: 0;
        flex: none;
        z-index: 1;
    }

    #mainNav>.container>.navbar-collapse:first-of-type .search-bar {
        width: 100% !important;
        margin: 0;
    }

    #mainNav>.container>.navbar-collapse:first-of-type .search-bar .input-group {
        height: 40px;
        align-items: center;
    }

    #mainNav>.container>.navbar-collapse:first-of-type .search-bar .form-control {
        padding: 0 16px !important;
        height: 100%;
        min-width: 0;
        font-size: 0.875rem;
    }

    #mainNav>.container>.navbar-collapse:first-of-type .search-bar .btn-search {
        padding: 0 16px !important;
        height: 100%;
        display: flex;
        align-items: center;
        font-size: 0.875rem;
    }

    #mainNav>.container>.navbar-collapse:last-of-type {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        flex: none;
        width: auto !important;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        z-index: 2;
    }

    #mainNav .navbar-nav {
        margin: 0 !important;
        flex-direction: row;
    }

    #mainNav>.container>.navbar-collapse:last-of-type .navbar-nav.ml-auto {
        margin-left: 0 !important;
    }

    #mainNav .navbar-nav li.nav-item a.nav-link {
        padding-top: 6px;
        padding-bottom: 6px;
        padding-left: 12px;
        padding-right: 12px;
        line-height: 1.5;
    }
}

/* 响应式 */
@media (max-width: 991px) {
    .search-bar {
        FONT-WEIGHT: 800;
        margin-right: 10px;
        margin-bottom: 12px;
        width: 80%;
    }

    .search-bar .form-control {
        min-width: 150px;
        padding: 11px 16px 11px 20px !important;
    }

}

@media (max-width: 480px) {
    .btn-search span {
        display: none;
    }
    .btn-search i {
        font-size: 1.4rem;
        margin: 0;
    }
}

.btn-search {
    background: linear-gradient(135deg, #5f4ef5, #8b7cf0);
    border: none;
    border-radius: 40px;
    /* padding: 20px 22px; */
    color: white;
    font-weight: 600;
}

/* 广告区域 */
.Advertisement {
    color: #9a9db5;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;

}

.googleAds-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid var(--border-light);
    margin-bottom: 5px;
    min-height: 285px;
}

/* 游戏容器 - 浅色卡片 */
.game-iframe-container {
    background: var(--card-bg) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
}

.game-iframe-container .splash {
    position: relative !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.game-iframe-container .splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.game-iframe-container .splash-thumbnail img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 420px;
    border-radius: 12px;
    display: block;
}



/* 信息卡片 */
.comments-container {
    background: var(--card-bg) !important;
    border-radius: var(--radius-lg) !important;
    padding: 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.css-1g10nz7 h1 {
    font-size: 1.8rem !important;
    font-weight: 800;
    color: #1a1d2e;
}

.gameh2 {
    font-weight: 700;
    color: #4a4d62;
    font-size: 1.2rem;
    margin-top: 18px;
}

.destext2 {
    color: #5a5d72;
    line-height: 1.7;
}


/* 页脚 */
.footer {
    background: #0c0d13;
    padding: 10px 0 20px;
    margin-top: 10px;
}

#footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    color: #ffffff;
}



#navb {
    margin: 0;
}

#mainNav {
    border-radius: 0 0 10px 10px;
}

nav.greedy button {
    background: #0c0d13;
}

nav.greedy button::after {
    margin-right: 0;
}

#mainNav .navbar-nav li.nav-item a.nav-link {
    margin-bottom: 0px;
    margin-top: 0;
}

.form-control .search {
    padding: 0;
}

.btn-search {
    padding: 10px 18px;
}

.search-bar {
    width: 95%;
}

.navbar-collapse .justify-content-end .collapse .show {
    gap: 0;
}

.site-logo {
    height: 52px !important;
    width: auto !important;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
    display: block;
    margin-right: 0;
    padding: 0;
}

.content-wrapper {
    margin-top: 5px;
}

.game-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    margin-bottom: 0;
}

.game-container {
    margin: 5px 0;
}

.page-content,
.game-content {
    margin-bottom: 0px;
}

.category-games-li {
    background: #0c0d13;
    color: #ffffff;
}

ul.hidden-links {
    top: 60%;
}

ul.hidden-links li {
    min-width: 100px;
}

.navbar-nav {
    margin: 5px auto 10px;
}

/* ============ 汉堡菜单 ============ */
.navbar-toggler {
    border: none;
    width: 36px;
    height: 36px;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-menu-icon,
.navbar-toggler svg.icon {
    width: 30px;
    height: 30px;
    display: block;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-menu-icon,
.navbar-toggler[aria-expanded="true"] svg.icon,
#toggler:not(.collapsed) svg.icon {
    transform: rotate(90deg);
}

.navbar-menu-icon path,
.navbar-toggler svg.icon path {
    fill: #6365df;
    transition: fill 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-menu-icon path,
.navbar-toggler[aria-expanded="true"] svg.icon path,
#toggler:not(.collapsed) svg.icon path {
    fill: #ffffff;
}

.game-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

.game-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 20px;
    border: 1.5px solid #d5ccff;
    border-radius: 30px;
    background: linear-gradient(135deg, #f5f3ff, #ede8ff);
    color: #5b3cc4;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.game-feedback-btn:hover {
    background: linear-gradient(135deg, #6c5ce7, #8b7cf0);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
}

.game-meta-pills .hot-badge,
.game-meta-pills .no-download-tag {
    margin: 0;
}

.info-the-game {
    margin-top: 20px;
    margin-bottom: 20px;
}

.info-the-game .comments-container {
    padding: 24px !important;
    margin-top: 0;
}

/* 游戏信息卡片 */
.game-meta-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.game-meta-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.game-meta-section:first-child {
    padding-top: 0;
}

.game-meta-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.game-meta-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.game-meta-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 14px;
}

.game-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
}

.game-meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 5px;
}

.game-meta-value {
    font-size: 1rem;
    color: var(--text-primary);
}

.game-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-meta-genre {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #f0edff;
    color: #6c5ce7;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.game-meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f9fafc;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4a4d62;
    transition: all 0.2s ease;
    border-color: #c5bff5;
    color: #6c5ce7;
    background: #f0f2f8;
}

.game-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c5ce7;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.game-meta-link:hover {
    color: #5a4bcf;
    text-decoration: none;
}

.game-meta-link i {
    font-size: 0.75rem;
}

.game-meta-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.55;
}

.sideb {
    margin-bottom: 12px;
}

.list-game {
    background: #0c0d13;
}

.category-card {
    margin-bottom: 16px;
}

.category-card .category-games-h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid #ede8ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-card .category-games-h3 i {
    color: #6c5ce7 !important;
}

.category-card .section-games {
    margin-bottom: 0;
}

.category-card .load-more-games-wrapper {
    margin-top: 16px;
    margin-bottom: 0;
}