.gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #00c6a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.game-card:hover .game-thumbnail {
    transform: scale(1.05);
}
.mobile-menu {
    max-height: 0;
    transition: max-height 0.3s ease-out;
}
.mobile-menu.open {
    max-height: 500px;
}
@media (max-width: 640px) {
    .game-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
    .category-card {
        padding: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .game-thumbnail {
        height: 200px;
    }
}
@media (min-width: 1024px) {
    .hero-section {
        min-height: 60vh;
    }
}
.game-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-height: 547px;
}

.game-placeholder {
    width: 100%;
    height: 547px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button {
    background: linear-gradient(135deg, #9333EA 0%, #9333EA 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.logo-img{
    width: 50px;
    border-radius: 10px;
    margin-right: 10px;
}
.game-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.fullscreen-btn {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-iframe {
    width: 100%;
    height: 547px;
    border: none;
    display: none;
    min-height: 547px;
}

@media (max-width: 768px) {
    .game-placeholder,
    .game-iframe {
        height: 300px;
    }
    #game-div, .game-container, .game-iframe, .game-placeholder {
        min-height: 300px;
        height: 300px;
    }
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #7c3aed 0%, #00c6a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.games-layout {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
}

/* 左右两侧游戏区域 */
.games-column {
    width: 280px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    height: fit-content;
}

.column-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7c3aed;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #334155;
}

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

.game-icon {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    position: relative;
}

.game-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #7c3aed;
}

.game-icon.active {
    border-color: #00c6a7;
    box-shadow: 0 0 20px rgba(0, 198, 167, 0.4);
}

.game-icon.active::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #00c6a7;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

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

.game-icon h3 {
    padding: 12px 8px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.9);
    line-height: 1.4;
}

/* 主游戏区 */
.main-game-container {
    flex: 1;
    max-width: 800px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out;
    margin: 0 auto;
}

.game-preview {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
}

.play-button {
    background: linear-gradient(135deg, #9333EA 0%, #00c6a7 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 10;
    font-weight: 700;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.play-button:active {
    transform: scale(0.98);
}

.game-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background: rgba(15, 23, 42, 0.9);
}

.game-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-title img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #7c3aed;
}

.fullscreen-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #00c6a7 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 游戏描述 */
.game-description {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.2s ease-out;
}

.game-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #7c3aed;
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-description p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.game-description ul {
    margin-top: 20px;
    padding-left: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.game-description li {
    margin-bottom: 10px;
    color: #cbd5e1;
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-description li:before {
    content: "•";
    color: #00c6a7;
    font-size: 1.5rem;
}

/* 游戏统计数据 */
.game-stats {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    animation: fadeIn 1.4s ease-out;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #00c6a7;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.stat-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.9);
}

.stat-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #00c6a7);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #00c6a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 500;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .games-layout {
        gap: 15px;
    }

    .games-column {
        width: 240px;
    }
}

@media (max-width: 1024px) {
    .games-layout {
        flex-direction: column;
    }

    .games-column {
        width: 100%;
        max-width: 100%;
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .main-game-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-preview {
        height: 350px;
    }

    .play-button {
        font-size: 1.3rem;
        padding: 14px 35px;
    }

    .game-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .fullscreen-btn {
        width: 100%;
        justify-content: center;
    }

    .game-description ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .game-preview {
        height: 280px;
    }

    .play-button {
        font-size: 1.1rem;
        padding: 12px 30px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.decoration {
    position: absolute;
    z-index: -1;
}

.decoration-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
}

.decoration-2 {
    bottom: 20%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 198, 167, 0.2) 0%, transparent 70%);
}

.decoration-3 {
    top: 40%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
}

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

.view-all {
    color: #00c6a7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all:hover {
    gap: 8px;
    text-decoration: underline;
}

/* 游戏卡片样式 - 确保按钮固定在底部 */
.game-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card .relative {
    flex-shrink: 0;
}

.game-card .p-2 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.game-card .p-2 h3 {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.game-card .mt-4 {
    margin-top: auto !important;
}

/* 游戏卡片网格样式 - 确保所有卡片高度一致 */
.grid.grid-cols-1.md\:grid-cols-4.lg\:grid-cols-5 .game-card {
    height: 100%;
    min-height: 300px;
}
