* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: cursive, 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa
}

a {
    text-decoration: none;
    color: #333
}

ul {
    list-style: none
}

img {
    max-width: 100%;
    height: auto
}

.container {
    width: 80vw;
    margin: 0 auto
}

.header {
    background-color: #2a3990;
    background-image: linear-gradient(to right, #2a3990, #232f77);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100
}

.category-more-btn {
    display: block;
    width: 120px;
    height: 40px;
    margin: 20px auto 0;
    background-color: #4a5bdc;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 40px
}

.category-more-btn-disabled {
    background-color: #666
}

.category-more-btn:hover {
    background-color: #4a5bdc;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 1s 1
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 91, 220, 0.7)
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 91, 220, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 91, 220, 0)
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    max-width: 30vw
}

.logo a {
    color: #fff;
    display: flex;
    align-items: center
}

.logo img {
    height: 40px;
    margin-right: 8px
}

.search-box {
    display: none;
    flex: 0 0 30%;
    position: relative;
    max-width: 30vw
}

.search-box input {
    width: 100%;
    padding: 6px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none
}

.search-box button {
    background-color: #f72585;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s
}

.search-box button:hover {
    background-color: #e5007d
}

.search-box button img {
    height: 18px
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    max-width: 60vw;
    max-height: 500px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 200;
    display: none;
    margin-top: 5px
}

.search-suggestion-item {
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #333
}

.search-suggestion-item:hover {
    background-color: #f0f0f0;
    color: #f72585
}

.user-history {
    display: flex;
    max-width: 30vw
}

.user-history h3 {
    font-size: 13px;
    margin: 3px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2)
}

.user-history-container {
    display: flex;
    align-items: center;
    margin: 0 12px;
    color: #fff;
    max-width: 70%
}

.user-history ul {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 150px;
    padding-bottom: 5px;
    scrollbar-width: thin
}

.user-history ul::-webkit-scrollbar {
    height: 4px
}

.user-history ul::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px
}

.user-history li {
    padding: 3px 6px;
    font-size: 12px;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-right: 5px;
    transition: all 0.3s ease
}

.user-history a {
    font-weight: 500;
    font-weight: bold;
    background-image: linear-gradient(to right, #cf6, #f00);
    -webkit-background-clip: text;
    color: transparent
}

.user-history a:hover {
    font-weight: bold;
    background-image: linear-gradient(to right, #cf6, #f00);
    -webkit-background-clip: text;
    color: transparent;
    animation: slideBackAndForth 0.3s 1;
    position: relative;
    display: inline-block
}

.user-history li:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px)
}

.more-history-btn {
    flex: 1;
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s
}

#more-history-btn {
    background-color: rgba(255, 255, 255, 0.25);
    margin-left: auto;
    width: fit-content
}

#more-history-btn:hover {
    background-color: rgba(255, 255, 255, 0.5)
}

.history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center
}

.history-modal.active {
    display: flex
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3)
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee
}

.modal-header h2 {
    font-size: 18px;
    color: #333
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999
}

.history-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.history-item {
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: background-color 0.3s;
    text-align: center
}

.history-item:hover {
    background-color: #e9ecef
}

.history-item a:hover,
.searchA:hover {
    font-weight: bold;
    background-image: linear-gradient(to right, blue, red);
    -webkit-background-clip: text;
    color: transparent
}

.searchA {
    padding: 10px 15px;
    display: block;
    width: 100%
}

.searchASelect {
    padding: 10px 15px;
    display: block;
    width: 100%;
    font-weight: bold;
    background-image: linear-gradient(to right, blue, red);
    -webkit-background-clip: text;
    color: transparent
}

.history-pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px
}

.history-pagination button {
    padding: 6px 12px;
    background-color: #f0f2f5;
    border: none;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease
}

.history-pagination button:hover {
    background-color: #e2e6ea;
    color: #4361ee
}

.history-pagination button.active {
    background-color: #4361ee;
    color: white
}

main {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    position: relative
}

.main-container {
    #flex: 1;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 3px 20px
}

.ad-sidebar {
    width: 160px;
    display: none
}

.ad-container {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 20px
}

.left-sidebar {
    margin-right: 20px
}

.right-sidebar {
    margin-left: 20px
}

.banner-section {
    margin: 8px 0
}

.banner-container {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 200px
}

.banner-slides {
    display: flex;
    height: 100%
}

.slide {
    flex: 0 0 100%;
    display: none;
    height: 100%
}

.slide.active {
    display: block
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: fill
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px
}

.banner-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    cursor: pointer
}

.dot.active {
    background-color: #fff;
    width: 24px
}

.category-section {
    margin-bottom: 10px
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #4361ee;
    padding-bottom: 10px
}

.category-header h2 {
    font-size: 20px;
    color: #4361ee
}

.category-header h2 a {
    color: #4361ee
}

@keyframes slideBackAndForth {
    0% {
        transform: translateX(0)
    }

    50% {
        transform: translateX(5px)
    }

    100% {
        transform: translateX(0px)
    }
}

.category-header h2 a:hover {
    font-weight: bold;
    background-image: linear-gradient(to right, blue, red);
    -webkit-background-clip: text;
    color: transparent;
    animation: slideBackAndForth 0.3s 1;
    position: relative;
    display: inline-block
}

.view-more {
    color: #666;
    font-size: 14px
}

.view-more:hover {
    color: #4361ee
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px
}

