* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    /* background: linear-gradient(to right, #ff00cc, #00ccff); */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

.content-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.main-game {
    flex: 3;
    /* background: rgba(25, 25, 45, 0.85); */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    /* padding: 40px; */
    position: relative;
    overflow: hidden;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

/* iframe 容器与全屏按钮样式 */
.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #1fa27a, #34d399);
    color: #0b1b18;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    opacity: 0.95;
}

.fullscreen-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
    opacity: 1;
}

.fullscreen-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.main-game::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    /* background: linear-gradient(45deg, #ff00cc, #00ccff, #00ffcc, #ffcc00); */
    z-index: -1;
    border-radius: 22px;
    /* animation: borderAnimation 4s linear infinite; */
}

@keyframes borderAnimation {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.game-title {
    font-size: 4.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff00cc, #00ccff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    font-weight: 900;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 0, 204, 0.7);
    }

    25% {
        text-shadow: 0 0 20px rgba(0, 204, 255, 0.7);
    }

    50% {
        text-shadow: 0 0 25px rgba(0, 255, 204, 0.7);
    }

    75% {
        text-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
    }

    100% {
        text-shadow: 0 0 10px rgba(255, 0, 204, 0.7);
    }
}

.game-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.start-button {
    background: linear-gradient(45deg, #ff00cc, #00ccff);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin: 40px auto;
}

.start-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.start-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.start-button:hover::before {
    left: 100%;
}

.difficulty-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.difficulty-option {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 140px;
}

.difficulty-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.difficulty-option.active {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #00ccff;
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.5);
}

.difficulty-option i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.difficulty-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.difficulty-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.game-description {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
    line-height: 1.6;
    border-left: 4px solid #ff00cc;
}

.game-description h3 {
    margin-bottom: 15px;
    color: #00ffcc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature i {
    color: #00ccff;
    font-size: 1.2rem;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* 右侧游戏列表样式 */
.game-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 5px;
    background: linear-gradient(to bottom, #ff00cc, #00ccff);
    border-radius: 3px;
}

.game-card {
    background: rgba(25, 25, 45, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 204, 255, 0.5);
}

.game-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff00cc, #00ccff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.game-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.game-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* 下方热门游戏样式 */
.popular-games {
    margin-top: 50px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 50px auto 0;
    width: 100%;
}

.carousel {
    position: relative;
}

.games-container {
    display: flex;
    gap: 25px;
    overflow: hidden;
    padding: 15px 5px;
    scroll-behavior: smooth;
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(0,0,0,0.5);
    opacity: 1;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }

.popular-game-card {
    background: rgba(25, 25, 45, 0.85);
    border-radius: 15px;
    overflow: hidden;
    min-width: 250px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.game-header {
    height: 140px;
    background: linear-gradient(45deg, #ff00cc, #00ccff);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-header i {
    font-size: 4rem;
    opacity: 0.7;
}

.game-body {
    padding: 20px;
}

.game-body h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.game-body p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 15px;
}

.play-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 粒子背景效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleAnimation linear infinite;
}

@keyframes particleAnimation {
    to {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .content-container {
        flex-direction: column;
    }

    .game-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 2.8rem;
    }

    .game-subtitle {
        font-size: 1.2rem;
    }

    .difficulty-selector {
        flex-direction: column;
        align-items: center;
    }

    .difficulty-option {
        width: 90%;
        max-width: 280px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .start-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }

    .popular-game-card {
        min-width: 220px;
    }
}