/* 游戏世界 - youxi1 基础样式 */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1a365d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

/* Logo区域 */
.navbar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.navbar-logo a:hover {
    transform: translateY(-1px);
}

.custom-logo {
    margin-right: 10px;
    transition: all 0.3s ease;
}

.logo-svg {
    width: 40px;
    height: 40px;
    animation: logoFloat 3s ease-in-out infinite;
}

.navbar-logo a:hover .logo-svg {
    animation-play-state: paused;
    transform: scale(1.1) rotate(10deg);
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-2px) rotate(2deg); 
    }
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 6px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lang-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

.lang-separator {
    color: #64748b;
    font-size: 0.9rem;
}

/* 导航菜单 */
.navbar-menu {
    flex: 1;
    margin: 0 40px;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu-item a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.menu-item a:hover {
    color: #90cdf4;
}

/* 搜索框 */
.navbar-search {
    margin-right: 20px;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
}

.search-input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: white;
    width: 200px;
    outline: none;
}

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

.search-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #90cdf4;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* 用户区域 */
.navbar-user {
    display: flex;
    align-items: center;
}

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

.login-btn, .register-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    color: #90cdf4;
    border: 1px solid #90cdf4;
}

.login-btn:hover {
    background: #90cdf4;
    color: #1a365d;
}

.register-btn {
    background: #3182ce;
    color: white;
    border: 1px solid #3182ce;
}

.register-btn:hover {
    background: #2c5aa0;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 主内容区域 */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 轮播图区域 */
.hero-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
}

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

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    text-align: center;
    color: white;
    z-index: 2;
}

.slide-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-btn {
    padding: 12px 30px;
    background: #3182ce;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.slide-btn:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

/* 轮播图控制器 */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.carousel-prev, .carousel-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 区块标题样式 */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 30px;
    text-align: center;
}

/* 游戏分类区域 */
.game-categories {
    padding: 60px 20px;
    background: white;
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.15);
    border-color: #90cdf4;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a365d;
}

.category-count {
    font-size: 0.9rem;
    color: #718096;
}

/* 热门游戏区域 */
.popular-games {
    padding: 60px 20px;
    background: #f7fafc;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: #1a365d;
    color: white;
    border-color: #1a365d;
}

.tab-btn:not(.active):hover {
    border-color: #90cdf4;
    color: #1a365d;
}

/* 游戏网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 54, 93, 0.15);
}

.game-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

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

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

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    padding: 10px 20px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #2c5aa0;
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 8px;
}

.game-description {
    color: #718096;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
}

.game-rating {
    color: #f59e0b;
    font-weight: 600;
}

.game-players {
    color: #4a5568;
}

.game-tag {
    padding: 4px 8px;
    background: #e6fffa;
    color: #00a3c4;
    border-radius: 4px;
    font-weight: 600;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 12px 30px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    padding: 40px 0 20px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo-section {
    flex: 1;
}

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

.footer-logo .custom-logo {
    margin-right: 12px;
}

.footer-logo .logo-svg {
    width: 32px;
    height: 32px;
}

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

.footer-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 300px;
}

.footer-info {
    flex: 0 0 auto;
}

.footer-stats {
    display: flex;
    gap: 30px;
}

.footer-stats .stat-item {
    text-align: center;
}

.footer-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 4px;
}

.footer-stats .stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-tech {
    color: #64748b;
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .language-switcher {
        margin-right: 10px;
        gap: 6px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .user-actions {
        gap: 10px;
    }
    
    .login-btn, .register-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .category-item {
        padding: 20px 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-description {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: 60px;
        padding: 0 10px;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .hero-carousel {
        height: 300px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-stats {
        gap: 15px;
    }
    
    .footer-stats .stat-number {
        font-size: 1.5rem;
    }
}

/* ==================== 新设计样式 ==================== */

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: visible;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 粒子星空效果 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 10;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(200,220,255,1) 0%, rgba(100,150,255,0.9) 40%, rgba(200,220,255,0.7) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(150,180,255,0.8), 0 0 40px rgba(100,150,255,0.5);
    z-index: 11;
}

/* 粒子从四个方向飞入的动画 */
@keyframes flyFromTop {
    0% {
        transform: translateY(-100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(50vh) translateX(0) scale(1);
        opacity: 0;
    }
}

@keyframes flyFromBottom {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50vh) translateX(0) scale(1);
        opacity: 0;
    }
}

@keyframes flyFromLeft {
    0% {
        transform: translateX(-100vw) translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(50vw) translateY(0) scale(1);
        opacity: 0;
    }
}

@keyframes flyFromRight {
    0% {
        transform: translateX(100vw) translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50vw) translateY(0) scale(1);
        opacity: 0;
    }
}

/* 对角线飞入动画 */
@keyframes flyFromTopLeft {
    0% {
        transform: translateX(-100vw) translateY(-100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(50vw) translateY(50vh) scale(1);
        opacity: 0;
    }
}

@keyframes flyFromTopRight {
    0% {
        transform: translateX(100vw) translateY(-100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50vw) translateY(50vh) scale(1);
        opacity: 0;
    }
}

@keyframes flyFromBottomLeft {
    0% {
        transform: translateX(-100vw) translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(50vw) translateY(-50vh) scale(1);
        opacity: 0;
    }
}

@keyframes flyFromBottomRight {
    0% {
        transform: translateX(100vw) translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50vw) translateY(-50vh) scale(1);
        opacity: 0;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 5;
}

.hero-content {
    flex: 1;
    animation: fadeInLeft 1s ease-out 0.2s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #60a5fa, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e2e8f0;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: #a0aec0;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn.primary {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.hero-btn.secondary {
    border: 2px solid #60a5fa;
    color: #60a5fa;
}

.hero-btn.secondary:hover {
    background: #60a5fa;
    color: #0f172a;
}

.hero-preview {
    flex: 0 0 400px;
    animation: fadeInRight 1s ease-out 0.4s both;
}

.preview-games {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.preview-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.preview-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* 游戏展示区域 */
.games-showcase {
    padding: 80px 0;
    background: #f8fafc;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
    animation: scaleIn 0.6s ease-out both;
}

.game-card:nth-child(1) { animation-delay: 0.8s; }
.game-card:nth-child(2) { animation-delay: 0.9s; }
.game-card:nth-child(3) { animation-delay: 1.0s; }
.game-card:nth-child(4) { animation-delay: 1.1s; }
.game-card:nth-child(5) { animation-delay: 1.2s; }
.game-card:nth-child(6) { animation-delay: 1.3s; }

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

.game-card:active {
    transform: translateY(-4px) scale(0.98);
}

.game-thumbnail {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    animation: iconBounce 2s ease-in-out infinite;
}

.game-card:hover .game-icon {
    transform: scale(1.2) rotate(5deg);
    animation-play-state: paused;
}

@keyframes iconBounce {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(2deg); 
    }
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.play-btn:hover {
    transform: scale(1.05);
}

.game-info {
    padding: 25px;
}

.game-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

.game-description {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.game-rating {
    color: #f59e0b;
    font-weight: 600;
}

.game-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 关于部分 */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

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

.about-content {
    text-align: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 30px;
}

.about-description {
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-description p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

.feature-desc {
    color: #4a5568;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-preview {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}