/* Custom styles for Empire City */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素变量定义 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #fff;
    --background-color: #f5f6fa;
    --card-background: #fff;
    --transition-speed: 0.3s;
}

/* 基础样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity var(--transition-speed);
}

.loader.loaded {
    opacity: 0;
}

/* 导航栏样式 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform var(--transition-speed);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 英雄区域样式 */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
}

/* 游戏介绍区域 */
.game-intro {
    padding: 5rem 2rem;
    background: var(--card-background);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.intro-card {
    padding: 2rem;
    background: var(--background-color);
    border-radius: 10px;
    transition: transform var(--transition-speed);
}

.intro-card:hover {
    transform: translateY(-5px);
}

/* 角色展示区域 */
.characters-section {
    padding: 5rem 2rem;
    background: var(--background-color);
}

.character-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.character-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--transition-speed);
}

.character-card:hover {
    transform: scale(1.05);
}

.character-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* 游戏玩法区域 */
.gameplay-section {
    padding: 5rem 2rem;
    background: var(--card-background);
}

.gameplay-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 玩家反馈区域 */
.feedback-section {
    padding: 5rem 2rem;
    background: var(--background-color);
}

.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feedback-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 开发者信息区域 */
.developer-section {
    padding: 5rem 2rem;
    background: var(--card-background);
}

.developer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 评分和评论区域 */
.ratings-section {
    padding: 5rem 2rem;
    background: var(--background-color);
}

.ratings-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 页脚样式 */
footer {
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-background);
        padding: 1rem;
    }
    
    .menu-button {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* 工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    transition: background var(--transition-speed);
}

.button:hover {
    background: darken(var(--primary-color), 10%);
}

/* 截图模态框样式 */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.screenshot-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* 评分星星样式 */
.star-rating {
    display: flex;
    gap: 0.5rem;
}

.star {
    color: #ffd700;
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.star:hover {
    transform: scale(1.2);
}

.star.hover {
    color: #ffed4a;
}

/* Animated background */
.city-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #ff3366, #00ccff, #9933ff, #ffcc00);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.7;
}

.city-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/city-silhouette.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo animation */
.logo-text {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff00ff);
    background-size: 300% 300%;
    animation: gradient 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Game container */
.game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Fullscreen button */
.fullscreen-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff3366, #00ccff);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fullscreen-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Language switcher */
.language-button {
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-button:hover {
    background: linear-gradient(45deg, #ff3366, #00ccff);
    transform: translateY(-2px);
}

/* Game features */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Reviews */
.review-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-author {
    color: var(--secondary-color);
    font-style: italic;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Game keywords */
.keyword-tag {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    transform: scale(1.05);
}

/* Star rating */
.star-rating {
    color: #ffcc00;
    font-size: 1.5rem;
}

/* Section titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff3366, #00ccff);
    border-radius: 3px;
}

/* Game characters */
.character-card {
    text-align: center;
    padding: 20px;
}

.character-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #ff3366, #00ccff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Game introduction */
.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Game developers */
.developer-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.developer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    background: linear-gradient(45deg, #ff3366, #00ccff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Game rating */
.rating-value {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .keyword-tag {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
} 