
:root {
    --base-bg: #f5f6f8;
    --surface: #ffffff;
    --accent-primary: #1976d2; /* 导航蓝 */
    --accent-hover: #1565c0;
    --text-dark: #1a1d23;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --radius-lg: 12px;
    --max-content-width: 1200px;
}

/* --- 全局样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--base-bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- 导航栏 --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.glass-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btt-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btt-button:hover {
    background-color: var(--accent-hover);
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 15px;
    padding-right: 35px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: #f9fafb;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #93c5fd;
}

.search-box .fa-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

/* --- 主内容区 --- */
.main-container {
    margin-top: 100px; /* 预留导航栏高度 */
    padding-bottom: 60px;
}

.container {
    width: 90%;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.featured-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- 游戏网格 --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 16/10; /* 保持图片比例 */
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.game-meta {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- 页脚 --- */
.site-footer {
    background: #ffffff;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-brand-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* StumbleUpon 特殊样式链接 (仿图) */
.su-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary) !important;
    font-weight: 500;
}

.su-icon {
    font-size: 16px;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.copyright-time {
    margin-top: 3px;
}

/* --- 社交分享栏 --- */
.share-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
}

.share-item:hover {
    opacity: 0.8;
}

.share-arrow {
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
}

/* 社交图标具体颜色 */
.share-google { background-color: #ea4335; }
.share-facebook { background-color: #1877f2; }
.share-twitter { background-color: #000000; } /* 或 X 的logo颜色 */
.share-linkedin { background-color: #0077b5; }
.share-stumbleupon { background-color: #eb4924; }

/* --- 手机端适配 --- */
@media (max-width: 768px) {
    .nav-tools { gap: 10px; }
    .search-box input { width: 130px; padding-left: 10px; padding-right: 30px;}

    .featured-header { text-align: center; }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand { margin-bottom: 0; }
    .footer-brand-meta { margin: 0 auto; }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* 修复分类容器：PC端居中，手机端溢出滚动 */
.ps-filter-container {
    margin: 10px auto 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 20px;
    max-width: var(--max-content-width);
    /* 隐藏滚动条样式 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ps-filter-container::-webkit-scrollbar { display: none; }

/* 修复按钮样式：防止文字换行导致的变形 */
.ps-btn-filter {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: 0.3s;
    white-space: nowrap; /* 核心修复：强制文字不换行 */
    flex-shrink: 0;      /* 核心修复：防止按钮被挤压变窄 */
}

.ps-btn-filter.is-active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.2);
}

/* 移动端适配：改为靠左对齐，方便滑动 */
@media (max-width: 768px) {
    .ps-filter-container {
        justify-content: flex-start;
    }
}