/*
Theme Name: 游戏资源站主题
Theme URI: https://yourdomain.com
Author: GameHub Team
Author URI: https://yourdomain.com
Description: 专业的单机游戏资源分享WordPress主题，支持游戏展示、下载、用户评论、收藏等功能
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamehub
Tags: games, resources, download, two-columns, custom-colors, custom-menu, featured-images, theme-options

This theme, like WordPress, is licensed under the GPL.
*/

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:root {
    --primary-color: #1F2937;
    --secondary-color: #374151;
    --accent-color: #6B7280;
    --bg-cream: #FFFFFF;
    --bg-light-wood: #F9FAFB;
    --bg-dark-wood: #111827;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-hover: rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* footer 始终贴底 */
.footer {
    margin-top: auto;
}

/* ==================== 背景光晕浮动特效 ==================== */
@keyframes float-blob-1 {
    0%,  100% { transform: translate(0, 0)       scale(1);    }
    33%        { transform: translate(60px, -50px)  scale(1.08); }
    66%        { transform: translate(-40px, 35px)  scale(0.94); }
}
@keyframes float-blob-2 {
    0%,  100% { transform: translate(0, 0)       scale(1);    }
    40%        { transform: translate(-70px, 40px)  scale(1.10); }
    70%        { transform: translate(50px, -30px)  scale(0.92); }
}
@keyframes float-blob-3 {
    0%,  100% { transform: translate(0, 0)        scale(1);   }
    50%        { transform: translate(-50px, -60px)  scale(1.12); }
}
@keyframes float-blob-4 {
    0%,  100% { transform: translate(0, 0)       scale(1);    }
    30%        { transform: translate(45px, 55px)   scale(1.07); }
    70%        { transform: translate(-35px, -40px) scale(0.95); }
}
@keyframes float-blob-5 {
    0%,  100% { transform: translate(0, 0)       scale(1);    }
    45%        { transform: translate(-55px, -35px) scale(1.09); }
    80%        { transform: translate(40px, 45px)   scale(0.93); }
}
@keyframes float-blob-6 {
    0%,  100% { transform: translate(0, 0)       scale(1);    }
    35%        { transform: translate(65px, -45px)  scale(1.06); }
    65%        { transform: translate(-30px, 50px)  scale(0.96); }
}
@keyframes float-blob-7 {
    0%,  100% { transform: translate(0, 0)        scale(1);   }
    50%        { transform: translate(55px, 40px)    scale(1.11); }
}
@keyframes float-blob-8 {
    0%,  100% { transform: translate(0, 0)       scale(1);    }
    40%        { transform: translate(-45px, 60px)  scale(1.08); }
    75%        { transform: translate(35px, -35px)  scale(0.94); }
}

/* 光晕浮层容器 */
#bg-blobs-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    mix-blend-mode: multiply;
}
#bg-blobs-layer .blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

/* 靛蓝 — 左上 */
#bg-blobs-layer .blob-1 {
    width: 750px; height: 750px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.30) 0%, transparent 60%);
    top: -220px; left: -180px;
    animation: float-blob-1 12s ease-in-out infinite;
}
/* 青色 — 右下 */
#bg-blobs-layer .blob-2 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.26) 0%, transparent 60%);
    bottom: -180px; right: -220px;
    animation: float-blob-2 15s ease-in-out 3s infinite;
}
/* 玫瑰 — 中右 */
#bg-blobs-layer .blob-3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.22) 0%, transparent 60%);
    top: 40%; right: 3%;
    animation: float-blob-3 18s ease-in-out 6s infinite;
}
/* 绿松石 — 左中 */
#bg-blobs-layer .blob-4 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, transparent 60%);
    top: 35%; left: 2%;
    animation: float-blob-4 14s ease-in-out 2s infinite;
}
/* 琥珀 — 右中上 */
#bg-blobs-layer .blob-5 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.20) 0%, transparent 60%);
    top: 15%; right: 20%;
    animation: float-blob-5 16s ease-in-out 5s infinite;
}
/* 紫色 — 页面底部左 */
#bg-blobs-layer .blob-6 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.20) 0%, transparent 60%);
    bottom: 10%; left: 15%;
    animation: float-blob-6 13s ease-in-out 1s infinite;
}
/* 天蓝 — 顶部中间 */
#bg-blobs-layer .blob-7 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 60%);
    top: 5%; left: 40%;
    animation: float-blob-7 20s ease-in-out 9s infinite;
}
/* 玫红 — 底部中间 */
#bg-blobs-layer .blob-8 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 60%);
    bottom: 20%; right: 35%;
    animation: float-blob-8 17s ease-in-out 7s infinite;
}


/* 确保所有页面内容浮于光晕层之上 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
}

/* WordPress特定样式 */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1em;
}

/* 顶部导航栏 */
.header {
    background: transparent;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

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

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    flex-shrink: 0;
    margin: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-link,
.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 5px;
}

.nav-link::after,
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active,
.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--primary-color);
}

/* 右侧区域样式 */
.nav-right-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input,
.search-form input[type="search"] {
    padding: 10px 40px 10px 15px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    background-color: var(--white);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    width: 250px;
}

.search-input:focus,
.search-form input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--shadow);
}

.search-btn,
.search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary-color);
}

/* 用户操作区域 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login,
.btn-register {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-login:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-register {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-register:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: var(--white);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* 用户头像图标样式 */
.user-avatar-icon {
    font-size: 32px;
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.dropdown-item i {
    width: 18px;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 8px 0;
}

/* 轮播区样式 */
.hero-slider {
    margin: 30px 0 60px;
    padding: 0;
}

/* 游戏资源板块 */
.games-resource-section {
    padding: 40px 0 60px;
    flex: 1;
}

.steam-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.07),
        0 10px 25px rgba(0,0,0,0.12),
        0 25px 60px rgba(0,0,0,0.16),
        0 0 0 1px rgba(0,0,0,0.04);
    background: #FFFFFF;
    padding: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    gap: 0;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 5px;
}

