/* GameStudioInnovators - 温暖现代风格CSS */
:root {
    --primary-color: #D4A574;      /* 温暖的沙色 */
    --secondary-color: #8B4513;   /* 深棕色 */
    --accent-color: #CD853F;       /* 秘鲁色 */
    --background-color: #FAF0E6;   /* 亚麻色背景 */
    --text-color: #2F1B14;         /* 深咖啡色文字 */
    --card-bg: #FFFFFF;            /* 卡片白色背景 */
    --shadow-color: rgba(139, 69, 19, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 1rem 0;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

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

.logo::before {
    content: "🎮";
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

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

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    opacity: 0.8;
}

/* 游戏网格布局 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 游戏卡片样式 */
.game-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover::before {
    opacity: 1;
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

/* 首页卡片增强样式 */
.card-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 0.75rem;
    color: var(--accent-color);
    background: var(--background-color);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 165, 116, 0.3);
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.game-description {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--accent-color);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-color);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 0.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 4px 20px var(--shadow-color);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        max-height: 400px;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        transition: background-color 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: none;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo{
        font-size: 1.5rem;
    }
    .logo::before {
        font-size: 1.5rem;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* 详情页增强样式 */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.game-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.category-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.update-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-style: italic;
}

.game-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.tag {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 编辑点评部分样式 */
.editorial-section {
    margin: 4rem 0;
}

.editorial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 2rem;
}

.editorial-card h2, .editorial-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.summary-card {
    background: linear-gradient(to right, #ffffff, #fff9f3);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.summary-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.editorial-card ul {
    list-style: none;
}

.editorial-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.editorial-card li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.pros-card li::before { content: "✓"; color: #2ecc71; }
.cons-card li::before { content: "✕"; color: #e74c3c; }

.faq-card .faq-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.faq-card .faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #555;
    padding-left: 1.5rem;
}

/* 详情页其他元素 */

.detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.play-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.back-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* 相关游戏推荐 */
.related-games {
    margin-top: 4rem;
}

.related-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: var(--transition);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.related-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-info {
    padding: 1rem;
}

.related-game-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 详情页响应式 */
@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-image {
        height: 300px;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}