/* 全局变量定义 */
:root {
    --primary-color: #ff0066;    /* 主色调：霓虹粉 */
    --secondary-color: #00ffff;  /* 次要色：青色 */
    --accent-color: #ff00ff;     /* 强调色：紫色 */
    --text-color: #ffffff;       /* 文本颜色 */
    --bg-color: #000000;        /* 深色背景 */
    --text-light: #ffffff;      /* 浅色文本 */
    --card-bg: #1a1a1a;         /* 卡片背景色 */
    --hover-color: #ff3385;     /* 悬停效果色 */
    --nav-bg: rgba(0, 0, 0, 0.9); /* 导航栏背景 */
    --footer-bg: #1a1a1a;       /* 页脚背景色 */
}

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

/* 基础布局 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-color);
    margin: 0;
    padding: 0;
}

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

/* 导航栏样式 */
.main-nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 102, 0.2);
}

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

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
    animation: glow 2s ease-in-out infinite;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(255, 0, 102, 0.5);
}

/* 头部英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.2)"/></svg>') repeat;
    background-size: 30px 30px;
    opacity: 0.1;
    animation: moveBackground 20s linear infinite;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s;
}

/* 主要内容区域 */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.3);
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    animation: glowLine 2s ease-in-out infinite;
}

/* 内容区域样式 */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.9;
}

.content p:last-child {
    margin-bottom: 0;
}

/* 特性网格布局 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* 游戏区域样式 */
.game-section {
    background: var(--card-bg);
    padding: 4rem 0;
    margin: 2rem 0;
}

.game-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.3);
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.game-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60.625%; /* 485/800 = 0.60625, 保持游戏iframe的原始比例 */
    overflow: hidden;
    border-radius: 8px;
}

.game-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* 游戏区域响应式设计 */
@media (max-width: 840px) {
    .game-container {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .game-section {
        padding: 2rem 0;
    }
    
    .game-section h2 {
        font-size: 2rem;
    }
}

/* 特性卡片网格 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    color: var(--text-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 102, 0.1);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 102, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 0, 102, 0.2);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(255, 0, 102, 0.3);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    opacity: 0.9;
}

/* CTA框样式 */
.cta-box {
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.1), rgba(0, 255, 255, 0.1));
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 0, 102, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.3);
}

.cta-box p {
    margin-bottom: 2rem;
}

.cta-box .button {
    margin-top: 1rem;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.4s;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button:hover::before {
    opacity: 1;
}

.button:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* 页脚样式 */
.site-footer {
    background: var(--footer-bg);
    color: var(--text-light);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 0, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 0, 102, 0.5), 
        transparent
    );
    animation: glowLine 2s ease-in-out infinite;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(255, 0, 102, 0.3);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.2rem;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-section a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(255, 0, 102, 0.5);
    padding-left: 1.5rem;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 0, 102, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 列表样式 */
.section ul {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.section ul li {
    margin-bottom: 0.8rem;
    position: relative;
    color: var(--text-light);
    opacity: 0.9;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.section ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
    text-shadow: 0 0 5px rgba(255, 0, 102, 0.5);
    transition: all 0.3s ease;
}

.section ul li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.section ul li:hover::before {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.8);
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 0, 102, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 0, 102, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 0, 102, 0.5);
    }
}

@keyframes glowLine {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    }
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .section {
        padding: 5rem 2rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 0 1.5rem;
    }
    
    .features-grid {
        gap: 1.5rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem 0;
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
}