.main-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.carousel-right {
    width: 360px;
    display: flex;
    flex-direction: column;
    padding: 5px 10px 5px 5px;
    background-color: #FFFFFF;
}

.game-details {
    padding: 0 5px;
    margin-bottom: 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-details-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.game-details-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item.rating {
    color: #e6a23c;
    font-weight: bold;
}

.meta-item.category,
.meta-item.size {
    background-color: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.game-details-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--text-secondary) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 6 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 140px !important; /* 6行 x 约23px */
    min-height: 120px !important;
    text-overflow: ellipsis !important;
}

.game-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 4px;
    margin-top: auto;
    padding: 0 5px;
}

.screenshot-item {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--accent-color);
    width: 60px;
}

/* 游戏区域 */
.hot-games,
.new-games,
.game-section {
    padding: 40px 0;
    background-color: var(--bg-light-wood);
}

.new-games {
    background-color: var(--bg-cream);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.category-tags {
    display: flex;
    gap: 15px;
}

.cat-tag {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.cat-tag:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.1);
}

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

.view-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* 游戏网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.game-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card-link:hover .game-card,
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-hover);
    border-color: var(--accent-color);
}

.game-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.game-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.game-title,
.game-card h2,
.game-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
    margin: 0;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e6a23c;
    font-weight: bold;
    font-size: 14px;
}

.game-description,
.game-card .excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 12px;
}

.footer-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-post-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}
.card-post-time i {
    font-size: 10px;
}

.tag-item {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* 页脚 */
.footer {
    background-color: #1a1d24;
    color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 友情链接行 */
.footer-links-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13px;
}
.footer-links-label {
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    font-size: 12px;
    margin-right: 4px;
}
.footer-links-row a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links-row a:hover { color: #fff; }

/* 底部区域 */
.footer-bottom-area {
    padding: 18px 0 16px;
    text-align: center;
}

/* 页脚导航 */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.footer-nav a,
.footer-nav li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 1.4;
    transition: color 0.2s;
    display: inline-block;
}
.footer-nav a:last-child,
.footer-nav li:last-child a { border-right: none; }
.footer-nav a:hover,
.footer-nav li a:hover { color: #fff; }
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-nav li { display: flex; align-items: center; }

/* 声明文字 */
.footer-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin: 8px auto;
    line-height: 1.7;
    max-width: 860px;
}

/* 版权 */
.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin: 4px 0 0;
}
.footer-copyright a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}
.footer-copyright a:hover { color: #fff; }

@media (max-width: 768px) {
    .footer-links-row { gap: 6px 14px; }
    .footer-nav a, .footer-nav li a { padding: 0 8px; font-size: 12px; }
    .footer-disclaimer { font-size: 11px; padding: 0 10px; }
}

/* 公告按钮 */

.footer-dmca-mail {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    margin-left: 4px;
}
.footer-dmca-mail:hover {
    color: #fff;
    text-decoration: underline;
}

.announcement-trigger-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.announcement-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

/* 公告弹窗样式 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-modal.show {
    opacity: 1;
}

.announcement-modal.hide {
    opacity: 0;
}

.announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.announcement-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(107, 86, 67, 0.4);
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.announcement-modal .announcement-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.announcement-modal .announcement-header .announcement-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-modal .announcement-header i {
    font-size: 24px;
    color: white;
}

.announcement-modal .announcement-header h3 {
    color: white;
    font-size: 20px;
    margin: 0;
    line-height: 1.3;
}

.announcement-modal .announcement-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1;
}

.announcement-modal .announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.announcement-modal .announcement-image {
    width: 100%;
}

.announcement-modal .announcement-image img {
    width: 100%;
    height: auto;
    display: block;
}

.announcement-modal .announcement-body {
    padding: 30px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    overflow-y: auto;
    flex: 1;
}

.announcement-modal .announcement-body p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.announcement-modal .announcement-body p:last-child {
    margin-bottom: 0;
}

.announcement-modal .announcement-body strong {
    color: var(--text-primary);
}

.announcement-modal .announcement-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.announcement-modal .announcement-body a:hover {
    text-decoration: underline;
}

.announcement-modal .announcement-footer {
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    gap: 15px;
}

.announcement-modal .announcement-btn {
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.announcement-modal .announcement-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.announcement-modal .announcement-btn i {
    font-size: 14px;
}

.announcement-modal .announcement-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
}

.announcement-modal .announcement-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 返回顶部 */

/* ==================== 新增功能样式 ==================== */

/* 排序切换按钮组 */
.sort-toggle-group {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}
.sort-toggle-btn {
    position: relative;
    padding: 6px 16px 6px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.sort-toggle-btn:hover {
    background: #E5E7EB;
    color: #374151;
}
.sort-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.sort-toggle-btn::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.4;
}
.sort-toggle-btn.active::before {
    opacity: 1;
    background: white;
}

/* 平台筛选标签组（首页游戏资源板块） */
.platform-filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: 10px;
}
.platform-tag-btn {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid #E5E7EB;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}
.platform-tag-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(31, 41, 55, 0.04);
}
.platform-tag-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Section 标题升级：左侧竖条 */
.section-title {
    position: relative;
    padding-left: 14px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-light-wood);
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 18px 0;
}
.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 48px;
}
.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: #E5E7EB;
}

