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

body {
    min-height: 100vh;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    padding: 20px;
}

.container {
    width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.game-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    top: 0;
    transform: translateZ(0);
}

.game-item:hover {
    top: -4px;
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
}

.game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    padding: 10px;
}

.game-info {
    padding: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-name {
    font-size: 16px;
    color: #ff2d6f;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.download-count {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: #ff2d6f;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: calc(100% - 16px);
    min-height: 24px;
    position: relative;
    top: 0;
}

.download-btn:hover {
    background: #ff4683;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.download-btn:active {
    background: #ff1a5f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

@media (max-width: 840px) {
    .container {
        width: 100%;
        padding: 8px;
        margin: 0 auto 20px;
    }
    
    .game-grid {
        gap: 4px;
    }

    .game-info {
        padding: 6px;
    }

    .game-name {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .download-count {
        margin-bottom: 6px;
    }

    .download-btn {
        padding: 4px 15px;
        font-size: 11px;
        width: 120px;
    }
} 

/* 页头样式 */
.header {
    width: 900px;
    margin: 20px auto 30px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.2),
                0 0 25px rgba(255, 255, 255, 0.6),
                0 0 15px rgba(255, 255, 255, 0.4),
                0 0 35px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0), #ff2d6f, #ff2d6f, #ff2d6f, rgba(255,255,255,0));
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.5) 100%);
    border: 1px solid rgba(255,255,255,0.6);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    will-change: transform;
    min-width: 110px;
}

.nav-menu a i {
    margin-right: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.7) 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.nav-menu a:hover i {
    transform: translateY(-3px) scale(1.1);
    color: #ff2d6f;
}

.nav-menu a:active {
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: linear-gradient(135deg, #ff2d6f 0%, #ff6b9c 100%);
    color: #fff;
    box-shadow: 0 6px 15px rgba(255, 45, 111, 0.3);
    position: relative;
    transform: translateY(-2px);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: #fff;
    border-radius: 4px 4px 0 0;
}

.nav-menu a.active i {
    color: white;
}

.nav-menu a .ripple {
    position: absolute;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 响应式调整 */
@media (max-width: 840px) {
    .header {
        width: calc(100% - 30px);
        padding: 15px;
        margin: 15px auto 20px;
    }
    
    .logo {
        font-size: 24px;
        margin-bottom: 12px;
        letter-spacing: 1px;
        padding-bottom: 12px;
    }
    
    .logo::after {
        width: 140px;
        height: 2px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        padding: 8px 16px;
        font-size: 14px;
        min-width: unset;
    }
    
    .nav-menu a i {
        font-size: 16px;
    }
}

@media (max-width: 500px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 10px;
        font-size: 18px;
        padding-bottom: 10px;
    }
    
    .logo::after {
        width: 100px;
        height: 2px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        flex: 1;
        text-align: center;
        padding: 8px 5px;
        font-size: 12px;
        flex-direction: column;
        min-width: 60px;
    }
    
    .nav-menu a i {
        margin-right: 0;
        margin-bottom: 4px;
        font-size: 16px;
    }
}

/* 主搜索框样式 */
.main-search-container {
    width: 700px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(255, 255, 255, 0.6),
                0 0 12px rgba(255, 255, 255, 0.4),
                0 0 25px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

.main-search-input {
    flex: 1;
    height: 50px;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    color: #333;
    background: transparent;
    outline: none;
    letter-spacing: 0.5px;
}

.main-search-submit {
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff2d6f 0%, #ff6b9c 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.main-search-submit:hover {
    background: linear-gradient(135deg, #ff3d7f 0%, #ff7bac 100%);
}

/* 搜索结果高亮样式 */
.game-item.search-highlight {
    box-shadow: 0 0 0 3px #ff2d6f, 0 8px 32px rgba(31, 38, 135, 0.25) !important;
    transform: translateY(-5px) !important;
    z-index: 10;
    position: relative;
    animation: pulse-highlight 1.5s infinite;
}

@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 3px rgba(255, 45, 111, 1), 0 8px 32px rgba(31, 38, 135, 0.25);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255, 45, 111, 0.6), 0 8px 32px rgba(31, 38, 135, 0.25);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(255, 45, 111, 1), 0 8px 32px rgba(31, 38, 135, 0.25);
    }
}

/* 响应式调整 */
@media (max-width: 840px) {
    .main-search-container {
        width: calc(100% - 30px);
        margin: 0 auto 20px;
    }
    
    .main-search-input {
        height: 44px;
        font-size: 15px;
        padding: 0 15px;
    }
    
    .main-search-submit {
        width: 50px;
        height: 44px;
        font-size: 16px;
    }
}

