/*
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: #8B7355;
    --secondary-color: #A0826D;
    --accent-color: #C4A77D;
    --bg-cream: #F5F0E8;
    --bg-light-wood: #E8DDD0;
    --bg-dark-wood: #6B5643;
    --text-primary: #3E2723;
    --text-secondary: #5D4E37;
    --text-light: #8B7355;
    --white: #FFFFFF;
    --shadow: rgba(107, 86, 67, 0.1);
    --shadow-hover: rgba(107, 86, 67, 0.2);
}

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;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 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: linear-gradient(135deg, var(--bg-light-wood) 0%, var(--bg-cream) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 0.05);
}

.dropdown-item i {
    width: 18px;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(139, 115, 85, 0.1);
    margin: 8px 0;
}

/* 轮播区样式 */
.hero-slider {
    margin: 30px 0;
    padding: 0;
}

.steam-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    background: linear-gradient(135deg, #FDFCFA 0%, #F5F0E8 100%);
    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;
    transition: transform 0.5s ease;
}

.main-image-link:hover .main-image {
    transform: scale(1.02);
}

.carousel-right {
    width: 360px;
    display: flex;
    flex-direction: column;
    padding: 5px 10px 5px 5px;
    background-color: #FDFCFA;
}

.game-details {
    padding: 0 5px;
    margin-bottom: 6px;
}

.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(139, 115, 85, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.game-details-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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: 2px solid var(--bg-dark-wood);
    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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 0.15);
    font-size: 12px;
}

.footer-tags {
    display: flex;
    gap: 8px;
}

.tag-item {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    background-color: rgba(139, 115, 85, 0.1);
    color: var(--primary-color);
}

.game-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 12px;
}

.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* 页脚 */
.footer {
    background-color: var(--bg-dark-wood);
    color: var(--bg-cream);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--bg-cream);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section ul li i {
    margin-right: 8px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-cream);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--bg-cream);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* 公告按钮 */
.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(139, 115, 85, 0.3);
    flex-shrink: 0;
}

.announcement-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 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: linear-gradient(135deg, #F9F6F2 0%, #F5F0E8 100%);
    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(139, 115, 85, 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(139, 115, 85, 0.05);
    border-top: 1px solid rgba(139, 115, 85, 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(139, 115, 85, 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;
}

/* 返回顶部 */
.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(139, 115, 85, 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);
}

/* 首页翻页功能样式 */
.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(139, 115, 85, 0.3);
}

.pagination-wrapper .pagination-btn:disabled {
    background-color: rgba(139, 115, 85, 0.3);
    border-color: rgba(139, 115, 85, 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(139, 115, 85, 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;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-header-card {
    background: linear-gradient(135deg, #FDFCFA 0%, #F5F0E8 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.game-main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light-wood) 0%, var(--bg-cream) 100%);
}

.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;
}

.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(139, 115, 85, 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;
}

.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(139, 115, 85, 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: #6B5645;
    border-color: #6B5645;
}

.btn-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 游戏截图预览（立即下载按钮下方）*/
.game-preview-screenshots {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 115, 85, 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(139, 115, 85, 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: linear-gradient(135deg, #FDFCFA 0%, #F5F0E8 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid rgba(139, 115, 85, 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(139, 115, 85, 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(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.netdisk-card {
    background: linear-gradient(135deg, #FDFCFA 0%, #F5F0E8 100%);
    border: 2px solid rgba(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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: linear-gradient(135deg, #FDFCFA 0%, #F5F0E8 100%);
    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(139, 115, 85, 0.08);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 0.2);
    transition: all 0.3s ease;
}

.image-preview-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 0.2);
}

.btn-load-more-comments:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.btn-load-more-comments:disabled {
    background-color: rgba(139, 115, 85, 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: linear-gradient(135deg, #FDFCFA 0%, #F5F0E8 100%);
    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(139, 115, 85, 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: linear-gradient(135deg, #FDFCFA 0%, #F5F0E8 100%);
    border-radius: 12px;
    position: relative;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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: #8B7355 !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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 0.3);
}

.login-modal-btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 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(139, 115, 85, 0.1);
    transform: translateY(-2px);
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.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);
}

/* 游戏卡片悬浮预览窗口 */
.game-preview-popup {
    position: absolute;
    width: 420px;
    background-color: #F9F6F2;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    padding: 25px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.game-preview-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.preview-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-tags .tag-item {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(139, 115, 85, 0.1);
    color: var(--text-secondary);
    font-weight: 600;
}

.preview-tags .tag-item.rating {
    background-color: rgba(230, 162, 60, 0.15);
    color: #e6a23c;
}

.preview-tags .tag-item i {
    margin-right: 3px;
}

.preview-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.preview-screenshots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.preview-screenshots img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.preview-screenshots img:hover {
    transform: scale(1.02);
}

.preview-screenshots .no-screenshots {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-light);
    font-size: 13px;
    border-radius: 8px;
    font-style: italic;
}

/* 预览窗口响应式 */
@media (max-width: 768px) {
    .game-preview-popup {
        width: 90vw;
        max-width: 380px;
    }
    
    .preview-screenshots img {
        max-height: 180px;
    }
}

/* 详情页响应式 */
@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(139, 115, 85, 0.3);
}

.error-modal-btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 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(139, 115, 85, 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: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light-wood) 100%);
    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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 0.05);
    border-left-color: var(--primary-color);
}

.profile-nav-item.active {
    background-color: rgba(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 0.05);
    border-top: 1px solid rgba(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 0.3);
}

.guide-login-modal-btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 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(139, 115, 85, 0.1);
    transform: translateY(-2px);
}

/* 发表攻略按钮悬停效果 */
.btn-publish-guide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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(139, 115, 85, 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: linear-gradient(135deg, var(--bg-light-wood) 0%, var(--bg-cream) 100%);
        box-shadow: 0 -2px 10px var(--shadow);
        z-index: 1000;
        padding: 0;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid rgba(139, 115, 85, 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(139, 115, 85, 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;
    }
    
    /* 目标3：移动端禁用游戏卡片预览浮窗 */
    .game-preview-popup {
        display: none !important;
    }
    
    /* 确保预览面板在移动端完全隐藏 */
    #gamePreviewPanel {
        display: none !important;
    }
    
    /* 目标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;
    }
}
