/**
 * 1000y游戏论坛样式
 * 融合现代设计 + 古风元素
 */

/* 设计令牌 */
:root {
    /* 主色调 - 古铜色主题（保留古风特色） */
    --color-primary: #8B4513;
    --color-primary-dark: #5D3A1A;
    --color-secondary: #D4AF37;
    --color-accent: #C9A456;
    --color-gold: #FFD700;
    --color-jade: #00A86B;

    /* 现代渐变 */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    --gradient-hero: linear-gradient(135deg, rgba(139,69,19,0.95), rgba(93,58,26,0.95));
    --gradient-gold: linear-gradient(135deg, var(--color-secondary), var(--color-accent));

    /* 古风装饰元素 */
    --border-chinese: 2px solid var(--color-secondary);
    --shadow-ancient: 0 4px 20px rgba(139,69,19,0.15);
    --shadow-gold: 0 4px 20px rgba(212,175,55,0.3);

    /* 现代布局 */
    --spacing-section: 3rem;
    --radius-card: 12px;
    --radius-button: 8px;

    /* 字体 */
    --font-display: 'Ma Shan Zheng', cursive;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary);
}

/* ============ 导航栏 ============ */
.gameforum-nav {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-menu a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
}

/* ============ Hero区域 ============ */
.gameforum-hero {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.gameforum-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.gameforum-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 古风Hero */
.ancient-hero {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.ancient-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80" fill="rgba(255,255,255,0.05)">龙</text></svg>') repeat;
    opacity: 0.3;
}

.ancient-title {
    font-family: var(--font-display);
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.seal-stamp {
    display: inline-block;
    background: #c41e3a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============ 按钮样式 ============ */
.ancient-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-secondary);
    color: white;
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-button);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.ancient-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.ancient-btn-outline {
    background: transparent;
    border: 2px solid white;
}

.ancient-btn-outline:hover {
    background: white;
    color: var(--color-primary);
}

/* ============ 卡片样式 ============ */
.game-card {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-ancient);
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139,69,19,0.2);
}

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

.game-card-body {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.game-card-text {
    color: #666;
    font-size: 0.875rem;
}

/* ============ 游戏切换器 ============ */
.game-switcher {
    position: sticky;
    top: 70px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.game-switcher-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    scrollbar-width: none;
}

.game-switcher-container::-webkit-scrollbar {
    display: none;
}

.game-switcher-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
    min-width: fit-content;
}

.game-switcher-item:hover {
    border-color: var(--color-primary);
}

.game-switcher-item.active {
    border-color: var(--color-primary);
    background: var(--gradient-primary);
    color: white;
}

.game-switcher-item img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

/* ============ 内容区域 ============ */
.content-section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-size: 2rem;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ============ 内容网格 ============ */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ============ 专区快速导航 ============ */
.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.section-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.section-nav-item:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ============ 动画 ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease;
}

.animate-slideIn {
    animation: slideIn 0.6s ease;
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .gameforum-hero h1 {
        font-size: 2rem;
    }

    .ancient-title {
        font-size: 2rem;
    }

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

/* ============ 空状态 ============ */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============ 加载状态 ============ */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