/* 轮播图样式 */
.carousel {
    width: 700px;
    height: 300px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1),
                0 0 25px rgba(255, 255, 255, 0.6),
                0 0 15px rgba(255, 255, 255, 0.4),
                0 0 35px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateZ(0);
}

/* 免责声明样式 */
.disclaimer {
    width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1),
                0 0 25px rgba(255, 255, 255, 0.6),
                0 0 15px rgba(255, 255, 255, 0.4),
                0 0 35px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #333;
}

.disclaimer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.disclaimer-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.disclaimer-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255, 45, 111, 0.5), rgba(255, 45, 111, 0.5), rgba(255, 45, 111, 0.5), rgba(255,255,255,0));
    border-radius: 2px;
}

.disclaimer-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

@media (max-width: 840px) {
    .header,
    .carousel,
    .announcement,
    .container,
    .disclaimer,
    .footer {
        width: calc(100% - 30px);
        margin-left: auto;
        margin-right: auto;
    }

    .disclaimer {
        padding: 15px;
        margin-bottom: 20px;
    }

    .disclaimer-content h3 {
        font-size: 16px;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }
    
    .disclaimer-content h3::after {
        width: 80%;
        height: 1px;
    }

    .disclaimer-content p {
        font-size: 13px;
    }
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 840px) {
    .carousel {
        width: 100%;
        height: 200px;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1),
                    0 0 20px rgba(255, 255, 255, 0.6),
                    0 0 12px rgba(255, 255, 255, 0.4),
                    0 0 25px rgba(255, 255, 255, 0.2);
    }
    
    .carousel-container {
        width: 100%;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
} 

/* 公告栏样式 */
.announcement {
    width: 700px;
    margin: 0 auto 30px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1),
                0 0 25px rgba(255, 255, 255, 0.6),
                0 0 15px rgba(255, 255, 255, 0.4),
                0 0 35px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.announcement-label {
    flex-shrink: 0;
    font-weight: bold;
    color: #ff2d6f;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 2px solid rgba(255, 45, 111, 0.3);
}

.announcement-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.announcement-list {
    position: absolute;
    left: 0;
    top: 0;
    animation: scrollAnnouncement 10s linear infinite;
    white-space: nowrap;
    color: #333;
}

.announcement-list:hover {
    animation-play-state: paused;
}

@keyframes scrollAnnouncement {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 840px) {
    .announcement {
        width: 100%;
        padding: 10px 15px;
        margin: 0 auto 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1),
                    0 0 20px rgba(255, 255, 255, 0.6),
                    0 0 12px rgba(255, 255, 255, 0.4),
                    0 0 25px rgba(255, 255, 255, 0.2);
    }
    
    .announcement-label {
        font-size: 13px;
        margin-right: 12px;
        padding-right: 12px;
    }
} 

/* 页脚样式 */
.footer {
    width: 800px;
    margin: 0 auto 50px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1),
                0 0 25px rgba(255, 255, 255, 0.6),
                0 0 15px rgba(255, 255, 255, 0.4),
                0 0 35px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    color: #333;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 14px;
    position: relative;
    padding-top: 30px;
    padding-bottom: 18px;
}

.footer-links::before {
    content: '友情链接';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #555;
    font-weight: 600;
    letter-spacing: 1px;
    padding-bottom: 5px;
}

.footer-links a {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-links a:hover {
    background: rgba(255, 45, 111, 0.1);
    color: #ff2d6f;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 45, 111, 0.1);
}

.footer-info {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.footer-info p:first-child {
    margin-bottom: 8px;
}

.footer-info p:last-child {
    color: #999;
    font-size: 12px;
}

@media (max-width: 840px) {
    .header,
    .carousel,
    .announcement,
    .container,
    .disclaimer,
    .footer {
        width: calc(100% - 30px);
        margin-left: auto;
        margin-right: auto;
    }

    .footer {
        padding: 20px 15px;
        margin-bottom: 30px;
        border-radius: 8px;
    }
    
    .footer-links::before {
        font-size: 13px;
    }
    
    .footer-links {
        padding-top: 26px;
        padding-bottom: 15px;
        gap: 8px;
    }

    .footer-links a {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .footer-info {
        font-size: 12px;
    }
    
    .footer-info p:last-child {
        font-size: 11px;
    }
}

/* 电子游戏下载按钮样式 */
.electronic-download-btn {
    background-color: #4a90e2 !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.electronic-download-btn:hover {
    background-color: #357abd !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.electronic-download-btn i {
    font-size: 16px !important;
}

#electronic-games .game-item {
    background: linear-gradient(145deg, #f6f8fa, #ffffff) !important;
    border: 1px solid #e1e4e8 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

#electronic-games .game-name {
    color: #2c3e50 !important;
    font-weight: 600 !important;
} 