/* ===================================
   AGES OF CONFLICT - 重新设计版本
   全新布局架构
   =================================== */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --primary-color: #d32f2f;
    --secondary-color: #1976d2;
    --dark-bg: #0a0e27;
    --darker-bg: #060916;
    --light-text: #ffffff;
    --gray-text: #b0b0b0;
    --accent-gold: #ffd700;
    --success-green: #4caf50;
    --card-bg: #1a1f3a;
    --border-color: #2a3150;
}

/* ===================================
   GLOBAL RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ===================================
   NEW CONTAINER SYSTEM
   =================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-full {
    max-width: 100%;
    padding: 0 40px;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    background: rgba(6, 9, 22, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
    letter-spacing: 2px;
}

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

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

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(211, 47, 47, 0.1);
}

/* ===================================
   HERO SECTION - COMPACT
   =================================== */
.hero {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(211,47,47,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(211, 47, 47, 0.8);
    margin-bottom: 0.5rem;
    letter-spacing: 5px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(211, 47, 47, 0.6); }
    to { text-shadow: 0 0 30px rgba(211, 47, 47, 1); }
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: var(--gray-text);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #f44336);
    color: white;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(211, 47, 47, 0.6);
}

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

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   GAME SECTION - 全新单列布局
   =================================== */
.game-section {
    padding: 3rem 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

/* 游戏区域 - 新布局 */
.game-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.game-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.game-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.game-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 控制面板 - 改为横向卡片 */
.game-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.info-card li {
    padding: 0.5rem 0;
    color: var(--gray-text);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.info-card li::before {
    content: '▸';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* ===================================
   ABOUT SECTION - 重新设计
   =================================== */
.about-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--dark-bg), var(--darker-bg));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.about-intro {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    text-align: center;
}

.about-intro .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* 视频区域 */
.about-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.game-video {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   FEATURES SECTION - 优化网格
   =================================== */
.features-section {
    padding: 3rem 0;
    background: var(--dark-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-box {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    min-height: 200px;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.3);
}

.feature-number {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.2;
}

.feature-box h3 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-box p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .game-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-media {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .game-info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .container,
    .container-wide,
    .container-full {
        padding: 0 20px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* ===================================
   SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), #f44336);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f44336, var(--primary-color));
}