/* 游戏卡片 NEW 标签 */
.card-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #EF4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* 游戏卡片快捷收藏按钮 */
.card-quick-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    font-size: 15px;
    text-decoration: none;
}
.game-card:hover .card-quick-fav {
    opacity: 1;
    transform: scale(1);
}
.card-quick-fav:hover,
.card-quick-fav.favorited {
    color: #EF4444;
    background: #fff;
}
.card-quick-fav.favorited {
    opacity: 1;
    transform: scale(1);
}
.card-quick-fav.animating {
    animation: fav-pop 0.3s ease;
}
@keyframes fav-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* 骨架屏加载动画 */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    grid-column: 1 / -1;
}
.skeleton-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}
.skeleton-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #F3F4F6 25%, #E9EAEC 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-body {
    padding: 15px;
}
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #F3F4F6 25%, #E9EAEC 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    margin-bottom: 10px;
}
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 相关游戏区域 */
.related-games-section {
    margin-top: 30px;
}
.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.related-game-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
}
.related-game-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-hover);
}
.related-game-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-light-wood);
}
.related-game-info {
    flex: 1;
    min-width: 0;
}
.related-game-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    line-height: 1.4;
}
.related-game-meta {
    font-size: 11px;
    color: var(--text-light);
}

/* 搜索下拉联想 */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 2000;
    overflow: hidden;
    display: none;
}
.search-dropdown.active {
    display: block;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
    cursor: pointer;
}
.search-result-item:hover,
.search-result-item.selected {
    background: var(--bg-light-wood);
}
.search-result-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F3F4F6;
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-cat {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}
.search-result-empty {
    padding: 16px 14px;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
}
.search-result-all {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    border-top: 1px solid #E5E7EB;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
}
.search-result-all:hover {
    background: var(--bg-light-wood);
}

/* 用户星级评分 */
.user-rating-section {
    background: var(--bg-light-wood);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid #E5E7EB;
}
.user-rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.user-rating-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.rating-avg-display {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rating-avg-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}
.rating-avg-count {
    font-size: 12px;
    color: var(--text-light);
}
.star-rating-input {
    display: flex;
    gap: 4px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.star-rating-input input { display: none; }
.star-rating-input label {
    font-size: 26px;
    color: #D1D5DB;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #F59E0B;
}
.star-rating-input label:hover {
    transform: scale(1.15);
}
.star-display {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
}
.star-display .star-filled { color: #F59E0B; }
.star-display .star-empty { color: #D1D5DB; }
.rating-submit-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}
.user-rated-display {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* 深色模式 */
[data-theme="dark"] {
    --primary-color: #E5E7EB;
    --secondary-color: #D1D5DB;
    --accent-color: #9CA3AF;
    --bg-cream: #111827;
    --bg-light-wood: #1F2937;
    --bg-dark-wood: #030712;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-light: #9CA3AF;
    --white: #1F2937;
    --shadow: rgba(0,0,0,0.3);
    --shadow-hover: rgba(0,0,0,0.5);
}
[data-theme="dark"] body {
    background-color: var(--bg-cream);
    color: var(--text-primary);
}
[data-theme="dark"] .header {
    background: #1F2937;
    border-bottom-color: #374151;
}
[data-theme="dark"] .game-card,
[data-theme="dark"] .related-game-card,
[data-theme="dark"] .download-card,
[data-theme="dark"] .netdisk-card {
    background: #1F2937;
    border-color: #374151;
}
[data-theme="dark"] .search-input {
    background: #1F2937;
    color: #F9FAFB;
    border-color: #374151;
}
[data-theme="dark"] .search-dropdown {
    background: #1F2937;
    border-color: #374151;
}
[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.selected {
    background: #374151;
}
[data-theme="dark"] .footer {
    background: #030712;
}
[data-theme="dark"] .stats-bar {
    background: #1F2937;
    border-color: #374151;
}
[data-theme="dark"] .stat-divider {
    background: #374151;
}
[data-theme="dark"] .skeleton-img,
[data-theme="dark"] .skeleton-line {
    background: linear-gradient(90deg, #374151 25%, #4B5563 50%, #374151 75%);
    background-size: 200% 100%;
}
[data-theme="dark"] .user-rating-section {
    background: #1F2937;
    border-color: #374151;
}

/* 深色模式切换按钮 */
.dark-mode-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.dark-mode-toggle:hover {
    background: var(--bg-light-wood);
    color: var(--text-primary);
    border-color: var(--accent-color);
}
[data-theme="dark"] .dark-mode-toggle {
    border-color: #374151;
    color: #F59E0B;
}

/* 一键复制提取码 */
.copy-pwd-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    vertical-align: middle;
}
.copy-pwd-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.copy-pwd-btn.copied {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}

/* 归档页高级筛选 */
.advanced-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 24px;
    border: none;
    border-top: 1px solid #F3F4F6;
    border-bottom: 1px solid #F3F4F6;
}
.advanced-filter-bar .filter-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 4px;
}
.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.filter-select {
    padding: 5px 28px 5px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239CA3AF'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 130px;
}
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.06);
}
.filter-select:hover {
    border-color: var(--secondary-color);
}
[data-theme="dark"] .filter-select {
    background-color: #1F2937;
    color: #F9FAFB;
    border-color: #374151;
}
.filter-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    background: transparent;
    transition: all 0.2s;
    margin-left: auto;
}
.filter-clear-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(31, 41, 55, 0.04);
}

