:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2C3E50;
    --light-text: #fff;
    --background: #1A1B41;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background: var(--background);
    overflow-x: hidden;
}

/* 像素字体效果 */
.pixel-text {
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 2px;
    line-height: 1.8;
}

/* 故障艺术效果 */
.glitch {
    position: relative;
    font-family: 'Press Start 2P', cursive;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
                     -0.04em -0.025em 0 #fffc00;
    }
}

/* 导航栏 */
.game-nav {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(26, 27, 65, 0.9);
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
}

.logo span {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--secondary-color);
}

/* 浮动元素 */
.floating-elements {
    position: relative;
    width: 500px;
    height: 500px;
}

.float-item {
    position: absolute;
    width: 150px;
    height: 150px;
    animation: float 6s ease-in-out infinite;
}

.float-item:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.float-item:nth-child(2) {
    top: 40%;
    right: 20%;
    animation-delay: 2s;
}

.float-item:nth-child(3) {
    bottom: 20%;
    left: 40%;
    animation-delay: 4s;
}

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

/* 游戏展示区 */
.games {
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--accent-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
}

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

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: var(--secondary-color);
}

/* 工作室介绍 */
.studio {
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.studio-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.studio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-family: 'Press Start 2P', cursive;
}

.stat-label {
    color: var(--secondary-color);
}

/* 加入我们 */
.join {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
}

.join-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.position-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.position-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.apply-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.apply-btn:hover {
    transform: translateX(5px);
}

/* 联系表单 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form .contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.contact-form .contact-info p {
    color: var(--accent-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form .contact-info i {
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: var(--light-text);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

/* 按钮样式 */
.primary-btn,
.secondary-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--light-text);
}

.secondary-btn {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--accent-color);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-3px);
}

/* 页脚 */
.footer {
    background: rgba(26, 27, 65, 0.9);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .studio-content,
    .join-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .floating-elements {
        display: none;
    }
}

/* 粒子效果 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}