:root {
    --bg-color: #fffbeb;
    /* 浅暖黄色 (Amber-50) */
    --card-bg: #ffffff;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --text-main: #4b5563;
    --text-light: #9ca3af;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --radius: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;

    /* 纹理点缀：暖色微点阵 */
    background-image:
        radial-gradient(#fcd34d 1.5px, transparent 1.5px),
        radial-gradient(#fcd34d 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
}

/* 增加氛围感的背景光晕 */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
}

/* 左上角温暖光晕 */
body::before {
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%);
}

/* 右下角辅助光晕 */
body::after {
    bottom: -150px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
}

/* 导航栏 */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    /* 暖色边框 */
    box-shadow: 0 1px 2px 0 rgba(245, 158, 11, 0.05);
    /* 暖色微阴影 */
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.dropbtn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropbtn::after {
    content: "▼";
    font-size: 0.7em;
    opacity: 0.6;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.15s ease-out;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.15s;
}

.dropdown-content a:hover {
    background-color: #f9fafb;
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 按钮风格 */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

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

.btn-outline {
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: white;
}

/* 实用类 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 游戏预览浮窗 */
.game-preview-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 240px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    pointer-events: none; /* 确保不阻挡鼠标事件 */
    z-index: 1000;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-preview-tooltip.active {
    opacity: 1;
    transform: scale(1);
}

.game-preview-tooltip img,
.game-preview-tooltip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 游戏卡片头部布局 (包含标题和年代标签) */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 标题可能多行，顶部对齐更安全，或者 center */
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.card-header-row .card-title {
    margin-bottom: 0; /* 移除标题原有的下边距，由 header-row 控制 */
    flex: 1; /* 标题占据剩余空间 */
}

/* 年代标签样式 */
.era-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 改为与主色调融合的暖琥珀色风格 */
    background-color: #fff7ed; /* Orange-50 */
    color: #b45309; /* Amber-700 */
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px; /* 全圆角胶囊状，更柔和 */
    border: 1px solid rgba(245, 158, 11, 0.2);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