.game-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15)
}

.game-card-img {
    height: 150px;
    overflow: hidden;
    position: relative
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s
}

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

.game-icon {
    top: 1px;
    position: absolute;
    color: white;
    padding: 2px;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px
}

.game-video {
    background-color: rgba(0, 0, 0, 0.75);
    left: 1px;
    cursor: zoom-in
}

.game-phone {
    font-size: 18px;
    top: 0;
    right: 1px
}

.video-modal {
    width: 75%
}

.video-modal-close-btn {
    right: 0px;
    top: -2px;
    position: absolute;
    cursor: zoom-out
}

.game-stats {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px
}

.game-rating {
    display: flex;
    align-items: center
}

.game-rating::before {
    content: '★';
    color: #ffd700;
    margin-right: 3px
}

.game-plays {
    display: flex;
    align-items: center
}

.game-plays::before {
    content: '🕹️';
    margin-right: 3px
}

.game-stats-icon {
    margin-right: 3px
}

.game-card-info {
    padding: 6px
}

.game-card-info h3 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.game-card-info p {
    font-size: 12px;
    color: #666
}

.category-title {
    margin-bottom: 6px
}

.category-title h1 {
    font-size: 18px;
    color: #333;
    padding-bottom: 2px;
    border-bottom: 2px solid #4361ee
}

.game-list-section {
    margin-bottom: 20px
}

.full-list {
    grid-template-rows: repeat(10, auto)
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px
}

.page-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer
}

.page-btn:hover {
    background-color: #eee
}

.page-numbers {
    display: flex;
    gap: 5px
}

.page-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer
}

.page-number:hover {
    background-color: #eee
}

.page-number.active {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee
}

.game-title {
    margin-bottom: 2px
}

.game-title h1 {
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #4361ee
}

.game-description {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1)
}

.game-description h3 {
    font-size: 18px;
    color: #4361ee;
    margin-bottom: 10px
}

.game-description p {
    color: #555;
    line-height: 1.6
}

.game-play-section {
    margin-bottom: 20px
}

.game-container {
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
    position: relative
}

.image-effect {
    width: 200px;
    height: 200px;
    max-width: 200px;
    max-height: 200px;
    position: absolute
}

.image-gray {
    filter: grayscale(100%);
    mask-image: linear-gradient(rgb(0, 0, 0) 0%, rgb(0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%)
}

#playBtnContainer {
    width: 100%;
    height: 100%;
    display: block
}

#playBtnLogo {
    width: 200px;
    height: 200px;
    max-width: 200px;
    max-height: 200px;
    overflow: hidden;
    margin: 0 auto
}

#playBtn {
    display: block;
    width: 120px;
    height: 40px;
    background-color: #4a5bdc;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    animation: pulse 0.75s infinite;
    margin: 5px auto 0
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 91, 220, 0.7)
    }

    70% {
        box-shadow: 0 0 0 12px rgba(74, 91, 220, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 91, 220, 0)
    }
}

#game-frame-container {
    width: 100%;
    height: 80vh
}

#game-frame {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    z-index: 999
}

.game-controls {
    z-index: 999;
    position: absolute;
    right: 0;
    top: -2px
}

.control-btn {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s
}

.control-btn:hover {
    background-color: #3a56d4
}

.related-games-section {
    margin-top: 30px
}

.related-games-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #4361ee
}

.footer {
    background-color: #f8f9fa;
    color: #555;
    _padding: 40px 0 20px;
    border-top: 1px solid #eaeaea
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    flex: 0 0 100%;
    text-align: center
}

.footer-logo img {
    height: 36px
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%
}

.link-group {
    flex: 0 0 30%;
    margin-bottom: 20px;
    text-align: center
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #444;
    font-weight: 600
}

.link-group ul li {
    margin-bottom: 8px
}

.link-group ul {
    display: flex;
    flex-direction: column;
    align-items: center
}

.link-group ul li a {
    color: #666;
    font-size: 14px;
    transition: color 0.3s
}

.link-group ul li a:hover {
    font-weight: bold;
    background-image: linear-gradient(to right, blue, red);
    -webkit-background-clip: text;
    color: transparent;
    animation: slideBackAndForth 0.3s 1;
    position: relative;
    display: inline-block
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    text-align: center
}

.copyright p {
    font-size: 13px;
    color: #888
}

.rowOne {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.2
}

@media (min-width:1400px) {
    .ad-sidebar {
        display: block
    }
}

@media (max-width:992px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media (max-width:768px) {
    .header-container {
        flex-wrap: wrap
    }

    .logo {
        flex: 0 0 25%;
        justify-content: center;
        margin-bottom: 0;
        max-width: 25vw
    }

    .search-box {
        flex: 0 0 30%;
        margin-bottom: 5px;
        max-width: 30vw
    }

    .user-history {
        flex: 0 0 30%;
        max-width: 30vw;
    }
    
    .banner-container {
        height: 150px
    }

    .game-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .footer-links {
        flex-direction: column
    }

    .link-group {
        flex: 0 0 100%
    }

    .game-video {
        font-size: 32px
    }

    .game-stats {
        font-size: 10px
    }
}

@media (max-width:576px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .banner-container {
        height: 150px
    }

    .banner-controls button {
        width: 30px;
        height: 30px;
        font-size: 16px
    }
}

.cssFullscreen{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000 !important;
    background-color:#000 !important;
}