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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --card-gradient: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --bg-light: #f7fafc;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    --shadow-hover: 0 15px 40px rgba(102, 126, 234, 0.3);
}
.de_iv_adv {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 5px 0;
	/* background-color: #F8F8F8; */
	margin: 10px 0 0px;
}


/* 底部广告位 */

.postionFixed {
	width: 100%;
	min-height: 60px;
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #F8F8F8;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 9999;
}
html{
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    font-size: 40px;
    opacity: 0.15;
    animation: float 20s infinite;
}

.floating-icon:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { left: 25%; animation-delay: 2s; }
.floating-icon:nth-child(3) { left: 40%; animation-delay: 4s; }
.floating-icon:nth-child(4) { left: 55%; animation-delay: 1s; }
.floating-icon:nth-child(5) { left: 70%; animation-delay: 3s; }
.floating-icon:nth-child(6) { left: 85%; animation-delay: 5s; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}


header {
    background: var(--primary-gradient);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-desktop a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-desktop a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.search-box {
    padding: 0.6rem 3rem 0.6rem 1.2rem;
    border: none;
    border-radius: 25px;
    width: 250px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-box:focus {
    outline: none;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-icon-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}


.mobile-header {
    display: none;
}

.menu-icon, .search-icon-mobile {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-gradient);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 2000;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-nav {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 2rem;
}

.mobile-nav-list li {
    margin-bottom: 1.5rem;
}

.mobile-nav-list a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-nav-list a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-gradient);
    transform: translateY(-100%);
    transition: transform 0.3s;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.mobile-search.active {
    transform: translateY(0);
}

.mobile-search-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-search-box {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    width: 100%;
}


footer {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 2rem 5.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    opacity: 1;
    padding-left: 8px;
    color: #f093fb;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    font-size: 1.8rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icons a svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a:hover svg {
    transform: scale(1.1) rotate(5deg);
}


.social-icons a:nth-child(1):hover {
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.5);
}

.social-icons a:nth-child(2):hover {
    box-shadow: 0 5px 20px rgba(29, 161, 242, 0.5);
}

.social-icons a:nth-child(3):hover {
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.5);
}

.social-icons a:nth-child(4):hover {
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.social-icons a:nth-child(5):hover {
    box-shadow: 0 5px 20px rgba(114, 137, 218, 0.5);
}

.social-icons a:nth-child(6):hover {
    box-shadow: 0 5px 20px rgba(255, 0, 80, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.9;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}


.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}


.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.game-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card-content {
    padding: 1rem;
}

.game-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.game-card-category {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.game-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.load-more {
    display: block;
    margin: 3rem auto;
    padding: 1rem 3rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.load-more:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


@media (max-width: 768px) {
    .game-card-title{
        font-size: 1rem;
    }
    .header-container {
        display: none;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .game-card-img {
        height: 130px;
    }

    .back-to-top {
        bottom: 100px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