@media (max-width: 768px) {
    .stats-bar-inner { gap: 0; }
    .stat-item { padding: 0 24px; }
    .stat-number { font-size: 20px; }
    .related-games-grid { grid-template-columns: 1fr 1fr; }
    .advanced-filter-bar { padding: 12px; gap: 8px; }
}
@media (max-width: 480px) {
    .stat-item { padding: 0 16px; }
    .related-games-grid { grid-template-columns: 1fr; }
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px var(--shadow-hover);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 分页样式 */
.pagination,
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination a,
.pagination span,
.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination-btn:hover:not(.disabled) {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .current,
.pagination-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* WordPress paginate_links() 生成的分页样式 */
.pagination-container ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination-container ul.page-numbers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination-container ul.page-numbers li a,
.pagination-container ul.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-container ul.page-numbers li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pagination-container ul.page-numbers li span.current {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pagination-container ul.page-numbers li a.prev,
.pagination-container ul.page-numbers li a.next {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.pagination-container ul.page-numbers li a.prev:hover,
.pagination-container ul.page-numbers li a.next:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination-container ul.page-numbers li .dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-secondary);
}

/* 首页翻页功能样式 */
/* 翻页容器隐藏状态（当总页数<=1时） */
.pagination-wrapper.pagination-hidden {
    display: none !important;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 0;
}

.pagination-wrapper .pagination-btn {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
}

.pagination-wrapper .pagination-btn:hover:not(:disabled) {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pagination-wrapper .pagination-btn:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-wrapper .pagination-btn i {
    font-size: 14px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0 15px;
}

.pagination-info .current-page {
    color: var(--primary-color);
    font-size: 20px;
}

.pagination-info .total-pages {
    color: var(--text-secondary);
}

/* 翻页响应式 */
@media (max-width: 768px) {
    .pagination-wrapper {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }
    
    .pagination-wrapper .pagination-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .pagination-info {
        width: 100%;
        justify-content: center;
        order: -1;
        padding: 0 0 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .pagination-wrapper .pagination-btn {
        flex: 1;
        justify-content: center;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .steam-carousel {
        height: 450px;
    }
    
    .carousel-right {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .steam-carousel {
        flex-direction: column;
        height: auto;
    }
    
    .carousel-main {
        height: 400px;
    }
    
    .carousel-right {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-input {
        width: 200px;
    }
    
    .steam-carousel {
        border-radius: 8px;
    }
    
    .carousel-main {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .carousel-main {
        height: 250px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* 游戏详情页样式 */
.breadcrumb {
    background-color: var(--bg-light-wood);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    color: var(--text-light);
}

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

.game-detail-main {
    padding: 40px 0;
    background-color: var(--bg-cream);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        display: none !important;
    }
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-header-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.game-main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--bg-cream);
}

.game-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-main-image:hover img {
    transform: scale(1.05);
}

.game-info-section {
    padding: 30px;
}

.game-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

.game-rating-section {
    margin-bottom: 25px;
}

/* Steam评价徽章（详情页）*/
.steam-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.steam-rating i {
    font-size: 16px;
}

/* Steam评价徽章（轮播图）*/
.steam-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 3px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.steam-rating-badge i {
    font-size: 14px;
}

/* Steam评价徽章（游戏卡片mini版）*/
.steam-rating-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 3px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.steam-rating-mini i {
    font-size: 12px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-light);
}

.game-meta-info {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.meta-item-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-item-inline i {
    color: var(--primary-color);
    width: 20px;
}

.meta-label {
    color: var(--text-light);
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.game-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-download,
.btn-favorite,
.btn-share {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download {
    background-color: var(--primary-color);
    color: white;
    flex: 1;
}

.btn-download:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-favorite,
.btn-share {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-favorite:hover,
.btn-share:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-favorite.favorited {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-favorite.favorited:hover {
    background-color: #374151;
    border-color: #374151;
}

.btn-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 游戏截图预览（立即下载按钮下方）*/
.game-preview-screenshots {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.preview-screenshot {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    transition: all 0.3s ease;
}

.preview-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-screenshot:hover .preview-overlay {
    opacity: 1;
}

.preview-screenshot:hover img {
    transform: scale(1.1);
}

.preview-screenshot:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preview-overlay i {
    color: white;
    font-size: 20px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.game-screenshots-gallery,
.game-description-section,
.download-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
}

.section-heading {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light-wood);
}

.section-heading i {
    color: var(--primary-color);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.screenshot-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-card:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-card:hover img {
    transform: scale(1.1);
}

.screenshot-overlay i {
    color: white;
    font-size: 24px;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.description-content h3 {
    color: var(--text-primary);
    margin: 25px 0 15px;
    font-size: 20px;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.description-content li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.description-content li i {
    color: var(--primary-color);
    margin-top: 4px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.download-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow-hover);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.download-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.download-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.download-info {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.download-info p {
    margin: 8px 0;
}

.download-info code {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-link:hover {
    background-color: var(--secondary-color);
    transform: translateX(5px);
}

/* 网盘下载板块样式 */
.netdisk-download-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
    margin-bottom: 30px;
}

.netdisk-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.netdisk-card {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.netdisk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.netdisk-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.netdisk-card:hover::before {
    transform: scaleY(1);
}

.netdisk-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.netdisk-icon i {
    font-size: 28px;
}

.netdisk-card:hover .netdisk-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.netdisk-info {
    flex: 1;
    min-width: 0;
}

.netdisk-name {
    font-size: 17px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.netdisk-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.netdisk-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.netdisk-meta i {
    color: var(--primary-color);
    width: 14px;
    font-size: 12px;
}

.netdisk-meta strong {
    color: var(--primary-color);
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 2px;
    font-size: 12px;
}

.btn-netdisk-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    min-width: 100px;
}

.btn-netdisk-download:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-netdisk-download i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.btn-netdisk-download:hover i {
    transform: translateX(3px);
}

.netdisk-tips {
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.netdisk-tips i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.netdisk-tips p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 游戏评论区域包装器 */
.game-comments-wrapper {
    margin-top: 30px;
    max-width: calc(100% - 320px - 30px); /* 减去侧边栏宽度和gap */
}

.game-comments-wrapper .comments-section {
    width: 100%;
}

/* ==================== 评论区样式（统一版本） ==================== */
.comments-section {
    width: 100%;
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
    margin-top: 30px;
    overflow: visible;
    position: relative;
}

.comment-count {
    font-size: 16px;
    color: var(--text-light);
    font-weight: normal;
}

.comment-form-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.comment-form-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* 取消回复按钮样式 */
#cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    margin-left: 15px;
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#cancel-comment-reply-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

#cancel-comment-reply-link:active {
    transform: translateY(0);
}

/* 当取消回复按钮显示时的回复标题样式 */
#reply-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#reply-title small {
    display: inline-flex;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-textarea,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-textarea:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.content-filter-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* 图片上传区域 */
.image-upload-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.image-upload-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-upload-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-upload-trigger:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.upload-tips {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 160px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.image-preview-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image,
.image-preview-item .remove-preview-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
}

.image-preview-item:hover .remove-image,
.image-preview-item:hover .remove-preview-image {
    opacity: 1;
}

.image-preview-item .remove-image:hover,
.image-preview-item .remove-preview-image:hover {
    background-color: #dc3545;
    transform: scale(1.15);
}

/* 评分和提交按钮行 */
.rating-and-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.form-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-rating label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating i {
    font-size: 24px;
    color: #e6a23c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.form-actions {
    display: flex;
}

.btn-submit-comment {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-submit-comment:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 登录提示样式 */
.comment-form-card.login-required {
    text-align: center;
}

.login-prompt {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.login-prompt i {
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.8;
}

.login-prompt p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.btn-login-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-prompt:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.comments-list {
    display: block;  /* ★ 改为 block 布局，确保评论垂直排列 */
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 顶级评论之间的间距 */
.comments-list > .comment-item {
    margin-bottom: 20px;
}

.comments-list > .comment-item:last-child {
    margin-bottom: 0;
}

/* 评论折叠隐藏样式 */
.comment-item.comment-hidden {
    display: none !important;
}

/* 加载更多评论按钮 */
.load-more-comments-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-load-more-comments {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-load-more-comments:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-load-more-comments:disabled {
    background-color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
    transform: none;
}

.btn-load-more-comments i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-load-more-comments:hover:not(:disabled) i {
    transform: translateY(2px);
}

/* 评论项外层包装器 - 使用block布局 */
.comment-item {
    display: block !important;  /* ★ 强制block布局，子元素自然换行 */
    padding: 20px;
    background: #FFFFFF;
    border-radius: 12px;
    position: relative;
}

/* 评论主体内容区域 - 使用flex水平布局头像和内容 */
.comment-item > .comment-avatar {
    float: left;
    margin-right: 15px;
}

.comment-item > .comment-content {
    overflow: hidden;  /* 创建BFC，防止内容环绕头像 */
}

/* 清除浮动，确保.children在下方显示 */
.comment-item::after {
    content: '';
    display: table;
    clear: both;
}

/* ==================== 嵌套评论样式（楼中楼版） ==================== */

/* ==================== WordPress嵌套评论容器 ==================== */
/* 支持 .comment 和 .comment-item 两种类名 */
.comment .children,
.comment-item .children {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 15px 0 0 20px;  /* 左侧缩进 */
    border-left: 3px solid rgba(0, 0, 0, 0.15);
    display: block !important;  /* ★ 强制垂直排列 */
    width: 100% !important;  /* ★ 强制占满父容器宽度 */
    flex-basis: 100% !important;  /* ★ 作为flex项时占满一行 */
}

/* 子评论容器内的评论项 */
.children .comment-item {
    margin-bottom: 15px;
}

/* 最后一个子评论不需要底部边距 */
.children .comment-item:last-child {
    margin-bottom: 0;
}

/* 一级评论（顶级） - 主楼 */
.comment-item.depth-1 {
    display: block !important;  /* ★ 强制block布局 */
    padding: 20px;
    background: #FFFFFF;
    border-radius: 12px;
    position: relative;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 二级评论（回复） - 楼中楼 */
.comment-item.depth-2 {
    background: #FAFAFA;
    border-radius: 8px;
    margin-left: 0;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

/* 三级评论（深度回复） - 楼中楼 */
.comment-item.depth-3 {
    background: #F5F5F5;
    border-radius: 8px;
    margin-left: 0;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

/* 嵌套评论头像稍小 */
.comment-item.depth-2 .comment-avatar,
.comment-item.depth-3 .comment-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex-shrink: 0;
}

.comment-item.depth-2 .comment-avatar img,
.comment-item.depth-2 .comment-avatar i.fa-user-circle,
.comment-item.depth-3 .comment-avatar img,
.comment-item.depth-3 .comment-avatar i.fa-user-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
    line-height: 32px !important;
}

/* 回复标识 - 显示"回复 @用户名" - 使用文字而非伪元素 */
/* 注意：回复标识现在通过comments.php中的HTML直接输出 */

.comment-item.depth-2 .comment-author,
.comment-item.depth-3 .comment-author {
    font-size: 14px;
}

/* 回复评论的整体样式调整 */
.comment-item.depth-2 .comment-header,
.comment-item.depth-3 .comment-header {
    margin-bottom: 8px;
}

.comment-item.depth-2 .comment-text,
.comment-item.depth-3 .comment-text {
    font-size: 14px;
    line-height: 1.5;
}

.comment-item.depth-2 .comment-date,
.comment-item.depth-3 .comment-date {
    font-size: 12px;
}

.comment-item.depth-2 .comment-actions,
.comment-item.depth-3 .comment-actions {
    margin-top: 8px;
}

.comment-item.depth-2 .comment-actions a,
.comment-item.depth-2 .comment-actions button,
.comment-item.depth-3 .comment-actions a,
.comment-item.depth-3 .comment-actions button {
    font-size: 12px;
}

/* 回复预览提示 */
.reply-preview {
    margin-top: 15px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-preview-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.reply-preview-content i {
    color: var(--primary-color);
    font-size: 16px;
}

.reply-preview-content strong {
    color: var(--primary-color);
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-avatar i.fa-user-circle {
    font-size: 48px !important;
    color: #374151 !important;
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    display: block !important;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
}

.comment-rating {
    display: flex;
    gap: 3px;
    margin-left: auto;
}

.comment-rating i {
    font-size: 14px;
    color: #e6a23c;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* 评论图片 */
.comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.comment-image {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.comment-image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

/* 评论图片Lightbox样式 */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.image-lightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
}

.image-lightbox .lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}

.image-lightbox .lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-lightbox .lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.image-lightbox .lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox响应式 */
@media (max-width: 768px) {
    .image-lightbox .lightbox-content {
        padding: 80px 10px 10px;
    }
    
    .image-lightbox .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .image-lightbox .lightbox-image {
        max-width: 95%;
        max-height: 85%;
    }
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions a,
.comment-actions button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.comment-actions a:hover,
.comment-actions button:hover {
    color: var(--secondary-color);
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* 图片模态框 */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.image-modal-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: scale(1.1);
    color: #ff6b6b;
}

/* 自定义未登录提示模态窗口 */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.login-modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F6F2 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideDown 0.4s ease;
    position: relative;
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.login-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.login-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.login-modal-icon i {
    font-size: 40px;
    color: white;
}

.login-modal h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.login-modal p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.login-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.login-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.login-modal-btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-modal-btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

.login-modal-btn.secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    padding: 18px 20px;
}
.sidebar-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}
.sidebar-card-title i {
    font-size: 12px;
    color: var(--primary-color);
}

/* 搜索框 */
.sidebar-search-wrap { position: relative; }
.sidebar-search-input {
    width: 100%;
    padding: 9px 38px 9px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.sidebar-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.06);
}
.sidebar-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}
.sidebar-search-btn:hover { color: var(--primary-color); }

/* 相关游戏列表 */
.sidebar-game-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-game-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.sidebar-game-item:hover { background: #F9FAFB; }
.sidebar-game-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #F3F4F6;
}
.sidebar-game-thumb-placeholder {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    background: #F3F4F6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
    font-size: 18px;
}
.sidebar-game-info { flex: 1; min-width: 0; }
.sidebar-game-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}
.sidebar-game-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 3px;
}
.sidebar-no-related {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    padding: 12px 0;
}

/* 旧 sidebar-widget 保留兼容 */
.sidebar-widget {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
}
.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--primary-color);
}

/* 详情页响应式 */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .game-main-image {
        height: 350px;
    }
    
    .detail-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .sidebar-widget {
        min-width: 280px;
    }
    
    /* 移动端评论区全宽显示 */
    .game-comments-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .game-main-image {
        height: 280px;
    }
    
    .game-detail-title {
        font-size: 24px;
    }
    
    .meta-grid {
        grid-template-columns: 1fr;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .netdisk-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .netdisk-card {
        padding: 20px;
    }
    
    .netdisk-icon {
        width: 50px;
        height: 50px;
    }
    
    .netdisk-icon i {
        font-size: 26px;
    }
    
    .netdisk-name {
        font-size: 18px;
    }
    
    .netdisk-meta {
        font-size: 13px;
    }
    
    .btn-netdisk-download {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ========== 错误提示模态窗口样式 ========== */
.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.error-modal-overlay.show {
    display: flex;
}

.error-modal {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideDown 0.4s ease;
    position: relative;
    border: 2px solid rgba(220, 53, 69, 0.1);
}

.error-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.1);
    border: none;
    color: #dc3545;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.error-modal-close:hover {
    background-color: rgba(220, 53, 69, 0.2);
    transform: rotate(90deg);
}

.error-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.error-modal-icon i {
    font-size: 40px;
    color: white;
}

.error-modal h3 {
    font-size: 24px;
    color: #721c24;
    margin-bottom: 15px;
    font-weight: bold;
}

.error-modal p {
    font-size: 15px;
    color: #856404;
    margin-bottom: 30px;
    line-height: 1.6;
    background-color: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.error-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.error-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-modal-btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.error-modal-btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ========== 下载提示Toast样式 ========== */
.download-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.download-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.download-toast i {
    font-size: 18px;
    color: #d4edda;
}

@media (max-width: 768px) {
    .download-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==================== 认证页面样式 (登录/注册) ==================== */
.auth-section {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.auth-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(107, 86, 67, 0.12);
    min-height: 580px;
}

.auth-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 50px 35px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content {
    text-align: center;
}

.banner-icon {
    font-size: 64px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.auth-banner h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.auth-banner p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 20px;
}

.feature-item span {
    font-size: 14px;
}

.auth-form-wrapper {
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary-color);
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-form label i {
    color: var(--primary-color);
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background-color: #f5576c;
}

.strength-fill.medium {
    width: 66%;
    background-color: #e6a23c;
}

.strength-fill.strong {
    width: 100%;
    background-color: #43e97b;
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link,
.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover,
.terms-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.auth-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.auth-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    padding: 4px 0;
}

/* ==================== 全部游戏页面样式 ==================== */
.all-games-section {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--primary-color);
}

.games-count {
    font-size: 16px;
    color: var(--text-light);
}

.games-count span {
    font-weight: bold;
    color: var(--primary-color);
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-toolbar {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 30px;
}

.filter-section,
.sort-section {
    margin-bottom: 20px;
}

.filter-section:last-child,
.sort-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.filter-label i {
    color: var(--primary-color);
}

.filter-buttons,
.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn,
.sort-btn {
    padding: 8px 18px;
    background-color: var(--bg-cream);
    border: 2px solid transparent;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.sort-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active,
.sort-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.games-container {
    position: relative;
    min-height: 400px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 20px;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--primary-color);
}

.loading-spinner p {
    font-size: 16px;
    color: var(--text-light);
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.no-results i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-results p {
    font-size: 16px;
    color: var(--text-light);
}

/* ==================== 个人中心页面样式 ==================== */
.profile-section {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-user-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--bg-light-wood);
}

/* 个人中心头像图标样式 */
.profile-avatar-icon {
    font-size: 120px;
    color: var(--primary-color);
    line-height: 1;
}

.profile-username {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.profile-nav {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    overflow: hidden;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.profile-nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-left-color: var(--primary-color);
}

.profile-nav-item.active {
    background-color: rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.profile-nav-item i {
    width: 20px;
    color: var(--primary-color);
}

.profile-content {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    padding: 30px;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--bg-cream);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.card-info p {
    font-size: 14px;
    color: var(--text-light);
}

.recent-activity h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-cream);
    border-radius: 10px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-icon.download {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.activity-icon.favorite {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-icon.comment {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-light);
}

.remove-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card:hover .remove-favorite {
    opacity: 1;
}

.remove-favorite:hover {
    background-color: #f5576c;
    transform: scale(1.1);
}

.btn-download-small {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download-small:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.download-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-cream);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.download-item:hover {
    box-shadow: 0 5px 15px var(--shadow);
}

.download-item img {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.download-info p {
    font-size: 13px;
    color: var(--text-light);
}

.download-size {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-redownload {
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.user-comment-item {
    padding: 20px;
    background-color: var(--bg-cream);
    border-radius: 12px;
    margin-bottom: 15px;
}

.comment-game-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-game-info img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.comment-game-info h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.comment-game-info a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.comment-game-info a:hover {
    color: var(--primary-color);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
}

.comment-likes {
    font-size: 13px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.settings-section {
    margin-bottom: 40px;
}

.settings-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.btn-save {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 个人中心额外样式 */
.profile-join-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-join-date i {
    color: var(--primary-color);
}

.profile-logout {
    margin-top: 15px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background-color: transparent;
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light-wood);
}

.profile-header h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-header h2 i {
    color: var(--primary-color);
}

.header-count {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.game-card-wrapper {
    position: relative;
}

.no-games-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-games-placeholder i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-games-placeholder p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-thumb {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.download-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumb {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light-wood);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 24px;
}

.download-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 5px;
}

.download-time i {
    color: var(--primary-color);
}

.comment-game-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-game-title {
    flex: 1;
}

.comment-game-title h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.comment-game-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-game-title a:hover {
    color: var(--primary-color);
}

/* 用户中心历史记录链接样式 */
.activity-text a,
.download-info a,
.download-info h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.activity-text a:hover,
.download-info a:hover,
.download-info h4 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.comment-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.comment-status.approved {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.comment-status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.no-activity {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-style: italic;
}

/* 设置表单样式 */
.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.settings-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.settings-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.settings-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .auth-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .auth-banner {
        padding: 35px 30px;
    }
    
    .auth-form-wrapper {
        padding: 35px 30px;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        flex-direction: row;
        gap: 20px;
    }
    
    .profile-user-card {
        flex: 1;
    }
    
    .profile-nav {
        flex: 1;
    }
    
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-toggle {
        align-self: flex-end;
    }
    
    .filter-toolbar {
        padding: 20px;
    }
    
    .auth-section {
        padding: 30px 0;
        min-height: auto;
    }
    
    .auth-banner {
        padding: 30px 25px;
    }
    
    .auth-form-wrapper {
        padding: 30px 25px;
    }
    
    .profile-sidebar {
        flex-direction: column;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-redownload {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .all-games-section {
        padding: 30px 0 60px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .view-toggle {
        display: none;
    }
    
    .auth-card {
        border-radius: 10px;
    }
    
    .auth-banner {
        padding: 25px 20px;
    }
    
    .auth-form-wrapper {
        padding: 25px 20px;
    }
}

/* ==================== 公告弹窗样式 ==================== */
.announcement-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.announcement-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.announcement-popup-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.announcement-popup {
    background: linear-gradient(135deg, #FFFFFF 0%, #FDF9F5 100%);
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: popupSlideIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.announcement-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 25px 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-icon i {
    font-size: 24px;
    color: white;
}

.announcement-title-wrapper {
    flex: 1;
}

.announcement-title {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.announcement-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.announcement-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.announcement-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.announcement-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.announcement-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.announcement-content p {
    margin-bottom: 15px;
}

.announcement-content p:last-child {
    margin-bottom: 0;
}

.announcement-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.announcement-content a:hover {
    text-decoration: underline;
}

.announcement-content ul,
.announcement-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.announcement-content li {
    margin-bottom: 8px;
}

.announcement-content strong {
    color: var(--text-primary);
}

.announcement-content h3,
.announcement-content h4 {
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.announcement-footer {
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    gap: 15px;
}

.announcement-btn-confirm {
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-btn-confirm:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.announcement-btn-confirm i {
    font-size: 14px;
}

/* 公告弹窗响应式 */
@media (max-width: 768px) {
    .announcement-popup {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .announcement-header {
        padding: 20px;
    }
    
    .announcement-icon {
        width: 40px;
        height: 40px;
    }
    
    .announcement-icon i {
        font-size: 20px;
    }
    
    .announcement-title {
        font-size: 18px;
    }
    
    .announcement-body {
        padding: 20px;
    }
    
    .announcement-content {
        font-size: 14px;
    }
    
    .announcement-footer {
        padding: 15px 20px;
    }
    
    .announcement-btn-confirm {
        padding: 10px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .announcement-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px 20px;
    }
    
    .announcement-icon {
        margin-bottom: 10px;
    }
    
    .announcement-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

/* ==================== 攻略发布登录提示模态窗口 ==================== */
.guide-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-login-modal-overlay.show {
    opacity: 1;
}

.guide-login-modal {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F6F2 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideDown 0.4s ease;
    position: relative;
}

.guide-login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.guide-login-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.guide-login-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.guide-login-modal-icon i {
    font-size: 40px;
    color: white;
}

.guide-login-modal h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.guide-login-modal p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.guide-login-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.guide-login-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.guide-login-modal-btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.guide-login-modal-btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.guide-login-modal-btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.guide-login-modal-btn.secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 发表攻略按钮悬停效果 */
.btn-publish-guide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .guide-login-modal {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .guide-login-modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .guide-login-modal-icon i {
        font-size: 35px;
    }
    
    .guide-login-modal h3 {
        font-size: 20px;
    }
    
    .guide-login-modal p {
        font-size: 14px;
    }
    
    .guide-login-modal-buttons {
        flex-direction: column;
    }
    
    .guide-login-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== 攻略编辑器模态窗口样式 ==================== */
.guide-editor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10004;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-editor-modal-overlay.show {
    opacity: 1;
}

.guide-editor-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

.guide-editor-modal .modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.guide-editor-modal .modal-header h3 {
    font-size: 24px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-editor-modal .modal-header i {
    color: var(--primary-color);
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.guide-editor-modal form {
    padding: 30px;
}

.guide-editor-modal .form-group {
    margin-bottom: 20px;
}

.guide-editor-modal .form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.guide-editor-modal .form-group label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.guide-editor-modal .form-group label span {
    color: #dc3545;
}

.guide-editor-modal .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.guide-editor-modal .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.guide-editor-modal textarea.form-control {
    resize: vertical;
    min-height: 200px;
}

.guide-editor-modal input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guide-editor-modal input[type="file"]:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--secondary-color);
}

.guide-editor-modal .form-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-submit-guide {
    flex: 1;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-submit-guide:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-cancel {
    padding: 14px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 攻略列表和卡片样式 */
.guides-list {
    margin-top: 20px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.guide-item-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.guide-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.guide-item-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.guide-item-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-item-card h3 a:hover {
    color: var(--primary-color);
}

.guide-item-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-edit-guide,
.btn-delete-guide {
    padding: 6px 12px;
    background: transparent;
    border: 2px solid;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-edit-guide {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-edit-guide:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-delete-guide {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-delete-guide:hover {
    background-color: #dc3545;
    color: #fff;
    transform: translateY(-2px);
}

.btn-create-guide {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-create-guide:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.no-guides-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.no-guides-placeholder i {
    font-size: 64px;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-guides-placeholder p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.loading-placeholder i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

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

.loading-placeholder p {
    font-size: 16px;
    color: #666;
}

/* 攻略编辑器响应式 */
@media (max-width: 768px) {
    .guide-editor-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .guide-editor-modal .modal-header {
        padding: 20px;
    }
    
    .guide-editor-modal .modal-header h3 {
        font-size: 20px;
    }
    
    .guide-editor-modal form {
        padding: 20px;
    }
    
    .guide-editor-modal .form-actions {
        flex-direction: column;
    }
    
    .btn-submit-guide,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .guide-editor-modal .modal-header {
        padding: 15px;
    }
    
    .guide-editor-modal .modal-header h3 {
        font-size: 18px;
    }
    
    .guide-editor-modal form {
        padding: 15px;
    }
}

/* ==================== 移动端优化样式 ==================== */

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none; /* 桌面端隐藏 */
}

@media (max-width: 768px) {
    /* 目标1：移动端顶部只保留网站标题和搜索框 */
    .nav-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 12px 0;
    }
    
    /* logo 保持原位 */
    .logo {
        flex-shrink: 0;
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    /* 搜索框缩小并靠右 */
    .search-box {
        width: auto;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .search-box .search-form {
        width: 100%;
    }
    
    .search-input,
    .search-form input[type="search"] {
        width: 180px;
        padding: 8px 35px 8px 12px;
        font-size: 14px;
    }
    
    /* 隐藏导航菜单 */
    .nav-menu {
        display: none !important;
    }
    
    /* 隐藏用户操作区域 */
    .user-actions {
        display: none !important;
    }
    
    /* 隐藏公告按钮 */
    .announcement-trigger-btn {
        display: none !important;
    }
    
    /* 隐藏用户下拉菜单 */
    .user-dropdown {
        display: none !important;
    }
    
    /* 隐藏登录注册按钮 */
    .auth-buttons {
        display: none !important;
    }
    
    /* 目标2：移动端底部导航显示和样式 */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: var(--bg-cream);
        box-shadow: 0 -2px 10px var(--shadow);
        z-index: 1000;
        padding: 0;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.2);
    }
    
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 100%;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .bottom-nav-item i {
        font-size: 20px;
        transition: all 0.3s ease;
    }
    
    .bottom-nav-item span {
        font-size: 11px;
    }
    
    .bottom-nav-item:active {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    .bottom-nav-item.active {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .bottom-nav-item.active i {
        transform: scale(1.1);
    }
    
    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 0 0 3px 3px;
    }
    
    /* 为 body 添加底部内边距，防止内容被底部导航遮挡 */
    body {
        padding-bottom: 70px;
    }
    
    /* 调整返回顶部按钮位置，避免被底部导航遮挡 */
    .back-to-top {
        bottom: 70px;
    }
    
    /* 目标4：移动端关闭轮播图展示功能 */
    .hero-slider,
    .steam-carousel {
        display: none !important;
    }
}

/* 针对更小的屏幕优化 */
@media (max-width: 480px) {
    .mobile-bottom-nav {
        height: 52px;
    }
    
    .bottom-nav-item i {
        font-size: 18px;
    }
    
    .bottom-nav-item span {
        font-size: 10px;
    }
    
    body {
        padding-bottom: 66px;
    }
    
    .back-to-top {
        bottom: 66px;
    }
}

/* 桌面端确保底部导航隐藏 */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    /* 桌面端恢复正常的 body padding */
    body {
        padding-bottom: 0;
    }
}
