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

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .menu-toggle {
    color: #e0e0e0;
}

body.dark-mode .menu-toggle:hover {
    background-color: #333;
}

body.dark-mode .logo {
    color: #4fc3f7;
}

body.dark-mode .main-content {
    background-color: #121212;
}

/* 应用容器 */
.app-container {
    display: flex;
    flex-direction: column;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(to bottom, #6653D7, #00D6DE);
    color: white;
    z-index: 1000;
    transition: left 0.3s ease, background 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

body.dark-mode .sidebar {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
    background-image: none !important;
}

.logo-text {
    color: #333333;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-mobile .logo-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

.logo-mobile {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.close-sidebar {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 20px;
}

.sidebar-search {
    margin-bottom: 20px;
    display: block;
}

.mobile-search {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    border-radius: 25px;
    padding: 5px;
}

.mobile-search .search-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 8px 15px;
    outline: none;
}

.mobile-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-search .search-btn {
    color: white;
    position: static;
    margin-left: auto;
}

.mobile-search .search-input {
    color: white;
    width: 100%;
}

.mobile-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-search .search-btn {
    color: white;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    fill: white;
    color: white;
}

.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 0 auto;
    background: #F3EFEA;
}

body.dark-mode .header-container {
    background: #1e1e1e;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
}

.menu-toggle:hover {
    background-color: #f0f0f0;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.main-nav {
    flex: 1;
    max-width: 800px;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav .nav-item {
    margin-bottom: 0;
}

.main-nav .nav-link {
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: none;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 40px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    width: 200px;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    width: 250px;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #3498db;
    background-color: #f0f0f0;
}

body.dark-mode .search-input {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .search-input::placeholder {
    color: #888;
}

body.dark-mode .search-input:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

body.dark-mode .search-btn {
    color: #aaa;
}

body.dark-mode .search-btn:hover {
    color: #4fc3f7;
    background-color: #444;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.action-btn:hover {
    background-color: #f0f0f0;
    color: #3498db;
    transform: scale(1.1);
}

.heart-icon {
    fill: none;
}

.heart-icon:hover {
    fill: #e74c3c;
}

body.dark-mode .action-btn {
    color: #aaa;
}

body.dark-mode .action-btn:hover {
    background-color: #444;
    color: #4fc3f7;
}

body.dark-mode .heart-icon:hover {
    fill: #ff5252;
}

.main-content {
    flex: 1;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.container h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.container p {
    color: #7f8c8d;
    font-size: 1.1rem;
}


@media (min-width: 1200px) {
    .main-nav .nav-list {
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .header .search-container {
        display: none;
    }
    .sidebar-search {
        display: block !important;
    }
}
@media (min-width: 992px) {
    .header .search-container {
        display: flex;
    }
}

@media (max-width: 1199px) {
    .main-nav .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    .search-input {
        width: 180px;
    }

    .search-input:focus {
        width: 220px;
    }
}

@media (max-width: 991px) {
    .main-nav {
        display: none;
    }

    .header-container {
        justify-content: space-between;
    }

    .header .search-container {
        display: none;
    }
    .sidebar-search {
        display: block;
    }

    .search-input {
        width: 150px;
    }

    .search-input:focus {
        width: 200px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

.sidebar-search {
    display: block;
}

@media (min-width: 992px) {
    .sidebar-search {
        display: none;
    }

    .header .search-container {
        display: flex;
    }
}

@media (max-width: 767px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }

    .header-container {
        padding: 10px 15px;
        height: 56px;
    }
    .header .search-container {
        display: none;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        padding: 7px;
    }

    .action-btn {
        padding: 8px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .container h1 {
        font-size: 2rem;
    }
}

@media (max-width: 479px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }

    .header-left {
        gap: 10px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .container h1 {
        font-size: 1.8rem;
    }

    .container p {
        font-size: 1rem;
    }
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.about {
    background: linear-gradient(135deg, #F3EFEA 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.about-container {
    margin: 0 auto;
}

.about h2 {
    margin: 0 auto;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6653D7, #00D6DE);
    border-radius: 2px;
}

.about-content {
    display: grid;
    gap: 30px;
    margin-top: 15px;
}

.about-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.about-item h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.about-item p {
    color: #7f8c8d;
    line-height: 1.7;
}

.footer {
    margin-top: 15px;
    background:#F3EFEA;;
    color: #7f8c8d;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-policy {
    margin: 0 10px;
}
.footer-policy a { 
    color: #495057;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.footer-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}


@media (max-width: 768px) {
    .about {
        padding: 40px 15px;
    }

    .about h2 {
        font-size: 1.8rem;
    }

    .about-content {
        gap: 20px;
    }

    .about-item {
        padding: 20px;
    }

    .about-item h3 {
        font-size: 1.2rem;
    }
}


@media (max-width: 768px) {
    .footer {
        padding: 40px 15px 20px;
    }

    .footer-top {
        gap: 30px;
    }

    .footer-logo-text {
        font-size: 1.3rem;
    }

    .footer-heading {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-social {
        justify-content: center;
    }
}


body.dark-mode .about {
    background: #1a1a1a;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .about h2 {
    color: #e0e0e0;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

body.dark-mode .about-item {
    background: #252525;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

body.dark-mode .about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border-color: #4fc3f7;
}

body.dark-mode .about-item h3 {
    color: #4fc3f7;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

body.dark-mode .about-item p {
    color: #b0b0b0;
    line-height: 1.7;
}

body.dark-mode .footer {
    background: #121212;
    border-top: 1px solid #252525;
    padding-top: 40px;
}

body.dark-mode .footer-top {
    border-bottom: 1px solid #252525;
    padding-bottom: 30px;
}

body.dark-mode .footer-description,
body.dark-mode .footer-links a {
    color: #909090;
    transition: color 0.3s ease;
}

body.dark-mode .footer-links a:hover {
    color: #4fc3f7;
    padding-left: 5px;
}

body.dark-mode .footer-logo-text {
    color: #4fc3f7;
}

body.dark-mode .footer-heading {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

body.dark-mode .footer-bottom {
    color: #757575;
    padding-top: 20px;
    text-align: center;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    animation: fadeIn 0.3s ease-out;
}

.nav-item:nth-child(1) .nav-link {
    animation-delay: 0.05s;
}

.nav-item:nth-child(2) .nav-link {
    animation-delay: 0.1s;
}

.nav-item:nth-child(3) .nav-link {
    animation-delay: 0.15s;
}

.nav-item:nth-child(4) .nav-link {
    animation-delay: 0.2s;
}

.nav-item:nth-child(5) .nav-link {
    animation-delay: 0.25s;
}

.nav-item:nth-child(6) .nav-link {
    animation-delay: 0.3s;
}

.nav-item:nth-child(7) .nav-link {
    animation-delay: 0.35s;
}

.nav-item:nth-child(8) .nav-link {
    animation-delay: 0.4s;
}

.nav-item:nth-child(9) .nav-link {
    animation-delay: 0.45s;
}


@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .header {
        background-color: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .menu-toggle {
        color: #e0e0e0;
    }

    .menu-toggle:hover {
        background-color: #404040;
    }

    .main-nav {
        background-color: #1a1a1a;
    }

    .main-nav .nav-link {
        color: #e0e0e0;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        background-color: #3498db;
        color: white;
        transform: translateX(5px);
    }

    body.dark-mode .sidebar,
    body.dark-mode .sidebar.active {
        background: #1a1a1a !important;
        color: #e0e0e0 !important;
        border-right: 1px solid #333;
        background-image: none !important;
    }

    body.dark-mode .sidebar-header {
        border-bottom: 1px solid #333 !important;
    }

    body.dark-mode .close-sidebar {
        color: #e0e0e0 !important;
    }

    body.dark-mode .close-sidebar:hover {
        background-color: #333 !important;
    }

    body.dark-mode .sidebar-search {
        background-color: transparent !important;
    }

    body.dark-mode .mobile-search .search-input {
        background-color: #2a2a2a !important;
        border: 1px solid #444 !important;
        color: #e0e0e0 !important;
    }

    body.dark-mode .mobile-search .search-btn {
        color: #e0e0e0 !important;
    }

    body.dark-mode .mobile-search .search-btn:hover {
        background-color: #333 !important;
    }

    body.dark-mode .sidebar-nav {
        background-color: transparent !important;
    }

    body.dark-mode .nav-list {
        background-color: transparent !important;
    }

    body.dark-mode .nav-item {
        background-color: transparent !important;
    }

    body.dark-mode .sidebar-nav .nav-link {
        color: #e0e0e0 !important;
        background-color: transparent !important;
        transition: all 0.3s ease;
    }

    body.dark-mode .sidebar-nav .nav-link:hover {
        background-color: #333 !important;
        color: #4fc3f7 !important;
    }

    body.dark-mode .sidebar-nav .nav-link.active {
        background-color: #3498db !important;
        color: white !important;
    }


    body.dark-mode .nav-icon {
        filter: brightness(0.8) !important;
    }
}

.search-input::placeholder {
    color: #909090;
}

.action-btn {
    color: #e0e0e0;
}


.container h1 {
    color: #ffffff;
}

.container p {
    color: #b0b0b0;
}

.game-cards-container {
    padding: 20px;
}

.game-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.game-card-img {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
}

.game-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-card-title,
.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-card:hover .game-card-title {
    opacity: 1;
    transform: translateY(0.2);
}

.game-card:hover .game-card-rating {
    display: none;
}


.category-carousel .game-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-carousel .game-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-cards-container .game-card::after {
    content: 'HOT';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
}

@media (max-width: 1200px) {
    .game-cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

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

@media (max-width: 768px) {
    .game-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .game-cards-container {
        padding: 15px;
    }
}

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

    .game-cards-container {
        padding: 10px;
    }
}

body.dark-mode .game-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .game-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .game-card-title,
body.dark-mode .game-title {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #e0e0e0;
}

.video-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-img {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
}

.video-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.play-triangle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}


.video-item:hover .play-triangle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.video-item:hover .video-img img {
    transform: scale(1.05);
}
.play-triangle img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
body.dark-mode .play-triangle img.filter-svg {
    filter: brightness(0) invert(1);
}
@media (max-width: 768px) {
    .play-triangle {
        width: 50px;
        height: 50px;
    }

    .play-triangle img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .play-triangle {
        width: 40px;
        height: 40px;
    }

    .play-triangle img {
        width: 16px;
        height: 16px;
    }
}

.game-category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.game-category-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.game-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px;
}
.game-category-item {
    background: #F3EFEA;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.game-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.game-category-img {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 100%;
}

.game-category-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.game-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    opacity: 0;
    background-color: #f5f5f5;
}

.game-category-img img.loaded {
    opacity: 1;
}
.game-category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-category-item:hover .game-category-title {
    transform: translateY(0);
}
@media (max-width: 768px) {
    .game-category-container {
        padding: 15px;
    }

    .game-category-container h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .game-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        padding: 5px;
    }

    .game-category-item {
        border-radius: 8px;
    }

    .game-category-title {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .game-category-container {
        padding: 10px;
    }

    .game-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .game-category-container h2 {
        font-size: 1.3rem;
    }
}

.ad-banner-isheight {
    height: 300px;
}

.ad-banner {
    width: 100%;
    text-align: center;
    background-color: #333;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.ad-banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-form .search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 14px;
}

.search-form .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 20px;
    transition: all 0.3s ease;
}

body.dark-mode .about {
    background-color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-container {
    padding: 20px;
    line-height: 1.6;
}

.about-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 20px;
    text-align: center;
}

body.dark-mode .about-container h2 {
    color: #4fc3f7;
}

.about-container p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
}

.about-container h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #3498db;
    margin: 25px 0 15px 0;
}

body.dark-mode .about-container p {
    color: #e0e0e0;
}

body.dark-mode .about-container h3 {
    color: #4fc3f7;
}

.about-container ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-container li {
    margin-bottom: 10px;
}

.isshow {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .about {
        margin: 15px;
        padding: 15px;
    }

    .about-container {
        padding: 15px;
    }

    .about-container h2 {
        font-size: 1.7rem;
    }

    .about-container h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .about {
        margin: 10px 5px;
        padding: 10px;
    }

    .about-container {
        padding: 10px;
    }

    .about-container h2 {
        font-size: 1.5rem;
    }
}

.about-content {
    padding: 20px;
    min-height: calc(100vh - 120px);
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.privacy-title {
    font-size: 2.5rem;
    text-align: center;
    padding: 30px 20px;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
}

.privacy-banner {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.privacy-banner h2 {
    margin: 0;
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 600;
}

.privacy-content {
    padding: 30px;
}

.privacy-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #495057;
}

.privacy-section {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.privacy-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

.info-category {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-category h4 {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-list,
.never-do-list {
    padding-left: 25px;
    margin: 15px 0;
}

.info-list li,
.never-do-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #495057;
    position: relative;
    padding-left: 10px;
}

.info-list li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.never-do-list li {
    font-weight: 500;
}

.never-do-list li::before {
    content: '✓';
    color: #48bb78;
    font-weight: bold;
    position: absolute;
    left: 0;
}

p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.updates {
    background-color: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.updates .section-title::before {
    background: #ffc107;
}

@media (max-width: 768px) {
    .about-content {
        padding: 10px;
    }

    .privacy-container {
        border-radius: 8px;
    }

    .privacy-title {
        font-size: 2rem;
        padding: 20px 15px;
    }

    .privacy-content {
        padding: 20px 15px;
    }

    .privacy-intro {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 479px) {
    .about-content {
        padding: 10px 8px;
    }

    .privacy-container {
        border-radius: 8px;
    }

    .privacy-title {
        font-size: 1.6rem;
        padding: 18px 12px;
    }

    .privacy-banner {
        padding: 15px 10px;
    }

    .privacy-banner h2 {
        font-size: 1.2rem;
    }

    .privacy-content {
        padding: 18px 12px;
    }

    .privacy-intro {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .privacy-section {
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .section-title {
        font-size: 1.2rem;
        padding-left: 20px;
        margin-bottom: 12px;
    }

    .section-title::before {
        width: 3px;
    }

    .info-category {
        margin: 16px 0;
        padding: 12px;
    }

    .info-category h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .info-list,
    .never-do-list {
        padding-left: 20px;
        margin: 12px 0;
    }

    .info-list li,
    .never-do-list li {
        margin-bottom: 10px;
        line-height: 1.5;
        font-size: 0.95rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .updates {
        padding: 16px;
    }
}

@media (max-width: 320px) {
    .about-content {
        padding: 8px 5px;
    }

    .privacy-title {
        font-size: 1.4rem;
        padding: 15px 10px;
    }

    .privacy-banner h2 {
        font-size: 1.1rem;
    }

    .privacy-content {
        padding: 15px 10px;
    }

    .privacy-intro {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .info-category h4 {
        font-size: 0.9rem;
    }

    .info-list li,
    .never-do-list li,
    p {
        font-size: 0.9rem;
    }
}


.isshow {
    display: none;
}

body.dark-mode .privacy-container {
    background-color: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .privacy-title {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #e0e0e0;
}

body.dark-mode .privacy-banner {
    background-color: #2d2d2d;
    border-bottom: 1px solid #333;
}

body.dark-mode .privacy-banner h2 {
    color: #4fc3f7;
}

body.dark-mode .privacy-content {
    background-color: #1e1e1e;
}

body.dark-mode .privacy-intro {
    color: #b0b0b0;
}

body.dark-mode .privacy-section {
    border-bottom: 1px solid #333;
}

body.dark-mode .section-title {
    color: #4fc3f7;
}

body.dark-mode .section-title::before {
    background: linear-gradient(to bottom, #4fc3f7, #3498db);
}

body.dark-mode .info-category {
    background-color: #2d2d2d;
}

body.dark-mode .info-category h4 {
    color: #e0e0e0;
}

body.dark-mode .info-list li,
body.dark-mode .never-do-list li {
    color: #b0b0b0;
}

body.dark-mode .info-list li::before {
    color: #4fc3f7;
}

body.dark-mode .never-do-list li::before {
    color: #48bb78;
}

body.dark-mode p {
    color: #b0b0b0;
}

body.dark-mode .updates {
    background-color: #333333;
    border-left: 4px solid #ffc107;
}

body.dark-mode .about-content {
    background-color: #121212;
}

