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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #fff;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(78, 204, 163, 0.6);
    border-radius: 50%;
    animation: float 20s infinite;
    box-shadow: 0 0 10px rgba(78, 204, 163, 0.8);
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 鼠标跟随光效 */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 204, 163, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* 顶部导航 */
.header {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    margin: 0 auto 20px;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    filter: drop-shadow(0 0 10px rgba(78, 204, 163, 0.6));
    transition: all 0.3s;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(78, 204, 163, 0.6)); }
    50% { filter: drop-shadow(0 0 20px rgba(78, 204, 163, 0.9)); }
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 25px rgba(78, 204, 163, 0.8));
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(78, 204, 163, 0.5);
}

.logo-io {
    color: #4ecca3;
    font-weight: 300;
}

.search-bar {
    flex: 1;
    max-width: 450px;
    margin: 0 30px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(78, 204, 163, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    transition: all 0.3s;
    font-size: 14px;
}

.search-bar input:focus {
    border-color: #4ecca3;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(78, 204, 163, 0.3);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-bar i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(78, 204, 163, 0.7);
    font-size: 16px;
    transition: color 0.3s;
}

.search-bar:hover i {
    color: #4ecca3;
}

/* 导航分类 */
.nav-categories {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-item {
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(78, 204, 163, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.nav-item:hover::before {
    width: 200px;
    height: 200px;
}

.nav-item:hover {
    color: #4ecca3;
    background: rgba(78, 204, 163, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    color: #4ecca3;
    background: rgba(78, 204, 163, 0.2);
    box-shadow: 0 0 15px rgba(78, 204, 163, 0.3);
}

/* 主布局 */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 中间内容区 */
.main-content {
    width: 100%;
}

/* 游戏展示区 */
.game-showcase {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(78, 204, 163, 0.15), inset 0 0 60px rgba(78, 204, 163, 0.05);
    animation: showcaseGlow 3s ease-in-out infinite alternate;
}

@keyframes showcaseGlow {
    0% { box-shadow: 0 0 30px rgba(78, 204, 163, 0.15), inset 0 0 60px rgba(78, 204, 163, 0.05); }
    100% { box-shadow: 0 0 50px rgba(78, 204, 163, 0.25), inset 0 0 80px rgba(78, 204, 163, 0.1); }
}

.game-frame {
    width: 100%;
    aspect-ratio: 16/9;
    background: #2d5a3d;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
}

.game-title-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.game-title {
    font-size: 16px;
    font-weight: bold;
}

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

.game-actions i {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.game-actions i:hover {
    color: #4ecca3;
}

/* 相关游戏网格 */
.related-games {
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4ecca3;
}

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

.game-card {
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 30px rgba(78, 204, 163, 0.4), 0 0 20px rgba(78, 204, 163, 0.3);
}

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

.game-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 5px 5px;
    font-size: 11px;
    text-align: center;
}

/* 游戏系列 */
.game-series {
    margin-bottom: 20px;
}

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

.series-nav {
    display: flex;
    gap: 10px;
}

.series-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.series-nav button:hover {
    background: #4ecca3;
}

.series-games {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.series-games::-webkit-scrollbar {
    height: 5px;
}

.series-games::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.series-games::-webkit-scrollbar-thumb {
    background: #4ecca3;
    border-radius: 5px;
}

.series-game {
    flex-shrink: 0;
    width: 100px;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.series-game:hover {
    transform: scale(1.05);
}

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

/* 内容区域 - 改为单列布局 */
.content-section {
    margin-bottom: 20px;
}

/* 游戏介绍 */
.game-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
}

/* info-header 新布局 - 放在标题上方，独立样式 */
.info-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-left: 4px solid #ffd700;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 12px 12px 0 0;
    color: #ffd700;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
}

.info-content h2 {
    color: #4ecca3;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(78, 204, 163, 0.3);
}

.info-content h3 {
    color: #ffd700;
    font-size: 15px;
    margin: 20px 0 12px;
}

.info-content p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.info-content a {
    color: #4ecca3;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tag {
    background: rgba(78, 204, 163, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #4ecca3;
    border: 1px solid rgba(78, 204, 163, 0.3);
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(78, 204, 163, 0.3);
    cursor: pointer;
}

/* 新游戏区域 */
.new-games {
    margin-bottom: 20px;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4ecca3;
}

.footer-copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .info-header {
        font-size: 13px;
        padding: 12px 15px;
    }
}